/* Sunshine Remodeling — design tokens.
   Two layers: primitives (raw values, named for what they ARE) then
   semantics (named for what they DO). Nothing outside this file may use a
   raw hex value. Colours are sampled from the real logo:
   deep teal wordmark, palm green, sun gold, wood brown. */

:root {
  /* ---- primitives ---- */
  --teal-900:#00434B; --teal-800:#00565F; --teal-700:#00707C; --teal-600:#00838F;
  --teal-100:#D6EDEF; --teal-50:#EDF7F8;
  --palm-600:#1B8A6B; --palm-500:#24A884; --palm-100:#DDF2EA;
  --gold-700:#B87A00; --gold-600:#D99400; --gold-500:#F0A80C; --gold-100:#FFF0D1;
  --wood-800:#3C2400; --wood-600:#5A3310; --wood-400:#906C3C;
  --ink-900:#141A1B; --ink-700:#33403F; --ink-500:#5D6A69; --ink-300:#93A0A0;
  --paper-0:#FFFFFF; --paper-50:#FAFBFA; --paper-100:#F1F5F4; --paper-200:#E2E9E8;

  /* ---- semantics ---- */
  --brand:var(--teal-700);
  --brand-dark:var(--teal-900);
  --brand-accent:var(--palm-500);
  --cta:var(--gold-500);
  --cta-hover:var(--gold-600);
  --cta-ink:var(--wood-800);

  --bg:var(--paper-0);
  --bg-alt:var(--paper-50);
  --bg-sunk:var(--paper-100);
  --surface:var(--paper-0);
  --border:var(--paper-200);

  --text:var(--ink-900);
  --text-soft:var(--ink-700);
  --text-mute:var(--ink-500);
  --text-invert:var(--paper-0);

  --radius:14px; --radius-sm:9px; --radius-lg:22px;
  --shadow:0 1px 2px rgba(20,26,27,.06), 0 8px 24px -12px rgba(20,26,27,.18);
  --shadow-lg:0 2px 6px rgba(20,26,27,.07), 0 26px 60px -26px rgba(20,26,27,.32);
  --wrap:1180px;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --step--1:clamp(.86rem,.83rem + .12vw,.93rem);
  --step-0:clamp(1rem,.96rem + .2vw,1.09rem);
  --step-1:clamp(1.2rem,1.12rem + .4vw,1.42rem);
  --step-2:clamp(1.5rem,1.35rem + .72vw,2rem);
  --step-3:clamp(1.9rem,1.62rem + 1.35vw,2.85rem);
  --step-4:clamp(2.3rem,1.8rem + 2.4vw,3.9rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);
  font-size:var(--step-0);line-height:1.62;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand);text-underline-offset:2px}
h1,h2,h3,h4{line-height:1.16;margin:0 0 .5em;letter-spacing:-.021em;font-weight:800;color:var(--text)}
h1{font-size:var(--step-4)} h2{font-size:var(--step-3)} h3{font-size:var(--step-1)}
p{margin:0 0 1.05em}
.wrap{width:min(100% - 2.4rem,var(--wrap));margin-inline:auto}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
:focus-visible{outline:3px solid var(--gold-500);outline-offset:2px;border-radius:4px}
.skip{position:absolute;left:-9999px;top:0;background:var(--paper-0);color:var(--brand);
  padding:.7rem 1.1rem;z-index:200;border-radius:0 0 var(--radius-sm) 0;font-weight:700}
.skip:focus{left:0}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-weight:750;font-size:var(--step-0);text-decoration:none;cursor:pointer;
  padding:.86rem 1.5rem;border-radius:999px;border:2px solid transparent;
  transition:transform .12s ease,box-shadow .18s ease,background .18s ease;
  line-height:1.15;min-height:48px}
.btn:hover{transform:translateY(-1px)}
.btn-cta{background:var(--cta);color:var(--cta-ink);box-shadow:var(--shadow)}
.btn-cta:hover{background:var(--cta-hover)}
.btn-ghost{background:transparent;color:var(--text-invert);border-color:rgba(255,255,255,.65)}
.btn-ghost:hover{background:rgba(255,255,255,.14)}
.btn-solid{background:var(--brand);color:var(--text-invert)}
.btn-solid:hover{background:var(--brand-dark)}
.btn-lg{padding:1.02rem 1.9rem;font-size:var(--step-1)}

