/* =========================================================
   Square Leaf Consulting — Design System
   Tropical: Ocean Teal / Palm Green / Sunset Gold — lighter, warmer
   Every text/background pairing below is verified against WCAG 2.2 AA
   (4.5:1 normal text, 3:1 large text / non-text UI).
   Inter (system-UI fallback)
   ========================================================= */

:root{
  /* Brand palette */
  --navy:        #0b6b74; /* ocean teal — replaces near-black navy; still dark enough for AA white text (6.2:1) */
  --navy-2:      #0c7078;
  --navy-3:      #0d7580;
  --forest:      #2fa66f; /* bright palm green — decorative/icons only, not for text-on-light */
  --forest-dark: #157a4a; /* text-safe green — links, CTA band bg (5.1–5.4:1) */
  --forest-tint: #e6f7ef;
  --gold:        #f2b94a; /* sunset gold — button bg, always paired with --ink text (8.8:1) */
  --gold-hover:  #d99a2b; /* button hover bg, still safe with --ink text (6.4:1) */
  --gold-dark:   #8a6420; /* text-safe amber — small labels on light bg (5.1:1) */
  --gold-bright: #fff0d1; /* text-safe pale gold — small labels/numerals on dark teal bg (4.3–4.8:1) */
  --ink:         #16262b;
  --slate:       #4d6b72;
  --slate-soft:  #55747a;
  --on-dark:     #dcf0f2; /* secondary/tertiary text on any teal dark surface (4.7–5.3:1) */
  --paper:       #fdfaf4; /* warm sand-white, replaces stark white */
  --paper-2:     #eef8f6; /* light aqua tint */
  --paper-3:     #f6f1e6; /* light sand */
  --border:      #dce9e6;
  --border-strong: #bcd2ce;
  --focus:       #d1461a; /* terracotta — 4.4:1 against paper; paired with a white halo (below) for dark surfaces */
  --fuchsia:     #d6247a; /* bougainvillea/hibiscus pink — decorative glow accent only, never used for text */

  --max: 1180px;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif; /* light editorial serif for headlines */

  --shadow-sm: 0 1px 2px rgba(11,107,116,0.08), 0 1px 1px rgba(11,107,116,0.05);
  --shadow-md: 0 8px 24px rgba(11,107,116,0.12), 0 2px 6px rgba(11,107,116,0.07);
  --shadow-lg: 0 20px 48px rgba(11,107,116,0.18), 0 6px 16px rgba(11,107,116,0.09);
  /* soft multi-tint "glow" beneath hero/feature imagery — palm green + sunset gold + bougainvillea pink */
  --glow: 0 30px 70px -18px rgba(21,122,74,0.32), 0 20px 50px -14px rgba(214,36,122,0.24), 0 18px 46px -14px rgba(242,185,74,0.28), 0 10px 28px -10px rgba(11,107,116,0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3{
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h4{
  font-family: var(--font-sans); color: var(--navy); font-weight: 700;
  line-height: 1.3; margin: 0 0 0.5em;
}
h1{ font-size: clamp(2.4rem, 1.6rem + 3vw, 3.9rem); font-weight: 450; }
h2{ font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
h3{ font-size: 1.3rem; font-weight: 600; }
p{ margin: 0 0 1em; color: var(--slate); max-width: 62ch; }
a{ color: var(--forest-dark); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover{ color: var(--forest); }
img{ display:block; max-width: 100%; height: auto; }
ul,ol{ padding-left: 1.2em; color: var(--slate); }
li{ margin-bottom: 0.4em; }
button{ font-family: inherit; }

/* Visible keyboard focus — WCAG 2.2 AA, on every interactive element */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
  /* white halo guarantees the ring reads on both light paper and dark teal surfaces */
  box-shadow: 0 0 0 2px var(--paper);
}

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

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link — visible on focus, present on every page */
.skip-link{
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 12px 18px;
  border-radius: var(--radius-sm); z-index: 999; text-decoration: none;
  font-weight: 600; transition: top 0.15s ease;
}
.skip-link:focus{ top: 12px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active{ transform: translateY(1px) scale(0.99); }
.btn-primary{ background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-primary:hover{ background: var(--gold-hover); border-color: var(--gold-hover); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost{ background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover{ border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-outline{ background: transparent; color: var(--navy); border-color: var(--navy-3); }
.btn-outline:hover{ background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-row{
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 24px; max-width: var(--max); margin: 0 auto;
}
.brand{ display:flex; align-items:center; gap: 10px; color: #fff; text-decoration:none; min-width:0; }
.brand:hover{ color: #fff; }
.brand-mark{ flex:none; width: 30px; height: 30px; }
.brand-name{
  font-family: var(--font-serif); font-weight: 600; font-size: 19px; color: #fff; letter-spacing: 0;
  line-height:1.15; white-space: normal;
}

.primary-nav{ display:flex; align-items:center; gap: 4px; }
.primary-nav a{
  color: var(--on-dark); text-decoration:none; font-size: 14.5px; font-weight: 600;
  padding: 9px 12px; border-radius: var(--radius-sm); position: relative;
}
.primary-nav a:hover{ color:#fff; }
.primary-nav a[aria-current="page"]{ color: #fff; }
.primary-nav a[aria-current="page"]::after{
  content:""; position:absolute; left:12px; right:12px; bottom:2px; height:2px;
  background: var(--gold-bright); border-radius: 2px;
}

.header-actions{ display:flex; align-items:center; gap: 14px; }

/* Language switcher */
.lang-switch{ position: relative; }
.lang-switch-btn{
  display:flex; align-items:center; gap:6px;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color:#fff;
  font-size: 13.5px; font-weight:600; padding: 8px 11px; border-radius: var(--radius-sm); cursor:pointer;
}
.lang-switch-btn:hover{ border-color:#fff; }
.lang-switch-btn .chev{ width: 11px; height: 11px; transition: transform .15s ease; }
.lang-switch[aria-expanded="true"] .chev{ transform: rotate(180deg); }
.lang-menu{
  list-style:none; margin:0; padding: 6px; position:absolute; right:0; top: calc(100% + 8px);
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); min-width: 160px; display:none;
}
.lang-switch.open .lang-menu{ display:block; }
.lang-menu a{
  display:block; padding: 9px 12px; border-radius: 5px; color: var(--ink); text-decoration:none; font-size: 14px; font-weight:500;
}
.lang-menu a:hover, .lang-menu a:focus-visible{ background: var(--paper-3); }
.lang-menu a[aria-current="true"]{ color: var(--forest-dark); font-weight:700; }

.menu-toggle{
  display:none; background:none; border: 1.5px solid rgba(255,255,255,0.3); border-radius: var(--radius-sm);
  color:#fff; cursor:pointer; padding: 8px; align-items:center; justify-content:center;
}
.menu-toggle svg{ width: 22px; height: 22px; display:block; }

@media (max-width: 900px){
  .primary-nav{ display:none; }
  .header-actions .btn-primary{ display:none; }
  .menu-toggle{ display:flex; }
}

/* Mobile menu panel */
.mobile-nav{
  display:none; background: var(--navy-2); border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open{ display:block; }
.mobile-nav .wrap{ padding: 16px 24px 22px; display:flex; flex-direction:column; gap: 4px; }
.mobile-nav a{
  color:#e7ecf2; text-decoration:none; font-weight:600; font-size:16px; padding: 12px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a[aria-current="page"]{ color: var(--gold-bright); }
.mobile-nav .btn{ margin-top: 12px; }

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before{
  /* positioned behind the headline/text column (not the photo, not under the sticky header) so the tint actually shows */
  content:""; position:absolute; top:5%; left:-6%; width:42%; height:75%;
  background: radial-gradient(closest-side, rgba(214,36,122,0.55), transparent 72%);
  filter: blur(50px); pointer-events:none; z-index:0;
}
.hero .wrap{ position:relative; z-index:1; padding: 92px 24px 104px; display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items:center; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px; color: var(--gold-bright);
  font-weight:700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1{ color:#fff; margin-bottom: 20px; }
.hero .lead{ color: var(--on-dark); font-size: 1.15rem; max-width: 52ch; margin-bottom: 30px; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap: 14px; }
.hero-media{ border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--glow); border: 1px solid rgba(255,255,255,0.14); }
.hero-media img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 4/3; }

@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; padding: 48px 24px 56px; }
  .hero-media{ order: -1; }
}

/* Page header (non-home pages) */
.page-hero{
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color:#fff; padding: 56px 24px 64px; position:relative; overflow:hidden;
}
.page-hero::before{
  content:""; position:absolute; top:-40%; right:-10%; width:45%; height:220%;
  background: radial-gradient(closest-side, rgba(214,36,122,0.35), transparent 72%);
  filter: blur(60px); pointer-events:none; z-index:0;
}
.page-hero .wrap{ position:relative; z-index:1; max-width: var(--max); }
.page-hero h1{ color:#fff; margin-bottom: 14px; }
.page-hero p{ color:var(--on-dark); font-size: 1.08rem; max-width: 64ch; }
.page-hero-eyebrow{ color: var(--gold-bright); font-weight:700; font-size:13px; letter-spacing:0.06em; text-transform:uppercase; margin-bottom:14px; display:block; }

/* ---------- Sections ---------- */
section{ padding: 88px 0; }
.section-tight{ padding: 52px 0; }
.section-alt{ background: var(--paper-2); }
.section-head{ max-width: 68ch; margin-bottom: 48px; }
.eyebrow{
  color: var(--gold-dark); font-weight:700; font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; display:block; margin-bottom: 10px;
}

/* Trust strip */
.trust-strip{ background: var(--paper-2); border-bottom: 1px solid var(--border); padding: 26px 0; }
.trust-strip .wrap{ display:flex; flex-wrap:wrap; align-items:center; gap: 14px 22px; }
.trust-strip-title{ font-size: 12.5px; font-weight:700; color: var(--slate-soft); text-transform:uppercase; letter-spacing:0.05em; margin-right: 6px; }
.trust-chip{
  font-size: 13.5px; font-weight: 700; color: var(--navy); background: #fff;
  border: 1px solid var(--border-strong); padding: 7px 13px; border-radius: 100px;
}

/* Grids & cards */
.grid{ display:grid; gap: 26px; }
.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-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background:#fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon{
  width: 46px; height: 46px; border-radius: 14px; background: var(--forest-tint);
  display:flex; align-items:center; justify-content:center; margin-bottom: 16px; flex: none;
}
.card-icon svg{ width: 24px; height: 24px; color: var(--forest-dark); }
.card h3{ margin-bottom: 8px; font-size: 1.08rem; }
.card p{ margin-bottom: 0; font-size: 0.97rem; }

/* Standard (service) block on Services page */
.standard{
  border: 1px solid var(--border); border-radius: var(--radius); background:#fff;
  padding: 34px; margin-bottom: 22px; scroll-margin-top: 96px;
}
.standard-head{ display:flex; align-items:flex-start; gap: 16px; margin-bottom: 14px; }
.standard-icon{
  width: 48px; height:48px; border-radius: 14px; background: var(--navy); flex:none;
  display:flex; align-items:center; justify-content:center;
}
.standard-icon svg{ width:24px; height:24px; color: var(--gold); }
.standard h3{ margin-bottom: 4px; }
.standard-kw{ font-size: 12.5px; color: var(--slate-soft); font-weight:600; }
.standard-body{ display:grid; grid-template-columns: 1.3fr 1fr; gap: 26px; margin-top: 12px; }
.standard-body h4{ font-size: 0.82rem; text-transform:uppercase; letter-spacing:0.05em; color: var(--slate-soft); margin: 0 0 8px; font-weight:700; }
.standard-body ul{ margin:0; padding-left: 1.1em; }
.standard-body ul li{ font-size: 0.95rem; }
@media (max-width: 760px){ .standard-body{ grid-template-columns: 1fr; } }

/* Process / approach steps */
.steps{ display:grid; gap: 22px; }
.step{
  display:grid; grid-template-columns: 64px 1fr; gap: 20px; align-items:flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--border);
}
.step:last-child{ border-bottom: none; }
.step-num{
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold-bright);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size: 1.15rem;
}
.step h3{ margin-bottom: 6px; }
@media (max-width: 560px){ .step{ grid-template-columns: 48px 1fr; } .step-num{ width:44px;height:44px;font-size:1rem; } }

/* Value props / list-with-points */
.points-list{ list-style:none; padding:0; margin:0; display:grid; gap: 14px; }
.points-list li{
  display:flex; gap: 12px; align-items:flex-start; font-size: 0.98rem; color: var(--slate); margin:0;
}
.points-list svg{ flex:none; width:20px; height:20px; color: var(--forest-dark); margin-top: 2px; }

/* Image + text split */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center; }
.split img{ border-radius: var(--radius-lg); box-shadow: var(--glow); aspect-ratio: 4/3; object-fit:cover; width:100%; }
.split-reverse{ direction: rtl; }
.split-reverse > *{ direction: ltr; }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; } .split-reverse{ direction: ltr; } }

/* CTA band */
.cta-band{
  /* solid, not gradient to --forest: the brighter green fails AA contrast for white body text */
  background: var(--forest-dark);
  color:#fff; border-radius: var(--radius-lg); padding: 52px 40px; text-align:center;
  position: relative; overflow: hidden;
}
.cta-band::before{
  content:""; position:absolute; top:-60%; left:-10%; width:45%; height:220%;
  background: radial-gradient(closest-side, rgba(214,36,122,0.3), transparent 72%);
  filter: blur(60px); pointer-events:none; z-index:0;
}
.cta-band > *{ position:relative; z-index:1; }
.cta-band h2{ color:#fff; margin-bottom: 10px; }
.cta-band p{ color: var(--on-dark); max-width: 56ch; margin: 0 auto 26px; }
@media (max-width: 620px){ .cta-band{ padding: 36px 22px; } }

/* ---------- Contact form ---------- */
.contact-layout{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items:flex-start; }
@media (max-width: 900px){ .contact-layout{ grid-template-columns: 1fr; } }

.form-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.hp-field{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.field{ margin-bottom: 20px; }
.field label{ display:block; font-weight:700; font-size: 0.92rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea{
  width:100%; border:1.5px solid var(--border-strong); border-radius: 12px;
  padding: 13px 16px; font-size: 1rem; font-family: inherit; color: var(--ink); background:#fff;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible{
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--forest-dark);
}
.field textarea{ resize: vertical; min-height: 110px; }
.field-note{ font-size: 0.85rem; color: var(--slate-soft); margin-top: 22px; }
.form-status{ padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; margin-bottom: 18px; display:none; }
.form-status.show{ display:block; }
.form-status.success{ background: var(--forest-tint); color: var(--forest-dark); border: 1px solid #bfe0cf; }
.form-status.error{ background: #fbeaea; color: #9a2a2a; border: 1px solid #f0c4c4; }

.direct-contact{ background: var(--navy); color:#fff; border-radius: var(--radius-lg); padding: 32px; }
.direct-contact h3{ color:#fff; }
.direct-contact-item{ display:flex; gap: 12px; align-items:flex-start; margin-bottom: 18px; }
.direct-contact-item svg{ flex:none; width:20px; height:20px; color: var(--gold); margin-top:2px; }
.direct-contact-item span{ display:block; }
.direct-contact-item .label{ font-size: 0.78rem; color:var(--on-dark); text-transform:uppercase; letter-spacing:0.05em; margin-bottom: 2px; }
.direct-contact-item a{ color:#fff; }
.direct-contact-item p{ color: var(--on-dark); margin: 0; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: var(--on-dark); padding: 56px 0 28px; margin-top: 0; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; margin-bottom: 36px; }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand{ display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; margin-bottom: 12px; }
.footer-brand span{ font-weight:700; font-size: 16px; }
.footer-col h4{ color:#fff; font-size: 13px; text-transform:uppercase; letter-spacing:0.06em; margin-bottom: 14px; }
.footer-col ul{ list-style:none; padding:0; margin:0; }
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ color:var(--on-dark); text-decoration:none; font-size: 14.5px; }
.footer-col a:hover{ color:#fff; }
.footer-contact-item{ display:flex; gap:10px; align-items:flex-start; margin-bottom: 12px; font-size: 14.5px; }
.footer-contact-item svg{ flex:none; width:16px; height:16px; margin-top:3px; color: var(--gold); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px; display:flex; flex-wrap:wrap; gap: 12px; justify-content:space-between; font-size: 13px; color: var(--on-dark); }
.footer-bottom a{ color: var(--on-dark); }
.footer-bottom a:hover{ color:#fff; }

/* ---------- Privacy page ---------- */
.policy-section{ margin-bottom: 30px; }
.policy-section h2{ font-size: 1.2rem; }
.policy-meta{ color: var(--slate-soft); font-size: 0.9rem; margin-bottom: 34px; }

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
.reveal{ opacity: 1; transform: none; }
.js .reveal{ opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in-view{ opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.center-text{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.mt-0{ margin-top:0; }
