/* =========================================================
   SARA QUEIROZ — sistema de design
   Conceito: "Vigília" — a passagem da noite para a alvorada,
   ancorada nos três horários de intercessão (05h / 12h / 00h).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Work+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --night:      #12203E;
  --night-2:    #1B2C52;
  --night-3:    #223764;
  --dawn:       #E2723A;
  --dawn-2:     #C85A28;
  --candle:     #E8B23D;
  --paper:      #F7F2E9;
  --paper-2:    #EFE7D8;
  --ink:        #201C16;
  --ink-soft:   #4A4438;
  --mist:       #C9CEDD;
  --mist-dim:   #8D96B8;
  --line:       rgba(247,242,233,0.14);
  --line-dark:  rgba(32,28,22,0.12);
  --dawn-rgb:   226,114,58;
  --candle-rgb: 232,178,61;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --maxw: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  line-height:1.1;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
}
p{ margin:0 0 1.1em; }
.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 28px;
}
.eyebrow{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--dawn);
  margin-bottom:18px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--dawn);
  display:inline-block;
}
section.on-dark .eyebrow{ color:var(--candle); }
section.on-dark .eyebrow::before{ background:var(--candle); }

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- Horizon divider (signature motif) ---------- */
.horizon{
  height:1px;
  width:100%;
  background:linear-gradient(90deg, transparent, var(--dawn) 20%, var(--candle) 50%, var(--dawn) 80%, transparent);
  opacity:.55;
  margin:0;
}
.horizon.on-dark{ opacity:.4; }

/* ---------- Header / nav ---------- */
header.site{
  position:sticky; top:0; z-index:100;
  background:rgba(18,32,62,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
}
.brand{
  font-family:var(--serif);
  font-size:20px;
  color:var(--paper);
  font-weight:600;
  letter-spacing:.01em;
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.brand small{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--mist-dim);
  font-weight:400;
  margin-top:2px;
}
nav.links{ display:flex; align-items:center; gap:2px; }
nav.links a{
  font-family:var(--sans);
  font-size:14.5px;
  color:var(--mist);
  padding:10px 14px;
  border-radius:999px;
  transition:color .2s ease, background .2s ease;
  white-space:nowrap;
}
nav.links a:hover{ color:var(--paper); background:rgba(247,242,233,0.08); }
nav.links a.current{ color:var(--candle); }
nav.links a:focus-visible, a:focus-visible, button:focus-visible{
  outline:2px solid var(--candle); outline-offset:3px;
}
.nav-cta{
  background:var(--dawn);
  color:var(--paper) !important;
  padding:10px 20px !important;
  margin-left:6px;
}
.nav-cta:hover{ background:var(--dawn-2) !important; color:var(--paper) !important; }

.burger{
  display:none;
  width:40px; height:40px;
  border:none; background:none;
  cursor:pointer;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.burger span{ width:22px; height:2px; background:var(--paper); display:block; }

@media (max-width: 980px){
  nav.links{
    position:fixed; inset:76px 0 0 0;
    background:var(--night);
    flex-direction:column;
    align-items:stretch;
    padding:20px;
    gap:4px;
    transform:translateX(100%);
    transition:transform .3s ease;
    overflow-y:auto;
  }
  nav.links.open{ transform:translateX(0); }
  nav.links a{ padding:16px 12px; font-size:17px; border-bottom:1px solid var(--line); border-radius:0; }
  .nav-cta{ margin-top:10px; text-align:center; border-radius:10px; }
  .burger{ display:flex; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--sans);
  font-weight:600;
  font-size:15px;
  padding:14px 26px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--dawn); color:var(--paper); }
.btn-primary:hover{ background:var(--dawn-2); }
.btn-ghost-dark{ border-color:rgba(247,242,233,0.35); color:var(--paper); }
.btn-ghost-dark:hover{ border-color:var(--candle); color:var(--candle); }
.btn-ghost-light{ border-color:rgba(32,28,22,0.25); color:var(--ink); }
.btn-ghost-light:hover{ border-color:var(--dawn); color:var(--dawn-2); }
.btn-whatsapp{ background:#25D366; color:#0B2B17; }
.btn-whatsapp:hover{ background:#1EBE59; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(226,114,58,.28), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(232,178,61,.16), transparent 55%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color:var(--paper);
  padding:100px 0 90px;
  overflow:hidden;
}
.hero .container{ position:relative; z-index:2; }
.hero-tag{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--candle);
  margin-bottom:20px;
  display:inline-block;
}
.hero h1{
  font-size:clamp(38px, 5.4vw, 66px);
  max-width:820px;
  color:var(--paper);
}
.hero h1 em{ font-style:italic; color:var(--candle); }
.hero .lede{
  font-size:19px;
  color:var(--mist);
  max-width:560px;
  margin-bottom:34px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-small{ padding:70px 0 60px; }
.hero-small h1{ font-size:clamp(32px,4.4vw,48px); max-width:760px; }

/* ---------- Sections ---------- */
section{ padding:88px 0; }
section.tight{ padding:64px 0; }
section.on-dark{ background:var(--night); color:var(--paper); }
section.on-dark h2, section.on-dark h3{ color:var(--paper); }
section.on-dark p{ color:var(--mist); }
section.on-paper-2{ background:var(--paper-2); }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(28px,3.6vw,40px); }
.section-head .lede{ font-size:17.5px; color:var(--ink-soft); }
section.on-dark .section-head .lede{ color:var(--mist); }
/* Product cards keep a white body regardless of section background, so their
   text must stay dark even inside .on-dark sections (fixes low-contrast text). */
section.on-dark .product-card .product-body h3{ color:var(--ink); }
section.on-dark .product-card .product-body p{ color:var(--ink-soft); }

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

.card{
  background:#fff;
  border:1px solid var(--line-dark);
  border-radius:14px;
  padding:30px;
}
.card-dark{
  background:var(--night-2);
  border:1px solid var(--line);
  border-radius:14px;
  padding:30px;
  color:var(--paper);
}
.card-dark p{ color:var(--mist); }
.card h3, .card-dark h3{ font-size:20px; margin-bottom:10px; }
.tag{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--dawn-2);
  background:rgba(var(--dawn-rgb),.1);
  padding:5px 10px;
  border-radius:999px;
  display:inline-block;
  margin-bottom:14px;
}
.card-dark .tag{ color:var(--candle); background:rgba(var(--candle-rgb),.12); }