/* ---------- header ---------- */
.hdr{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.94);
  backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--border)}
.hdr-in{display:flex;align-items:center;gap:1.1rem;padding:.5rem 0;min-height:66px}
/* The logo is a near-square badge (palms, two workers, wordmark). Shrunk to
   header height its own wordmark is unreadable, so the mark carries the
   identity and a text lockup carries the name. */
.logo{display:flex;align-items:center;gap:.6rem;flex-shrink:0;text-decoration:none}
.logo img{height:54px;width:auto}
.logo-txt{display:flex;flex-direction:column;line-height:1}
.logo-txt b{font-size:1.24rem;font-weight:850;color:var(--brand-dark);letter-spacing:-.02em}
.logo-txt i{font-style:normal;font-size:.7rem;font-weight:700;color:var(--brand-accent);
  letter-spacing:.17em;text-transform:uppercase;margin-top:.16rem}
.nav{display:flex;gap:.15rem;margin-left:auto;flex-wrap:wrap}
.nav a{padding:.5rem .62rem;border-radius:var(--radius-sm);color:var(--text-soft);
  text-decoration:none;font-weight:650;font-size:.94rem;white-space:nowrap}
.nav a:hover{background:var(--teal-50);color:var(--brand-dark)}
.nav a[aria-current="page"]{color:var(--brand-dark);background:var(--teal-100)}
.hdr-call{display:flex;align-items:center;gap:.55rem;flex-shrink:0}
.hdr-tel{display:inline-flex;align-items:center;gap:.42rem;font-weight:800;
  color:var(--brand-dark);text-decoration:none;font-size:1.02rem;white-space:nowrap}
.hdr-tel:hover{color:var(--brand)}
.burger{display:none;margin-left:auto;background:none;border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:.55rem .7rem;cursor:pointer;min-height:44px}
.burger span{display:block;width:20px;height:2px;background:var(--text);margin:4px 0;border-radius:2px}

/* ---------- hero ---------- */
.hero{position:relative;isolation:isolate;color:var(--text-invert);
  display:grid;align-items:end;min-height:clamp(430px,62vh,640px);overflow:hidden}
.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;
  /* brighten the photo itself rather than dropping a box behind the text */
  filter:brightness(1.1) saturate(1.06);
  /* Barely-there Ken Burns drift -- slow enough to read as "the photo is
     alive" rather than as an obvious zoom. 1.06 is the smallest scale that
     still gives object-fit:cover room to pan without exposing an edge. */
  transform-origin:56% 42%;animation:hero-drift 26s ease-in-out infinite alternate}
@keyframes hero-drift{
  from{transform:scale(1.06) translate3d(0,0,0)}
  to{transform:scale(1.11) translate3d(-1.1%,-0.6%,0)}
}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(0,52,58,.30) 0%,rgba(0,52,58,.16) 34%,
    rgba(0,44,50,.62) 78%,rgba(0,40,46,.84) 100%)}
.hero-in{padding:3.4rem 0 2.6rem;max-width:44rem}
.hero h1{color:var(--text-invert);text-shadow:0 2px 18px rgba(0,32,38,.42);margin-bottom:.42em}
.hero .kicker{display:inline-flex;align-items:center;gap:.5rem;font-weight:750;
  letter-spacing:.07em;text-transform:uppercase;font-size:.79rem;margin-bottom:1rem;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);
  padding:.36rem .82rem;border-radius:999px}
.hero p{font-size:var(--step-1);color:rgba(255,255,255,.95);
  text-shadow:0 1px 12px rgba(0,32,38,.5);margin-bottom:1.5rem;max-width:34rem}
.hero-btns{display:flex;gap:.7rem;flex-wrap:wrap}
/* Interior heroes are shorter, so the homepage gradient compresses into a
   band and the copy ends up over the bright part of the photo. These get a
   deeper scrim -- still a gradient on the photo, never a box behind the text. */
