/* K.O. Solutions FL demo. Design system per art-direction.md (white and sky blue, his own brand colors).
   Mobile first at 375px, desktop layout from 900px. No frameworks, no build step. */

/* ---------- 1. Tokens ---------- */
:root{
  --white:#FFFFFF;       /* page ground, the clouds */
  --cloud:#F5F9FD;       /* off-white band */
  --sky:#E4F0FA;         /* pale sky band */
  --sky-deep:#CFE3F4;    /* deeper sky, fills and motifs */
  --blue:#1470AF;        /* his brand blue (Squarespace darkAccent) */
  --blue-dn:#0F5588;     /* hover/pressed */
  --blue-lt:#8EB6DC;     /* his light accent */
  --ink:#14293A;         /* deep blue-black text */
  --ink-2:#546A7B;       /* secondary text */
  --rule:#CBDDEC;        /* rules, borders, mesh lines */

  --font-display:"Big Shoulders Display",Impact,"Arial Narrow",sans-serif;
  --font-body:"IBM Plex Sans",Arial,sans-serif;
  --font-mono:"IBM Plex Mono",Consolas,monospace;

  --h1:40px; --h1-lh:44px;
  --h2:30px;
  --h3:22px;
  --body:17px;
  --mono:12px;

  --pad:20px;
  --max:1120px;
  --head-h:56px;
}
@media (min-width:900px){
  :root{ --h1:64px; --h1-lh:.95; --h2:38px; --pad:32px; }
}

