/*
 * DINGEL'S CANDELS
 * Warm, hopeful, magical
 */

:root {
  /* Warm palette */
  --amber: #D4A855;
  --amber-deep: #B8923D;
  --amber-glow: rgba(212, 168, 85, 0.3);

  --rust: #C4725A;
  --rust-deep: #A85D48;

  --cream: #FDF8F0;
  --cream-dark: #F5EDE0;
  --parchment: #EDE4D3;

  --ink: #2C2416;
  --ink-soft: #4A3F2F;
  --muted: #8B7D6B;

  --flame-top: #FFE4A0;
  --flame-mid: #FFAD42;
  --flame-base: #E07A3D;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-hero: clamp(2.5rem, 8vw, 4rem);

  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--amber);
  color: var(--cream);
}

/* Typography */
h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--ink);
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--rust);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--rust-deep);
}

strong {
  color: var(--rust);
  font-weight: 500;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 650px;
}

.section {
  padding: var(--space-xl) 0;
}

.section-warm {
  background: var(--parchment);
}

.section-title {
  font-size: var(--text-2xl);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-intro {
  font-family: 'Spectral', serif;
  font-style: italic;
  text-align: center;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--parchment);
  box-shadow: 0 2px 20px rgba(44, 36, 22, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: 'Cinzel', serif;
  font-size: var(--text-lg);
  color: var(--ink);
  letter-spacing: 0.08em;
}

.navbar-brand:hover {
  color: var(--rust);
}

.navbar-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.navbar-link {
  font-family: 'Cinzel', serif;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.navbar-link:hover {
  color: var(--ink);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--parchment);
  padding: var(--space-md);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu li {
  margin-bottom: var(--space-sm);
}

.mobile-menu a {
  font-family: 'Cinzel', serif;
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-family: 'Cinzel', serif;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--rust-deep);
  border-color: var(--rust-deep);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(196, 114, 90, 0.3);
}

.btn-secondary {
  background: transparent;
  border-color: var(--muted);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--rust);
  color: var(--rust);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.hero-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.25;
}

.hero-seal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  animation: fade-in 1.5s ease;
}

.hero-motto {
  font-family: 'Cinzel', serif;
  font-size: var(--text-sm);
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: var(--text-hero);
  color: var(--cream);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--parchment);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--parchment), transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* Story */
.story {
  text-align: center;
}

.story p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--ink-soft);
}

.story p:first-child {
  font-family: 'Spectral', serif;
  font-style: italic;
  color: var(--muted);
}

.story .btn {
  margin-top: var(--space-md);
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--parchment);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  font-family: 'Cinzel', serif;
  font-size: var(--text-lg);
  color: var(--amber-deep);
}

.step-content {
  flex: 1;
}

.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.step p {
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.step .btn {
  margin-top: var(--space-xs);
}

/* Candles */
.candles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.candle-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-radius: 4px;
  transition: all var(--transition);
}

.candle-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 168, 85, 0.15);
}

.candle-flame {
  width: 10px;
  height: 20px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(to top, var(--flame-base), var(--flame-mid), var(--flame-top));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flicker 3s ease-in-out infinite;
  filter: blur(0.5px);
  box-shadow:
    0 0 10px var(--flame-mid),
    0 0 20px var(--amber-glow);
}

.candle-name {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.candle-purpose {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--rust);
  margin-bottom: var(--space-sm);
}

.candle-notes {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}

.candles-note {
  text-align: center;
  font-family: 'Spectral', serif;
  font-style: italic;
  color: var(--muted);
  font-size: var(--text-base);
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: var(--space-md);
  border: 2px solid var(--amber);
}

.footer-tagline {
  font-family: 'Spectral', serif;
  font-style: italic;
  color: var(--amber);
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment);
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-note {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1) scaleX(1);
  }
  25% {
    opacity: 0.9;
    transform: scaleY(1.02) scaleX(0.98);
  }
  50% {
    opacity: 0.95;
    transform: scaleY(0.98) scaleX(1.02);
  }
  75% {
    opacity: 0.85;
    transform: scaleY(1.01) scaleX(0.99);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Responsive */

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .candles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story p {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .candles-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