.page-hero{min-height:clamp(280px,38vh,400px)}
.page-hero h1{font-size:var(--step-3)}
.page-hero>img{filter:brightness(1.02) saturate(1.04)}
.page-hero::after{background:linear-gradient(180deg,rgba(0,48,54,.52) 0%,
  rgba(0,46,52,.46) 40%,rgba(0,42,48,.72) 82%,rgba(0,38,44,.88) 100%)}

/* ---------- trust strip ---------- */
.trust{background:var(--brand-dark);color:var(--text-invert)}
.trust ul{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;
  gap:.5rem 2.2rem;margin:0;padding:.86rem 0;font-size:.93rem;font-weight:650}
.trust li{display:flex;align-items:center;gap:.46rem}
.trust svg{flex-shrink:0;opacity:.9}

/* ---------- sections ---------- */
.sec{padding:clamp(3rem,6vw,5rem) 0}
.sec-alt{background:var(--bg-alt)}
.sec-sunk{background:var(--bg-sunk)}
.sec-head{max-width:46rem;margin-bottom:2.4rem}
.sec-head.mid{margin-inline:auto;text-align:center}
.eyebrow{color:var(--brand);font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  font-size:.79rem;margin:0 0 .6rem}
.lede{font-size:var(--step-1);color:var(--text-soft);margin:0}

/* ---------- cards ---------- */
.grid{display:grid;gap:1.35rem;grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);
  transition:transform .16s ease,box-shadow .22s ease}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.card-img{aspect-ratio:4/3;width:100%;object-fit:cover;background:var(--bg-sunk)}
.card-body{padding:1.3rem 1.35rem 1.45rem;display:flex;flex-direction:column;flex:1}
.card-body h3{margin-bottom:.42em}
.card-body p{color:var(--text-soft);font-size:.97rem;margin-bottom:1rem}
.card-link{margin-top:auto;font-weight:750;text-decoration:none;color:var(--brand);
  display:inline-flex;align-items:center;gap:.35rem}
.card-link:hover{gap:.55rem;color:var(--brand-dark)}

/* ---------- prose ---------- */
.prose{max-width:44rem}
.prose h2{margin-top:2rem;font-size:var(--step-2)}
.prose h3{margin-top:1.5rem}
.prose p{color:var(--text-soft)}
.prose>:first-child{margin-top:0}
.prose img{border-radius:var(--radius);margin:1.6rem 0}

/* ---------- split ---------- */
.split{display:grid;gap:clamp(1.8rem,4vw,3.4rem);align-items:center;
  grid-template-columns:repeat(auto-fit,minmax(310px,1fr))}
.split img{border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}

/* ---------- gallery ---------- */
.gal{display:grid;gap:.9rem;grid-template-columns:repeat(auto-fit,minmax(232px,1fr))}
.gal img{border-radius:var(--radius);aspect-ratio:1/1;object-fit:cover;width:100%}

/* ---------- people ----------
   Portraits are tall and few; a 1/1 project-grid crop decapitates them. */
.people{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(240px,320px));
  justify-content:center}
.people img{border-radius:var(--radius);aspect-ratio:3/4;object-fit:cover;
  object-position:center 22%;width:100%;box-shadow:var(--shadow-lg)}

/* ---------- faq ---------- */
.faq{display:grid;gap:1.2rem;max-width:44rem;margin-inline:auto}
.faq-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:1.3rem 1.5rem}
.faq-item h3{font-size:1.02rem;margin-bottom:.5rem}
.faq-item p{color:var(--text-soft);margin:0;font-size:.96rem}

/* ---------- areas ---------- */
.chips{display:flex;flex-wrap:wrap;gap:.55rem;list-style:none;padding:0;margin:1.4rem 0 0}
.chips li{background:var(--teal-50);color:var(--brand-dark);border:1px solid var(--teal-100);
  padding:.44rem 1rem;border-radius:999px;font-weight:650;font-size:.93rem;transition:background .15s ease}
.chips li:has(a):hover{background:var(--teal-100)}
.chips li a{color:inherit;text-decoration:none}

/* ---------- quote form ---------- */
.quote{background:var(--brand-dark);color:var(--text-invert)}
.quote .sec-head h2{color:var(--text-invert)}
.quote .lede{color:rgba(255,255,255,.86)}
.qform{background:var(--surface);color:var(--text);border-radius:var(--radius-lg);
  padding:clamp(1.5rem,3vw,2.4rem);box-shadow:var(--shadow-lg)}
