/* ==========================================================================
   SolarLogic — globals.css
   THE ONLY STYLESHEET. Every page and mini-app uses it, so the whole site
   stays consistent. Sections:
     1. Design tokens (colors, type, sizes)
     2. Reset & base typography
     3. Layout, backgrounds & page heroes
     4. Buttons
     5. Header & footer
     6. Shared components (cards, lists, forms, photos, stats…)
     7. Page sections (home hero, projects, assessment cards…)
     8. Mini-apps
     9. Motion
    10. Responsive
   Rules are written as reusable classes, not per-page overrides: if a
   section needs a new look, add a class here and use it in the HTML.
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Brand */
  --lime: #D2EC2A;          /* website lime (logo is #C9DA2B, brightened for screens) */
  --lime-light: #DFF54F;    /* button hover */
  --charcoal: #262626;      /* matches the logo background */
  --ink: #1E1E1E;           /* footer */
  --red: #E53935;           /* rare accent only */

  /* Neutrals & daylight tints */
  --white: #FFFFFF;
  --off: #F5F5F0;
  --pale: #F4FBE1;          /* pale lime section */
  --sky: #EAF4F9;           /* sky-blue section */
  --grey: #6B6B6B;          /* secondary text */
  --line: #E3E3DC;          /* borders */

  /* Type */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Shape & layout */
  --radius: 22px;
  --radius-sm: 10px;
  --max: 1180px;
  --gutter: 24px;
  --header-h: 76px;
  --section-pad: 120px;

  /* Elevation */
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, .12);
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, .08);
}

/* 2. RESET & BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 800; }

.lead { font-size: 1.2rem; color: var(--grey); max-width: 640px; }
h1 + .lead, h2 + .lead { margin-top: 18px; }
.h1-sm { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.body-lg { font-size: 1.1rem; color: #444; }
.muted { color: var(--grey); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; }

/* Small uppercase label with the logo's slanted stripe */
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--grey);
  margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 8px; background: var(--lime); transform: skewX(-30deg); }

/* Highlights
   .hl       → lime highlighter stroke (on light backgrounds)
   .hl       → plain lime text inside .bg-dark
   .hl-box   → lime text on a charcoal box (hero words)              */
.hl { background: linear-gradient(transparent 62%, var(--lime) 62%); }
.bg-dark .hl { background: none; color: var(--lime); }
.hl-box {
  color: var(--lime); background: var(--charcoal);
  padding: 0 .16em .04em; border-radius: .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* 3. LAYOUT & SECTIONS --------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; }
.section-head { margin-bottom: 50px; }
.section-head .lead { margin-top: 18px; }

.bg-white { background: var(--white); }
.bg-pale  { background: var(--pale); }
.bg-sky   { background: var(--sky); }
.bg-dawn  { background: linear-gradient(180deg, var(--white) 0%, var(--pale) 100%); }
.bg-dusk  { background: linear-gradient(180deg, var(--pale) 0%, var(--white) 100%); }
.bg-dark  { background: var(--charcoal); color: var(--white); }
.bg-dark .eyebrow { color: #BDBDB5; }
.bg-dark .lead { color: #CFCFC8; }

/* Inner-page hero (every page except Home) */
.page-hero { background: var(--sky); padding: 90px 0 80px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 820px; }
.page-hero .lead { margin-top: 20px; color: #4A4A4A; }
.page-hero::after { /* logo stripes */
  content: ""; position: absolute; right: 8%; bottom: 40px; width: 180px; height: 14px;
  background: linear-gradient(90deg, var(--lime) 0 45%, transparent 45% 52%, var(--red) 52% 62%, transparent 62% 69%, var(--charcoal) 69%);
  transform: skewX(-35deg);
}

/* Inner-page hero with a full-bleed photo; the text overlaps it.
   <section class="page-hero with-photo"><img class="page-hero-photo" …><div class="wrap">…</div></section>
   A soft sky-colored scrim on the left keeps the text readable. */
.page-hero.with-photo { min-height: 540px; display: flex; align-items: center; padding: 120px 0 110px; }
.page-hero.with-photo .wrap { position: relative; z-index: 2; width: 100%; }
.page-hero.with-photo h1 { max-width: 640px; }
.page-hero.with-photo .lead { max-width: 560px; }
.page-hero-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 75% 40%;
}
.page-hero.with-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(234,244,249,.97) 0%, rgba(234,244,249,.9) 34%,
    rgba(234,244,249,.45) 56%, rgba(234,244,249,0) 74%);
}
.page-hero.with-photo::after { z-index: 3; }
/* .photo-right: keep the photo on the right ~60% (for portrait photos or
   subjects in the middle); the text still overlaps its faded left edge. */
