/* Self-hosted fonts (SIL Open Font License): no third-party requests */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
/* Layout concept: white and pale sky from the logo, navy type and buttons, real shop photos. */
:root {
  /* color */
  --bg: #ffffff;
  --alt: #eef4fa;
  --ink: #14233f;
  --muted: #4c5a6d;
  --line: #d5e0eb;
  --card: #ffffff;
  --btn-bg: #1b2d4f;
  --btn-ink: #ffffff;
  --link: #1f5f99;
  --pine: #2b5d8a;
  --rust: #2f6ea8;
  --band: #14233f;
  --band-ink: #f2f6fb;
  --band-muted: #b8c8db;
  --band-line: #2c4166;
  --focus: #1f5f99;
  --star: #a35f00;
  /* type */
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1726; --alt: #132036; --ink: #e9f0f8; --muted: #a9b8cb; --line: #26364f; --card: #15233a;
    --btn-bg: #9cc8e6; --btn-ink: #0e1726; --link: #9cc8e6; --pine: #a9cfe9; --rust: #7fb3dc;
    --band: #0a1220; --band-ink: #f2f6fb; --band-muted: #a9b8cb; --band-line: #26364f; --focus: #9cc8e6; --star: #f2b84b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1726; --alt: #132036; --ink: #e9f0f8; --muted: #a9b8cb; --line: #26364f; --card: #15233a;
    --btn-bg: #9cc8e6; --btn-ink: #0e1726; --link: #9cc8e6; --pine: #a9cfe9; --rust: #7fb3dc;
    --band: #0a1220; --band-ink: #f2f6fb; --band-muted: #a9b8cb; --band-line: #26364f; --focus: #9cc8e6; --star: #f2b84b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.14; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-3); font-weight: 650; }
h2 { font-size: var(--step-2); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pine); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

.wrap {
  width: 100%; max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(48px, 7vw, 88px); }
.alt { background: var(--alt); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 6px; border: 2px solid var(--btn-bg);
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-ink);
}
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn.light { background: #f2f6fb; color: #1b2d4f; border-color: #f2f6fb; }
.btn.outline-light { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.btn.outline-light:hover { border-color: var(--band-ink); filter: none; }

/* header */
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.brand { display: block; padding: 4px 0; }
.brand img { mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { background: #fff; border-radius: 6px; padding: 4px 10px; } :root:not([data-theme="light"]) .brand img { mix-blend-mode: normal; } }
:root[data-theme="dark"] .brand { background: #fff; border-radius: 6px; padding: 4px 10px; }
:root[data-theme="dark"] .brand img { mix-blend-mode: normal; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 8px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.top .btn { min-height: 44px; padding: 8px 18px; }
@media (max-width: 760px) {
  .top .wrap { justify-content: space-between; }
  .nav { order: 3; width: 100%; gap: 2px 18px; }
}

/* hero */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(44px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.tagline { font-family: var(--display); font-weight: 500; font-size: 1.2rem; color: var(--pine); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.contact-line { font-size: var(--step--1); color: var(--muted); }
.contact-line strong { color: var(--ink); font-weight: 600; }
.hero-photo { margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--alt); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 400px; }
}

/* section heads */
.head { display: grid; gap: 10px; max-width: 40em; margin-bottom: clamp(28px, 4vw, 44px); }

/* services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { border-top: 2px solid var(--ink); padding: 16px 0 0; display: grid; gap: 10px; align-content: start; }
.service p { color: var(--muted); }
@media (max-width: 900px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* bands */
.band { background: var(--band); color: var(--band-ink); border-block: 1px solid var(--band-line); }
.band .eyebrow { color: var(--band-muted); }
.band .lede, .band p.muted { color: var(--band-muted); }
.band a { color: var(--band-ink); }

/* work gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.gallery li { min-width: 0; display: grid; gap: 10px; align-content: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--card); }
.gallery span { font-size: 0.98rem; color: var(--muted); }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px 40px; }
.review { margin: 0; min-width: 0; border-left: 3px solid var(--rust); padding: 2px 0 2px 20px; display: grid; gap: 12px; align-content: start; }
.review .stars { color: var(--star); letter-spacing: 3px; font-size: 1.15rem; line-height: 1; }
.review blockquote { margin: 0; }
.review blockquote p { color: var(--ink); font-size: 1.08rem; }
.review figcaption { font-size: var(--step--1); color: var(--muted); }
.review figcaption b { color: var(--ink); font-weight: 600; }
.review-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* pricing */
.price-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .price-line { grid-template-columns: minmax(0, 1fr); } }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--ink); }
.steps li::before { content: "Step " counter(step); font-size: 0.95rem; font-weight: 700; color: var(--rust); }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* area */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .area { grid-template-columns: minmax(0, 1fr); } }

/* about */
.about-side { display: grid; gap: 20px; align-content: start; }
.about-side img { width: 100%; max-width: 320px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-body { display: grid; gap: 14px; }
.about-body p { color: var(--muted); max-width: 36em; }
.note { padding: 4px 0 4px 20px; border-left: 3px solid var(--rust); display: grid; gap: 8px; font-size: 0.98rem; color: var(--muted); }
.note b { color: var(--ink); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* faq */
.faq { display: grid; gap: 0; max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; margin: 0; }
.contact dt { color: var(--band-muted); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.contact dd { margin: 0; overflow-wrap: anywhere; }
.contact .cta-col { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 760px) { .contact { grid-template-columns: minmax(0, 1fr); } }

footer { padding-block: 32px; font-size: var(--step--1); color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
footer .brand img { height: 36px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }
.contact dd a, footer nav a { display: inline-block; padding-block: 10px; }
footer nav { gap: 0 18px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* shared additions for inner pages */
.text-link { display: inline-block; padding-block: 10px; font-weight: 600; color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.facts dd a { display: inline-block; padding-block: 10px; }
.text-link:hover { filter: brightness(1.15); }
.more { margin-top: 26px; }
.sub-hero { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.sub-hero .inner { display: grid; gap: 18px; justify-items: start; max-width: 46em; }
.svc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.svc-body { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.svc-body p { color: var(--muted); max-width: 36em; }
.svc-body .key { color: var(--ink); font-weight: 600; }
.svc .review { align-self: center; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 26px; display: grid; gap: 14px; min-width: 0; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; margin: 0; }
.facts dt { color: var(--muted); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) { .svc { grid-template-columns: minmax(0, 1fr); } }
.svc-side { display: grid; gap: 18px; min-width: 0; align-content: center; }
.photo { margin: 0; display: grid; gap: 8px; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--card); }
.photo figcaption { font-size: var(--step--1); color: var(--muted); }
.photo--tall { max-width: 380px; }
.photo--tall img { aspect-ratio: 3 / 4; }

.area.area--single { grid-template-columns: minmax(0, 46em); }
.about .note { align-self: start; }

/* phone: lead with Nate, not the menu */
@media (max-width: 860px) {
  .hero { padding-top: 20px; }
  .hero-photo { order: -1; max-width: none; }
  .hero-photo img { aspect-ratio: 1 / 1; object-position: center 22%; }
  .hero .wrap { gap: 22px; }
  .hero h1 { font-size: clamp(1.9rem, 1.3rem + 3vw, 2.4rem); }
}
@media (max-width: 760px) {
  .brand img { height: 44px; }
  .top .wrap { padding-block: 10px; }
  .nav { gap: 0 16px; }
  .nav a { font-size: 0.95rem; padding-block: 6px; }
}

/* simplified home */
.price-note { margin-top: 28px; max-width: 44em; color: var(--muted); }
.price-note b { color: var(--ink); }
#how .lede a { color: var(--link); }
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery span { font-size: 0.85rem; line-height: 1.35; }
  .reviews { gap: 28px; }
}

.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 600; }
.rating-line .stars { color: var(--star); letter-spacing: 3px; }
.rating-line a { display: inline-block; padding-block: 8px; }




/* text-only hero: service first, compact */
.hero--text { padding-block: clamp(32px, 5vw, 64px); }
.hero--text .wrap { display: block; }
.hero--text .hero-copy { max-width: 40em; }
.about-side img { max-width: 300px; aspect-ratio: 4 / 5; object-position: center 25%; border-radius: 6px; border: 0; }
@media (max-width: 860px) { .about-side img { max-width: 260px; } }

.foot-info { display: grid; gap: 2px; }
.foot-contact { font-size: 1rem; font-weight: 600; color: var(--ink); }
.foot-contact a { color: var(--ink); display: inline-block; padding-block: 8px; }

/* header: menu links sit on the right, next to "Get a quote" */
@media (min-width: 761px) {
  .top .wrap { justify-content: flex-start; }
  .nav { margin-left: auto; margin-right: 8px; }
}

/* phones: logo + "Get a quote" only; Services/Drop-off stay reachable from the page and footer */
.faq details p a, .steps p a { color: var(--link); }

/* header logo: original logo art split into icon + "Arkay", with "Window Screens" as larger live text.
   The icon's bottom lines up with the bottom of "Window Screens". */
.brand--logo { display: flex; align-items: flex-end; gap: 9px; text-decoration: none; --arkay-h: 46px; }
.brand--logo .logo-icon { height: calc(var(--arkay-h) * 1.52); width: auto; display: block; }
.logo-words { position: relative; display: block; height: calc(var(--arkay-h) * 1.18); }
.brand--logo .logo-arkay { height: var(--arkay-h); width: auto; display: block; }
.logo-tag { position: absolute; left: 2px; bottom: 0; font-family: var(--body); font-weight: 600; font-size: calc(var(--arkay-h) * 0.235); letter-spacing: 0.04em; text-transform: uppercase; color: #5f6873; white-space: nowrap; line-height: 1; }
@media (max-width: 760px) { .brand--logo { --arkay-h: 36px; gap: 7px; } }
.price-note a { color: var(--link); }

/* phone header: logo · Get an estimate · hamburger menu (no script; uses <details>) */
.top { position: relative; }
.menu { display: none; }
.brand--logo, .brand--logo img { flex-shrink: 0; }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: nowrap; gap: 8px; }
  .top .nav { display: none; }
  .top .btn { margin-left: auto; white-space: nowrap; }
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
  .menu summary::-webkit-details-marker { display: none; }
  .burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .15s ease; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .menu[open] .burger { background: transparent; }
  .menu[open] .burger::before { top: 0; transform: rotate(45deg); }
  .menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
  .menu-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; display: grid; padding: 4px 16px 12px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 35, 63, 0.12); }
  .menu-list a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
  .menu-list a:last-child { border-bottom: 0; }
}
/* phones: put "Window Screens" below the y's tail so it can be larger without touching it */
@media (max-width: 760px) {
  .logo-words { height: calc(var(--arkay-h) * 1.33); }
  .brand--logo .logo-icon { height: calc(var(--arkay-h) * 1.66); }
  .logo-tag { font-size: 9.5px; letter-spacing: 0.03em; }
}
@media (max-width: 400px) { .logo-tag { font-size: 9px; letter-spacing: 0.02em; } }
@media (max-width: 345px) { .logo-tag { font-size: 8.5px; letter-spacing: 0.01em; } }

/* phone header sizing: logo · Free estimate · menu always fit on one row, light and dark */
.lbl-short { display: none; }
@media (max-width: 760px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .brand--logo { --arkay-h: 34px; gap: 5px; }
  .top .wrap { gap: 6px; }
  .top .btn, .menu { flex-shrink: 0; }
  .top .btn { padding: 8px 11px; font-size: 0.9rem; }
  :root:not([data-theme="light"]) .brand { padding: 3px 6px; }
}
@media (max-width: 760px) and (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brand { padding: 4px 0; } }
@media (max-width: 400px) { .brand--logo { --arkay-h: 30px; } }
@media (max-width: 370px) { .brand--logo { --arkay-h: 27px; } .top .btn { padding: 8px 9px; font-size: 0.86rem; } }
@media (max-width: 345px) {
  .brand--logo { --arkay-h: 23px; gap: 4px; }
  .top .wrap { gap: 4px; }
  .top .btn { padding: 8px 8px; font-size: 0.8rem; }
  .menu summary { width: 40px; height: 40px; }
}
/* phones: tagline sits in normal flow under "Arkay", so the dark-mode white tile always wraps it */
@media (max-width: 760px) {
  .logo-words { height: auto; width: max-content; }
  .logo-tag { position: static; display: block; margin-top: calc(var(--arkay-h) * 0.33 - 1em); padding-left: 2px; }
}

/* services row: price pinned to the bottom of each column so the three line up */
.services .service { grid-template-rows: auto 1fr auto; }
.services .service .svc-price { font-weight: 700; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.price-note { max-width: none; }
