/* Sunshine & Sunshine — site styles
   Palette, type and gradients follow /brandguide. */

:root {
  color-scheme: light;
  /* Brand palette */
  --teal:      #00434C;
  --teal-deep: #003239;
  --teal-mid:  #44E0DB;
  --teal-dark: #078999;
  --ocre:      #D05A18;
  --rasp:      #CF3E33;
  --sun:       #FED94E;
  --hot:       #FF6F56;
  --ink:       #1F212A;
  --paper:     #FBF6F0;
  --cream:     #F6DFD2;
  --white:     #FCFCFC;
  --grey:      #6C718A;

  --grad-sunset: linear-gradient(90deg, #CF3E33 0%, #FF6F56 55%, #FED94E 100%);
  --grad-golden: linear-gradient(135deg, #D05A18 0%, #F7C1A3 100%);
  --grad-twilight: linear-gradient(135deg, #078999 0%, #38D4CF 55%, #F7C1A3 100%);
  --grad-warmdark: linear-gradient(155deg, #00434C 0%, #06313a 52%, #7a241a 128%); /* teal → deep raspberry */
  --grad-cta: linear-gradient(120deg, #B4271E 0%, #CF3E33 38%, #D05A18 78%, #E4842F 100%); /* warm CTA */
  --rasp-wash: #FFE6E4;

  --font-serif: Gelasio, Georgia, "Times New Roman", serif;
  --font-sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
figure, blockquote { margin: 0; } /* kill default UA margins that were spacing the cards */
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: #40454f; max-width: 60ch; }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ocre); margin: 0 0 18px;
}
.on-teal .eyebrow { color: var(--teal-mid); }
.accent-sun { color: var(--sun); }
.accent-rasp { color: var(--rasp); }
.accent-teal { color: var(--teal-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 10px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(4px); }
.btn-primary { background-image: var(--grad-sunset); color: #fff; box-shadow: 0 8px 24px rgba(207,62,51,0.28); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-1px); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,67,76,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-top: 14px; padding-bottom: 14px; }
header.site img.logo { height: 34px; width: auto; display: block; }
nav.main { display: flex; align-items: center; gap: 30px; }
nav.main a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color .15s; }
nav.main a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .btn { padding: 11px 20px; font-size: 0.92rem; }
@media (max-width: 860px) { nav.main { display: none; } }

/* ---------- Sections ---------- */
section { position: relative; overflow: hidden; }
.band { padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(72px, 10vw, 130px); }
.band-teal { background: var(--teal); color: #fff; }
.band-teal .lead { color: rgba(255,255,255,0.78); }
.band-cream { background: var(--paper); }
.band-white { background: var(--white); }
.band-warmdark { background: var(--grad-warmdark); color: #fff; } /* teal → deep raspberry */
.band-warmdark .lead { color: rgba(255,255,255,0.82); }

/* ---------- Arc motif ---------- */
.arc { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.band > .wrap { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { background: var(--teal); color: #fff; padding-top: clamp(52px,6vw,92px); padding-bottom: clamp(96px,12vw,170px); }
.hero .eyebrow { color: var(--teal-mid); }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,0.8); margin-top: 26px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero .wrap { position: relative; z-index: 2; }
/* Half-circle "S" motif — faithful to the logo mark:
   identical true semicircles (2:1), flat edges kissing on a grid,
   alternating dome-up / bowl-down and right / left to zigzag into an S. */
.hc { position: absolute; }
.hc.dome { border-radius: 9999px 9999px 0 0; } /* bulge up, flat bottom — true semicircle */
.hc.bowl { border-radius: 0 0 9999px 9999px; } /* bulge down, flat top */
/* Hero motif — faithful to the mark: teal domes on the right, ocre bowls on the
   left, sharing seam lines and interlocking into the S. */
.smotif { position: absolute; z-index: 0; pointer-events: none; }
/* Coordinates are the logo icon's exact measured geometry (domes cx, bowls cx,
   equal diameter, seams ~0.84x diameter apart) scaled up ~2.7x. */
.hero .smotif { top: 50%; right: 40px; transform: translateY(calc(-50% + var(--py,0px))); width: 400px; height: 470px; }
.hero .s1 { left: 200px; top: 122px; width: 173px; height: 86px; background: var(--grad-twilight); } /* dome */
.hero .s2 { left: 71px;  top: 208px; width: 173px; height: 86px; background: var(--grad-sunset);   } /* bowl */
.hero .s3 { left: 200px; top: 268px; width: 173px; height: 86px; background: var(--teal-mid);      } /* dome */
.hero .s4 { left: 71px;  top: 354px; width: 173px; height: 86px; background: var(--grad-golden);   } /* bowl */
/* Entrance: circles come together, then separate into the S mark */
.hero .smotif .hc { transition: transform .95s cubic-bezier(.2,.85,.25,1), opacity .7s ease; }
.hero .s3, .hero .s4 { transition-delay: .16s; }
.hero .smotif.intro .hc { transition: none; opacity: 0; }
.hero .smotif.intro .s1, .hero .smotif.intro .s3 { transform: translate(-65px, 24px); }
.hero .smotif.intro .s2, .hero .smotif.intro .s4 { transform: translate(65px, -24px); }
/* Continuous gentle float (uses `translate`, independent of the intro `transform`) */
.hero .hc { animation: floaty 6s ease-in-out infinite; }
.hero .s2 { animation-duration: 7.2s; animation-delay: -2s; }
.hero .s3 { animation-duration: 6.6s; animation-delay: -1s; }
.hero .s4 { animation-duration: 7.8s; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce){ .hero .hc { animation: none; } }
@media (max-width: 900px){
  .hero .smotif { transform: translateY(calc(-50% + var(--py,0px))) scale(0.6); transform-origin: center right; opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce){ .hero .smotif .hc { transition: none; } }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
@media (max-width: 820px){ .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid rgba(31,33,42,0.08); border-radius: 18px; padding: 34px 30px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 2px rgba(31,33,42,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,33,42,0.10); }
.card .mark { width: 46px; height: 46px; border-radius: 12px; position: relative; overflow: hidden; flex: none; }
.card .mark::before, .card .mark::after { content:""; position:absolute; border-radius:50%; }
.card.m1 .mark { background: var(--cream); }
.card.m1 .mark::before { width:30px;height:30px;background:var(--ocre); left:8px; bottom:-8px; }
.card.m1 .mark::after { width:22px;height:22px;background:var(--teal); right:6px; top:6px; }
.card.m2 .mark { background: #d9f6f4; }
.card.m2 .mark::before { width:30px;height:30px;background:var(--teal-dark); right:8px; bottom:-8px; }
.card.m2 .mark::after { width:20px;height:20px;background:var(--teal-mid); left:8px; top:8px; }
.card.m3 .mark { background: #ffe0dc; }
.card.m3 .mark::before { width:30px;height:30px;background:var(--rasp); left:8px; top:-8px; }
.card.m3 .mark::after { width:20px;height:20px;background:var(--sun); right:8px; bottom:8px; }
.card p { color: #4a4f59; font-size: 0.98rem; }

/* ---------- Why me ---------- */
.why-grid { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media (max-width: 900px){ .why-grid { grid-template-columns: 1fr; gap: 40px; } }
.cred-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.cred-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.02rem; color: rgba(255,255,255,0.9); }
.cred-list .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 9px; flex: none; background: var(--sun); }
.cred-list li:nth-child(2) .dot { background: var(--teal-mid); }
.cred-list li:nth-child(3) .dot { background: var(--hot); }
.cred-list li:nth-child(4) .dot { background: var(--teal-mid); }
.cred-list li:nth-child(5) .dot { background: var(--sun); }
.cred-list strong { color: #fff; font-weight: 600; }

.portrait { position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: var(--grad-twilight); }
.portrait .ph { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center top; z-index:1; }
/* Brand-teal scrim rising from the base — keeps the arc motif and gives the white stat badges something to read against. */
.portrait .arc-p { position:absolute; z-index:2; width: 118%; height: 44%; left:-9%; bottom:-6%;
  background: linear-gradient(180deg, rgba(0,50,57,0) 0%, rgba(0,50,57,0.55) 55%, rgba(0,50,57,0.9) 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events:none; }
.portrait .note { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center;
  color: rgba(255,255,255,0.7); font-size:0.8rem; letter-spacing:0.14em; text-transform:uppercase; z-index:2; padding:20px; }
.stat-badges { position:absolute; right:16px; bottom:16px; z-index:3; text-align:right; }
.stat-badges div { font-family: var(--font-sans); }
.stat-badges .big { font-size: 1.5rem; font-weight: 700; color:#fff; }
.stat-badges .sm { font-size: 0.75rem; letter-spacing:0.12em; text-transform:uppercase; color: rgba(255,255,255,0.75); }

/* ---------- Specialties ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(31,33,42,0.1); border: 1px solid rgba(31,33,42,0.1); border-radius: 18px; overflow: hidden; margin-top: 48px; }
@media (max-width: 720px){ .spec-grid { grid-template-columns: 1fr; } }
.spec { background: #fff; padding: 34px 32px; display: flex; flex-direction: column; gap: 12px; }
.spec .k { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.spec .v { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink); line-height: 1.15; }
.spec .tags { display:flex; flex-wrap:wrap; gap:8px; margin-top: 4px; }
.spec .tag { font-size: 0.85rem; background: var(--cream); color: #7a3d1c; padding: 5px 12px; border-radius: 999px; }
.spec:nth-child(2) .tag { background: #d9f6f4; color: var(--teal-dark); }   /* Verticals — teal */
.spec:nth-child(4) .tag { background: var(--rasp-wash); color: #B4271E; }    /* Seniority — raspberry */

/* ---------- Name story ---------- */
.story { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); }
.story .story-inner { display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px){ .story .story-inner { grid-template-columns: 1fr; gap: 32px; } }
.story .amp { text-align:center; transform: translateY(var(--py,0px)); }
.story .amp .amp-img { display:block; height: clamp(140px, 22vw, 250px); width:auto; margin: 0 auto; }
.story .amp span { display:block; font-size: 0.9rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--grey); margin-top: 18px; font-family: var(--font-sans); }
.story blockquote { margin: 0; }
.story .big-q { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; color: var(--ink); }
.story p.body { margin-top: 22px; color: #4a4f59; font-size: 1.05rem; }

/* ---------- Final CTA ---------- */
.final { background: var(--grad-cta); color:#fff; text-align:center; }
/* faint S-motif through-line — domes right / bowls left, mirrored small, on the left edge */
.final .smotif { top: 50%; left: -60px; transform: translateY(calc(-50% + var(--py,0px))); width: 360px; height: 430px; }
.final .hc { opacity: 0.15; }
.final .f1 { left: 150px; top: 96px;  width: 150px; height: 75px; background: #ffffff; } /* dome */
.final .f2 { left: 24px;  top: 171px; width: 164px; height: 82px; background: var(--sun); } /* bowl */
.final .f3 { left: 150px; top: 253px; width: 150px; height: 75px; background: #ffffff; } /* dome */
@media (max-width: 900px){ .final .smotif { transform: translateY(calc(-50% + var(--py,0px))) scale(0.6); transform-origin: center left; opacity: 0.85; } }
.final h2 { max-width: 18ch; margin: 0 auto; }
.final .lead { margin: 22px auto 0; color: rgba(255,255,255,0.82); text-align:center; }
.final .cta-row { display:flex; justify-content:center; gap:16px; margin-top: 38px; flex-wrap:wrap; }

/* ---------- Contact form ---------- */
.contact-card { max-width: 560px; margin: 40px auto 0; text-align: left; }
.contact-card .or { text-align:center; font-size:0.78rem; font-weight:600; letter-spacing:0.16em; text-transform:uppercase; color: rgba(255,255,255,0.7); margin: 0 0 20px; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; } /* honeypot: hidden from people, visible to bots */
.contact-form .field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width: 540px){ .contact-form .field-row { grid-template-columns:1fr; } }
.contact-form .field { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.contact-form label { font-size:0.85rem; font-weight:600; color:#fff; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-sans); font-size:1rem; color:#fff;
  background: rgba(255,255,255,0.12); border:1.5px solid rgba(255,255,255,0.35);
  border-radius:10px; padding:12px 14px; width:100%; resize:vertical;
  transition: border-color .15s ease, background .15s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.55); }
.contact-form input:focus, .contact-form textarea:focus { outline:none; border-color:#fff; background: rgba(255,255,255,0.18); }
.contact-form .btn-teal { margin-top:4px; }
.contact-form button[disabled] { opacity:0.6; cursor:default; }
.contact-form .form-status { margin-top:14px; font-size:0.95rem; min-height:1.2em; }
.contact-form .form-status.error { color: var(--sun); }
.contact-card .or-email { text-align:center; margin-top:22px; font-size:0.92rem; color: rgba(255,255,255,0.8); }
.contact-card .or-email a { color:#fff; text-decoration:underline; }
/* Inline success replaces the form after AJAX submit */
.contact-card .sent { text-align:center; padding:12px 0; }
.contact-card .sent h3 { font-size:1.5rem; margin-bottom:10px; }
.contact-card .sent p { color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
footer.site { background: var(--teal-deep); color: rgba(255,255,255,0.7); padding: 64px 0 40px; }
footer.site .cols { display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; align-items:flex-start; }
footer.site img.logo { height: 40px; width: auto; margin-bottom: 16px; }
footer.site .tag { max-width: 34ch; font-size: 0.95rem; }
footer.site .fnav { display:flex; gap:48px; flex-wrap:wrap; }
footer.site .fnav .col { display:flex; flex-direction:column; gap:10px; }
footer.site .fnav h4 { font-family: var(--font-sans); font-size: 0.76rem; letter-spacing:0.14em; text-transform:uppercase; color: rgba(255,255,255,0.5); margin:0 0 4px; font-weight:600; }
footer.site a { color: rgba(255,255,255,0.78); text-decoration:none; font-size:0.95rem; }
footer.site a:hover { color:#fff; }
footer.site .base { margin-top: 48px; padding-top: 22px; border-top:1px solid rgba(255,255,255,0.1); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; margin-top: 56px; }
@media (max-width: 920px){ .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; } }
@media (max-width: 560px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 46px; transition: transform .28s ease; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 24px; border-radius: 48px 48px 0 0; background: var(--teal-dark);
  transform-origin: bottom left; transition: transform .32s cubic-bezier(.2,.8,.2,1), filter .2s ease; } /* half-circle marker = the motif */
.step:nth-child(2)::before { background: var(--ocre); }
.step:nth-child(3)::before { background: var(--rasp); }
.step:nth-child(4)::before { background: var(--teal-mid); }
.step:nth-child(5)::before { background: var(--sun); }
.step .n { font-family: var(--font-sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; color: var(--grey); transition: color .2s ease; }
.step h3 { margin-top: 8px; font-size: 1.2rem; transition: color .2s ease; }
.step p { margin-top: 10px; color: #4a4f59; font-size: 0.93rem; line-height: 1.5; }
/* Hover: the half-circle grows up & outward (never over the label), colors intensify, step lifts */
.step:hover { transform: translateY(-6px); }
.step:hover::before { transform: scale(1.35); filter: brightness(1.12) saturate(1.15); }
.step:hover .n { color: var(--rasp); }
.step:hover h3 { color: var(--rasp); }

/* ---------- Reveal (content is visible by default; animation only when JS confirms it works) ---------- */
.reveal { opacity: 1; transform: none; }
html.anim-ready .reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
html.anim-ready .reveal.in { opacity: 1; transform: none; }
/* Reduce Motion: keep a gentle fade, drop the movement */
@media (prefers-reduced-motion: reduce){ html.anim-ready .reveal { transform: none; transition: opacity .6s ease; } }
/* Staggered group reveal — children animate in sequence as the group scrolls in */
.stagger > * { opacity: 1; transform: none; }
html.anim-ready .stagger > * { opacity: 0; transform: translateY(36px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
html.anim-ready .stagger.in > * { opacity: 1; transform: none; }
html.anim-ready .stagger.in > *:nth-child(1){ transition-delay:.04s }
html.anim-ready .stagger.in > *:nth-child(2){ transition-delay:.12s }
html.anim-ready .stagger.in > *:nth-child(3){ transition-delay:.20s }
html.anim-ready .stagger.in > *:nth-child(4){ transition-delay:.28s }
html.anim-ready .stagger.in > *:nth-child(5){ transition-delay:.36s }
html.anim-ready .stagger.in > *:nth-child(6){ transition-delay:.44s }
@media (prefers-reduced-motion: reduce){ html.anim-ready .stagger > * { transform: none; transition: opacity .5s ease; } }