.page-hero.with-photo.photo-right .page-hero-photo { left: auto; width: 60%; object-position: 50% 40%; }
.page-hero.with-photo.photo-right::before {
  background: linear-gradient(90deg,
    rgba(234,244,249,1) 0%, rgba(234,244,249,1) 40%,
    rgba(234,244,249,.6) 52%, rgba(234,244,249,0) 66%);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero .hero-actions { margin-top: 30px; }

/* Photo with a text card that overlaps it.
   <div class="split overlap"><div class="media split-media">…</div><div class="overlap-card">…</div></div>
   Add .reverse to put the photo on the right. */
.split.overlap { grid-template-columns: 1.2fr 1fr; gap: 0; }
.split.overlap > .split-media { min-height: 540px; }
.overlap-card {
  position: relative; z-index: 2; margin-left: -120px;
  background: var(--white); border-radius: var(--radius); padding: 48px 44px;
  box-shadow: 0 30px 70px rgba(0,0,0,.14);
}
.split.overlap.reverse { grid-template-columns: 1fr 1.2fr; }
.split.overlap.reverse > .overlap-card { margin-left: 0; margin-right: -120px; order: 1; }
.split.overlap.reverse > .split-media { order: 2; }
.overlap-card h2 { margin-bottom: 18px; }
.overlap-card p { margin-bottom: 16px; }
.overlap-card .ticks { margin-bottom: 28px; }
.overlap-card .ticks li:last-child { border-bottom: 0; }

/* 4. BUTTONS ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; text-decoration: none;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-light); }
.btn-dark { background: var(--charcoal); color: var(--lime); }
.btn-ghost { border-color: currentColor; background: transparent; }
.arrow::after { content: "→"; }

/* 5. HEADER & FOOTER (rendered by /assets/js/components/) ----------------- */
site-header { display: block; position: sticky; top: 0; z-index: 50; min-height: var(--header-h); background: var(--charcoal); }
.site-header { background: var(--charcoal); color: var(--white); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav-logo img { height: 44px; width: auto; }
.nav-menu { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-menu a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .85; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { opacity: 1; color: var(--lime); }
.nav-menu .btn { opacity: 1; padding: 12px 20px; }
.nav-menu .btn:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.8rem; cursor: pointer; }

site-footer { display: block; }
.site-footer { background: var(--ink); color: #BDBDB5; padding: 70px 0 34px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-logo { display: inline-block; background: var(--charcoal); border-radius: 8px; padding: 8px 10px; margin-bottom: 18px; }
.foot-logo img { height: 40px; width: auto; }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.foot-legal { border-top: 1px solid #3A3A3A; margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

/* Floating "free estimate" button (added by site-header.js on every page) */
.estimate-cta {
  position: fixed; z-index: 60; top: calc(var(--header-h) + 18px); right: 20px;
  display: flex; align-items: stretch; max-width: 400px;
  background: var(--white); border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
  opacity: 0; transform: translateX(24px); pointer-events: none;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.estimate-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.estimate-cta::before {
  content: ""; position: absolute; top: 0; left: 0; width: 96px; height: 10px; background: var(--lime);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.estimate-cta-link { display: flex; align-items: center; gap: 14px; padding: 22px 8px 18px 24px; text-decoration: none; color: var(--charcoal); }
.estimate-cta-text { display: grid; line-height: 1.3; }
.estimate-cta-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1rem; white-space: nowrap; }
.estimate-cta-text span { font-size: .82rem; color: var(--grey); }
.estimate-cta-short { display: none; }
.estimate-cta-arrow { font-weight: 800; font-size: 1.1rem; transition: transform .2s; }
.estimate-cta-link:hover .estimate-cta-arrow { transform: translateX(4px); }
.estimate-cta-close { flex: none; align-self: flex-start; background: none; border: 0; color: var(--grey); font-size: 1.3rem; line-height: 1; padding: 12px 14px 8px 6px; cursor: pointer; }
.estimate-cta-close:hover { color: var(--charcoal); }
@media print { .estimate-cta { display: none !important; } }

/* 6. SHARED COMPONENTS --------------------------------------------------- */

/* CARD SHAPE — the one look for every box on the site.
   Sharp top-left corner with a slanted lime tab (from the logo's bolt),
   rounded on the other three corners. Any new box class should be added
   to these two selector lists so it matches automatically. */
.card, .tab-card, .ci, .project, .overlap-card, .form, .callout, .dark-card, .app-card {
  position: relative;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}
.card::before, .tab-card::before, .ci::before, .project::before, .overlap-card::before,
.form::before, .callout::before, .dark-card::before, .app-card::before {
  content: ""; position: absolute; top: 0; left: 0; z-index: 3;
  width: 96px; height: 10px; background: var(--lime);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
/* Shared white-card surface */
.card, .tab-card, .ci, .callout, .app-card { background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.06); }


/* Photo placeholder — swap for <img> when real photos arrive */
.ph {
  position: relative; display: flex; align-items: flex-end; padding: 22px;
  font-size: .85rem; font-weight: 500; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(-55deg, rgba(255,255,255,.28) 0 22px, transparent 22px 44px),
    linear-gradient(160deg, #B9DFF3 0%, #E4F2FA 45%, #F1FBD6 100%);
}
.ph span { background: rgba(255,255,255,.92); color: var(--charcoal); padding: 6px 10px; border-radius: 8px; }
.photo { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; }

/* Photo frame: <div class="media"><img src="…" alt="…"></div>
   The image fills the frame and is cropped to fit. */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sky); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media figcaption, .media .caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  background: rgba(255,255,255,.92); color: var(--charcoal);
  padding: 6px 10px; border-radius: 8px; font-size: .82rem; font-weight: 600;
}

/* Stats row (numbers from real projects only) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { border-top: 3px solid var(--lime); padding-top: 18px; }
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.stat p { margin-top: 10px; color: var(--grey); }
.bg-dark .stat p { color: #CFCFC8; }
.bg-dark .stat-num { color: var(--lime); }

/* Two-column text + media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse > .split-media { order: 2; }
.split-media { min-height: 460px; }

/* List with slanted lime ticks */
.ticks { list-style: none; margin: 28px 0 34px; }
.ticks li { padding: 12px 0 12px 38px; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 20px; width: 20px; height: 9px; background: var(--lime); transform: skewX(-30deg); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-size: .85rem; font-weight: 600; padding: 7px 14px; border: 1.5px solid var(--charcoal); border-radius: 999px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 36px 28px 28px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--grey); margin-top: 8px; }

/* Numbered steps (used on dark backgrounds) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { border-top: 3px solid var(--lime); padding-top: 22px; }
.step-num { font-family: var(--font-display); font-weight: 900; font-size: 3.2rem; color: var(--lime); line-height: 1; }
.step h3 { margin: 14px 0 8px; }
.step p { font-size: .98rem; opacity: .8; }

/* Anti-scam banner */
.trust { background: var(--lime); color: var(--ink); padding: 50px 0; }
.trust-inner { display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.trust h3 { font-size: 1.5rem; }
.trust p { max-width: 640px; margin-top: 6px; }

/* Call-to-action band at the bottom of pages */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 760px; margin: 0 auto; }
.cta-band .lead { margin: 18px auto 34px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--grey); }

/* Forms */
.form { background: var(--white); color: var(--charcoal); padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-shadow: var(--shadow-soft); }
.form > * { min-width: 0; }
.form .full { grid-column: 1 / -1; }
.form label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font-size: .98rem; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--off); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 3px var(--lime); background: var(--white); }
.form .btn { border: 0; }
.consent { font-size: .82rem; color: var(--grey); font-weight: 400 !important; display: flex !important; gap: 10px; align-items: flex-start; }
.consent input { width: auto !important; margin-top: 4px; }

