/*
Theme Name: Amber Hour
Theme URI: https://mahnooraftab.com
Author: Mahnoor Aftab
Author URI: https://mahnooraftab.com
Description: A cinematic, scroll-driven one-page WordPress theme built for a candle & home-fragrance brand. Numbered chapter reveals, alternating photo/text layout, and a signature animated "wick" scroll-progress indicator.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amber-hour
*/

:root{
  --charcoal: #17130f;
  --charcoal-deep: #0e0b08;
  --cream: #f4ead9;
  --cream-dim: #cabfae;
  --amber: #c9863f;
  --amber-bright: #e6a85c;
  --wine: #4a2e22;
  --line: rgba(244,234,217,0.14);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--charcoal);
  color:var(--cream);
  font-family:'Manrope', sans-serif;
  font-weight:300;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--amber); color:var(--charcoal-deep); }

.serif{ font-family:'Playfair Display', serif; }
.mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:0.08em; text-transform:uppercase; }

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; }

/* ---------- Wick progress indicator (signature element) ---------- */
.wick{
  position:fixed;
  right:28px;
  top:50%;
  transform:translateY(-50%);
  height:38vh;
  width:2px;
  background:var(--line);
  z-index:50;
}
.wick-fill{
  position:absolute;
  bottom:0; left:0; width:100%;
  height:0%;
  background:linear-gradient(to top, var(--amber), var(--amber-bright));
  box-shadow:0 0 12px 2px rgba(230,168,92,0.6);
  transition:height 0.1s linear;
}
.wick-flame{
  position:absolute;
  left:50%;
  bottom:0%;
  transform:translate(-50%, 50%);
  width:10px; height:14px;
  background:radial-gradient(ellipse at 50% 70%, var(--amber-bright) 0%, var(--amber) 55%, transparent 75%);
  border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;
  filter:blur(0.3px);
  animation:flicker 2.4s ease-in-out infinite;
}
@keyframes flicker{
  0%,100%{ opacity:1; transform:translate(-50%,50%) scaleY(1) rotate(0deg); }
  30%{ opacity:0.85; transform:translate(-50%,50%) scaleY(1.08) rotate(-2deg); }
  55%{ opacity:0.95; transform:translate(-50%,50%) scaleY(0.94) rotate(2deg); }
  80%{ opacity:0.9; transform:translate(-50%,50%) scaleY(1.04) rotate(-1deg); }
}
@media (max-width: 780px){ .wick{ display:none; } }

/* ---------- Nav ---------- */
nav{
  position:fixed; top:0; left:0; right:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 5vw;
  background:linear-gradient(to bottom, rgba(14,11,8,0.75), transparent);
}
.brand-mark{ font-size:15px; letter-spacing:0.16em; display:flex; align-items:center; }
.brand-mark img{ height:46px; width:auto; display:block; }
.footer-mark img{ height:30px; width:auto; display:block; opacity:0.9; }
@media (max-width:780px){ .brand-mark img{ height:36px; } }
.nav-links{ display:flex; gap:32px; font-size:12px; }
.nav-links a{ opacity:0.75; transition:opacity 0.3s; }
.nav-links a:hover{ opacity:1; }
@media (max-width:780px){ .nav-links{ display:none; } }

/* ---------- Section base ---------- */
section{ position:relative; padding:min(14vh,140px) 7vw; }
.reveal{ opacity:0; transform:translateY(36px); transition:opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1); }
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal.d1{ transition-delay:0.08s; }
.reveal.d2{ transition-delay:0.18s; }
.reveal.d3{ transition-delay:0.28s; }

/* ---------- Hero ---------- */
.hero{
  min-height:100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding-top:120px;
  position:relative;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 60% 45% at 78% 30%, rgba(201,134,63,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(74,46,34,0.35), transparent 65%);
  pointer-events:none;
}
.eyebrow{ font-size:11px; color:var(--amber-bright); margin-bottom:22px; }
.hero h1{
  font-size:clamp(40px, 7.2vw, 108px);
  line-height:0.98;
  font-weight:500;
  max-width:16ch;
}
.hero h1 em{ font-style:italic; font-weight:500; color:var(--amber-bright); }
.hero-sub{
  margin-top:28px;
  max-width:36ch;
  font-size:16px;
  line-height:1.7;
  color:var(--cream-dim);
}
.hero-cta{ display:flex; gap:18px; margin-top:44px; flex-wrap:wrap; }
.btn{
  padding:15px 30px;
  border:1px solid var(--line);
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  display:inline-block;
}
.btn.solid{ background:var(--amber); border-color:var(--amber); color:var(--charcoal-deep); font-weight:500; }
.btn.solid:hover{ background:var(--amber-bright); border-color:var(--amber-bright); }
.btn.ghost:hover{ border-color:var(--cream); }

