/* ============================================================
   WORLD BUILDERR — design system
   Aesthetic: cosmic depth + ancestral warmth. Deep indigo-black
   ground, divination-gold and clay accents, celestial texture.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Spectral:ital,wght@0,300;0,400;0,500;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --ink: #0c0a14;          /* deep indigo-black ground */
  --ink-2: #14111f;        /* raised panels */
  --ink-3: #1d1830;        /* cards */
  --gold: #d9a44a;         /* divination gold */
  --gold-soft: #e9c884;
  --clay: #c0633f;         /* warm clay accent */
  --bone: #efe7d6;         /* primary text on dark */
  --bone-dim: #b3a98f;     /* secondary text */
  --line: rgba(217,164,74,0.18);
  --max: 1180px;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Spectral', Georgia, serif;
  --ui: 'Outfit', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.075rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Celestial texture overlay — subtle starfield + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(233,200,132,0.5), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(239,231,214,0.35), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(217,164,74,0.4), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(239,231,214,0.3), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(217,164,74,0.35), transparent),
    radial-gradient(1px 1px at 10% 70%, rgba(239,231,214,0.3), transparent);
  opacity: 0.55;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(12,10,20,0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 0;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.6rem;
}
.brand .glyph {
  width: 26px; height: 26px; flex: none;
  color: var(--gold);
}
.nav-links { display: flex; gap: 2rem; font-family: var(--ui); font-size: 0.92rem; }
.nav-links a { color: var(--bone-dim); transition: color 0.25s; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; color: var(--bone); font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 6rem); overflow: hidden; }
.hero-orb {
  position: absolute; top: -10%; right: -8%; width: 46vw; max-width: 620px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(217,164,74,0.22), rgba(192,99,63,0.10) 45%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 500;
  margin: 1.2rem 0 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--bone-dim); max-width: 60ch; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--ui); font-weight: 500; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, color 0.25s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(217,164,74,0.5); }
.btn-ghost { border-color: var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

/* ---------- Section scaffolding ---------- */
section { position: relative; z-index: 1; padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0.8rem 0 1rem; }
.section-head p { color: var(--bone-dim); font-size: 1.15rem; }
.divider-glyph { display: flex; align-items: center; gap: 1rem; color: var(--gold); opacity: 0.6; margin: 0 auto; }
.divider-glyph::before, .divider-glyph::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ---------- Pillars / cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: 4px;
  padding: 2rem 1.8rem; transition: transform 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(217,164,74,0.4); }
.card .num { font-family: var(--display); font-size: 2.4rem; color: var(--gold); opacity: 0.5; line-height: 1; }
.card h3 { font-size: 1.4rem; margin: 0.8rem 0 0.6rem; }
.card p { color: var(--bone-dim); font-size: 1rem; }

/* ---------- Services list ---------- */
.svc-group { border-top: 1px solid var(--line); padding: 2rem 0; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.svc-group h3 { font-size: 1.6rem; color: var(--gold-soft); }
.svc-item { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.65rem 0; border-bottom: 1px dotted rgba(179,169,143,0.18); }
.svc-item:last-child { border-bottom: 0; }
.svc-item .price { font-family: var(--ui); color: var(--gold); white-space: nowrap; font-weight: 500; }
.svc-item .meta { color: var(--bone-dim); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-size: 1.25rem; color: var(--bone);
  padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 0; top: 1.2rem; color: var(--gold); font-family: var(--ui); font-size: 1.5rem; transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--bone-dim); }
.faq-a-inner { padding: 0 0 1.6rem; }
.faq-a ul { margin: 0.6rem 0 0.6rem 1.2rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: 4px; padding: 1.8rem;
  transition: transform 0.3s, border-color 0.3s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(217,164,74,0.4); }
.post-card time { font-family: var(--ui); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.post-card h3 { font-size: 1.3rem; margin: 0.7rem 0 0.7rem; }
.post-card p { color: var(--bone-dim); font-size: 0.97rem; flex: 1; }
.post-card .read { font-family: var(--ui); font-size: 0.85rem; color: var(--gold-soft); margin-top: 1.2rem; }

/* ---------- Article ---------- */
.article { max-width: 720px; margin: 0 auto; padding: clamp(3rem, 8vh, 5rem) 0; }
.article header { margin-bottom: 2.5rem; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 1rem 0; }
.article time { font-family: var(--ui); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.article-body { font-size: 1.15rem; line-height: 1.85; }
.article-body p { margin: 0 0 1.5rem; }
.article-body h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; color: var(--gold-soft); }
.article-body h3 { font-size: 1.4rem; margin: 2rem 0 0.8rem; }
.article-body blockquote { border-left: 2px solid var(--gold); padding-left: 1.4rem; margin: 1.8rem 0; font-style: italic; color: var(--bone-dim); }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.4rem; }
.back-link { font-family: var(--ui); font-size: 0.9rem; color: var(--bone-dim); display: inline-flex; gap: 0.5rem; }
.back-link:hover { color: var(--gold); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-channels { display: grid; gap: 1rem; font-family: var(--ui); }
.contact-channels a { display: flex; align-items: center; gap: 0.8rem; color: var(--bone-dim); padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.contact-channels a:hover { color: var(--gold); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.field label { font-family: var(--ui); font-size: 0.85rem; color: var(--bone-dim); }
.field input, .field textarea {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 3px;
  padding: 0.8rem; color: var(--bone); font-family: var(--body); font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 4rem; position: relative; z-index: 1; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner p { color: var(--bone-dim); font-size: 0.9rem; max-width: 40ch; }
.footer-links { display: flex; gap: 1.5rem; font-family: var(--ui); font-size: 0.9rem; }
.footer-links a { color: var(--bone-dim); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { margin-top: 2rem; font-family: var(--ui); font-size: 0.8rem; color: var(--bone-dim); opacity: 0.7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .post-grid { grid-template-columns: 1fr 1fr; }
  .svc-group { grid-template-columns: 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 64px 0 auto; flex-direction: column; background: var(--ink-2); padding: 1.5rem; gap: 1.2rem; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.35s; }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .post-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}