/* ---------- Prayer clock (signature element, used on Intercessão) ---------- */
.clock-wrap{ display:flex; justify-content:center; padding:20px 0 10px; }
.clock{ width:100%; max-width:420px; height:auto; }
.clock text{ font-family:var(--mono); fill:var(--mist); }
.clock .hour-label{ font-size:15px; fill:var(--paper); font-weight:500; }
.clock .sub-label{ font-size:10px; fill:var(--mist-dim); letter-spacing:.08em; }

/* ---------- Quote / bio ---------- */
.quote-block{
  border-left:2px solid var(--dawn);
  padding-left:26px;
  font-family:var(--serif);
  font-size:22px;
  font-style:italic;
  color:var(--ink);
  max-width:680px;
}
section.on-dark .quote-block{ color:var(--paper); border-color:var(--candle); }

/* ---------- Timeline (daily rhythm) ---------- */
.rhythm{ display:flex; flex-direction:column; }
.rhythm-item{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:24px;
  padding:26px 0;
  border-top:1px solid var(--line);
}
.rhythm-item:last-child{ border-bottom:1px solid var(--line); }
.rhythm-time{
  font-family:var(--mono);
  font-size:22px;
  color:var(--candle);
}
.rhythm-desc h4{ color:var(--paper); font-size:18px; margin-bottom:6px; font-family:var(--sans); font-weight:600;}
.rhythm-desc p{ margin:0; color:var(--mist); font-size:15.5px; }

/* ---------- Products ---------- */
.product-card{
  background:#fff;
  border:1px solid var(--line-dark);
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.product-media{
  height:170px;
  background:linear-gradient(135deg, var(--night) 0%, var(--night-3) 55%, var(--dawn-2) 130%);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--paper);
  font-family:var(--serif);
  font-size:15px;
  text-align:center;
  padding:16px;
}
.product-media.photo{ height:300px; padding:0; overflow:hidden; }
.product-media.photo img{ width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.product-media.photo.contain{ height:280px; background:#EFE7D8; }
.product-media.photo.contain img{ object-fit:contain; }
.product-body{ padding:22px 24px 26px; flex:1; display:flex; flex-direction:column; }
.product-body h3{ font-size:18px; }
.product-body p{ font-size:14.5px; color:var(--ink-soft); flex:1; }
.product-price{ font-family:var(--mono); font-size:13px; color:var(--dawn-2); margin-bottom:10px; }

/* ---------- Stats strip ---------- */
.stats{ display:flex; flex-wrap:wrap; gap:40px; }
.stat b{ display:block; font-family:var(--serif); font-size:34px; color:var(--candle); }
.stat span{ font-family:var(--mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--mist-dim); }

/* ---------- Form ---------- */
.form-grid{ display:grid; gap:16px; max-width:560px; }
.form-grid label{ font-size:13.5px; font-weight:600; margin-bottom:6px; display:block; }
.form-grid input, .form-grid select, .form-grid textarea{
  width:100%;
  font-family:var(--sans);
  font-size:15px;
  padding:13px 14px;
  border-radius:9px;
  border:1px solid var(--line-dark);
  background:#fff;
  color:var(--ink);
}
.form-grid textarea{ min-height:120px; resize:vertical; }
.form-note{ font-size:13px; color:var(--ink-soft); margin-top:4px; }

/* ---------- Footer ---------- */
footer.site{
  background:var(--night);
  color:var(--mist);
  padding:64px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr 1fr 1fr;
  gap:28px;
  padding-bottom:40px;
}
@media (max-width:1000px){ .footer-grid{ grid-template-columns:1fr 1fr 1fr; } }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-social img{ border-radius:8px; margin-bottom:10px; width:100px; height:100px; }
footer.site h5{
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--candle);
  margin-bottom:16px;
}
footer.site a{ display:block; color:var(--mist); font-size:14.5px; padding:5px 0; transition:color .2s; }
footer.site a:hover{ color:var(--paper); }
.footer-brand{ font-family:var(--serif); font-size:22px; color:var(--paper); margin-bottom:10px; }
.footer-bottom{
  border-top:1px solid var(--line);
  padding-top:24px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  font-size:13px;
  color:var(--mist-dim);
}

/* ---------- Utilities ---------- */
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.mt-lg{ margin-top:48px; }
.narrow{ max-width:720px; }
.pill-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px;}
.pill{
  font-family:var(--mono); font-size:12px; letter-spacing:.04em;
  border:1px solid var(--line-dark); border-radius:999px; padding:6px 14px; color:var(--ink-soft);
}
section.on-dark .pill{ border-color:var(--line); color:var(--mist); }

