/* ============================================================
   GHH Agency (PTY) Ltd — shared styles
   Type: Fraunces (display/serif) + Inter (body/UI)
   Palette: warm cream neutrals + rose/violet/teal gradient accent
   ============================================================ */

:root{
  --cream: #FBF6EE;
  --cream-deep: #F1E8D8;
  --card: #FFFDF9;
  --ink: #2A2420;
  --ink-soft: #6E6255;
  --ink-faint: #A79C8C;
  --plum: #4A2E52;
  --plum-deep: #34203B;
  --plum-tint: #EFE3EE;
  --rose: #E4A3B3;
  --violet: #7C5A9E;
  --teal: #4C8B8A;
  --border: rgba(42,36,32,0.12);
  --border-soft: rgba(42,36,32,0.08);
  --shadow: 0 20px 40px -18px rgba(74,46,82,0.22);
  --shadow-sm: 0 8px 20px -12px rgba(74,46,82,0.25);
  --gradient: linear-gradient(115deg, var(--rose) 0%, var(--violet) 52%, var(--teal) 100%);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

h1,h2,h3,h4{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 540;
  color: var(--plum-deep);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.012em;
}
h1{ font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 520; }
h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3{ font-size: 1.28rem; font-weight: 600; }
p{ margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
a{ color: inherit; }
img{ max-width:100%; display:block; }

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

.skip-link{
  position:absolute; left:-999px; top:0; background: var(--plum); color:#fff;
  padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 999; font-weight:600;
}
.skip-link:focus{ left:0; }

:focus-visible{ outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Inter',sans-serif; font-weight:600; font-size:0.98rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor:pointer; text-decoration:none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  line-height:1;
}
.btn-primary{ background: var(--plum); color:#fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--plum-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost{ background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-ghost:hover{ background: var(--plum); color:#fff; transform: translateY(-2px); }
.btn-light{ background:#fff; color:var(--plum); box-shadow: var(--shadow-sm); }
.btn-light:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.6; cursor:not-allowed; transform:none !important; }

/* ---------- header / nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 60;
  background: rgba(251,246,238,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled{ border-color: var(--border-soft); box-shadow: 0 6px 24px -18px rgba(42,36,32,0.35); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding: 18px 28px; gap: 24px; }
.brand{ display:flex; flex-direction:column; text-decoration:none; color:var(--plum-deep); line-height:1.1; }
.brand-logo{ display:block; width:120px !important; height:auto !important; max-width:120px !important; max-height:42px !important; object-fit:contain; object-position:left center; }
.footer-logo{ display:block; width:120px !important; height:auto !important; max-width:120px !important; max-height:42px !important; object-fit:contain; object-position:left center; }
.brand-name{ font-family:'Fraunces',serif; font-weight:600; font-size:1.32rem; letter-spacing:-0.01em; }
.brand-tagline{ font-family:'Inter',sans-serif; font-size:0.72rem; color: var(--ink-faint); margin-top:2px; }

.site-nav{ display:flex; align-items:center; gap: 30px; }
.nav-link{ text-decoration:none; color: var(--ink-soft); font-weight:500; font-size:0.96rem; position:relative; padding: 4px 0; }
.nav-link:hover{ color: var(--plum); }
.nav-link.is-active{ color: var(--plum-deep); }
.nav-link.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--gradient); border-radius: 2px;
}
.nav-cta-ghost, .nav-cta{ font-size:0.9rem; padding: 0.65rem 1.25rem; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; background:none; border:none; cursor:pointer; padding:0;
}
.nav-toggle span{ display:block; height:2px; width:22px; background: var(--plum-deep); margin:0 auto; border-radius:2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px){
  .nav-toggle{ display:flex; }
  .site-nav{
    position:absolute; top:100%; left:0; right:0; background: var(--cream);
    flex-direction:column; align-items:stretch; gap:0; padding: 10px 28px 24px;
    border-bottom:1px solid var(--border-soft);
    max-height:0; overflow:hidden; transition: max-height .28s ease;
  }
  .site-nav.is-open{ max-height:420px; }
  .nav-link{ padding: 12px 0; border-bottom:1px solid var(--border-soft); }
  .nav-cta-ghost, .nav-cta{ margin-top:12px; text-align:center; }
}

/* ---------- hero ---------- */
.hero{ position:relative; padding: 64px 0 40px; overflow:hidden; }
.hero-orb{
  position:absolute; width:560px; height:560px; border-radius:50%;
  background: var(--gradient); opacity:0.16; filter: blur(70px);
  top:-220px; right:-160px; pointer-events:none;
}
.hero-inner{ position:relative; max-width: 720px; }
.hero-inner p{ font-size:1.1rem; max-width: 46ch; }

.paths{ position:relative; display:grid; grid-template-columns:1fr 1fr; gap: 26px; margin-top: 52px; }
.thread-svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; z-index:0; }
.thread-path{
  fill:none; stroke:url(#threadGrad); stroke-width:2; stroke-linecap:round;
  stroke-dasharray: 6 500; stroke-dashoffset: 0;
  animation: draw-thread 1.6s ease-out .2s both;
}
@keyframes draw-thread{ from{ stroke-dasharray: 0 500; } to{ stroke-dasharray: 500 500; } }
@media (prefers-reduced-motion: reduce){ .thread-path{ animation:none; stroke-dasharray: 500 500; } }

.path-card{
  position:relative; z-index:1; padding: 34px 32px; border-radius: var(--radius-lg);
  display:flex; flex-direction:column; gap:14px; min-height: 230px;
}
.path-card.employer{ background: var(--cream-deep); border:1px solid var(--border-soft); }
.path-card.seeker{ background: linear-gradient(160deg, #fff 0%, var(--plum-tint) 130%); border:1px solid var(--border-soft); box-shadow: var(--shadow-sm); }
.path-card h3{ font-family:'Fraunces',serif; font-size:1.5rem; margin-bottom:2px; }
.path-card p{ font-size:0.98rem; margin-bottom: 6px; }
.path-card .btn{ align-self:flex-start; margin-top:auto; }

@media (max-width: 720px){ .paths{ grid-template-columns:1fr; } }

/* ---------- generic sections ---------- */
section{ padding: 68px 0; }
.section-head{ max-width: 620px; margin-bottom: 40px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-tight p{ margin-bottom:0; }
.divider{ height:2px; background: var(--gradient); border:none; width:72px; border-radius:2px; margin: 0 0 20px; opacity:.8; }
.bg-deep{ background: var(--cream-deep); }

/* value grid */
.value-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap: 30px; }
.value-card{ background: var(--card); border:1px solid var(--border-soft); border-radius: var(--radius-md); padding: 28px 26px; }
.value-card .mark{ width:38px; height:38px; border-radius:10px; background: var(--gradient); margin-bottom:16px; }
.value-card h3{ font-size:1.12rem; margin-bottom:8px; }
.value-card p{ font-size:0.95rem; margin:0; }
@media (max-width: 880px){ .value-grid{ grid-template-columns:1fr; } }

/* process steps */
.process{ display:grid; grid-template-columns: repeat(3,1fr); gap: 34px; counter-reset: step; }
.process-step{ position:relative; padding-top: 6px; }
.process-step .num{
  font-family:'Fraunces',serif; font-size:2.1rem; font-weight:600; color:transparent;
  -webkit-text-stroke: 1.4px var(--violet); display:block; margin-bottom:10px;
}
.process-step h3{ margin-bottom:8px; font-size:1.1rem; }
.process-step p{ font-size:0.95rem; }
@media (max-width: 880px){ .process{ grid-template-columns:1fr; gap:26px; } }

/* services grid */
.services-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap: 22px; }
.service-card{ background: var(--card); border:1px solid var(--border-soft); border-radius: var(--radius-md); padding: 30px; transition: transform .18s ease, box-shadow .18s ease; }
.service-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.service-card h3{ margin-bottom:8px; }
.service-card p{ font-size:0.95rem; margin-bottom:10px; }
.service-tag{ display:inline-block; font-size:0.78rem; color:var(--violet); font-weight:600; background: var(--plum-tint); padding: 4px 10px; border-radius:999px; }
@media (max-width: 720px){ .services-grid{ grid-template-columns:1fr; } }

.tag-row{ display:flex; flex-wrap:wrap; gap:10px; }
.tag-chip{ font-size:0.88rem; color: var(--plum-deep); background: var(--card); border:1px solid var(--border); padding: 8px 16px; border-radius:999px; }

/* testimonial */
.testimonial{ background: var(--plum-deep); border-radius: var(--radius-lg); padding: 52px; position:relative; overflow:hidden; }
.testimonial::before{ content:""; position:absolute; inset:0; background: var(--gradient); opacity:0.14; }
.testimonial-inner{ position:relative; max-width: 680px; }
.testimonial blockquote{ font-family:'Fraunces',serif; font-size: clamp(1.3rem,2.4vw,1.8rem); color:#fff; margin:0 0 18px; font-weight:450; font-style:normal; line-height:1.35; }
.testimonial cite{ font-style:normal; color: rgba(255,255,255,0.72); font-size:0.92rem; }

/* stats / cta banner */
.cta-banner{ background: var(--cream-deep); border-radius: var(--radius-lg); padding: 52px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.cta-banner h2{ margin-bottom:6px; }
.cta-banner-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* faq */
.faq-item{ border-bottom:1px solid var(--border-soft); padding: 18px 0; }
.faq-item summary{ cursor:pointer; font-family:'Fraunces',serif; font-size:1.08rem; color:var(--plum-deep); font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-family:'Inter',sans-serif; font-size:1.4rem; color:var(--violet); flex-shrink:0; transition: transform .2s ease; }
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ margin: 12px 0 0; font-size:0.96rem; }

/* ---------- forms ---------- */
.form-shell{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items:flex-start; }
@media (max-width: 900px){ .form-shell{ grid-template-columns:1fr; } }
.form-card{ background: var(--card); border:1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:560px){ .field-row{ grid-template-columns:1fr; } }
.field{ margin-bottom: 20px; }
.field label{ display:block; font-weight:600; font-size:0.9rem; color: var(--plum-deep); margin-bottom:7px; }
.field .hint{ font-size:0.8rem; color: var(--ink-faint); margin-top:5px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea{
  width:100%; padding: 0.8rem 0.95rem; border-radius: var(--radius-sm); border:1.5px solid var(--border);
  background:#fff; font-family:'Inter',sans-serif; font-size:0.96rem; color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea{ resize: vertical; min-height:110px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,90,158,0.16);
}
.field-file{
  display:flex; align-items:center; gap:14px; border:1.5px dashed var(--border); border-radius: var(--radius-sm);
  padding: 16px; background:#fff;
}
.field-file .file-btn{ font-size:0.85rem; padding:0.6rem 1.1rem; }
.file-name{ font-size:0.86rem; color: var(--ink-faint); }
.checkbox-row{ display:flex; gap:10px; align-items:flex-start; font-size:0.86rem; color: var(--ink-soft); }
.checkbox-row input{ margin-top:3px; }
.form-note{ font-size:0.84rem; color: var(--ink-faint); margin-top:14px; }
.success-panel{ display:none; text-align:center; padding: 40px 20px; }
.success-panel.is-visible{ display:block; }
.success-panel .mark{ width:52px; height:52px; border-radius:50%; background:var(--gradient); margin:0 auto 18px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.4rem; }
.form-card.is-submitted .form-fields{ display:none; }

.side-info{ display:flex; flex-direction:column; gap:22px; }
.side-card{ background: var(--cream-deep); border-radius: var(--radius-md); padding: 26px; }
.side-card h4{ font-family:'Fraunces',serif; font-size:1.05rem; color:var(--plum-deep); margin-bottom:12px; }
.side-steps{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.side-steps li{ display:flex; gap:12px; font-size:0.92rem; color: var(--ink-soft); }
.side-steps .n{ font-family:'Fraunces',serif; font-weight:600; color: var(--violet); flex-shrink:0; }

/* ---------- footer ---------- */
.site-footer{ background: var(--cream-deep); padding: 60px 0 26px; margin-top: 40px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom:1px solid var(--border-soft); }
.footer-brand p{ font-size:0.92rem; margin-top:10px; }
.site-footer h4{ font-family:'Inter',sans-serif; font-size:0.86rem; color: var(--plum-deep); font-weight:700; margin-bottom:14px; }
.footer-col a, .footer-col p{ display:block; text-decoration:none; color: var(--ink-soft); font-size:0.92rem; margin-bottom:10px; }
.footer-col a:hover{ color: var(--plum); }
.footer-social{ display:flex; gap:12px; margin-top:16px; }
.footer-social a{ width:34px; height:34px; border-radius:50%; background:#fff; border:1px solid var(--border-soft); display:flex; align-items:center; justify-content:center; font-size:0.8rem; text-decoration:none; color:var(--plum-deep); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top: 22px; font-size:0.82rem; color: var(--ink-faint); }
@media (max-width: 880px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns:1fr; } }

/* page hero (inner pages) */
.page-hero{ padding: 56px 0 20px; }
.page-hero p{ font-size: 1.05rem; max-width: 56ch; }
.eyebrow-line{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.eyebrow-line .dot{ width:8px; height:8px; border-radius:50%; background: var(--gradient); }
.eyebrow-line span{ font-size:0.86rem; color: var(--ink-faint); font-weight:600; }

.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items:center; }
@media (max-width: 880px){ .two-col{ grid-template-columns:1fr; } }

.stat-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.stat-card{ text-align:left; }
.stat-card .n{ font-family:'Fraunces',serif; font-size:2.2rem; color:var(--plum-deep); }
.stat-card .l{ font-size:0.88rem; color:var(--ink-faint); }
@media (max-width:720px){ .stat-row{ grid-template-columns:1fr 1fr; } }

.values-list{ display:flex; flex-direction:column; gap:26px; }
.values-list .value-row{ display:flex; gap:18px; }
.values-list .value-row .glyph{ width:44px; height:44px; border-radius:12px; background: var(--gradient); flex-shrink:0; }

.map-frame{ border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--border-soft); height: 340px; background: var(--cream-deep); display:flex; align-items:center; justify-content:center; color: var(--ink-faint); font-size:0.9rem; }


/* Supabase form feedback */
.supabase-form-error{color:#9b1c1c;background:#fff0f0;border:1px solid #e7b5b5;border-radius:10px;padding:12px 14px;margin:12px 0;font-size:.92rem;}


/* Logo sizing */
@media (max-width: 700px){ .brand-logo{ width:105px !important; max-width:105px !important; max-height:37px !important; } .footer-logo{ width:110px !important; max-width:110px !important; max-height:39px !important; } }