.hero-meta{
  position:absolute; bottom:56px; right:7vw;
  text-align:right; font-size:11px; color:var(--cream-dim);
}
.hero-meta .rating{ font-size:26px; color:var(--cream); font-family:'Playfair Display',serif; }

/* ---------- Intro strip ---------- */
.intro{
  display:grid; grid-template-columns:1fr 1fr; gap:60px;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  padding:70px 7vw;
}
.intro p{ font-size:20px; line-height:1.65; color:var(--cream-dim); font-weight:300; }
.intro .label{ font-size:11px; color:var(--amber-bright); }
@media (max-width:780px){ .intro{ grid-template-columns:1fr; gap:20px; } }

/* ---------- Chapter (feature) sections ---------- */
.chapter{
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:6vw;
  align-items:center;
  padding-top:min(16vh,150px); padding-bottom:min(16vh,150px);
}
.chapter.reverse{ direction:rtl; }
.chapter.reverse > *{ direction:ltr; }
.chapter-visual{
  aspect-ratio:4/5;
  border-radius:2px;
  position:relative;
  overflow:hidden;
  background:var(--charcoal-deep);
}
.chapter-visual img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.03);
  transition:transform 1.4s cubic-bezier(.22,.61,.36,1);
}
.chapter-visual:hover img{ transform:scale(1.08); }
.chapter-visual .frame{
  position:absolute; inset:16px;
  border:1px solid rgba(244,234,217,0.18);
  pointer-events:none;
}
.chapter-num{ font-size:12px; color:var(--amber-bright); margin-bottom:18px; }
.chapter h2{ font-size:clamp(30px,4vw,52px); font-weight:500; line-height:1.05; margin-bottom:18px; }
.chapter h2 em{ font-style:italic; color:var(--amber-bright); }
.chapter p{ font-size:16px; line-height:1.75; color:var(--cream-dim); max-width:44ch; }
.chapter .notes{ margin-top:26px; display:flex; gap:10px; flex-wrap:wrap; }
.note-pill{ font-size:11px; padding:7px 14px; border:1px solid var(--line); color:var(--cream-dim); }
@media (max-width:780px){
  .chapter, .chapter.reverse{ grid-template-columns:1fr; direction:ltr; }
}

/* ---------- Quote sections ---------- */
.quote-sec{ padding:min(10vh,90px) 7vw; text-align:center; }
.quote-sec .stars{ color:var(--amber-bright); font-size:14px; margin-bottom:20px; letter-spacing:0.2em; }
.quote-sec blockquote{
  font-family:'Playfair Display', serif;
  font-style:italic;
  font-size:clamp(22px,3vw,34px);
  max-width:20ch;
  margin:0 auto;
  line-height:1.4;
}
.quote-sec .who{ margin-top:20px; font-size:12px; color:var(--cream-dim); }

/* ---------- Craft / stats strip ---------- */
.stats{
  display:grid; grid-template-columns:repeat(3,1fr); gap:40px;
  border-top:1px solid var(--line);
  padding:80px 7vw;
}
.stat-num{ font-family:'Playfair Display',serif; font-size:clamp(36px,4.4vw,58px); color:var(--amber-bright); }
.stat-label{ font-size:12px; color:var(--cream-dim); margin-top:8px; }
@media (max-width:780px){ .stats{ grid-template-columns:1fr; gap:36px; } }

/* ---------- Closing ---------- */
.closing{
  min-height:90svh;
  display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
  position:relative;
  border-top:1px solid var(--line);
}
.closing::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(ellipse 55% 50% at 25% 60%, rgba(201,134,63,0.16), transparent 65%);
  pointer-events:none;
}
.closing .eyebrow{ margin-bottom:22px; }
.closing h2{ font-size:clamp(36px,6.4vw,86px); font-weight:500; line-height:1.02; max-width:18ch; }
.closing h2 em{ font-style:italic; color:var(--amber-bright); }
.closing-grid{
  margin-top:60px;
  display:flex; gap:60px; flex-wrap:wrap;
  font-size:13px; color:var(--cream-dim);
}
.closing-grid strong{ display:block; color:var(--cream); font-size:13px; margin-bottom:6px; font-weight:500; }

footer.site-footer{
  display:flex; justify-content:space-between; align-items:center;
  padding:30px 7vw; border-top:1px solid var(--line);
  font-size:11px; color:var(--cream-dim); flex-wrap:wrap; gap:14px;
}
footer.site-footer a{ opacity:0.8; }
footer.site-footer a:hover{ opacity:1; color:var(--amber-bright); }

.side-tag{
  position:fixed; left:24px; bottom:24px; z-index:40;
  font-size:10px; color:var(--cream-dim);
  letter-spacing:0.1em;
  writing-mode:vertical-rl;
  opacity:0.5;
  pointer-events:none;
}
@media (max-width:780px){ .side-tag{ display:none; } }