.portrait-frame{
  aspect-ratio:4/5;
  border-radius:16px;
  background:linear-gradient(160deg, var(--night-3), var(--night) 60%, var(--dawn-2) 140%);
  display:flex; align-items:center; justify-content:center;
  color:var(--mist-dim);
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.06em;
  text-align:center;
  padding:20px;
}

/* ---------- Per-program color themes ---------- */
body.theme-vinho{
  --dawn: #7A2331;
  --dawn-2: #5C1A24;
  --candle: #D79AA6;
  --dawn-rgb: 122,35,49;
  --candle-rgb: 215,154,166;
}
body.theme-roxo{
  --dawn: #5B3A8C;
  --dawn-2: #452C6B;
  --candle: #C3AEE0;
  --dawn-rgb: 91,58,140;
  --candle-rgb: 195,174,224;
}
body.theme-verde{
  --dawn: #3F7355;
  --dawn-2: #2E5740;
  --candle: #A9CDB6;
  --dawn-rgb: 63,115,85;
  --candle-rgb: 169,205,182;
}

/* ---------- Product photo gallery (multi-image cards) ---------- */
.product-gallery{
  position:relative;
  height:300px;
  overflow:hidden;
  background:var(--paper-2);
}
.product-gallery img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; object-position:top center;
  opacity:0;
  transition:opacity .4s ease;
}
.product-gallery img.active{ opacity:1; }
.gallery-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:28px; height:28px; border-radius:50%;
  background:rgba(18,32,62,0.55); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:16px; line-height:1; z-index:2;
  transition:background .2s;
}
.gallery-nav:hover{ background:rgba(18,32,62,0.8); }
.gallery-prev{ left:8px; }
.gallery-next{ right:8px; }
.gallery-dots{
  position:absolute; bottom:10px; left:0; right:0;
  display:flex; justify-content:center; gap:6px; z-index:2;
}
.gallery-dot{
  width:6px; height:6px; border-radius:50%;
  background:rgba(255,255,255,.55);
  cursor:pointer; border:none; padding:0;
}
.gallery-dot.active{ background:#fff; }

/* ---------- Blog ---------- */
.blog-card{
  background:#fff;
  border:1px solid var(--line-dark);
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.blog-card .blog-media{ height:220px; overflow:hidden; background:var(--paper-2); }
.blog-card .blog-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.blog-body{ padding:24px 26px 28px; flex:1; display:flex; flex-direction:column; }
.blog-meta{ font-family:var(--mono); font-size:12.5px; color:var(--dawn-2); margin-bottom:10px; letter-spacing:.03em; }
.blog-body h3{ font-size:20px; margin-bottom:10px; }
.blog-body p{ font-size:14.5px; color:var(--ink-soft); flex:1; margin-bottom:14px; }
.blog-body .btn{ align-self:flex-start; }

/* ---------- Video testimonials ---------- */
.video-card{
  background:#fff;
  border:1px solid var(--line-dark);
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.video-embed{ position:relative; width:100%; padding-top:56.25%; background:var(--night); }
.video-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-body{ padding:20px 24px 24px; }
.video-body h3{ font-size:17px; margin-bottom:4px; }
.video-meta{ font-size:13.5px; color:var(--ink-soft); }

/* ---------- Empty state ---------- */
.empty-state{
  border:1.5px dashed var(--line-dark);
  border-radius:16px;
  padding:56px 32px;
  text-align:center;
  max-width:560px;
  margin:0 auto;
}
section.on-dark .empty-state{ border-color:var(--line); }
.empty-state h3{ font-size:22px; margin-bottom:10px; }
.empty-state p{ font-size:15px; color:var(--ink-soft); margin-bottom:0; }
section.on-dark .empty-state p{ color:var(--mist); }
