/* Koori Constructions — shared page styles (3 Sep 2026).
   Chrome lives in kc-ui.css; this is the page body language used by the
   service pages and the project case studies so every page reads the same. */
:root{--navy:#1F3864;--cyan:#41B6E6;--ink:#1f2937;--mid:#4a5568;--line:#e5e7eb}
body{font-family:Inter,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);margin:0}
.k-hero{color:#fff;text-align:center;padding:5.5rem 1.4rem 4.5rem;background:var(--navy)}
.k-hero h1{color:#fff;font-size:clamp(2.1rem,5vw,3.4rem);font-weight:800;margin:0 0 .8rem;text-shadow:0 2px 14px rgba(0,0,0,.4)}
.k-hero p{font-size:clamp(1.05rem,2vw,1.3rem);max-width:720px;margin:0 auto 1.6rem;line-height:1.55;text-shadow:0 1px 10px rgba(0,0,0,.35)}
.k-btn{display:inline-block;background:var(--cyan);color:var(--navy);font-weight:800;text-decoration:none;padding:.95rem 1.8rem;border-radius:10px;margin:.3rem}
.k-btn.ghost{background:transparent;color:#fff;border:2px solid #fff}
.koori-artband{height:14px;background:url('/assets/koori-artwork-banner.jpg') center/cover no-repeat}
.k-sec{max-width:1200px;margin:0 auto;padding:3rem 1.4rem}
.k-sec h2{color:var(--navy);font-size:clamp(1.6rem,3vw,2.2rem);margin:0 0 .5rem}
.k-sub{color:var(--mid);margin:0 0 1.6rem;font-size:1.05rem}
.k-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1.4rem;align-items:start}
.kg-card{position:relative;display:block;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#fff;text-decoration:none;color:var(--navy);box-shadow:0 1px 3px rgba(0,0,0,.06);transition:transform .15s}
.kg-card:hover{transform:translateY(-3px)}
.kg-card img{width:100%;height:auto;display:block;background:#f5f8fb}
.kg-cap{display:block;padding:.8rem 1rem;font-weight:700;font-size:.95rem}
.kg-chip{position:absolute;top:.7rem;left:.7rem;z-index:2;background:var(--navy);color:#fff;font-size:.7rem;font-weight:800;letter-spacing:.04em;padding:.3rem .6rem;border-radius:999px}
.kr-card{margin:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.kr-card img{width:100%;height:auto;display:block}
.kr-body{padding:1.1rem 1.2rem}
.kr-stars{color:#f5b301;letter-spacing:.12em;margin-bottom:.4rem}
.kr-card blockquote{margin:0 0 .6rem;line-height:1.6;color:var(--ink)}
.kr-card figcaption{color:#6b7280;font-size:.9rem;font-weight:600}
.k-vgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,300px));gap:1.2rem;max-width:960px}
.kv-card{margin:0;background:#000;border-radius:14px;overflow:hidden;box-shadow:0 6px 20px rgba(31,56,100,.18)}
.kv-card video{width:100%;display:block;aspect-ratio:9/16;object-fit:cover;background:#000}
.kv-card figcaption{padding:.75rem 1rem;font-weight:700;color:#fff;background:var(--navy);font-size:.94rem}
.k-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.2rem}
.k-step{background:#f5f8fb;border-radius:14px;padding:1.4rem}
.k-step b{display:block;color:var(--navy);font-size:1.05rem;margin-bottom:.3rem}
.k-step span{color:var(--mid);line-height:1.55}
.k-cta{background:var(--navy);color:#fff;border-radius:16px;padding:2.6rem 1.4rem;text-align:center;margin:0 1.4rem}
.k-cta h2{color:#fff;margin:0 0 .5rem}
.k-cta p{color:rgba(255,255,255,.9);max-width:640px;margin:0 auto 1.2rem}
/* case studies */
.k-crumb{max-width:1200px;margin:0 auto;padding:1rem 1.4rem 0;color:var(--mid);font-size:.9rem}
.k-crumb a{color:var(--navy);text-decoration:none;font-weight:600}
.k-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:0 0 2rem}
.k-facts div{background:#fff;padding:1.1rem 1.2rem}
.k-facts dt{color:var(--mid);font-size:.76rem;letter-spacing:.09em;text-transform:uppercase;font-weight:700;margin:0 0 .3rem}
.k-facts dd{margin:0;color:var(--navy);font-weight:800;font-size:1.06rem;line-height:1.35}
.k-scope{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.55rem 1.6rem}
.k-scope li{position:relative;padding-left:1.55rem;color:var(--mid);line-height:1.6}
.k-scope li::before{content:"";position:absolute;left:0;top:.55em;width:9px;height:9px;border-radius:2px;background:var(--cyan)}
.k-note{background:#f5f8fb;border-left:4px solid var(--cyan);border-radius:0 12px 12px 0;padding:1.1rem 1.3rem;color:var(--mid);line-height:1.65;margin:1.6rem 0 0}
.k-gal{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.2rem;align-items:start}
.k-gal img{width:100%;height:auto;display:block;border-radius:12px;border:1px solid var(--line)}
.k-gal figure{margin:0}
.k-gal figcaption{padding:.5rem .2rem 0;color:var(--mid);font-size:.88rem}
.k-ba{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;align-items:start}
.k-ba figure{margin:0}
.k-ba img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:12px;border:1px solid var(--line);display:block}
.k-ba figcaption{padding:.5rem .2rem 0;font-weight:700;color:var(--navy)}
.k-reg{width:100%;border-collapse:collapse;font-size:.95rem}
.k-reg th{text-align:left;background:var(--navy);color:#fff;padding:.75rem .9rem;font-size:.78rem;letter-spacing:.07em;text-transform:uppercase}
.k-reg td{padding:.75rem .9rem;border-bottom:1px solid var(--line);color:var(--mid);vertical-align:top}
.k-reg td:first-child{color:var(--navy);font-weight:700}
.k-reg tr:hover td{background:#f8fafc}
.k-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.kg-stat{height:230px;background:linear-gradient(135deg,#1F3864,#2b4f86);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:1rem 1.2rem;position:relative}
.kg-stat::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:var(--cyan)}
.kg-stat b{font-size:2.3rem;font-weight:800;line-height:1}
.kg-stat span{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.7);margin:.3rem 0 .8rem}
.kg-stat em{font-style:normal;font-size:.86rem;line-height:1.45;color:rgba(255,255,255,.9);max-width:15rem}

.kg-card:has(.kg-stat) .kg-chip{background:var(--cyan);color:var(--navy)}
.k-grid{align-items:stretch}
.kg-card{display:flex;flex-direction:column}
.kg-cap{margin-top:auto}
/* .hero-internal was used on /health/ and /community/ but had no CSS anywhere —
   both pages rendered as plain white with no hero (found 3 Sep 2026). */
.hero-internal{color:#fff;text-align:center;padding:5rem 1.4rem 4rem;background:var(--navy);position:relative}
.hero-internal h1{color:#fff;font-size:clamp(2.1rem,5vw,3.2rem);font-weight:800;margin:0 0 .8rem;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.hero-internal p{color:#fff;font-size:clamp(1.02rem,2vw,1.22rem);max-width:760px;margin:0 auto;line-height:1.6;text-shadow:0 1px 10px rgba(0,0,0,.4)}
.hero-internal a{color:#fff}
/* Safety net: a grid inside a flex parent keeps min-width:auto and refuses to
   shrink, which pushed the home page 173px wide on a 375px phone (3 Sep 2026). */
.hv-grid,.k-grid,.k-vgrid,.k-steps,.k-gal,.k-ba,.k-facts,.k-scope{min-width:0}
img,video{max-width:100%}
img{height:auto}  /* width/height attrs reserve space; CSS width must not stretch (7 Sep 2026) */
/* A category with only one or two finished jobs must not stretch a card across
   the whole row — keep the tile at a normal size (Brad, 3 Sep 2026). */
.k-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.k-grid:has(.kg-card:only-child){grid-template-columns:repeat(auto-fill,minmax(320px,520px))}
/* Timelapse rows scroll sideways on a phone instead of stacking into a tower
   (Brad, 3 Sep 2026: "can't scroll across for the timelapse videos"). */
@media(max-width:760px){
  .k-vgrid,.hv-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;gap:.9rem;padding-bottom:.6rem;scrollbar-width:thin}
  .k-vgrid > *,.hv-grid > *{flex:0 0 78%;scroll-snap-align:center}
  .k-vgrid::after,.hv-grid::after{content:"";flex:0 0 .2rem}
}

/* lightbox — any gallery photo enlarges in place (Brad, 7 Sep 2026) */
.kc-lb{position:fixed;inset:0;background:rgba(15,25,45,.94);z-index:2000;display:none;align-items:center;justify-content:center;padding:1rem}
.kc-lb.open{display:flex}
.kc-lb img{max-width:min(96vw,1400px);max-height:84vh;width:auto;height:auto;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.kc-lb figcaption{position:absolute;left:0;right:0;bottom:1.2rem;text-align:center;color:#fff;font-weight:600;padding:0 1rem}
.kc-lb-x,.kc-lb-prev,.kc-lb-next{position:absolute;background:rgba(255,255,255,.14);color:#fff;border:0;border-radius:999px;width:46px;height:46px;font-size:1.5rem;cursor:pointer;line-height:1}
.kc-lb-x{top:1rem;right:1rem}.kc-lb-prev{left:1rem;top:50%;transform:translateY(-50%)}.kc-lb-next{right:1rem;top:50%;transform:translateY(-50%)}
.kg-card{cursor:zoom-in}
