/* ============================================================
   GiftedGrownups.com — shared design system
   Sibling site to GiftedKids.in. Warmer, more mature palette.
   ============================================================ */

:root {
  --ink:        #1d1c2b;   /* near-black indigo for text          */
  --ink-soft:   #4a4860;   /* muted body text                     */
  --cream:      #fbf7ef;   /* warm paper background               */
  --cream-2:    #f3ece0;   /* slightly deeper panel               */
  --gold:       #b8860b;   /* "gifted" amber/gold accent          */
  --gold-soft:  #e9d8a6;
  --teal:       #1f4e4a;   /* deep, grounded secondary            */
  --teal-soft:  #d7e3e0;
  --rust:       #9c4221;   /* warm highlight for emphasis         */
  --line:       #e3d9c8;
  --white:      #ffffff;
  --shadow:     0 14px 40px rgba(29,28,43,.08);
  --shadow-sm:  0 4px 18px rgba(29,28,43,.06);
  --maxw:       1140px;
  --radius:     16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

em, .em { font-style: italic; color: var(--rust); }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,239,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--rust));
  color: #fff; display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.1rem;
}
/* ---- Blue & white brand logo (1.5x of the old mark) ---- */
:root { --brand-blue: #1e6bff; --brand-blue-deep: #0b3d91; }
.brand-logo { width: 51px; height: 51px; display: block; flex: none; }
.wordmark { font-family: 'Fraunces','Playfair Display',Georgia,serif; font-weight: 600; color: var(--brand-blue-deep); letter-spacing: -0.01em; line-height: 1; font-size: 1.22rem; }
.wordmark b { color: var(--brand-blue); font-weight: 600; }
.footer .brand .wordmark, .footer .brand .wordmark b { color: #fff; }
.sibling .wordmark { font-size: inherit; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); font-size: .94rem; font-weight: 500; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 9px 16px;
  border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--teal); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--rust); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- HERO ---------- */
.hero { padding: 84px 0 64px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 22px; }
.hero p.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 60px 0; }
.stat { border-left: 3px solid var(--gold-soft); padding-left: 18px; }
.stat .num { font-family: 'Fraunces', serif; font-size: 2.6rem; font-weight: 600; color: var(--teal); line-height: 1; }
.stat .lbl { color: var(--ink-soft); font-size: .96rem; margin-top: 8px; }

