/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #0d0906;
  --bg-card: #1a120b;
  --bg-card-hover: #241a10;
  --amber: #f5a942;
  --amber-dim: #c8822c;
  --amber-glow: rgba(245,169,66,0.35);
  --cream: #f5e6c8;
  --cream-dim: #c4b393;
  --text: #e8dcc8;
  --text-dim: #9a8a73;
  --border: #3a2a18;
  --red: #c0392b;
  --white: #f0e4d0;
  --shadow-glow: 0 0 30px rgba(245,169,66,0.2), 0 0 60px rgba(245,169,66,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--amber); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cream); }
img { max-width: 100%; display: block; }
button, .btn { cursor: pointer; border: none; font-family: inherit; }

/* ========== Navbar ========== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,9,6,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-serif); font-size: 1.4rem;
  color: var(--amber); display: flex; align-items: center; gap: 8px;
  font-weight: 700;
}
.nav-logo .flame { font-size: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--cream-dim); font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--amber); }
.nav-cta {
  background: var(--amber) !important; color: var(--bg-dark) !important;
  padding: .5rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-cta:hover { background: var(--cream) !important; }
.hamburger { display: none; background: none; color: var(--cream); font-size: 1.5rem; }

/* ========== Hero ========== */
.hero {
  text-align: center; padding: 5rem 2rem 3rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,169,66,0.08) 0%, transparent 60%);
}
.hero-flame { font-size: 4rem; margin-bottom: 1rem; animation: flicker 3s ease-in-out infinite; }
@keyframes flicker {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .85; transform: scale(0.97); }
}
.hero h1 {
  font-family: var(--font-serif); font-size: 2.8rem;
  color: var(--cream); margin-bottom: 1rem; line-height: 1.3;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p {
  font-size: 1.1rem; color: var(--cream-dim); max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--amber); color: var(--bg-dark);
  padding: .85rem 2rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; transition: all .2s;
}
.btn-primary:hover { background: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn-secondary {
  background: transparent; color: var(--amber);
  padding: .85rem 2rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem;
  border: 1px solid var(--amber-dim); transition: all .2s;
}
.btn-secondary:hover { border-color: var(--amber); background: rgba(245,169,66,0.08); }

/* ========== Sections ========== */
section { padding: 4rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: var(--font-serif); font-size: 2rem;
  color: var(--cream); text-align: center; margin-bottom: .5rem;
}
.section-sub { text-align: center; color: var(--cream-dim); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========== Candle Wall ========== */
.wall-section { background: var(--bg-card); }
.wall-stats {
  display: flex; gap: 3rem; justify-content: center;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.wall-stat { text-align: center; }
.wall-stat .num { font-size: 2rem; font-weight: 700; color: var(--amber); font-family: var(--font-serif); }
.wall-stat .label { color: var(--cream-dim); font-size: .85rem; }

.candle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.2rem;
  max-width: 960px; margin: 0 auto;
}
.candle-card {
  background: var(--bg-dark); border-radius: var(--radius);
  padding: 1.2rem .8rem; text-align: center;
  border: 1px solid var(--border);
  transition: all .3s; cursor: pointer;
  position: relative; overflow: hidden;
}
.candle-card:hover { border-color: var(--amber-dim); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.candle-card .candle-flame {
  font-size: 2.2rem; margin-bottom: .4rem;
  animation: flicker 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--amber-glow));
}
.candle-card .candle-name {
  font-family: var(--font-serif); font-size: .95rem; color: var(--cream);
  margin-bottom: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.candle-card .candle-msg {
  font-size: .75rem; color: var(--text-dim); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .4rem;
}
.candle-card .candle-time { font-size: .7rem; color: var(--text-dim); opacity: .7; }

.candle-colors { display: flex; justify-content: center; gap: .3rem; margin-top: .4rem; }
.candle-colors span {
  width: 10px; height: 10px; border-radius: 50%;
}
.cc-white { background: #f0e4d0; }
.cc-amber { background: #f5a942; }
.cc-red { background: #c0392b; }
.cc-pink { background: #d4738a; }
.cc-purple { background: #7b5ea7; }
.cc-blue { background: #4a7fb5; }

/* ========== How It Works ========== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; }
.step { text-align: center; padding: 1.5rem; }
.step-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.step h3 { font-family: var(--font-serif); color: var(--amber); margin-bottom: .5rem; font-size: 1.15rem; }
.step p { color: var(--cream-dim); font-size: .9rem; }

/* ========== Pricing ========== */
.pricing-section { background: var(--bg-card); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.price-card {
  background: var(--bg-dark); border-radius: var(--radius);
  padding: 2rem 1.8rem; border: 1px solid var(--border);
  transition: all .3s; position: relative;
}
.price-card:hover { border-color: var(--amber-dim); }
.price-card.featured { border-color: var(--amber); box-shadow: var(--shadow-glow); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--bg-dark);
  padding: .25rem .9rem; border-radius: 20px;
  font-size: .75rem; font-weight: 700;
}
.price-tier { font-family: var(--font-serif); font-size: 1.3rem; color: var(--cream); margin-bottom: .3rem; }
.price-desc { color: var(--cream-dim); font-size: .85rem; margin-bottom: 1.2rem; }
.price-amount { font-size: 2.2rem; font-weight: 700; color: var(--amber); font-family: var(--font-serif); }
.price-amount span { font-size: .9rem; color: var(--text-dim); font-weight: 400; }
.price-features { list-style: none; margin: 1.5rem 0; }
.price-features li { padding: .4rem 0; color: var(--text); font-size: .9rem; }
.price-features li::before { content: "✦ "; color: var(--amber); }
.price-card .btn-primary { width: 100%; text-align: center; display: block; }

/* ========== Testimonials ========== */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.testimonial {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1.8rem; border: 1px solid var(--border);
}
.testimonial-text { font-style: italic; color: var(--cream-dim); margin-bottom: 1rem; font-size: .95rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber-dim); display: flex; align-items: center; justify-content: center;
  color: var(--bg-dark); font-weight: 700; font-size: .9rem;
}
.testimonial-name { font-size: .85rem; color: var(--cream); font-weight: 600; }
.testimonial-loc { font-size: .75rem; color: var(--text-dim); }

/* ========== Footer ========== */
.footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem; margin-top: 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-family: var(--font-serif); color: var(--amber); margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: var(--cream-dim); font-size: .85rem; }
.footer-col ul li a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; color: var(--text-dim); font-size: .8rem; }

/* ========== Page Header ========== */
.page-header {
  text-align: center; padding: 4rem 2rem 2rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,169,66,0.08) 0%, transparent 60%);
}
.page-header h1 { font-family: var(--font-serif); font-size: 2.4rem; color: var(--cream); margin-bottom: .5rem; }
.page-header p { color: var(--cream-dim); max-width: 600px; margin: 0 auto; }

/* ========== Light Candle Form ========== */
.form-section { padding: 2rem 2rem 4rem; }
.form-container { max-width: 680px; margin: 0 auto; }
.form-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 2.5rem; border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; margin-bottom: .5rem;
  color: var(--cream); font-weight: 600; font-size: .9rem;
}
.form-group label .hint { color: var(--text-dim); font-weight: 400; font-size: .8rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .8rem 1rem;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: .95rem; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--amber);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.color-picker { display: flex; gap: .8rem; flex-wrap: wrap; }
.color-option {
  width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; border: 3px solid transparent;
  transition: all .2s; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.color-option.selected { border-color: var(--cream); transform: scale(1.1); }
.color-option .color-flame { font-size: 1.2rem; }
.cw { background: #f0e4d0; }
.ca { background: #f5a942; }
.cr { background: #c0392b; }
.cpk { background: #d4738a; }
.cpu { background: #7b5ea7; }
.cb { background: #4a7fb5; }
.cg { background: #5a8a5e; }

.duration-options { display: flex; gap: .8rem; flex-wrap: wrap; }
.duration-option {
  flex: 1; min-width: 100px; padding: .8rem; text-align: center;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: all .2s;
}
.duration-option.selected { border-color: var(--amber); background: rgba(245,169,66,0.08); }
.duration-option .dur-days { font-weight: 700; color: var(--cream); font-size: 1rem; }
.duration-option .dur-price { font-size: .8rem; color: var(--amber); margin-top: .2rem; }
.duration-option.free .dur-price { color: var(--cream-dim); }

.checkbox-group { display: flex; align-items: flex-start; gap: .6rem; }
.checkbox-group input[type=checkbox] { width: auto; margin-top: .25rem; accent-color: var(--amber); }
.checkbox-group label { margin-bottom: 0; font-weight: 400; color: var(--cream-dim); font-size: .85rem; line-height: 1.5; }

/* ========== Candle Detail Page ========== */
.detail-section { padding: 2rem 2rem 4rem; }
.detail-card {
  max-width: 600px; margin: 0 auto;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 3rem 2.5rem; border: 1px solid var(--border);
  text-align: center; box-shadow: var(--shadow-glow);
}
.detail-flame {
  font-size: 5rem; margin-bottom: 1rem;
  animation: flicker 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--amber-glow));
}
.detail-name { font-family: var(--font-serif); font-size: 1.8rem; color: var(--cream); margin-bottom: .5rem; }
.detail-msg { color: var(--cream-dim); font-style: italic; margin: 1.5rem 0; line-height: 1.8; font-size: 1.05rem; }
.detail-meta { color: var(--text-dim); font-size: .85rem; margin-bottom: 2rem; }
.detail-timer {
  background: var(--bg-dark); border-radius: var(--radius-sm);
  padding: 1rem; margin-bottom: 1.5rem;
  display: flex; justify-content: center; gap: 1.5rem;
}
.timer-block { text-align: center; }
.timer-num { font-size: 1.5rem; font-weight: 700; color: var(--amber); font-family: var(--font-serif); }
.timer-label { font-size: .7rem; color: var(--text-dim); text-transform: uppercase; }
.detail-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ========== About Page ========== */
.about-content { max-width: 720px; margin: 0 auto; }
.about-content h2 { font-family: var(--font-serif); color: var(--amber); margin: 2rem 0 1rem; font-size: 1.4rem; }
.about-content p { color: var(--cream-dim); margin-bottom: 1rem; line-height: 1.8; }
.about-content blockquote {
  border-left: 3px solid var(--amber); padding-left: 1.2rem;
  margin: 1.5rem 0; font-style: italic; color: var(--cream);
}

/* ========== Legal Pages ========== */
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h2 { font-family: var(--font-serif); color: var(--amber); margin: 2rem 0 .8rem; font-size: 1.3rem; }
.legal-content p, .legal-content li { color: var(--cream-dim); margin-bottom: .8rem; line-height: 1.8; font-size: .92rem; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content strong { color: var(--cream); }

/* ========== 404 Page ========== */
.error-page { text-align: center; padding: 6rem 2rem; }
.error-flame { font-size: 5rem; margin-bottom: 1.5rem; opacity: .5; }
.error-page h1 { font-family: var(--font-serif); font-size: 3rem; color: var(--cream); margin-bottom: 1rem; }
.error-page p { color: var(--cream-dim); margin-bottom: 2rem; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    padding: 1rem 2rem; gap: 1rem;
  }
  .hamburger { display: block; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 1.5rem 2rem; }
  section { padding: 3rem 1.5rem; }
  .candle-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; }
  .form-card { padding: 1.5rem; }
  .wall-stats { gap: 1.5rem; }
  .detail-card { padding: 2rem 1.5rem; }
}
