/* ============================================================
   Cyril Uramu — Author Site
   "Quiet Sanctuary" design system
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --paper:       #f2eee5;   /* page background, warm ivory       */
  --paper-deep:  #e9e3d6;   /* alternating sections              */
  --surface:     #fcfbf6;   /* cards / raised off-white          */
  --ink:         #1b1916;   /* primary text, near-black          */
  --ink-soft:    #565049;   /* secondary text                    */
  --navy:        #1c1a16;   /* dark sections (warm charcoal)     */
  --navy-soft:   #2b2823;
  --gold:        #8a6f4a;   /* restrained bronze accent on light */
  --gold-bright: #b39360;   /* bronze accent on dark             */
  --line:        rgba(27, 25, 22, 0.14);
  --line-soft:   rgba(27, 25, 22, 0.08);

  --shadow-sm: 0 1px 2px rgba(27,25,22,.06), 0 4px 14px rgba(27,25,22,.06);
  --shadow-md: 0 10px 30px rgba(27,25,22,.12), 0 4px 10px rgba(27,25,22,.07);
  --shadow-lg: 0 24px 60px rgba(27,25,22,.18);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Spectral", Georgia, serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.55vw + 0.9rem, 1.18rem);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 80% at 80% -10%, rgba(179,147,96,.10), transparent 55%),
    radial-gradient(90% 60% at -10% 0%, rgba(27,25,22,.05), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 470; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { color: var(--ink); }
.lead { font-size: clamp(1.15rem, 1.4vw, 1.4rem); color: var(--ink-soft); line-height: 1.6; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-bright); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }
section { position: relative; z-index: 1; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--paper-deep { background: var(--paper-deep); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(242,238,229,.84); }

/* ornamental divider */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-block: 0 2.4rem; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: clamp(40px, 14vw, 120px); background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament span { font-size: .7rem; transform: rotate(45deg); }
.section--navy .ornament { color: var(--gold-bright); }
.section--navy .ornament::before { background: linear-gradient(90deg, transparent, var(--gold-bright)); }
.section--navy .ornament::after { background: linear-gradient(90deg, var(--gold-bright), transparent); }

.section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head .eyebrow { margin-bottom: .9rem; }
.section-head p { color: var(--ink-soft); margin-top: .9rem; }
.section--navy .section-head p { color: rgba(242,238,229,.8); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: .94rem; letter-spacing: .03em;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--navy); color: #f6f2e8; box-shadow: var(--shadow-sm); border-color: var(--navy); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #2e2a24; }
.btn--gold { background: var(--gold-bright); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #c2a273; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.section--navy .btn--ghost { color: #f6f2e8; border-color: rgba(242,238,229,.3); }
.section--navy .btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,238,229,.82);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(27,25,22,.07); background: rgba(242,238,229,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.brand-logo { height: 86; width: auto; flex: none; display: block; }
.brand-logo--full { height: 86px; }
@media (max-width: 720px) { .brand-logo--full { height: 40px; } }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: .01em; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); list-style: none; }
.nav-links a {
  position: relative; text-decoration: none; color: var(--ink);
  font-size: .98rem; font-weight: 500; padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }
.nav-links .nav-cta { margin-left: .4rem; }

.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px;
  position: relative; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor; transition: .3s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero-copy .eyebrow { margin-bottom: 1.3rem; }
.hero-copy h1 { margin-bottom: 1.4rem; }
.hero-copy h1 em { font-style: italic; color: var(--gold); }
.hero-copy .lead { margin-bottom: 2.2rem; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* hero book visual */
.hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-glow {
  position: absolute; width: 120%; height: 120%; inset: -10% auto auto -10%;
  background: radial-gradient(closest-side, rgba(179,147,96,.28), transparent 70%);
  filter: blur(8px); z-index: 0;
}
.book3d {
  position: relative; z-index: 1; width: clamp(200px, 24vw, 264px); aspect-ratio: 2/3;
  border-radius: 4px 7px 7px 4px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 55%, #3a352d 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(179,147,96,.25);
  transform: rotate(-4deg);
  transition: transform .5s var(--ease);
  overflow: hidden;
}
.hero-art:hover .book3d { transform: rotate(-2deg) translateY(-6px); }
.book3d::before { /* spine highlight */
  content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.06));
}
.book3d-inner { position: absolute; inset: 22px 22px 26px 30px; display: flex; flex-direction: column; }
.book3d-frame { flex: 1; border: 1px solid rgba(179,147,96,.5); border-radius: 2px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 1.2rem .8rem; }
.book3d-frame .b-mark { font-size: 1.6rem; color: var(--gold-bright); margin-bottom: .8rem; }
.book3d-frame .b-title { font-family: var(--font-display); color: #efe9db; font-size: 1.15rem; line-height: 1.15; font-weight: 500; }
.book3d-frame .b-by { color: rgba(179,147,96,.85); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; margin-top: .9rem; }
.book3d-glare { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.12) 48%, transparent 56%); }

