/* =========================================================
   IFA ORACLE — SHARED STYLESHEET
   Design tokens, header, footer, and components reused
   across every page. Page-specific layout lives in each
   page's own <style> block; anything here is shared.
   ========================================================= */

:root{
  --bg:#080608;
  --ink:#F0EBE0;
  --copper:#B87333;
  --terracotta:#8B3A2A;
  --muted:#888888;
  --surface:#12100E;
  --serif:'Playfair Display', serif;
  --sans:'Karla', sans-serif;
  --max:1200px;
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

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

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
}
@media(min-width:900px){.wrap{padding:0 40px;}}

.eyebrow{
  font-family:var(--sans);
  font-size:0.72rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--copper);
  font-weight:600;
}

.hero-rule{
  width:56px;height:1px;
  background:var(--copper);
  margin-top:18px;
  opacity:0.6;
}

h1,h2,h3{
  font-family:var(--serif);
  font-weight:500;
  line-height:1.1;
}

section{padding:88px 0;position:relative;}

/* ---------- Odu mark system (signature element) ----------
   Each Odu in Ifa is a unique pattern of single/double vertical
   marks across two columns of four rows. Reused as the visual
   signature across every page — not invented decoration. */
.odu-mark{
  display:inline-grid;
  grid-template-columns:repeat(2,1fr);
  grid-auto-rows:4px;
  gap:4px 7px;
  width:20px;
}
.odu-mark span{
  height:4px;
  border-radius:1px;
  background:var(--copper);
  opacity:0.85;
}
.odu-mark span.ii{background:none;border-top:4px double var(--copper);height:0;opacity:0.85;}

/* ---------- Header (identical on every page) ---------- */
header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:50;
  padding:22px 0;
  background:linear-gradient(to bottom, rgba(8,6,8,0.92), rgba(8,6,8,0.7) 70%, rgba(8,6,8,0));
}
header .wrap{display:flex;align-items:center;justify-content:space-between;}
.logo{
  font-family:var(--serif);
  font-size:1.35rem;
  letter-spacing:0.02em;
}
.logo em{font-style:normal;color:var(--copper);}
nav{display:none;gap:32px;font-size:0.85rem;letter-spacing:0.03em;}
@media(min-width:900px){nav{display:flex;}}
nav a{color:var(--muted);transition:color .2s;}
nav a:hover,nav a.active{color:var(--ink);}