/* ---------- SECTIONS ---------- */
section { padding: 64px 0; }
.section-tag {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 18px; max-width: 760px; }
.section .intro { font-size: 1.1rem; color: var(--ink-soft); max-width: 680px; margin-bottom: 36px; }
.bg-panel { background: var(--cream-2); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink .section-tag { color: var(--gold-soft); }
.bg-ink p { color: #d9d6e4; }

/* ---------- CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card .ic { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--gold); }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); position: relative;
}
.quote p { font-size: 1.02rem; color: var(--ink); }
.quote .who { margin-top: 14px; font-size: .88rem; color: var(--ink-soft); font-style: italic; }

/* compare table */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare > div { padding: 30px; }
.compare .left { background: var(--cream-2); }
.compare .right { background: var(--white); border-left: 1px solid var(--line); }
.compare h3 { font-size: 1.15rem; margin-bottom: 16px; }
.compare ul { list-style: none; }
.compare li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); font-size: .96rem; }
.compare .right li { color: var(--ink); }
.compare li::before { content: "›"; color: var(--gold); margin-right: 10px; font-weight: 700; }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split ul { list-style: none; margin-top: 18px; }
.split li { padding: 9px 0 9px 28px; position: relative; color: var(--ink-soft); }
.split li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.portrait {
  background: linear-gradient(160deg, var(--teal), var(--ink));
  border-radius: var(--radius); padding: 40px; color: #fff; box-shadow: var(--shadow);
}
.portrait .badge { display:inline-block; background: rgba(255,255,255,.12); padding: 5px 12px; border-radius: 999px; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:16px; }
.portrait h3 { color:#fff; font-size:1.5rem; margin-bottom:8px;}
.portrait .role { color: var(--gold-soft); font-size:.95rem; margin-bottom:18px; }
.portrait .tags { display:flex; flex-wrap:wrap; gap:8px; }
.portrait .tags span { background: rgba(255,255,255,.1); padding:5px 11px; border-radius:999px; font-size:.8rem; }

/* pull quote */
.pull {
  border-left: 4px solid var(--gold); padding: 6px 0 6px 26px; margin: 28px 0;
  font-family: 'Fraunces', serif; font-size: 1.35rem; font-style: italic; color: var(--ink); line-height:1.4;
}

/* ---------- ASSESSMENT ---------- */
.quiz { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.quiz-group { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.quiz-group:last-of-type { border-bottom: 0; }
.quiz-group h4 { font-family:'Inter',sans-serif; font-size: .82rem; letter-spacing:.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.q-item { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; cursor: pointer; }
.q-item input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.q-item span { color: var(--ink); font-size: 1rem; }
.quiz-foot { padding: 26px; text-align: center; }
.result { display:none; margin-top: 26px; background: var(--cream-2); border:1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align:center; }
.result.show { display:block; }
.result .score { font-family:'Fraunces',serif; font-size: 3rem; color: var(--teal); line-height:1; }
.result h3 { font-size:1.5rem; margin: 12px 0; }
.result p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 18px; }

/* ---------- EMAIL CAPTURE ---------- */
.capture { text-align: center; }
.capture h2 { margin: 0 auto 14px; }
.capture p { max-width: 560px; margin: 0 auto 26px; color: #d9d6e4; }
.capture form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content:center; }
.capture input[type=email] {
  flex: 1 1 260px; padding: 14px 18px; border-radius: 999px; border: 0; font-size: 1rem;
}
.capture .note { font-size: .82rem; color: #b8b5c8; margin-top: 14px; }

/* ---------- ARTICLE / PROSE ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 1.12rem; color: var(--ink); margin-bottom: 22px; }
.prose h2 { font-size: 1.7rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose .lede { font-size: 1.3rem; color: var(--ink-soft); }
.prose ul { padding-left: 1.4rem; margin-bottom: 22px; }
.prose li { font-size: 1.12rem; color: var(--ink); margin-bottom: 8px; line-height: 1.7; }
.prose-table-wrap { overflow-x: auto; margin-bottom: 22px; }
.prose-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose-table th, .prose-table td { text-align: left; padding: 12px; border: 1px solid var(--line); }
.prose-table th { background: var(--cream); color: var(--ink); }
.privacy-consent { display: flex; align-items: flex-start; gap: 8px; width: 100%; font-size: .88rem; color: var(--ink-soft); text-align: left; }
.privacy-consent input { margin-top: 3px; flex-shrink: 0; }
.privacy-consent a { color: var(--brand-blue); text-decoration: underline; }
.capture .privacy-consent { color: #ffe9f6; }
.capture .privacy-consent a { color: #fff; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #c9c6d6; padding: 56px 0 30px; }
.footer a { color: #c9c6d6; }
.footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer h4 { font-family:'Inter',sans-serif; font-size: .8rem; letter-spacing:.12em; text-transform: uppercase; color:#fff; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; font-size: .92rem; }
.footer .tagline { font-size: .95rem; max-width: 320px; color:#a8a5b8; }
.footer .brand { color:#fff; margin-bottom: 14px; }
.footer .brand .mark { background: linear-gradient(135deg, var(--gold), var(--rust)); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .82rem; color:#86839a; }
.footer-bottom a { color: var(--gold-soft); }
.sibling { background: var(--teal-soft); color: var(--teal); text-align:center; padding: 12px; font-size:.92rem; font-weight:500; }
.sibling a { color: var(--teal); font-weight:700; text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 62px; right: 16px; background:#fff; border:1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .compare { grid-template-columns: 1fr; }
  .compare .right { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
}

/* ============================================================
   COLOURFUL HOME — vibrant UI layer with background images
   ============================================================ */
:root {
  --c-violet: #7b2ff7;
  --c-magenta:#b5179e;
  --c-coral:  #f15a29;
  --c-gold:   #ffc94d;
  --c-teal:   #11b5a4;
  --c-sky:    #2f6df6;
}

/* compact hero band — clean gradient or photo, no heavy shapes */
.hero-vivid {
  position: relative;
  min-height: 0;
  padding: 66px 0 58px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #3a1c71 0%, #6d28d9 58%, #9333ea 100%);
  overflow: hidden;
}
/* clean gradient themes (one colour identity per page) */
.hero-svg   { background: linear-gradient(120deg, #3a1c71 0%, #6d28d9 58%, #9333ea 100%); }
.hero-teal  { background: linear-gradient(120deg, #0b3d4d 0%, #0d7a6f 58%, #14b8a6 100%); }
.hero-coral { background: linear-gradient(120deg, #7a1f4b 0%, #be123c 55%, #fb7185 100%); }
.hero-deep  { background: linear-gradient(120deg, #1e1b4b 0%, #3730a3 55%, #5b21b6 100%); }
.hero-gold  { background: linear-gradient(120deg, #7c2d12 0%, #b45309 55%, #f59e0b 100%); }

/* photographic heroes (a different photo per page) */
.hero-photo        { background: url("assets/gifted-grownups.jpg") center 25%/cover no-repeat, #2a1245; }
.hero-people-photo { background: url("assets/hero-people.jpg")     center 30%/cover no-repeat, #10357f; }
.hero-assessment   { background: url("assets/hero-assessment.jpg") center 35%/cover no-repeat, #14324f; }
.hero-experience   { background: url("assets/hero-experience.jpg") center 35%/cover no-repeat, #1a2740; }
.hero-faq          { background: url("assets/hero-faq.jpg")        center 40%/cover no-repeat, #243047; }
.hero-join         { background: url("assets/hero-join.jpg")       center 30%/cover no-repeat, #241433; }

.hero-vivid::after {           /* legibility veil for gradient heroes */
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(20,10,40,.42) 0%, rgba(20,10,40,.18) 55%, rgba(20,10,40,0) 100%);
}
/* stronger scrim for photographic heroes so text stays readable */
.hero-photo::after,
.hero-people-photo::after,
.hero-assessment::after,
.hero-experience::after,
.hero-faq::after,
.hero-join::after {
  background:
    linear-gradient(90deg, rgba(18,8,34,.86) 0%, rgba(18,8,34,.6) 45%, rgba(18,8,34,.3) 100%),
    linear-gradient(0deg, rgba(18,8,34,.55) 0%, rgba(18,8,34,0) 45%);
}
.hero-vivid .wrap { position: relative; z-index: 2; }
.hero-vivid .eyebrow {
  color: #ffe49a; background: rgba(255,255,255,.1);
  padding: 7px 16px; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero-vivid h1 { color:#fff; font-size: clamp(2.3rem, 5vw, 3.7rem); text-shadow: 0 4px 30px rgba(0,0,0,.3); }
.hero-vivid h1 em { color: #ffd166; font-style: normal; }
.hero-vivid p.lede { color:#f0ecff; font-size: 1.3rem; }
.hero-vivid .btn-primary { background: linear-gradient(120deg, var(--c-gold), var(--c-coral)); color:#2a1245; box-shadow: 0 10px 30px rgba(241,90,41,.4); }
.hero-vivid .btn-ghost { color:#fff; border-color: rgba(255,255,255,.7); }
.hero-vivid .btn-ghost:hover { background:#fff; color: var(--c-violet); }

/* floating glass stat chips on hero */
.hero-chips { display:flex; gap:14px; flex-wrap:wrap; margin-top:34px; }
.chip {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); border-radius: 16px; padding: 14px 18px; color:#fff;
}
.chip b { font-family:'Fraunces',serif; font-size:1.5rem; display:block; color:#ffd166; line-height:1; }
.chip span { font-size:.82rem; color:#e9e4ff; }

/* gradient section band */
.band-gradient {
  background: linear-gradient(120deg, #fff4e6 0%, #ffe9f3 45%, #e6fbf6 100%);
}
.band-violet { background: linear-gradient(135deg, #efe7ff, #ffe9f6); }

/* colourful cards */
.card-vivid {
  position: relative; border: 0; border-radius: 20px; overflow: hidden;
  background:#fff; box-shadow: 0 18px 40px rgba(60,30,90,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-vivid:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(60,30,90,.2); }
.card-vivid .top { height: 8px; }
.card-vivid .body { padding: 26px 26px 28px; }
.card-vivid .ic {
  width: 56px; height: 56px; border-radius: 16px; display:grid; place-items:center;
  font-size: 1.6rem; margin-bottom: 14px; color:#fff;
}
.g1 .top,.g1 .ic { background: linear-gradient(135deg,#7b2ff7,#2f6df6); }
.g2 .top,.g2 .ic { background: linear-gradient(135deg,#11b5a4,#2ee6c9); }
.g3 .top,.g3 .ic { background: linear-gradient(135deg,#f15a29,#ffc94d); }
.g4 .top,.g4 .ic { background: linear-gradient(135deg,#b5179e,#ff6fb5); }
.card-vivid h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card-vivid p { color: var(--ink-soft); font-size: .97rem; }
.card-vivid a.more { display:inline-block; margin-top:14px; font-weight:700; }
.g1 a.more{color:#2f6df6;} .g2 a.more{color:#11b5a4;} .g3 a.more{color:#f15a29;} .g4 a.more{color:#b5179e;}

/* vivid CTA with SVG bg */
.cta-vivid {
  position: relative; text-align:center; color:#fff;
  background: url("assets/cta-bg.svg") center/cover no-repeat, var(--c-violet);
  border-radius: 28px; padding: 56px 28px; margin: 12px auto; overflow:hidden;
}
.cta-vivid h2 { color:#fff; }
.cta-vivid p { color:#ffe9f6; }
.cta-vivid .btn-primary { background:#fff; color: var(--c-magenta); }
.cta-vivid .btn-primary:hover { background:#fff2c2; color: var(--c-coral); }
.cta-vivid input[type=email]{ border:0; }

/* colourful quote tiles */
.quote-vivid { border-left: 5px solid var(--c-gold); }
.quote-vivid:nth-child(2){ border-left-color: var(--c-teal); }
.quote-vivid:nth-child(3){ border-left-color: var(--c-magenta); }
.quote-vivid:nth-child(4){ border-left-color: var(--c-sky); }
.quote-vivid:nth-child(5){ border-left-color: var(--c-coral); }
.quote-vivid:nth-child(6){ border-left-color: var(--c-violet); }

/* gradient text accent */
.grad-text {
  background: linear-gradient(120deg,#7b2ff7,#b5179e,#f15a29);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* founder vivid card */
.portrait-vivid {
  background: linear-gradient(150deg,#7b2ff7,#b5179e 55%,#f15a29);
  color:#fff; border-radius: 24px; padding: 38px; box-shadow: 0 24px 50px rgba(123,47,247,.3);
}
.portrait-vivid .badge{ background: rgba(255,255,255,.18); }
.portrait-vivid h3{ color:#fff; }
.portrait-vivid .role{ color:#ffe49a; }

@media (max-width: 820px){
  .hero-vivid { min-height: auto; padding: 50px 0 42px; }
  .hero-vivid::after { background: linear-gradient(180deg, rgba(20,10,40,.6), rgba(20,10,40,.35)); }
}

/* founder portrait in prose */
.founder-figure { float: right; width: 280px; max-width: 44%; margin: 4px 0 18px 28px; }
.founder-figure img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); display: block; }
.founder-figure figcaption { font-size: .85rem; color: var(--ink-soft); font-style: italic; margin-top: 8px; text-align: center; }
@media (max-width: 560px){
  .founder-figure { float: none; width: 100%; max-width: 320px; margin: 0 auto 22px; }
}

/* ---- Author bio block (blog symmetry) ---- */
.author-bio { display:flex; gap:22px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:20px; padding:24px 26px; box-shadow:var(--shadow-sm); margin:10px 0 6px; }
.author-bio img { width:96px; height:96px; border-radius:50%; object-fit:cover; object-position:center 20%; flex:none; box-shadow:var(--shadow-sm); }
.author-bio .ab-name { font-family:'Fraunces',serif; font-weight:600; color:var(--brand-blue-deep); font-size:1.15rem; }
.author-bio p { color:var(--ink-soft); font-size:.97rem; margin:6px 0 8px; }
.author-bio .ab-links a { font-weight:600; color:var(--brand-blue); margin-right:14px; font-size:.9rem; white-space:nowrap; }
@media(max-width:560px){ .author-bio{ flex-direction:column; text-align:center; } .author-bio .ab-links a{ display:inline-block; margin:4px 7px; } }

/* ---- Disclaimer small print ---- */
.disclaimer { font-size:.82rem; color:var(--ink-soft); background:var(--cream-2); border:1px solid var(--line); border-radius:14px; padding:16px 20px; margin-top:20px; line-height:1.55; }
.disclaimer strong { color:var(--ink); }
