/*
Theme Name: Prime Containers
Theme URI: https://primecontainers.ca
Author: Prime Containers Inc
Description: Photo-led theme for selling new and used shipping containers in Ontario and Alberta. Update prices, delivery times and contact details in wp-admin → Prime Containers. Add units in wp-admin → Stock.
Version: 3.5.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: prime-containers
*/

:root {
  --steel: #f3f4f2;
  --paper: #ffffff;
  --ink: #0b1d33;
  --ink-2: #4a5a6e;
  --rule: #dde1e6;
  --blue: #2062b2;
  --blue-deep: #0c346d;
  --hazard: #f2c230;
  --font: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 80px;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--steel); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--hazard); outline-offset: 2px; border-radius: 2px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px; }

h1, h2, h3, .h2 { font-family: var(--font); font-stretch: 75%; font-variation-settings: "wdth" 72; font-weight: 800; line-height: 1; letter-spacing: -.012em; margin: 0 0 .45em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); }
h2, .h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.35rem; font-variation-settings: "wdth" 85; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
.intro { font-size: 1.15rem; color: var(--ink-2); }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.block { padding-block: clamp(64px, 9vw, 120px); }
.block--paper { background: var(--paper); }
.block--deep { background: var(--blue-deep); color: #d5dff0; }
.block--deep h2, .block--deep h3 { color: #fff; }
.block--deep .intro { color: #b8c7de; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.head-row h2, .head-row .h2 { margin-bottom: .3em; }
.head-row p { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 14px 24px; border-radius: 999px; font: 700 1rem/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--white { background: #fff; color: var(--blue-deep); }

/* Header: frosted glass once you scroll */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blue-deep); color: #fff; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.is-scrolled { background: rgba(12, 52, 109, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .wrap { height: 64px; }
.brand { display: block; line-height: 0; }
.brand img, .brand .custom-logo { height: 54px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 44px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a { color: #d5dff0; text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s; }
.main-nav a:hover { color: #fff; }
.header-phones { display: flex; gap: 22px; }
.header-phones a { color: #fff; text-decoration: none; font-weight: 700; line-height: 1.2; font-size: .98rem; }
.header-phones small { display: block; color: #9fb3d1; font-weight: 500; font-size: .75rem; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Trust badges above the headline */
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.badge { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 7px 15px 7px 12px; border-radius: 999px; background: var(--steel); color: var(--ink); font-size: .92rem; font-weight: 500; text-decoration: none; line-height: 1.2; }
a.badge { transition: background-color .2s var(--ease); }
a.badge:hover { background: var(--rule); }
.badge strong { font-weight: 800; }
.badge-sub { color: var(--ink-2); margin-left: 2px; }
.stars { position: relative; display: inline-block; line-height: 0; }
.stars svg { width: 17px; height: 17px; margin-right: 1px; }
.stars-base svg { fill: #d3d8de; }
.stars-fill { position: absolute; inset: 0; width: var(--fill); overflow: hidden; white-space: nowrap; }
.stars-fill svg { fill: #f5a623; }
.badge--canada .leaf { width: 17px; height: 17px; fill: #d52b1e; }
.badge--canada { font-weight: 700; }

/* Hero */
.hero { background: var(--paper); padding-block: clamp(36px, 6vw, 80px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 24px; }
.hero h1 { max-width: 13ch; }
.hero .intro { max-width: 44ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.hero-photo { margin-right: -6vw; }
.hero-photo img { width: 100%; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); margin-top: 40px; }
.hero-facts div { padding: 22px 20px 26px 0; }
.hero-facts div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.hero-facts strong { display: block; font-size: 1.05rem; }
.hero-facts span { color: var(--ink-2); font-size: .92rem; }

/* Stock list */
.stock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--rule); border: 2px solid var(--rule); border-radius: 18px; overflow: hidden; }
.unit { background: var(--paper); display: flex; flex-direction: column; }
.unit-photo { aspect-ratio: 1024 / 858; overflow: hidden; position: relative; }
.unit-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
@media (hover: hover) { .unit:hover .unit-photo img { transform: scale(1.03); } }
.unit-status { position: absolute; top: 14px; left: 14px; background: var(--hazard); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 5px 11px; border-radius: 999px; }
.unit-status.is-reserved { background: var(--ink); color: #fff; }
.unit-body { padding: 4px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.unit h3 { margin-bottom: 6px; }
.unit-code { font-size: .88rem; color: var(--ink-2); margin: 0 0 16px; line-height: 1.5; }
.unit-code b { color: var(--ink); font-weight: 700; letter-spacing: .04em; }
.unit-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); }
.unit-price { font-stretch: 75%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: 1.9rem; line-height: 1; }
.unit-price small { display: block; font: 500 .78rem var(--font); color: var(--ink-2); margin-top: 4px; }
.unit-foot .btn { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.unit--ask { background: var(--blue); color: #d9e5f6; padding: clamp(28px, 4vw, 44px); justify-content: flex-end; }
.unit--ask h3 { color: #fff; font-size: 2rem; font-variation-settings: "wdth" 72; font-weight: 800; }
.unit--ask .btn { align-self: flex-start; margin-top: 8px; }
.swipe-hint { display: none; }
.stock-note { margin-top: 18px; color: var(--ink-2); font-size: .95rem; }

/* Condition comparison */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.compare figure { margin: 0; }
.compare img { background: var(--paper); width: 100%; }
.compare figcaption { padding-top: 18px; border-top: 4px solid var(--ink); margin-top: 8px; }
.compare figure:nth-child(1) figcaption { border-color: var(--blue); }
.compare figure:nth-child(3) figcaption { border-color: #9b6a3c; }
.compare h3 { margin-bottom: 8px; }
.compare p { color: var(--ink-2); font-size: .97rem; margin-bottom: .6em; }
.compare .fit { color: var(--ink); font-weight: 600; font-size: .93rem; }

/* Price sheet + spec table */
.sheet-wrap { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.sheet { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.sheet thead th { font-size: .9rem; color: var(--ink-2); font-weight: 600; background: var(--steel); }
.sheet tbody th { font-weight: 700; }
.sheet tbody th small { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; margin-top: 2px; }
.sheet td { font-stretch: 75%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: 1.55rem; }
.sheet td.ask a { font: 600 .95rem var(--font); font-variation-settings: "wdth" 100; }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet--specs td { font: 600 1rem/1.35 var(--font); font-variation-settings: "wdth" 100; }
.sheet--specs td small { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.sheet-note { margin-top: 16px; color: var(--ink-2); font-size: .95rem; max-width: none; }

/* Spec viewer */
.segmented { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--steel); border-radius: 999px; padding: 4px; margin-bottom: 36px; }
.segmented button { position: relative; z-index: 1; border: 0; background: none; font: 700 .98rem var(--font); color: var(--ink-2); padding: 12px 26px; min-height: 44px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.segmented button[aria-selected="true"] { color: var(--ink); }
.segmented-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--paper); border-radius: 999px; box-shadow: 0 2px 8px rgba(11, 29, 51, .12), 0 0 0 .5px rgba(11, 29, 51, .06); transition: transform .45s var(--ease), width .45s var(--ease); }
.spec-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.spec-panel[hidden] { display: none; }
.spec-panel.is-entering .spec-photo img { animation: slide-in .7s var(--ease) both; }
.spec-panel.is-entering .spec-data { animation: fade-up .6s var(--ease) .08s both; }
.spec-photo { margin: 0; }
.spec-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 18px; }
.spec-title span { color: var(--ink-2); font-weight: 500; margin-left: 8px; }
.spec-hero { padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.spec-big { display: block; font-stretch: 75%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: clamp(3rem, 7vw, 4.8rem); line-height: .95; letter-spacing: -.02em; }
.spec-sub { color: var(--ink-2); }
.spec-data dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.spec-data dl div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.spec-data dt { font-size: .85rem; color: var(--ink-2); margin-bottom: 4px; }
.spec-data dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.spec-data dd small { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.spec-note { margin-top: 28px; color: var(--ink-2); font-size: .92rem; max-width: 70ch; }

/* Delivery */
.delivery { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.provinces { display: grid; gap: 0; align-content: center; }
.province { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.16); }
.province:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.province h3 { font-size: 1.1rem; font-variation-settings: "wdth" 100; font-weight: 600; color: #b8c7de; margin-bottom: 8px; }
.speed { font-stretch: 75%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: #fff; margin: 0 0 6px; letter-spacing: -.015em; }
.speed-sub { color: #b8c7de; margin: 0; }
.map-card { margin: 0; border-radius: 22px; overflow: hidden; background: #0a2b5a; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.map-frame { position: relative; flex: 1; min-height: 360px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: #fff; color: var(--ink); font-weight: 700; }
.map-card figcaption a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-needs { margin-top: clamp(48px, 6vw, 72px); }
.site-needs h3 { margin-bottom: 20px; }
.site-needs dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; }
.site-needs dl div { border-top: 2px solid rgba(255,255,255,.2); padding-top: 16px; }
.site-needs dt { font-weight: 700; color: #fff; }
.site-needs dd { margin: 6px 0 0; color: #b8c7de; font-size: .95rem; }
.reviews-widget { min-height: 120px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.review { margin: 0; border-left: 3px solid var(--blue); padding-left: 22px; }
.review p { font-size: 1.1rem; }
.review cite { font-style: normal; font-weight: 700; }
.review cite span { color: var(--ink-2); font-weight: 400; }

/* FAQ with smooth open/close (where the browser supports it) */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; padding: 20px 44px 20px 0; min-height: 44px; list-style: none; position: relative; font-size: 1.05rem; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* Quote */
.quote-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-lines { margin: 28px 0 0; padding: 0; list-style: none; }
.contact-lines li { padding: 16px 0; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.contact-lines span { color: var(--ink-2); }
.contact-lines a { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.quote-box { background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(22px, 4vw, 40px); }
.quote-form { display: grid; gap: 16px; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { font-size: .9rem; font-weight: 600; display: block; margin-bottom: 6px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; min-height: 50px; padding: 13px 14px; border: 1.5px solid #c4cad3; border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.quote-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a5a6e' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(32, 98, 178, .18); }
.quote-form .hp { position: absolute; left: -9999px; }
.quote-form .btn { width: 100%; min-height: 54px; font-size: 1.05rem; }
.form-note { font-size: .88rem; color: var(--ink-2); margin: 0; text-align: center; max-width: none; }
.notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 16px; animation: fade-up .5s var(--ease) both; }
.notice.ok { background: #e3f1e7; color: #1d6b3a; }
.notice.err { background: #fbe7e5; color: #a3261c; }

/* Inner pages */
.page-head { background: var(--paper); padding-block: 56px 40px; border-bottom: 1px solid var(--rule); }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.entry { max-width: 760px; }
.entry h2 { font-size: 2rem; margin-top: 1.4em; }

/* Proof numbers */
.stats-band { background: var(--paper); border-block: 1px solid var(--rule); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats > div { padding: clamp(28px, 4vw, 44px) 24px; text-align: center; }
.stats > div + div { border-left: 1px solid var(--rule); }
.stat-num { display: block; font-stretch: 75%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1; letter-spacing: -.02em; color: var(--blue-deep); }
.stat-label { display: block; margin-top: 8px; color: var(--ink-2); }

/* About */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.why > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.why p { color: var(--ink-2); margin: 0; }
.about-head .intro { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 52ch; color: var(--ink); }

/* Photos */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--steel); color: var(--ink); text-decoration: none; font-weight: 600; transition: background-color .2s; }
.chips a:hover { background: var(--rule); }
.chips span { font-size: .8rem; color: var(--ink-2); }
.gallery-block h2 { margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--rule); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .gallery-item:hover img { transform: scale(1.04); } }
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(5, 12, 22, .94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: fade-up .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 56px 0 24px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #b8c7de; font-size: .95rem; text-align: center; }
.lightbox button { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; justify-self: center; -webkit-tap-highlight-color: transparent; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { position: absolute; top: 14px; right: 14px; }
.cta-strip { background: var(--blue); padding-block: 48px; }
.cta-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-strip h2 { color: #fff; margin: 0; }
.cta-strip .btn--blue { background: #fff; color: var(--blue-deep); }

/* Footer */
.site-footer { background: var(--ink); color: #9fb0c4; padding-block: 56px 48px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .foot-title { color: #fff; font: 700 1rem var(--font); font-variation-settings: "wdth" 100; letter-spacing: 0; margin: 0 0 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a, .site-footer li span { display: inline-block; padding: 4px 0; }
.site-footer a { color: #d9e2ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-speed { color: #d9e2ee; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.mobile-bar { display: none; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
/* The hero container is set down like it's coming off the truck */
@keyframes drop-in { 0% { opacity: 0; transform: translate(70px, -26px) rotate(-1.2deg); } 70% { opacity: 1; transform: translate(0, 3px) rotate(.15deg); } 100% { opacity: 1; transform: none; } }
:root { --intro-delay: 0s; }
.intro { --intro-delay: .95s; }
.js .rise { animation: rise .9s var(--ease) both; animation-delay: var(--intro-delay); }
.js .rise:nth-child(2) { animation-delay: calc(var(--intro-delay) + .08s); }
.js .rise:nth-child(3) { animation-delay: calc(var(--intro-delay) + .16s); }
.js .rise:nth-child(4) { animation-delay: calc(var(--intro-delay) + .24s); }
.js .drop-in { animation: drop-in 1.3s var(--ease) both; animation-delay: calc(var(--intro-delay) + .2s); }

/* First visit only: a short branded opening, then the page slides into view */
.intro-screen { display: none; }
.intro .intro-screen { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--blue-deep); animation: curtain .55s cubic-bezier(.7, 0, .2, 1) .75s both; pointer-events: none; }
.intro-inner { display: grid; justify-items: center; gap: 22px; }
.intro-inner img { width: min(240px, 60vw); height: auto; animation: logo-in .6s var(--ease) both; }
.intro-bar { display: block; width: 140px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.intro-bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: bar .7s cubic-bezier(.65, 0, .35, 1) .05s both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes curtain { to { transform: translateY(-100%); visibility: hidden; } }

/* Smooth fade between pages (Chrome, Edge, Safari 18+; others just load normally) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Nav links get a drawn underline */
.main-nav a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat; padding-bottom: 3px; transition: color .2s, background-size .35s var(--ease); }
.main-nav a:hover { background-size: 100% 1.5px; }

/* Photos fade in as they load, instead of popping */
.js .img-fade { opacity: 0; transition: opacity .7s var(--ease); }
.js .img-fade.is-loaded { opacity: 1; }

/* Numbers stay steady while counting */
.stat-num { font-variant-numeric: tabular-nums; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .intro .intro-screen { display: none; }
  .js .img-fade { opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .site-header .wrap, .site-header.is-scrolled .wrap { height: var(--header-h); }
  .brand img, .site-header.is-scrolled .brand img { height: 42px; }
  .nav-toggle { display: block; }
  .header-phones { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); margin: 0; background: rgba(12, 52, 109, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; overflow-y: auto; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav a { display: block; padding: 16px 0; font-size: 1.6rem; font-weight: 700; color: #fff; font-variation-settings: "wdth" 80; }
  .nav-open { overflow: hidden; }
  .hero-grid, .quote-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid { gap: 8px; }
  .hero-photo { margin-right: 0; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stock { grid-template-columns: 1fr 1fr; }
  .delivery { grid-template-columns: 1fr; }
  .map-frame { min-height: 320px; }
  .reviews { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .spec-panel { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(11, 29, 51, .08); transition: transform .4s var(--ease); }
  .mobile-bar.is-hidden, .nav-open .mobile-bar { transform: translateY(110%); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .98rem; color: var(--ink); background: var(--steel); -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease); }
  .mobile-bar a:active { transform: scale(.96); }
  .mobile-bar a.is-quote { background: var(--blue); color: #fff; }
}

@media (max-width: 1020px) {
  /* Comfortable tap targets for links that sit inside text */
  .contact-lines a, .site-footer li a, .site-footer p a, .footer-bottom a, .crumbs a { display: inline-block; padding-block: 10px; }
  .contact-lines li { padding: 8px 0; }
  .site-footer li { margin: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .intro { font-size: 1.06rem; }
  .hero h1 { max-width: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-badges { gap: 8px; margin-bottom: 18px; }
  .badge { font-size: .85rem; min-height: 36px; padding: 6px 12px 6px 10px; }
  .stars svg { width: 15px; height: 15px; }
  .hero-photo { margin: 12px -8px 0; }
  .hero-facts { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .hero-facts div, .hero-facts div + div { padding: 16px 12px 16px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .hero-facts div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rule); }
  .hero-facts strong { font-size: .98rem; }
  .hero-facts span { font-size: .85rem; }
  .head-row .btn { display: none; }

  /* Stock becomes a swipeable row, like the App Store */
  .stock { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; background: none; border: 0; border-radius: 0; margin-inline: -20px; padding: 0 20px 6px; scroll-padding-inline: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .stock::-webkit-scrollbar { display: none; }
  .unit { flex: 0 0 84%; scroll-snap-align: start; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
  .unit--ask { flex-basis: 84%; }
  .swipe-hint { display: block; margin: 12px 0 0; font-size: .88rem; color: var(--ink-2); }

  .compare { grid-template-columns: 1fr; gap: 44px; }
  .why { grid-template-columns: 1fr; gap: 28px; }
  .stats > div { padding: 22px 6px; }
  .stat-num { font-size: 2.2rem; }
  .stat-label { font-size: .85rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-item { border-radius: 10px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); }
  .lb-prev { left: 24px; } .lb-next { right: 24px; }

  /* Price sheet stacks into one card per size */
  .sheet thead { display: none; }
  .sheet, .sheet tbody, .sheet tr, .sheet th, .sheet td { display: block; width: 100%; }
  .sheet tr { padding: 18px 20px; border-bottom: 1px solid var(--rule); }
  .sheet tr:last-child { border-bottom: 0; }
  .sheet th, .sheet td { padding: 0; border: 0; }
  .sheet tbody th { margin-bottom: 10px; font-size: 1.05rem; }
  .sheet td { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 1.4rem; }
  .sheet td::before { content: attr(data-label); font: 500 .95rem var(--font); font-variation-settings: "wdth" 100; color: var(--ink-2); }
  .sheet--specs td { font-size: .95rem; text-align: right; gap: 16px; }
  .sheet--specs td small { display: inline; margin-left: 6px; }

  .segmented { display: grid; width: 100%; }
  .segmented button { padding: 12px 8px; font-size: .92rem; }
  .spec-data dl { gap: 0 16px; }
  .unit-foot { flex-wrap: wrap; }
  .unit-foot .btn { flex: 1 1 100%; }
  .unit-price small { display: inline; margin-left: 6px; }
  .footer-grid, .quote-form .row, .site-needs dl { grid-template-columns: 1fr; }
  .site-needs dl { gap: 20px; }
  .map-frame { min-height: 280px; }
  .map-card { border-radius: 18px; }
  .quote-box { border-radius: 18px; margin-inline: -4px; }
  .contact-lines li { flex-direction: column; }
}
@media (max-width: 380px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div:nth-child(even) { padding-left: 0; border-left: 0; }
  .mobile-bar a { font-size: .9rem; }
}
