/* ==========================================================================
   Marius Swart — "Unlock Your Heart to God" ministry site
   Design tokens: Deep Navy / Gold / Sunrise Orange / Cream
   Display: Cinzel  |  Body: Lato  |  Signature element: the Sunrise Divider
   ========================================================================== */

:root{
  --navy: #0B1F3A;
  --navy-deep: #071426;
  --navy-soft: #16305a;
  --gold: #C9A227;
  --gold-light: #E4C766;
  --sunrise: #F5A623;
  --sunrise-soft: #FCEEDD;
  --cream: #FBF8F2;
  --white: #FFFFFF;
  --ink: #1B2430;
  --ink-soft: #4a5568;
  --line: rgba(11,31,58,0.12);

  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 50px rgba(11,31,58,0.12);
  --shadow-card: 0 10px 30px rgba(11,31,58,0.08);
  --ease: cubic-bezier(.22,.9,.32,1);
}

[data-theme="dark"]{
  --cream: #0d1c33;
  --white: #0f2140;
  --ink: #f4ede1;
  --ink-soft: #c9c2b3;
  --line: rgba(228,199,102,0.18);
  --shadow-soft: 0 20px 50px rgba(0,0,0,0.4);
  --shadow-card: 0 10px 30px rgba(0,0,0,0.35);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  transition:background .4s var(--ease), color .4s var(--ease);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--navy); margin:0 0 .5em; line-height:1.25; }
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] h4{ color:var(--gold-light); }
p{ margin:0 0 1em; color:var(--ink-soft); }

.container{ width:min(1180px, 92%); margin-inline:auto; }
.section{ padding:clamp(3.5rem,7vw,7rem) 0; }
.section-narrow{ padding:clamp(2.5rem,5vw,4.5rem) 0; }

.eyebrow{
  display:inline-flex; align-items:center; gap:.6em;
  font-family:var(--font-body); font-weight:700; letter-spacing:.22em;
  text-transform:uppercase; font-size:.72rem; color:var(--gold);
  margin-bottom:1rem;
}
.eyebrow::before{ content:""; width:28px; height:2px; background:var(--sunrise); display:inline-block; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font-family:var(--font-body); font-weight:700; font-size:.95rem;
  padding:.95em 1.9em; border-radius:999px; border:2px solid transparent;
  cursor:pointer; transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{ background:linear-gradient(135deg,var(--sunrise),var(--gold)); color:var(--navy-deep); box-shadow:0 10px 25px rgba(245,166,35,.35); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(245,166,35,.45); }
.btn-outline{ background:transparent; border-color:var(--gold); color:var(--gold); }
[data-theme="dark"] .btn-outline{ color:var(--gold-light); border-color:var(--gold-light); }
.btn-outline:hover{ background:var(--gold); color:var(--navy-deep); }
.btn-ghost{ background:rgba(255,255,255,0.12); color:var(--white); border-color:rgba(255,255,255,0.35); }
.btn-ghost:hover{ background:rgba(255,255,255,0.22); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.6; cursor:not-allowed; transform:none; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,31,58,0.92); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(228,199,102,0.15);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:.9rem 0; }
.brand{ display:flex; align-items:center; gap:.7rem; }
.brand-mark{ width:40px; height:40px; flex-shrink:0; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-family:var(--font-display); color:var(--white); font-size:1.15rem; letter-spacing:.03em; }
.brand-tag{ font-size:.62rem; letter-spacing:.18em; text-transform:uppercase; color:var(--gold-light); }

.nav-links{ display:flex; align-items:center; gap:1.9rem; }
.nav-links a{
  color:rgba(255,255,255,0.82); font-size:.88rem; font-weight:700;
  letter-spacing:.03em; position:relative; padding:.3rem 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-4px; width:0; height:2px;
  background:var(--sunrise); transition:width .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color:var(--gold-light); }

.nav-actions{ display:flex; align-items:center; gap:.8rem; }
.theme-toggle{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(228,199,102,0.4);
  background:rgba(255,255,255,0.06); color:var(--gold-light); display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:1rem;
}
.nav-toggle{ display:none; background:none; border:none; color:var(--white); font-size:1.5rem; cursor:pointer; }

@media (max-width: 900px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; flex-direction:column;
    background:var(--navy-deep); padding:1.2rem 6%; gap:1.1rem;
    transform-origin:top; transform:scaleY(0); opacity:0; pointer-events:none;
    transition:transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-links.open{ transform:scaleY(1); opacity:1; pointer-events:auto; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden; color:var(--white);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(245,166,35,.35), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 85%);
  padding:clamp(4.5rem,10vw,8rem) 0 clamp(5rem,9vw,7rem);
}
.hero-inner{ display:grid; grid-template-columns:1.1fr .9fr; gap:3rem; align-items:center; }
@media (max-width:960px){ .hero-inner{ grid-template-columns:1fr; } }
.hero .eyebrow{ color:var(--gold-light); }
.hero h1{ color:var(--white); font-size:clamp(2.3rem,5vw,3.6rem); }
.hero .subtitle{ font-family:var(--font-display); color:var(--sunrise); font-size:1.3rem; margin-bottom:1rem; }
.hero p.lead{ color:rgba(255,255,255,0.82); font-size:1.08rem; max-width:52ch; }
.hero-ctas{ display:flex; gap:1rem; flex-wrap:wrap; margin-top:1.6rem; }
.hero-art{ position:relative; aspect-ratio:1/1; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-soft); }