.frow{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.field{display:flex;flex-direction:column;gap:.34rem;margin-bottom:1rem}
.field label{font-weight:700;font-size:.9rem;color:var(--text-soft)}
.field input,.field select,.field textarea{font:inherit;font-size:1rem;padding:.76rem .9rem;
  border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--paper-0);
  color:var(--text);min-height:48px;width:100%}
.field textarea{min-height:118px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);
  outline:2px solid var(--teal-100)}
.req{color:var(--gold-700)}
.fnote{font-size:.86rem;color:var(--text-mute);margin:.9rem 0 0}
.fallback{background:var(--gold-100);border:1px solid var(--gold-500);color:var(--wood-800);
  padding:.9rem 1.1rem;border-radius:var(--radius-sm);font-size:.92rem;margin-bottom:1.3rem}

/* ---------- CTA band ---------- */
.band{background:linear-gradient(135deg,var(--teal-800),var(--teal-600));
  color:var(--text-invert);text-align:center}
.band h2{color:var(--text-invert)}
.band p{color:rgba(255,255,255,.9);max-width:38rem;margin-inline:auto;font-size:var(--step-1)}
.band-btns{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap;margin-top:1.6rem}

/* ---------- blog ---------- */
.posts{display:grid;gap:1.35rem;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.post-card h3{font-size:var(--step-1)}
.post-date{font-size:.84rem;color:var(--text-mute);font-weight:650;margin-bottom:.5rem}
.pager{display:flex;gap:.7rem;justify-content:center;margin-top:2.6rem}
.pager a,.pager span{padding:.62rem 1.15rem;border-radius:999px;text-decoration:none;
  font-weight:700;border:1.5px solid var(--border);color:var(--brand)}
.pager span[aria-current]{background:var(--brand);color:var(--text-invert);border-color:var(--brand)}

/* ---------- footer ---------- */
.ftr{background:var(--ink-900);color:rgba(255,255,255,.76);padding:3.2rem 0 6.5rem;font-size:.95rem}
.ftr-grid{display:grid;gap:2.2rem;grid-template-columns:repeat(auto-fit,minmax(215px,1fr))}
.ftr h4{color:var(--text-invert);font-size:1rem;margin-bottom:.9rem;letter-spacing:.02em}
.ftr ul{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.ftr a{color:rgba(255,255,255,.76);text-decoration:none}
.ftr a:hover{color:var(--gold-500)}
.ftr img{height:64px;width:auto;margin-bottom:1rem}
.ftr-tel{font-size:1.32rem;font-weight:800;color:var(--text-invert);text-decoration:none;
  display:inline-block;margin-bottom:.3rem}
.ftr-btm{border-top:1px solid rgba(255,255,255,.13);margin-top:2.6rem;padding-top:1.5rem;
  display:flex;gap:1rem;flex-wrap:wrap;justify-content:space-between;font-size:.87rem;
  color:rgba(255,255,255,.55)}

/* ---------- sticky mobile call bar ---------- */
.sticky{position:fixed;left:0;right:0;bottom:0;z-index:120;display:none;
  gap:.55rem;padding:.6rem .7rem calc(.6rem + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.97);border-top:1px solid var(--border);
  box-shadow:0 -6px 22px -10px rgba(20,26,27,.3)}
.sticky .btn{flex:1;padding:.8rem .6rem;font-size:.97rem}

@media (max-width:900px){
  .nav{display:none}
  .burger{display:block}
  .nav.open{display:flex;position:absolute;left:0;right:0;top:100%;background:var(--paper-0);
    flex-direction:column;padding:.7rem 1.2rem 1.2rem;gap:.15rem;
    border-bottom:1px solid var(--border);box-shadow:var(--shadow-lg)}
  .nav.open a{padding:.72rem .6rem;font-size:1.02rem}
  .hdr-call .hdr-tel span{display:none}
}
@media (max-width:620px){
  .sticky{display:flex}
  .hero-in{padding:2.6rem 0 2rem}
  .ftr{padding-bottom:7rem}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;transition-duration:.01ms!important;
    scroll-behavior:auto!important}
}