/* ---------- Buttons ---------- */
.cta-row{display:flex;flex-wrap:wrap;gap:16px;}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 30px;
  font-size:0.92rem;
  font-weight:600;
  letter-spacing:0.03em;
  border-radius:4px;
  transition:filter .18s ease, background .18s ease, border-color .18s ease;
  white-space:nowrap;
  cursor:pointer;
  border:none;
  font-family:var(--sans);
}
.btn-primary{background:var(--copper);color:#0A0806;}
.btn-primary:hover{filter:brightness(1.12);}
.btn-secondary{background:transparent;color:var(--ink);border:1px solid var(--copper);}
.btn-secondary:hover{background:rgba(184,115,51,0.1);}
.btn-sm{padding:10px 20px;font-size:0.8rem;}

/* ---------- Inner-page hero (Readings, Store, Library, etc.) ---------- */
.page-hero{
  padding:200px 0 70px;
  border-bottom:1px solid rgba(240,235,224,0.07);
  background-size:cover;
  background-position:center;
}
.page-hero h1{
  font-size:clamp(2.1rem,4.6vw,3.2rem);
  margin:16px 0 16px;
}
.page-hero p.sub{
  font-size:1.05rem;
  color:var(--muted);
  max-width:560px;
}

/* ---------- Icon images (service cards, step cards) ---------- */
.icon-img{width:52px;height:52px;object-fit:contain;margin-bottom:16px;display:block;}
.step .icon-img{width:88px;height:88px;border-radius:50%;margin-bottom:18px;}

/* ---------- Section headings ---------- */
.section-head h2{font-size:clamp(1.7rem,3.4vw,2.4rem);margin-top:14px;}
.center-cta{text-align:center;margin-top:48px;}

/* ---------- Card grid (Services / Store) ---------- */
.card-grid{display:grid;gap:20px;margin-top:48px;}
@media(min-width:640px){.card-grid{grid-template-columns:repeat(2,1fr);}}
@media(min-width:1000px){.card-grid{grid-template-columns:repeat(3,1fr);}}

.card{
  background:var(--surface);
  border:1px solid rgba(240,235,224,0.06);
  border-radius:6px;
  padding:28px 24px;
  transition:border-color .2s, transform .2s;
  display:flex;
  flex-direction:column;
}
.card:hover{border-color:rgba(184,115,51,0.4);transform:translateY(-2px);}
.card .odu-mark{margin-bottom:16px;}
.card h3{font-size:1.25rem;font-weight:500;margin-bottom:8px;}
.card p.desc{color:var(--muted);font-size:0.9rem;margin-bottom:18px;flex:1;}
.card .price{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  border-top:1px solid rgba(240,235,224,0.08);
  padding-top:14px;
  font-family:var(--serif);
  font-size:1.1rem;
  color:var(--copper);
}
.price small{font-family:var(--sans);color:var(--muted);font-size:0.7rem;letter-spacing:0.06em;}
.card .addon{
  margin-top:12px;
  font-size:0.78rem;
  color:var(--muted);
  border-top:1px dashed rgba(240,235,224,0.1);
  padding-top:12px;
}
.card .addon strong{color:var(--copper);font-weight:600;}

/* ---------- Testimonials (shared: scroll strip + full grid) ---------- */
.testi-scroll{
  display:flex;gap:20px;overflow-x:auto;margin-top:48px;
  padding-bottom:12px;scroll-snap-type:x mandatory;
}
.testi-scroll::-webkit-scrollbar{height:4px;}
.testi-scroll::-webkit-scrollbar-thumb{background:var(--copper);border-radius:2px;}
.testi-card{
  flex:0 0 82%;scroll-snap-align:start;
  background:var(--surface);border-radius:6px;padding:30px 26px;
  border:1px solid rgba(240,235,224,0.06);
}
@media(min-width:640px){.testi-card{flex:0 0 44%;}}
@media(min-width:1000px){.testi-card{flex:0 0 30%;}}

.testi-grid{display:grid;gap:20px;margin-top:48px;}
@media(min-width:640px){.testi-grid{grid-template-columns:repeat(2,1fr);}}
@media(min-width:1000px){.testi-grid{grid-template-columns:repeat(3,1fr);}}
.testi-grid .testi-card{flex:none;}

.testi-empty{
  margin-top:48px;padding:40px 30px;text-align:center;
  background:var(--surface);border:1px dashed rgba(240,235,224,0.14);
  border-radius:8px;color:var(--muted);font-size:0.95rem;
}

/* ---------- Submission forms (Testimonials, etc.) ---------- */
.submit-form{
  max-width:600px;margin-top:44px;background:var(--surface);
  border:1px solid rgba(240,235,224,0.07);border-radius:8px;padding:34px 30px;
}
.submit-form label{display:block;font-size:0.78rem;letter-spacing:0.06em;text-transform:uppercase;color:var(--muted);margin-bottom:8px;}
.submit-form .field{margin-bottom:20px;}
.submit-form input,.submit-form textarea{
  width:100%;background:var(--bg);border:1px solid rgba(240,235,224,0.14);
  border-radius:4px;padding:12px 14px;color:var(--ink);font-family:var(--sans);font-size:0.92rem;
}
.submit-form input:focus,.submit-form textarea:focus{outline:none;border-color:var(--copper);}
.submit-form textarea{min-height:110px;resize:vertical;}
.submit-note{font-size:0.78rem;color:var(--muted);margin-top:14px;}

.testi-card .stars{color:var(--copper);font-size:0.9rem;letter-spacing:2px;margin-bottom:14px;}
.testi-card p.quote{font-family:var(--serif);font-size:1.15rem;font-style:italic;color:var(--ink);margin-bottom:20px;}
.testi-card .who{display:flex;justify-content:space-between;font-size:0.82rem;color:var(--muted);}
.testi-card .who strong{color:var(--ink);font-weight:500;}

/* ---------- Access cards (Web / Telegram) ---------- */
.access-grid{display:grid;gap:24px;margin-top:48px;}
@media(min-width:800px){.access-grid{grid-template-columns:1fr 1fr;}}
.access-card{
  background:linear-gradient(160deg, var(--surface), #0A0808);
  border:1px solid rgba(240,235,224,0.07);
  border-radius:8px;padding:44px 36px;position:relative;overflow:hidden;
}
.access-card .odu-mark{width:30px;margin-bottom:24px;}
.access-card .odu-mark span{height:6px;}
.access-card h3{font-size:1.6rem;margin-bottom:10px;}
.access-card p{color:var(--muted);font-size:0.92rem;margin-bottom:26px;max-width:340px;}

/* ---------- Callouts (Ritual Guide / Extended Readings) ---------- */
.callout{
  margin-top:56px;padding:32px 34px;border-radius:8px;
  border:1px solid rgba(240,235,224,0.08);
  display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between;
}
.callout-copper{background:linear-gradient(160deg, var(--surface), #0A0808);border-color:rgba(184,115,51,0.25);}
.callout h3{font-size:1.2rem;margin-bottom:8px;}
.callout p{color:var(--muted);font-size:0.9rem;max-width:520px;}
.callout .price-tag{font-family:var(--serif);color:var(--copper);font-size:1.15rem;white-space:nowrap;}

/* ---------- Footer (identical on every page) ---------- */
footer{border-top:1px solid rgba(240,235,224,0.08);padding:56px 0 32px;}
.footer-top{display:flex;flex-direction:column;gap:32px;}
@media(min-width:800px){.footer-top{flex-direction:row;justify-content:space-between;}}
.footer-brand .logo{margin-bottom:10px;}
.footer-brand p{color:var(--muted);font-size:0.88rem;max-width:280px;}
.footer-links{display:flex;gap:52px;flex-wrap:wrap;}
.footer-col h4{
  font-size:0.72rem;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--copper);margin-bottom:14px;font-weight:600;
}
.footer-col a{display:block;color:var(--muted);font-size:0.9rem;margin-bottom:10px;transition:color .2s;}
.footer-col a:hover{color:var(--ink);}
.footer-bottom{
  margin-top:48px;padding-top:24px;border-top:1px solid rgba(240,235,224,0.06);
  display:flex;flex-direction:column;gap:10px;font-size:0.78rem;color:var(--muted);
}
@media(min-width:800px){.footer-bottom{flex-direction:row;justify-content:space-between;}}

/* focus visibility */
a:focus-visible,button:focus-visible{outline:2px solid var(--copper);outline-offset:3px;}