/* Segmented choice (radio buttons styled as tabs) */
.seg { display: flex; gap: 10px; }
.seg label { flex: 1; margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 0; top: 0; }
.seg span { display: block; text-align: center; padding: 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; background: var(--off); }
.seg input:checked + span { background: var(--charcoal); color: var(--lime); border-color: var(--charcoal); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--lime); }

/* Placeholder text still to be filled in */
.todo { background: #FFF4C2; padding: 0 4px; border-radius: 4px; font-style: italic; }

/* 7. PAGE SECTIONS ------------------------------------------------------- */

/* Logo stripes mark: <div class="stripes"><i></i><i></i><i></i></div> */
.stripes { display: inline-flex; gap: 12px; }
.stripes i { display: block; width: 64px; height: 13px; background: var(--lime); transform: skewX(-35deg); }
.stripes i:nth-child(2) { width: 22px; background: var(--red); }
.stripes i:nth-child(3) { background: var(--charcoal); }

/* Home hero: full-bleed photo, text on the left over a white fade */
.hero { position: relative; background: var(--sky); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 38%, rgba(255,255,255,.4) 60%, rgba(255,255,255,0) 76%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 660px; align-items: center; }
.hero-copy { padding: 100px 40px 130px 0; }
.hero-line { display: inline-block; }
.hero-copy p { font-size: 1.25rem; color: #4A4A4A; max-width: 520px; margin: 26px 0 38px; }
.hero-stripes { position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 48px; z-index: 3; }

/* Two-column text block (mission) with a pull-quote */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.two-col p { font-size: 1.15rem; margin-bottom: 18px; }
.pull-quote { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem !important; line-height: 1.3; border-left: 6px solid var(--lime); padding-left: 22px; margin-top: 30px; }

/* Big photo cards linking to Homes / Business */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--white); }
.path-media { position: absolute; inset: 0; border-radius: 0; }
.path-body { position: relative; padding: 36px; background: linear-gradient(transparent, rgba(20,20,20,.85) 45%); }
.path-body p { color: #E2E2DB; margin: 10px 0 18px; max-width: 420px; }
.path-more { font-family: var(--font-display); font-weight: 800; color: var(--lime); }
.path:hover .path-more { text-decoration: underline; }

/* Photo collage + text */
.craft-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: center; }
.craft-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px; gap: 14px; }
.craft-main { grid-column: 1 / -1; }

