/* Shared site chrome for Einstein Roofing — nav, footer, tokens */
:root{
  --bg: oklch(0.975 0.004 85); --bg-2: oklch(0.955 0.004 85);
  --ink: oklch(0.20 0.012 250); --ink-2: oklch(0.40 0.012 250); --ink-3: oklch(0.60 0.010 250);
  --line: oklch(0.88 0.006 250); --line-2: oklch(0.92 0.005 250);
  --accent: oklch(0.58 0.15 42); --accent-ink: oklch(0.98 0.005 85);
  --stripe-a: oklch(0.92 0.006 250); --stripe-b: oklch(0.88 0.008 250);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h: 84px;
}
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
html{ scroll-behavior: smooth; }
body{ overflow-x: hidden; }
a{ color: inherit; text-decoration: none; }
::selection{ background: var(--accent); color: var(--accent-ink); }

/* Image helper for <picture> elements inside fixed-ratio wrappers.
   Used on converted CSS-background→<picture> heroes, project cards, etc. */
.img-fill{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
picture{ display:block; width:100%; height:100%; }

.nav{ position: fixed; top:0; left:0; right:0; z-index: 100; height: var(--nav-h);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
  transition: background .3s ease; }
.nav.is-stuck{ background: color-mix(in oklab, var(--bg) 90%, transparent); }
.nav__inner{ max-width: 1180px; margin: 0 auto; padding: 0 22px; height:100%;
  display:flex; align-items:center; justify-content:space-between; font-size: 12.5px; letter-spacing: -0.005em; color: var(--ink-2); }
.nav__brand{ font-weight: 600; color: var(--ink); font-size: 14px; letter-spacing: -0.02em; }
.nav__brand em{ font-style: normal; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.nav__links{ display:flex; gap: 26px; }
.nav__links a{ color: var(--ink-2); transition: color .15s; }
.nav__links a:hover{ color: var(--ink); }
.nav__links a.is-current{ color: var(--ink); }
.nav__cta{ display:flex; align-items:center; gap: 8px; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.nav__cta::before{ content:""; width:6px; height:6px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: nav-pulse 2.2s infinite; }
@keyframes nav-pulse{
  0%{ box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70%{ box-shadow: 0 0 0 8px transparent; }
  100%{ box-shadow: 0 0 0 0 transparent; }
}
.nav__toggle{ display: none; position: relative; background: transparent;
  border: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
  width: 40px; height: 40px; border-radius: 10px;
  padding: 0; margin-left: 12px; color: var(--ink);
  transition: background .2s ease, border-color .2s ease, transform .25s cubic-bezier(.22,.61,.36,1); }
.nav__toggle:hover{ background: color-mix(in oklab, var(--bg-2) 80%, transparent); }
.nav__toggle:active{ transform: scale(0.94); }
.nav__toggle span{ position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.75px; background: currentColor; border-radius: 2px;
  transform-origin: center; will-change: transform;
  transition: transform .38s cubic-bezier(.65,.05,.36,1), opacity .2s ease; }
.nav__toggle span:nth-child(1){ transform: translate(-50%, calc(-50% - 5px)); }
.nav__toggle span:nth-child(2){ transform: translate(-50%, -50%); opacity: 0; }
.nav__toggle span:nth-child(3){ transform: translate(-50%, calc(-50% + 5px)); }
.nav.is-open .nav__toggle span:nth-child(1){ transform: translate(-50%, -50%) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(3){ transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 900px){
  :root{ --nav-h: 112px; }
  .nav__inner{ padding: 0 14px; }
  .nav__brand img{ height: 96px !important; }
  .nav__toggle{ display: inline-flex; width: 36px; height: 36px; margin-left: 10px; }
  .nav__links{
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 6px 0 10px;
    background: color-mix(in oklab, var(--bg) 94%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
    box-shadow: 0 20px 40px -24px rgba(0,0,0,.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav.is-open .nav__links{
    opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
  }
  .nav__links a{
    display: flex; align-items: center; width: 100%;
    padding: 16px 22px; color: var(--ink);
    font-size: 16px; font-weight: 500;
    border-top: 1px solid color-mix(in oklab, var(--line) 40%, transparent);
  }
  .nav__links a:first-child{ border-top: 0; }
  .nav__cta{ font-size: 13px; margin-left: auto; }
}

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap--narrow{ max-width: 820px; }
.eyebrow{ font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.crumb{ padding: calc(var(--nav-h) + 40px) 0 0; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.crumb a{ color: var(--ink-3); } .crumb a:hover{ color: var(--ink); }

.page-hero{ padding: 28px 0 56px; }
.page-hero h1{ font-size: clamp(56px, 8.5vw, 128px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.94; margin: 14px 0 0; text-wrap: balance; max-width: 16ch; }
.page-hero h1 em{ font-style: italic; font-weight: 300; }
.page-hero .lede{ margin-top: 22px; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); max-width: 56ch; line-height: 1.45; text-wrap: pretty; }
.page-hero .two{ display:grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: end; }
@media (max-width: 900px){ .page-hero .two{ grid-template-columns: 1fr; } }

.btn{ display:inline-flex; align-items:center; gap:8px; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; font-family: inherit; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover:not(:disabled){ transform: translateY(-1px); }
.btn--primary{ background: var(--accent); color: var(--accent-ink); }
.btn--dark{ background: var(--ink); color: var(--bg); }
.btn--ghost{ background: transparent; color: var(--ink); border-color: var(--line); }

.ph{ position: relative; overflow: hidden; border-radius: 20px;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px); }
.ph__label{ position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 11px;
  color: var(--ink-2); background: color-mix(in oklab, var(--bg) 85%, transparent);
  padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); }
.ph__meta{ position:absolute; top:12px; right:14px; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.ph--navy,.ph--clay,.ph--steel,.ph--moss,.ph--dusk{ color:#fff; }
.ph--navy{ background: linear-gradient(180deg, oklch(0.35 0.04 250 / 0), oklch(0.18 0.03 250 / .5)),
  repeating-linear-gradient(135deg, oklch(0.40 0.04 250) 0 22px, oklch(0.34 0.04 250) 22px 44px); }
.ph--clay{ background: linear-gradient(180deg, oklch(0.4 0.08 45 / 0), oklch(0.28 0.06 45 / .5)),
  repeating-linear-gradient(135deg, oklch(0.55 0.10 45) 0 22px, oklch(0.50 0.10 45) 22px 44px); }
.ph--steel{ background: linear-gradient(180deg, oklch(0.45 0.01 250 / 0), oklch(0.30 0.01 250 / .5)),
  repeating-linear-gradient(135deg, oklch(0.60 0.01 250) 0 22px, oklch(0.55 0.01 250) 22px 44px); }
.ph--moss{ background: linear-gradient(180deg, oklch(0.40 0.05 160 / 0), oklch(0.28 0.04 160 / .5)),
  repeating-linear-gradient(135deg, oklch(0.50 0.05 160) 0 22px, oklch(0.45 0.05 160) 22px 44px); }
.ph--dusk{ background: linear-gradient(180deg, oklch(0.35 0.06 280 / 0), oklch(0.20 0.04 280 / .55)),
  repeating-linear-gradient(135deg, oklch(0.42 0.06 280) 0 22px, oklch(0.37 0.06 280) 22px 44px); }
.ph--navy .ph__label,.ph--clay .ph__label,.ph--steel .ph__label,.ph--moss .ph__label,.ph--dusk .ph__label{
  color: rgba(255,255,255,.9); background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.2); }
.ph--navy .ph__meta,.ph--clay .ph__meta,.ph--steel .ph__meta,.ph--moss .ph__meta,.ph--dusk .ph__meta{ color: rgba(255,255,255,.6); }

/* content blocks */
.rule{ height: 1px; background: var(--line); margin: 0; }
.block{ padding: 80px 0; border-top: 1px solid var(--line); }
.block h2{ font-size: clamp(34px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.028em; line-height: 1.02; margin: 0; text-wrap: balance; }
.block h3{ font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.block__head{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.block__head p{ margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 52ch; }
@media (max-width: 900px){ .block__head{ grid-template-columns: 1fr; gap: 18px; } }

/* 2-col body for long-form */
.longform{ display: grid; grid-template-columns: 200px 1fr; gap: 60px; padding: 60px 0 80px; }
.longform .meta{ font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.longform .meta div{ margin-bottom: 14px; }
.longform .meta strong{ display: block; color: var(--ink); margin-top: 4px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; text-transform: none; }
.longform .body{ font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 68ch; }
.longform .body h2{ color: var(--ink); font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 14px; line-height: 1.1; }
.longform .body h3{ color: var(--ink); font-size: 20px; font-weight: 600; margin: 28px 0 10px; letter-spacing: -0.01em; }
.longform .body p{ margin: 0 0 18px; }
.longform .body ul{ padding-left: 20px; margin: 0 0 18px; }
.longform .body li{ margin-bottom: 8px; }
.longform .body strong{ color: var(--ink); font-weight: 600; }
.longform .body blockquote{ border-left: 2px solid var(--accent); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--ink); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
@media (max-width: 900px){ .longform{ grid-template-columns: 1fr; gap: 24px; } }

/* service cards (index) */
.svc-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc{ background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; transition: border-color .2s, transform .2s; }
.svc:hover{ border-color: var(--line); transform: translateY(-2px); }
.svc__num{ font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.svc__title{ font-size: 26px; font-weight: 600; letter-spacing: -0.022em; margin: 12px 0 8px; line-height: 1.05; }
.svc__desc{ color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.svc__ph{ margin-top: 20px; height: 140px; border-radius: 14px; }
.svc__more{ margin-top: 16px; font-size: 13px; color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px){ .svc-grid{ grid-template-columns: 1fr; } }

/* CTA band — mirrors the main-page CTA exactly */
.cta-band{ background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(120px, 14vw, 180px) 0; text-align: center; }
.cta-band .h2{ font-weight: 600; letter-spacing: -0.025em; line-height: 1.02;
  font-size: clamp(34px, 5.4vw, 72px); text-wrap: balance;
  max-width: 720px; margin: 0 auto; }
.cta-phone{ display:inline-block; white-space: nowrap; margin-top: 22px; color: var(--ink);
  font-size: clamp(34px, 10vw, 128px); font-weight: 600; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; transition: color .2s ease; }
.cta-phone:hover{ color: var(--accent); }
.cta-band .small{ font-size: 13px; color: var(--ink-3); margin-top: 20px; }

footer{ position: relative; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line); padding: 80px 22px 24px; font-size: 13px; color: var(--ink-3); }
.foot{ max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
.foot__cols{ display:grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line); align-items: start; }
.foot__cols > .foot__intro{ padding: 0 20px 0 0; }
.foot__brand{ pointer-events: none; user-select: none; margin-top: -40px; display: flex; justify-content: center; align-items: flex-end; line-height: 0; }
.foot__brand img{ display: block; width: min(100%, 1400px); height: auto; max-height: 420px; object-fit: contain; opacity: 0.22; mix-blend-mode: multiply; }
.foot__intro-text{ position: relative; z-index: 1; width: fit-content; max-width: 100%; margin-top: -14px; padding: 18px 28px 24px; border-radius: 20px; background: color-mix(in oklab, var(--bg) 62%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border: 1px solid color-mix(in oklab, var(--line) 70%, transparent); box-shadow: 0 10px 30px -18px rgba(0,0,0,.18), inset 0 1px 0 color-mix(in oklab, #fff 60%, transparent); display: flex; flex-direction: column; gap: 18px; }
.foot__brand-name{ font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.foot__intro-text .foot__tag{ display: flex; flex-direction: column; gap: 6px; margin: 0; line-height: 1.45; color: var(--ink-2); }
.foot__intro-text .foot__tag-line{ white-space: nowrap; }
.foot__intro-text .foot__contact{ display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--ink-2); font-size: 14px; }
.foot__intro-text .foot__contact strong{ color: var(--ink); font-size: 15px; }
.foot__group{ color: inherit; }
.foot__group > summary{ color: var(--ink-2); font-size: 12px; font-weight: 500; margin: 0 0 14px; list-style: none; cursor: default; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.foot__group > summary::-webkit-details-marker{ display: none; }
.foot__group > summary::marker{ display: none; }
.foot__group > summary::after{ content: ""; }
.foot ul{ list-style: none; padding:0; margin:0; }
.foot li{ margin-bottom: 10px; }
.foot a{ color: var(--ink-3); transition: color .15s; }
.foot a:hover{ color: var(--ink); }
.foot__bot{ padding-top: 26px; display:flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.foot__bot .links{ display:flex; gap: 22px; }
.foot__credit{ display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.foot__credit a{ color: var(--ink-2); font-weight: 600; letter-spacing: 0.08em; }
.foot__credit a:hover{ color: var(--ink); }
.foot__credit-icon{ width: 13px; height: 13px; display: inline-block; vertical-align: -1px; flex: 0 0 auto; transition: transform .25s ease; }
.foot__credit-icon--heart{ color: #e76f6f; }
.foot__credit-icon--coffee{ color: #a47148; }
.foot__credit:hover .foot__credit-icon--heart{ transform: scale(1.18); }
.foot__credit:hover .foot__credit-icon--coffee{ transform: translateY(-1px); }
@media (max-width: 1100px){
  .foot__cols{ grid-template-columns: 1fr repeat(3, 1fr); }
  .foot__cols > .foot__intro{ grid-column: 1 / -1; padding: 0 0 8px; }
  .foot__brand img{ max-height: 320px; }
}
@media (max-width: 760px){
  footer{ padding: 44px 22px 24px; }
  .foot__cols{ grid-template-columns: 1fr; gap: 0; padding-bottom: 32px; }
  .foot__cols > .foot__intro{ padding: 0 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .foot__intro-text{ width: 100%; margin-top: 0; }
  .foot__brand{ margin-top: -20px; }
  .foot__brand img{ max-height: 240px; opacity: 0.25; }
  .foot__intro-text .foot__tag{ margin-top: 0; }
  .foot__group{ border-bottom: 1px solid var(--line); padding: 14px 0; }
  .foot__group > summary{ margin: 0; cursor: pointer; font-size: 14px; color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: normal; }
  .foot__group > summary::after{ content: "+"; font-size: 20px; line-height: 1; color: var(--ink-2); font-weight: 400; transition: transform .15s ease; }
  .foot__group[open] > summary::after{ content: "−"; }
  .foot__group[open] > ul{ margin-top: 12px; }
}