/* ---------- Book grid / cards ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem); }
.book-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.book-card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--gold-bright); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.book-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.book-card:hover::after { transform: scaleX(1); }
.book-cover {
  aspect-ratio: 2/3; background: var(--paper-deep); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.book-card:hover .book-cover img { transform: scale(1.04); }
/* placeholder cover when no image */
.cover-fallback {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: .8rem; padding: 1.4rem;
  background: linear-gradient(150deg, var(--navy), #322d26);
  color: #ece4d3;
}
.cover-fallback .cf-mark { color: var(--gold-bright); font-size: 1.4rem; }
.cover-fallback .cf-title { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.15; }
.cover-fallback .cf-rule { width: 30px; height: 1px; background: var(--gold-bright); }

.book-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.book-title { font-size: 1.22rem; margin-bottom: .35rem; }
.book-title a { text-decoration: none; }
.book-title a:hover { color: var(--gold); }
.book-blurb { color: var(--ink-soft); font-size: .98rem; line-height: 1.55; margin-bottom: 1.1rem; flex: 1; }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; }
.book-price { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.book-price small { font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: block; }

/* ---------- About band ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-portrait {
  aspect-ratio: 1/1; max-width: 360px; width: 100%; margin-inline: auto; border-radius: 50%;
  background: linear-gradient(150deg, #26231d, #3a352d); overflow: hidden;
  border: 1px solid rgba(179,147,96,.4); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.portrait-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #3a352d, #16140f);
  color: var(--gold-bright); font-family: var(--font-display); font-size: 4rem;
}
.about-text .lead { margin-bottom: 1.2rem; }
.about-text p + p { margin-top: 1rem; }
.about-text .btn { margin-top: 1.8rem; }
.about-quote { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--gold-bright); border-left: 2px solid var(--gold-bright); padding-left: 1.2rem; margin: 1.6rem 0; }

/* ---------- Devotional / blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(1.4rem, 3vw, 2rem); }
.post-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-meta { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.post-card h3 { margin-bottom: .6rem; }
.post-card h3 a { text-decoration: none; }
.post-card p { color: var(--ink-soft); font-size: .98rem; line-height: 1.55; flex: 1; }
.post-card .readmore { margin-top: 1.1rem; font-weight: 600; font-size: .9rem; color: var(--gold); display: inline-flex; gap: .4rem; align-items: center; }
.post-card:hover .readmore .arr { transform: translateX(4px); }
.post-card .arr { transition: transform .25s var(--ease); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); text-align: center; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero p { color: var(--ink-soft); max-width: 60ch; margin: 1.1rem auto 0; }

/* ---------- Single book ---------- */
.single-book { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.single-book .sb-cover { position: sticky; top: 100px; }
.single-book .book-cover { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.sb-detail .eyebrow { margin-bottom: .8rem; }
.sb-detail h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.sb-syn { color: var(--ink-soft); margin-bottom: 1.4rem; }
.sb-syn p + p { margin-top: 1rem; }
.sb-note { background: var(--surface); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold-bright); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.6rem 0; font-style: italic; color: var(--ink-soft); }
.sb-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.sb-buy .price { font-family: var(--font-display); font-size: 2rem; }

/* ---------- Article (single post) ---------- */
.article { }
.article .article-meta { text-align: center; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1rem; }
.article h1 { text-align: center; margin-bottom: 1.6rem; }
.article-body { font-size: 1.16rem; line-height: 1.85; }
.article-body > * + * { margin-top: 1.3rem; }
.article-body h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.article-body h3 { margin-top: 2rem; }
.article-body blockquote { border-left: 2px solid var(--gold-bright); padding-left: 1.3rem; font-style: italic; color: var(--ink-soft); font-size: 1.25rem; font-family: var(--font-display); }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: .5rem; }
.article-body img { border-radius: var(--radius); margin-block: 1.6rem; box-shadow: var(--shadow-md); }
.article-foot { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); text-align: center; }

/* ---------- Contact / CTA ---------- */
.cta-band { text-align: center; }
.contact-form { max-width: 540px; margin: 2rem auto 0; display: grid; gap: 1rem; text-align: left; }
.field label { display: block; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: .4rem; color: rgba(242,238,229,.8); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(242,238,229,.22); border-radius: var(--radius);
  padding: .8rem 1rem; transition: border-color .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(242,238,229,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-bright); background: rgba(255,255,255,.1); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .85rem; color: rgba(242,238,229,.6); margin-top: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: #16140f; color: rgba(242,238,229,.75); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(242,238,229,.12); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: rgba(242,238,229,.6); margin-top: 1rem; max-width: 36ch; font-size: .96rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: rgba(242,238,229,.7); text-decoration: none; transition: color .2s; font-size: .96rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: .85rem; color: rgba(242,238,229,.5); }
.footer-bottom a { color: rgba(242,238,229,.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- Empty / loading states ---------- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); grid-column: 1 / -1; }
.empty-state .eyebrow { display: block; margin-bottom: .8rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* hero entrance */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-copy > * { opacity: 0; animation: riseIn .9s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .18s; }
.hero-copy > *:nth-child(3) { animation-delay: .31s; }
.hero-copy > *:nth-child(4) { animation-delay: .44s; }
.hero-art { opacity: 0; animation: riseIn 1s var(--ease) .5s forwards; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; min-height: 300px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-quote { border-left: 0; border-top: 1px solid var(--gold-bright); border-bottom: 1px solid var(--gold-bright); padding: 1rem 0; }
  .single-book { grid-template-columns: 1fr; }
  .single-book .sb-cover { position: static; max-width: 300px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .4s var(--ease); align-items: stretch;
  }
  body.menu-open .nav-links { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.1rem; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions .btn, .sb-buy .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