/* Section heading with a button on the right */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* Row of three captioned photos */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-row .media { height: 300px; margin: 0; }
.stats + .photo-row { margin-top: 50px; }

/* Label tag (e.g. COMMERCIAL) */
.tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase; background: var(--charcoal); color: var(--lime);
  padding: 5px 10px; border-radius: 6px;
}

/* Spec list: label left, value right (project details) */
.spec-list div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); padding-top: 3px; }
.spec-list dd { font-weight: 600; text-align: right; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3CB043; margin-right: 8px; box-shadow: 0 0 0 4px rgba(60,176,67,.18); }

/* Fact grid: label above value, two columns (company details) */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; max-width: 900px; }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.facts dd { font-weight: 500; }

/* Featured project: photos + spec list */
.feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.feature-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.feature-photos .media { height: 380px; }

/* Project rows (Our work) */
.project-stack { display: grid; gap: 40px; }
.project { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: var(--white); padding: 24px; }
.project.reverse .project-photos { order: 2; }
.project-photos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.project-photos .media { height: 340px; }
.project-info { padding: 10px 16px; }
.project-info h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 14px; }
.project-info .spec-list { margin-top: 20px; }
.place { color: var(--grey); font-weight: 500; margin-top: 6px; }

/* Project cards (photo on top) */
.ci-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ci { overflow: hidden; }
.ci-media { height: 260px; border-radius: 0; }
.ci-body { padding: 22px 24px 26px; }
.ci-place { font-size: .85rem; font-weight: 600; color: var(--grey); margin-bottom: 6px; }