/* ---------- 2. Base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--body);
  line-height:1.6;
  font-weight:400;
}
/* grain overlay: 256px tileable noise, 3.5%, multiply, never interactive */
body::before{
  content:"";
  position:fixed; inset:0;
  background:url(assets/grain.png);
  opacity:.02;
  mix-blend-mode:multiply;
  pointer-events:none;
  z-index:9999;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
p{ margin:0 0 1em; }
ul{ margin:0 0 1em; padding-left:1.2em; }
h1,h2,h3{
  font-family:var(--font-display);
  text-transform:uppercase;
  letter-spacing:-.01em;
  line-height:.95;
  margin:0 0 .4em;
}
h1{ font-size:var(--h1); line-height:var(--h1-lh); font-weight:800; }
h2{ font-size:var(--h2); font-weight:800; }
h3{ font-size:var(--h3); font-weight:700; }
.wrap{ width:100%; max-width:var(--max); margin:0 auto; padding:0 var(--pad); }
.lead{ font-size:18px; max-width:60ch; }
.muted{ color:var(--ink-2); }

/* spec-sheet voice */
.mono{
  font-family:var(--font-mono);
  font-weight:500;
  font-size:var(--mono);
  text-transform:uppercase;
  letter-spacing:.08em;
}
.label{ display:block; color:var(--ink-2); margin-bottom:10px; }
.on-sky .label{ color:var(--ink-2); }

/* icons: 32px grid, currentColor */
.ico{ width:32px; height:32px; display:block; color:var(--blue); flex:none; }

/* motif: external SVG used as an alpha mask so it takes any color via background */
.motif{
  display:block;
  aspect-ratio:320/120;
  background:currentColor;
  -webkit-mask:url(assets/motif.svg) center/contain no-repeat;
  mask:url(assets/motif.svg) center/contain no-repeat;
}
.motif--divider{ width:120px; margin:0 auto; color:var(--sky-deep); }
.foot-logo{ display:block; width:230px; margin:0 0 18px; }
.foot-logo img{ width:100%; height:auto; }

/* ---------- 3. Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:48px; padding:0 20px;
  background:var(--blue); color:#FFFFFF;
  font-family:var(--font-body); font-weight:600; font-size:17px;
  text-decoration:none; border:0; border-radius:2px; cursor:pointer;
  transition:background .15s;
}
.btn:hover,.btn:focus-visible{ background:var(--blue-dn); }
.btn:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.btn .ico{ width:22px; height:22px; color:currentColor; }
.btn--block{ width:100%; }
.btn--ghost{
  background:var(--white); color:var(--blue);
  border:1px solid var(--sky-deep);
}
.btn--ghost:hover,.btn--ghost:focus-visible{ background:var(--cloud); border-color:var(--blue); }
.btn--ghost .ico{ color:currentColor; }

/* ---------- 4. Header ---------- */
.site-head{
  position:sticky; top:0; z-index:50;
  background:var(--white); color:var(--ink);
  height:var(--head-h);
  border-bottom:1px solid var(--rule);
}
.site-head .wrap{
  height:100%; display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{
  font-family:var(--font-display); font-weight:800; font-size:24px;
  text-transform:uppercase; letter-spacing:-.01em; line-height:1;
  text-decoration:none; color:var(--ink); white-space:nowrap;
}
.brand span{ color:var(--blue); }
.site-head .btn{ min-height:40px; padding:0 12px; font-size:14px; gap:8px; }
.site-head .btn .num{ font-family:var(--font-mono); font-weight:500; letter-spacing:0; white-space:nowrap; }
.site-head .btn .ico{ width:18px; height:18px; }
@media (min-width:900px){
  .brand{ font-size:28px; }
  .head-right{ display:flex; align-items:center; gap:24px; }
}

/* ---------- 5. Hero ---------- */
.hero{
  position:relative; isolation:isolate;
  min-height:82vh; min-height:82svh;
  display:flex; align-items:flex-end;
  color:var(--ink);
  background:var(--sky);
  overflow:hidden;
}
.hero__img,.hero__img img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-3;
}
.hero__img img{ object-position:center 40%; }
/* sky into cloud: the photo reads at the top, the copy sits on white */
.hero::after{
  content:""; position:absolute; inset:0; z-index:-2;
  background:linear-gradient(to bottom, rgba(255,255,255,0) 10%, rgba(255,255,255,.55) 34%, rgba(255,255,255,.93) 62%, var(--white) 86%);
}
.hero__motif{
  position:absolute; left:50%; bottom:8%; transform:translateX(-50%);
  width:min(960px,140%); color:var(--blue); opacity:.07; z-index:-1;
}
.hero .wrap{ position:relative; padding-top:64px; padding-bottom:40px; }
.hero h1{ max-width:14ch; margin-bottom:12px; }
.hero .spec{ color:var(--ink); margin:0 0 18px; }
.hero .lead{ color:var(--ink); margin-bottom:22px; }
.hero__cta{ display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.hero--short{ min-height:60vh; min-height:60svh; }
/* inner pages: the copy starts higher, so the wash has to come up with it */
.hero--short::after{
  background:linear-gradient(to bottom, rgba(255,255,255,0) 4%, rgba(255,255,255,.62) 24%, rgba(255,255,255,.95) 52%, var(--white) 80%);
}
@media (min-width:900px){
  .hero{ min-height:78vh; }
  .hero .wrap{ padding-top:120px; padding-bottom:64px; }
  .hero h1{ max-width:16ch; }
  .hero .lead{ font-size:20px; }
  .hero__cta{ flex-direction:row; align-items:center; gap:20px; }
  .hero--short{ min-height:56vh; }
}

/* ---------- 6. Sections ---------- */
.section{ padding:56px 0; }
.section--tight{ padding:32px 0; }
.section h2{ margin-bottom:.5em; }
.section__intro{ max-width:62ch; margin-bottom:28px; }
.divider{ padding:8px 0 40px; }
@media (min-width:900px){
  .section{ padding:88px 0; }
}

/* sky band: the one tinted section, everything else is white */
.on-sky{ background:var(--sky); color:var(--ink); }
.on-sky .muted{ color:var(--ink-2); }

/* rule helper: depth is a 1px sky rule, nothing else */
.rule-top{ border-top:1px solid var(--rule); }

/* ---------- 7. Services grid ---------- */
.services{
  display:grid; grid-template-columns:repeat(2,1fr); gap:28px 20px;
  list-style:none; margin:0; padding:0;
}
.service{ border-top:1px solid var(--rule); padding-top:14px; }
.service a{ text-decoration:none; display:block; color:inherit; }
.service a:hover h3,.service a:focus-visible h3{ color:var(--blue-dn); }
.service .ico{ margin-bottom:12px; }
.service h3{ font-size:20px; margin-bottom:6px; }
.service p{ margin:0; font-size:15px; color:var(--ink-2); }
@media (min-width:900px){
  .services{ grid-template-columns:repeat(4,1fr); gap:36px 28px; }
  .service h3{ font-size:22px; }
  .service p{ font-size:16px; }
}

/* ---------- 8. Proof band (dark, mesh at 12%) ---------- */
.proof{
  position:relative; isolation:isolate;
  border-top:1px solid var(--sky-deep);
}
.proof::before{
  content:""; position:absolute; inset:0; z-index:-1; opacity:.10;
  /* same 6x6 mesh as motif.svg's #ko-mesh, in Travertine */
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='6'><path d='M0 3H6M3 0V6' stroke='%231470AF' stroke-width='0.5'/></svg>");
}
.proof__facts{
  display:flex; flex-wrap:wrap; gap:10px 28px; margin:0 0 28px; padding:0; list-style:none;
}
.proof__facts li{ color:var(--ink); }
.proof__facts strong{ font-family:var(--font-display); font-size:34px; font-weight:800; line-height:1; display:block; color:var(--blue); }
.reviews{ display:grid; gap:24px; margin:0; padding:0; list-style:none; }
.review{
  border-top:1px solid var(--rule); padding-top:16px; margin:0;
}
.review blockquote{ margin:0 0 10px; font-size:17px; }
.review blockquote p{ margin:0; }
.review figcaption{ color:var(--ink-2); }
@media (min-width:900px){
  .reviews{ grid-template-columns:repeat(3,1fr); gap:32px; }
  .reviews--4{ grid-template-columns:repeat(2,1fr); }
  .proof__facts strong{ font-size:44px; }
}

/* ---------- 9. Why (his four claims) ---------- */
.why{ display:grid; gap:24px; margin:0; padding:0; list-style:none; }
.why li{ border-top:1px solid var(--rule); padding-top:14px; }
.why .q{ font-style:italic; color:var(--ink-2); margin:0 0 8px; font-size:16px; }
.why h3{ font-size:20px; margin-bottom:6px; }
.why p:last-child{ margin:0; }
@media (min-width:900px){
  .why{ grid-template-columns:repeat(2,1fr); gap:36px 40px; }
}

/* ---------- 10. Photos, gallery ---------- */
.frame{ border:1px solid var(--rule); margin:0; background:var(--white); }
.frame img{ width:100%; }
.frame figcaption{ padding:8px 10px; color:var(--ink-2); line-height:1.35; }
.strip{ display:grid; gap:16px; }
.gallery{ columns:2; column-gap:16px; }
.gallery .frame{ break-inside:avoid; margin-bottom:16px; }
@media (min-width:900px){
  .strip{ grid-template-columns:2fr 3fr 3fr; align-items:start; }
  .gallery{ columns:3; column-gap:24px; }
  .gallery .frame{ margin-bottom:24px; }
}

/* ---------- 11. Cities ---------- */
.cities{ display:grid; gap:20px; margin:0 0 24px; padding:0; list-style:none; }
.city{ border-top:1px solid var(--rule); padding-top:14px; }
.city a{ text-decoration:none; }
.city a:hover h3{ color:var(--blue-dn); }
.city p{ margin:0; color:var(--ink-2); }
.towns{ margin:0; }
@media (min-width:900px){
  .cities{ grid-template-columns:repeat(2,1fr); gap:32px; }
}

/* ---------- 12. CTA band ---------- */
.cta{ padding:44px 0; }
.cta h2{ margin-bottom:8px; }
.cta p{ max-width:56ch; }
.cta__row{ display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.cta .phone-big{
  font-family:var(--font-mono); font-weight:500; font-size:22px; letter-spacing:.02em;
  color:var(--blue); text-decoration:none;
}
.cta .phone-big:hover{ color:var(--blue-dn); }
@media (min-width:900px){
  .cta{ padding:64px 0; }
  .cta__row{ flex-direction:row; align-items:center; gap:28px; }
}

/* ---------- 13. Service page copy ---------- */
.copy{ max-width:66ch; }
.copy h2{ margin-top:1.2em; }
.copy h2:first-child{ margin-top:0; }
.what{ columns:1; }
.what li{ margin-bottom:6px; }
.faq{ max-width:66ch; }
.faq details{ border-top:1px solid var(--rule); padding:14px 0; }
.faq details:last-child{ border-bottom:1px solid var(--rule); }
.faq summary{
  cursor:pointer; font-weight:600; font-size:18px; list-style:none;
  display:flex; justify-content:space-between; gap:12px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; font-family:var(--font-mono); color:var(--blue); }
.faq details[open] summary::after{ content:"-"; }
.faq details p{ margin:12px 0 0; }
.also{ margin:28px 0 0; padding-top:18px; border-top:1px solid var(--rule); color:var(--ink-2); }
.also a{ color:var(--blue); }

.related{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:10px; }
.related a{
  display:inline-block; padding:8px 12px; border:1px solid var(--rule);
  text-decoration:none; font-size:15px; font-weight:600;
}
.related a:hover{ border-color:var(--blue); color:var(--blue); }
.two-col{ display:grid; gap:32px; }
@media (min-width:900px){
  .what{ columns:2; column-gap:40px; }
  .two-col{ grid-template-columns:3fr 2fr; gap:56px; align-items:start; }
}

/* ---------- 14. Form ---------- */
.lead-form{ max-width:560px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-weight:600; margin-bottom:6px; font-size:15px; }
.field input,.field select,.field textarea{
  width:100%; min-height:48px; padding:10px 12px;
  font:inherit; color:var(--ink); background:var(--white);
  border:1px solid var(--rule); border-radius:0;
}
.field textarea{ min-height:120px; resize:vertical; }
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--blue-dn); box-shadow:inset 0 0 0 1px var(--blue-dn);
}
.field .err{ display:none; color:#8A3A1E; font-size:14px; margin-top:6px; }
.field.bad .err{ display:block; }
.field.bad input,.field.bad select{ border-color:#8A3A1E; }
.form-note{ font-size:14px; color:var(--ink-2); margin:10px 0 0; }
.sent{
  display:none; border:1px solid var(--rule); border-top:3px solid var(--blue);
  padding:20px; margin-top:16px; background:var(--cloud);
}
.sent.show{ display:block; }
.sent p:last-child{ margin:0; }
.lead-form.done{ display:none; }

/* contact page */
.contact-grid{ display:grid; gap:32px; }
.contact-list{ list-style:none; margin:0 0 24px; padding:0; }
.contact-list li{ border-top:1px solid var(--rule); padding:14px 0; }
.contact-list .mono{ display:block; color:var(--ink-2); margin-bottom:4px; }
.contact-list a{ font-weight:600; text-decoration:none; }
.contact-list a:hover{ color:var(--blue-dn); }
.phone-xl{
  display:inline-block; font-family:var(--font-mono); font-weight:500;
  font-size:28px; letter-spacing:.02em; text-decoration:none; color:var(--blue);
}
@media (min-width:900px){
  .contact-grid{ grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
  .phone-xl{ font-size:34px; }
}

/* ---------- 15. Footer ---------- */
.site-foot{ background:var(--cloud); color:var(--ink); border-top:1px solid var(--rule); padding:48px 0 32px; }
.foot-grid{ display:grid; gap:28px; }
.site-foot p{ margin:0 0 8px; }
.site-foot a{ color:var(--ink); }
.site-foot a:hover{ color:var(--blue); }
.foot-links{ list-style:none; margin:0; padding:0; }
.foot-links li{ margin:0 0 8px; }
.foot-links a{ text-decoration:none; }
.foot-links .label{ color:var(--ink-2); }
.foot-legal{
  border-top:1px solid var(--rule); margin-top:32px; padding-top:20px;
  color:var(--ink-2);
}
.foot-legal p{ margin:0 0 6px; }
@media (min-width:900px){
  .foot-grid{ grid-template-columns:2fr 1fr 1fr; gap:48px; }
}

/* ---------- 16. Motion ---------- */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ transition:none !important; animation:none !important; }
}