/* Sunrise divider — signature element used between every major section */
.sunrise-divider{ display:block; width:100%; height:auto; margin:0; }
.sunrise-divider path{ transition:opacity .6s ease; }

/* ---------- Cards & Grids ---------- */
.grid{ display:grid; gap:1.8rem; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:620px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr;} }

.card{
  background:var(--white); border-radius:var(--radius-md); padding:2rem;
  box-shadow:var(--shadow-card); border:1px solid var(--line);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-soft); }
.card .icon-seal{ width:52px; height:52px; margin-bottom:1.1rem; }

.badge{
  display:inline-block; background:var(--sunrise-soft); color:var(--gold);
  font-weight:700; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  padding:.35em .9em; border-radius:999px; margin-bottom:.8rem;
}

/* Reveal-on-scroll (respects reduced motion) */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Scripture strip ---------- */
.scripture-strip{
  background:var(--navy); color:var(--white); text-align:center; padding:3.2rem 0;
  position:relative;
}
.scripture-strip blockquote{
  font-family:var(--font-display); font-size:clamp(1.2rem,2.6vw,1.7rem);
  max-width:46ch; margin:0 auto 1rem; color:var(--gold-light); font-style:normal;
}
.scripture-strip cite{ font-style:normal; color:rgba(255,255,255,0.7); letter-spacing:.08em; text-transform:uppercase; font-size:.78rem; }

/* ---------- Testimonials ---------- */
.testimonial-card{
  background:var(--white); border-radius:var(--radius-md); padding:2rem;
  border-left:4px solid var(--gold); box-shadow:var(--shadow-card);
}
.testimonial-card p{ font-style:italic; color:var(--ink); }
.testimonial-name{ font-weight:700; color:var(--navy); }
[data-theme="dark"] .testimonial-name{ color:var(--gold-light); }
.testimonial-role{ font-size:.85rem; color:var(--ink-soft); }

/* ---------- Forms ---------- */
.form-panel{
  background:var(--white); border-radius:var(--radius-lg); padding:clamp(1.8rem,4vw,3rem);
  box-shadow:var(--shadow-soft); border:1px solid var(--line);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
@media (max-width:620px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:1.2rem; }
.field label{ display:block; font-weight:700; font-size:.85rem; margin-bottom:.4rem; color:var(--navy); }
[data-theme="dark"] .field label{ color:var(--gold-light); }
.field input, .field select, .field textarea{
  width:100%; padding:.85em 1em; border-radius:var(--radius-sm); border:1.5px solid var(--line);
  font-family:var(--font-body); font-size:.95rem; background:var(--cream); color:var(--ink);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--sunrise); box-shadow:0 0 0 4px rgba(245,166,35,.15);
}
.field textarea{ min-height:130px; resize:vertical; }
.form-status{ margin-top:1rem; font-weight:700; font-size:.92rem; padding:.9em 1.1em; border-radius:var(--radius-sm); display:none; }
.form-status.show{ display:block; }
.form-status.ok{ background:#e6f6ec; color:#1e7a41; }
.form-status.err{ background:#fdeceb; color:#b33325; }

/* ---------- Book / Preorder ---------- */
.book-cover{
  aspect-ratio:2/3;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
  position:relative;
  background:transparent;
}

.book-cover img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;      /* use contain if you don't want any cropping */
  border-radius:inherit;
  transition:transform .35s var(--ease);
}

.book-cover:hover img{
  transform:scale(1.03);
}

/* ---------- Gallery ---------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
@media (max-width:900px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); } }
.gallery-item{
  aspect-ratio:1; border-radius:var(--radius-sm); overflow:hidden;
  background:linear-gradient(160deg, var(--sunrise-soft), var(--gold-light));
  display:flex; align-items:center; justify-content:center; color:var(--navy);
  font-family:var(--font-display); text-align:center; padding:1rem; font-size:.85rem;
}

/* ---------- Blog ---------- */
.post-card{ background:var(--white); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-card); }
.post-thumb{ aspect-ratio:16/10; background:linear-gradient(150deg,var(--navy),var(--navy-soft)); display:flex; align-items:center; justify-content:center; color:var(--gold-light); font-family:var(--font-display); font-size:.95rem; text-align:center; padding:1rem; }
.post-body{ padding:1.6rem; }
.post-meta{ font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--gold); font-weight:700; margin-bottom:.5rem; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,0.75); padding:4rem 0 2rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:2.5rem; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-grid h4{ color:var(--gold-light); font-size:1rem; }
.footer-grid a{ display:block; color:rgba(255,255,255,0.65); font-size:.9rem; padding:.3rem 0; }
.footer-grid a:hover{ color:var(--sunrise); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.1); margin-top:2.5rem; padding-top:1.5rem; text-align:center; font-size:.82rem; color:rgba(255,255,255,0.5); }

/* ---------- Utility ---------- */
.text-center{ text-align:center; }
.max-w{ max-width:640px; margin-inline:auto; }
.mt-2{ margin-top:2rem; }
.stack{ display:flex; flex-direction:column; }
.split{ display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
@media (max-width:860px){ .split{ grid-template-columns:1fr; } }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--gold); color:var(--navy-deep); padding:.6em 1em; z-index:200; }
.skip-link:focus{ left:1rem; top:1rem; }