/* Cards with a sharp, slanted lime tab on the top-left corner (logo bolt) */
.tab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tab-card { padding: 36px 28px 28px; }
.tab-card h3 { font-size: 1.15rem; }
.tab-card p { color: var(--grey); margin-top: 8px; }

/* List + dark side card */
.list-aside { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.dark-card { background: var(--charcoal); color: var(--white); padding: 36px; }
.dark-card h3 { font-size: 1.2rem; }
.dark-card ul { list-style: none; margin: 20px 0 28px; display: grid; gap: 12px; }
.dark-card li { padding-left: 32px; position: relative; color: #E2E2DB; }
.dark-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 8px; background: var(--lime); transform: skewX(-30deg); }

/* Five-step variant */
.steps-5 { grid-template-columns: repeat(5, 1fr); }

/* Team text cards */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person h3 { font-size: 1.15rem; }
.person .role { color: var(--charcoal); font-weight: 600; font-size: .92rem; margin-top: 6px; }

/* Contact page: details + form */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-info { margin-top: 30px; display: grid; gap: 22px; }
.contact-info b { display: block; font-family: var(--font-display); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 4px; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.note { margin-top: 16px; font-size: .95rem; color: #444; max-width: 640px; }
.callout { margin-top: 34px; padding: 26px 22px 20px; font-size: .95rem; }
.callout-warn { background: #FFF4C2; margin: 0 0 10px; }

/* Long text (Privacy Policy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose p { margin-bottom: 14px; }

/* Centered status pages (Thank you, 404) */
.status { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.status .wrap { width: 100%; }
.status h1 { max-width: 780px; margin: 0 auto; }
.status .lead { margin: 20px auto 34px; }
.status .stripes { margin-bottom: 30px; }
.status-code { font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; margin-bottom: 10px; }

/* 8. MINI-APPS ----------------------------------------------------------- */
/* Each app gets one wrapper class, .app-<name>, plus its own block here. */
.app-card { padding: 36px 28px 28px; max-width: 560px; }
.app-row { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.app-big-number { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; min-width: 3ch; }

/* App: proposal-maker (/apps/proposal-maker/) */
.app-proposal-maker { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.app-proposal-maker .pm-form { grid-template-columns: 1fr; position: sticky; top: calc(var(--header-h) + 20px); }
.app-proposal-maker .pm-types { flex-wrap: wrap; }
.app-proposal-maker .pm-types label { flex: 1 1 30%; }
.app-proposal-maker .seg span { padding: 12px 8px; font-size: .9rem; }
.app-proposal-maker .pm-hint { font-size: .85rem; color: var(--grey); margin-top: 8px; }
.app-proposal-maker .pm-advanced summary { cursor: pointer; font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.app-proposal-maker .pm-error { color: #B42318; font-size: .9rem; font-weight: 600; }
.app-proposal-maker .pm-result:empty {
  min-height: 420px; border: 2px dashed var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius);
  display: grid; place-items: center; color: var(--grey); text-align: center; padding: 30px;
}
.app-proposal-maker .pm-result:empty::before { content: "Your estimate will appear here."; font-weight: 600; }

.pm-proposal { padding: 0 0 28px; overflow: hidden; }
.pm-head { background: var(--charcoal); color: #CFCFC8; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 32px 22px; flex-wrap: wrap; }
.pm-logo { height: 46px; width: auto; }
.pm-meta { display: grid; text-align: right; font-size: .82rem; }
.pm-meta strong { color: var(--white); font-family: var(--font-display); font-size: 1rem; }
.pm-for { padding: 20px 32px 0; color: var(--grey); }
.pm-for strong { color: var(--charcoal); }
.pm-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin: 20px 32px; border-radius: var(--radius-sm); overflow: hidden; }
.pm-hero > div { background: var(--pale); padding: 18px 18px 16px; }
.pm-kicker { display: block; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.pm-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin: 6px 0 4px; }
.pm-big small { font-size: .9rem; font-weight: 700; color: var(--grey); }
.pm-price { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; margin: 6px 0 4px; }
.pm-price-note { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.pm-note { margin: 0 32px 10px; font-size: .9rem; background: var(--sky); padding: 12px 14px; border-radius: var(--radius-sm); }
.pm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding: 10px 32px 0; }
.pm-cols .pm-wide { grid-column: 1 / -1; }
.pm-proposal h4 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin: 18px 0 6px; }
.pm-proposal .spec-list dd { font-size: .92rem; }
.pm-proposal .spec-list dt { font-size: .68rem; }
.pm-proposal > h4, .pm-list { margin-left: 32px; margin-right: 32px; }
.pm-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: .92rem; }
.pm-list li { padding-left: 24px; position: relative; }
.pm-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 7px; background: var(--lime); transform: skewX(-30deg); }
.pm-disclaimer { margin: 24px 32px 0; font-size: .82rem; color: var(--grey); border-top: 1px solid var(--line); padding-top: 16px; }
.pm-foot { margin: 14px 32px 0; font-size: .78rem; color: var(--grey); }
.pm-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.app-proposal-maker .pm-advanced label { margin-top: 4px; }
.app-proposal-maker .pm-check { margin-top: 12px; color: var(--charcoal) !important; font-weight: 600 !important; }
.pm-boq-title { margin-left: 32px; margin-right: 32px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 24px !important; }
.pm-boq { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 6px 28px; margin: 0 32px; font-size: .82rem; }
.pm-boq table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.pm-boq caption { text-align: left; font-weight: 700; padding: 8px 0 4px; color: var(--charcoal); }
.pm-boq td { padding: 4px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pm-boq td.q { text-align: right; white-space: nowrap; padding-left: 10px; font-weight: 600; }
.pm-boq-note { margin: 4px 32px 0; }

/* Printing / "Download PDF": print only the proposal */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 12px; }
  site-header, site-footer, .page-hero, .pm-form, .pm-actions, .skip-link { display: none !important; }
  .section { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .app-proposal-maker { display: block; }
  .pm-proposal { box-shadow: none !important; border: 1px solid var(--line); }
  .pm-proposal, .pm-head, .pm-hero > div, .pm-note, .card::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* keep the desktop layout on paper */
  .pm-hero { grid-template-columns: repeat(3, 1fr) !important; margin: 14px 24px !important; }
  .pm-cols { grid-template-columns: 1fr 1fr !important; padding: 4px 24px 0 !important; }
  .pm-list, .pm-boq { grid-template-columns: 1fr 1fr !important; }
  .pm-boq, .pm-boq-title, .pm-boq-note { margin-left: 24px !important; margin-right: 24px !important; }
  .pm-boq-title { break-before: page; }
  .pm-head, .pm-for { padding-left: 24px !important; padding-right: 24px !important; }
  .pm-note, .pm-disclaimer, .pm-foot, .pm-proposal > h4, .pm-list { margin-left: 24px !important; margin-right: 24px !important; }
  .pm-meta { text-align: right !important; }
  .pm-proposal .spec-list div { padding: 7px 0; }
  .pm-proposal h4 { margin-top: 12px; }
}

/* 9. MOTION -------------------------------------------------------------- */
.lift { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise   { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  @keyframes charge { from { opacity: 0; transform: translateX(-80px) skewX(-35deg); } to { opacity: 1; transform: skewX(-35deg); } }
  .rise { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .2s; } .rise-3 { animation-delay: .45s; }
  .rise-4 { animation-delay: .7s; }  .rise-5 { animation-delay: .9s; }
  /* .reveal is added by /assets/js/reveal.js, so content stays visible without JS */
  .hero-stripes i { opacity: 0; animation: charge .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-stripes i:nth-child(1) { animation-delay: 1s; }
  .hero-stripes i:nth-child(2) { animation-delay: 1.15s; }
  .hero-stripes i:nth-child(3) { animation-delay: 1.3s; }
  .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* 10. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--charcoal); flex-direction: column; padding: 20px var(--gutter) 30px; gap: 18px; align-items: flex-start; }
  .nav-menu.open { display: flex; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > .split-media { order: 0; }
  .split-media { min-height: 300px; }
  .card-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; padding: 26px; }
  .page-hero { padding: 70px 0 70px; }
  .page-hero::after { display: none; }
  /* On phones the photo sits behind the top, and the text rises over it */
  .page-hero.with-photo { min-height: 0; align-items: flex-end; padding: 230px 0 56px; }
  .page-hero-photo { object-position: 60% 30%; }
  .page-hero.with-photo.photo-right .page-hero-photo { left: 0; width: 100%; object-position: 50% 30%; }
  .page-hero.with-photo::before, .page-hero.with-photo.photo-right::before {
    background: linear-gradient(180deg,
      rgba(234,244,249,0) 0%, rgba(234,244,249,.35) 28%,
      rgba(234,244,249,.94) 52%, rgba(234,244,249,.98) 100%);
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 26%, rgba(255,255,255,.94) 48%, rgba(255,255,255,.98) 100%);
  }
  .hero-photo { object-position: 60% 20%; }
  .hero-inner, .two-col, .paths, .craft-grid, .feature, .project, .ci-grid, .tab-grid, .list-aside, .team-grid, .facts, .contact-grid, .photo-row { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; }
  .hero-copy { padding: 240px 0 64px; }
  .hero-stripes { display: none; }
  .two-col { gap: 30px; }
  .path { min-height: 360px; }
  .craft-grid, .list-aside, .contact-grid { gap: 40px; }
  .craft-photos { grid-template-rows: 220px 160px; }
  .photo-row .media { height: 220px; }
  .feature-photos .media { height: 240px; }
  .project { gap: 20px; padding: 16px; }
  .project.reverse .project-photos { order: 0; }
  .project-photos .media { height: 220px; }
  .project-info { padding: 4px 8px 12px; }
  .steps-5 { grid-template-columns: 1fr 1fr; }
  .app-proposal-maker { grid-template-columns: 1fr; }
  .app-proposal-maker .pm-form { position: static; }
  .pm-hero, .pm-cols { grid-template-columns: 1fr; }
  .pm-head, .pm-for, .pm-cols { padding-left: 20px; padding-right: 20px; }
  .pm-hero, .pm-note, .pm-disclaimer, .pm-foot, .pm-proposal > h4, .pm-list { margin-left: 20px; margin-right: 20px; }
  .pm-list { grid-template-columns: 1fr; }
  .pm-boq { grid-template-columns: 1fr; margin: 0 20px; }
  .pm-boq-title, .pm-boq-note { margin-left: 20px; margin-right: 20px; }
  .pm-meta { text-align: left; }
  .split.overlap, .split.overlap.reverse { grid-template-columns: 1fr; }
  /* Phones: compact lime pill in the lower right */
  .estimate-cta { top: auto; bottom: 16px; right: 12px; max-width: none; background: var(--lime); border-radius: 999px; box-shadow: 0 10px 28px rgba(0,0,0,.25); transform: translateY(20px); }
  .estimate-cta::before { display: none; }
  .estimate-cta-link { padding: 12px 4px 12px 18px; gap: 8px; color: var(--ink); }
    .estimate-cta-text { display: none; }
  .estimate-cta-short { display: inline; font-family: var(--font-display); font-weight: 800; font-size: .92rem; }
  .estimate-cta-close { align-self: center; color: var(--ink); padding: 8px 12px 8px 4px; font-size: 1.15rem; }
  .split.overlap > .split-media { min-height: 300px; order: 0 !important; }
  .overlap-card, .split.overlap.reverse > .overlap-card { margin: -90px 14px 0; padding: 32px 26px; order: 1; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .steps, .steps-5 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .feature-photos, .project-photos { grid-template-columns: 1fr; }
}
