/* One Way Refinishing (Florida) — site styles
   Built from design/design-desktop.html (>=1024px) and design/design-iphone.html (<768px).
   Mobile-first: base rules are the phone layout; media queries add tablet and desktop. */

/* ---------- tokens ---------- */
:root {
  --navy: #0E2238;
  --navy-card: #13304F;
  --navy-mid: #1E4A73;
  --navy-deep: #0A1A2B;
  --porcelain: #F6F4EF;
  --white: #FFFFFF;
  --text: #4A5663;
  --link: #1E6FA0;
  --accent: #3FA9DF;
  --sky: #9FD3EF;
  --line: #DDD8CD;
  --line-strong: #CFC9BC;
  --line-soft: #EEEAE1;
  --on-navy: #C3CFDB;
  --on-navy-bright: #E6ECF2;
  --foot: #B9C6D3;
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter: 24px;
  --maxw: 1200px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
.swoosh-accent { stroke: var(--accent); }
img { height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--navy); }
p { margin: 0; }
.em { font-style: italic; font-weight: 500; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-dark :focus-visible, .sticky-bar :focus-visible { outline-color: var(--sky); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 10px 10px; font-weight: 600;
}
.skip-link:focus { top: 0; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Filter chips are only useful with JS; reveal them once JS loads. */
.work-filters { display: none; }
.js .work-filters { display: flex; }

/* ---------- motion ----------
   The hero rises in on page load (pure CSS, so it plays even before JS runs).
   Everything marked .reveal fades up as it scrolls into view; main.js adds .in.
   .reveal-on is set in the page head and removed if main.js never loads, so
   content can never get stuck hidden. */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero .eyebrow, .hero h1, .hero .lead, .hero-actions, .hero-figure, .hero-stats {
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.hero h1 { animation-delay: .08s; }
.hero .lead { animation-delay: .16s; }
.hero-figure { animation-delay: .2s; }
.hero-actions { animation-delay: .24s; }
.hero-stats { animation-delay: .34s; }

.reveal-on .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal-on .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .lead, .hero-actions, .hero-figure, .hero-stats { animation: none; }
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- shared pieces ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow .rule { width: 28px; height: 2px; background: var(--accent); flex-shrink: 0; }
.eyebrow span:not(.rule) {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--link);
}
.on-dark .eyebrow span:not(.rule) { color: var(--sky); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-mid); color: var(--white); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #E6EEF5; color: var(--navy); }
.btn-sm { min-height: 48px; font-size: 15px; padding: 0 22px; }

.section { padding: 56px 0; }
.section-light { background: var(--porcelain); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--on-navy); }

.lead { font-size: 16px; line-height: 1.7; color: var(--text); }

h1 { font-size: 46px; line-height: 1; letter-spacing: -0.01em; }
h2 { font-size: 40px; line-height: 1.04; }

.d-only { display: none; }
.header-nav { display: none; }
.services-head { display: flex; flex-direction: column; gap: 18px; }
.contact-grid { display: flex; flex-direction: column; gap: 16px; }

/* ---------- top utility bar (desktop only) ---------- */
.topbar { display: none; }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 30;
  background: var(--porcelain);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 68px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 8px; padding-bottom: 8px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--navy); color: var(--navy); background: transparent;
  cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--navy); color: var(--white); }
.menu-btn { background: var(--navy); color: var(--white); border-color: var(--navy); }
.menu-btn:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.header-phone, .header-cta { display: none; }

.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(14, 34, 56, .14);
  padding: 8px var(--gutter) 20px;
  flex-direction: column;
  display: none;
}
.mobile-nav[data-open="true"] { display: flex; }
.mobile-nav a {
  min-height: 52px; display: flex; align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--navy);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav a.btn { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.mobile-nav a.btn-dark, .mobile-nav a.btn-dark:hover { color: var(--white); }
.mobile-nav .btn { margin-top: 12px; }
.mobile-nav .btn:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--porcelain); padding: 36px 0 48px; }
.hero-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: flex; flex-direction: column; gap: 20px; }
/* phones follow the design order: copy, buttons, photo, then the stat row */
.hero-copy { display: contents; }
.hero-figure { order: 1; }
.hero-stats { order: 2; }
.hero h1 { margin: 0; }
.hero h1 .em { color: var(--navy-mid); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; flex-wrap: wrap; }
.hero-actions .btn { width: 100%; }

.hero-figure { position: relative; margin-top: 16px; }
.hero-figure img { width: 100%; aspect-ratio: 1536 / 1024; object-fit: cover; object-position: center 55%; border-radius: 16px; background: #E7E3DA; }
.hero-card {
  position: relative; margin: -44px 16px 0;
  background: var(--white); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 14px 30px rgba(14, 34, 56, .14);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-card .kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--link);
}
.hero-card .title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line);
}
.hero-stats { margin-bottom: 0; }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats dd { margin: 0; }
.hero-stats dt, .hero-stats .stat {
  font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.1; color: var(--navy);
}
.hero-stats .stat-note { font-size: 13px; line-height: 1.35; color: var(--text); }

/* ---------- about ---------- */
.about .wrap { display: flex; flex-direction: column; gap: 18px; }
.about-photos { position: relative; margin-top: 4px; display: flex; flex-direction: column; }
.about-photos .photo-1 img { width: 100%; aspect-ratio: 1024 / 720; object-fit: cover; border-radius: 14px; background: #E4E9EE; }
.about-photos .photo-2 { align-self: flex-end; width: 70%; margin-top: -48px; position: relative; }
.about-photos .photo-2 img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 30%;
  border-radius: 14px; border: 6px solid var(--white);
  box-shadow: 0 12px 28px rgba(14, 34, 56, .14); background: #EDE7DD;
}
.photo-tag {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  background: var(--white); color: var(--navy);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.motto { margin-top: 6px; padding-top: 20px; border-top: 2px solid var(--accent); display: flex; flex-direction: column; gap: 12px; }
.motto blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.25; color: var(--navy); }
.motto cite { font-style: normal; font-size: 14px; font-weight: 600; color: var(--text); }

/* ---------- services ---------- */
.services .wrap { display: flex; flex-direction: column; gap: 18px; }
.services-hint { display: none; }
/* the phone design ends the services section with the list */
.services-foot { display: none; }
.js-accordion .services-hint { display: block; }
.services-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; list-style: none; padding: 0; }
.service {
  border-radius: 14px; background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, .10); overflow: hidden;
  padding: 14px 18px;
}
.service-title {
  display: flex; align-items: center; gap: 14px;
  font-size: 22px; line-height: 1.15; color: var(--white); margin: 0;
}
.service-title::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0;
  border-radius: 999px; background: var(--accent);
}
.service-desc { font-size: 15px; line-height: 1.6; color: var(--on-navy); margin-top: 10px; }
/* accordion form (added by JS below 1024px) */
.service-toggle {
  width: 100%; min-height: 64px; margin: -14px -18px; padding: 14px 18px;
  border: 0; background: transparent; color: var(--white);
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.15;
}
.service-toggle::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0;
  border-radius: 999px; background: var(--accent);
}
.service-toggle .label { flex-grow: 1; }
.service-toggle .sign { flex-shrink: 0; color: var(--sky); }
.service-toggle .sign .minus { display: none; }
.service-toggle[aria-expanded="true"] .plus { display: none; }
.service-toggle[aria-expanded="true"] .minus { display: block; }
.service.is-accordion { padding: 0; }
.service.is-accordion .service-title { display: block; margin: 0; }
.service.is-accordion .service-title::before { content: none; }
.service.is-accordion .service-toggle { margin: 0; }
.service.is-accordion .service-desc { padding: 0 18px 18px 40px; margin-top: 0; }

/* ---------- why us ---------- */
.why .wrap { display: flex; flex-direction: column; gap: 18px; }
.why-list { display: flex; flex-direction: column; margin-top: 8px; list-style: none; padding: 0; }
.why-list li {
  display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line);
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.tick {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 999px; background: #E3EEF6;
  display: flex; align-items: center; justify-content: center;
}
.why-list h3 { font-size: 22px; }
.why-list p { font-size: 14px; line-height: 1.5; color: var(--text); }
.why-list .why-copy { display: flex; flex-direction: column; gap: 2px; }
.why-copy-col .btn { align-self: flex-start; display: none; }

.steps {
  margin-top: 16px; background: var(--white); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 18px;
}
.steps > .kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--link); }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.step-num {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 999px;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
}
.step-body { font-size: 15px; line-height: 1.5; color: var(--navy); }
.step-body p { display: inline; }
.step-body h3 { display: inline; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.step-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- our work ---------- */
.work { padding: 56px 0; background: var(--white); }
.work > .wrap { display: flex; flex-direction: column; gap: 18px; }
.work-intro { display: flex; flex-direction: column; gap: 18px; }
.work-sub { display: none; }

.hscroll { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hscroll::-webkit-scrollbar { display: none; }

.work-filters {
  gap: 8px; overflow-x: auto; padding: 4px var(--gutter); margin: 0 calc(-1 * var(--gutter));
  width: calc(100% + 2 * var(--gutter));
}
.chip {
  flex-shrink: 0; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--white); color: var(--navy);
  font-family: var(--sans); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); font-weight: 600; }

.work-cards {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
  padding: 6px var(--gutter) 4px; margin: 0 calc(-1 * var(--gutter));
  width: calc(100% + 2 * var(--gutter));
  list-style: none;
}
.work-card { flex: 0 0 82%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.work-card[hidden] { display: none; }
.ba-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px;
  height: 200px; border-radius: 14px; overflow: hidden;
}
.ba { position: relative; background: #E7E3DA; }
.ba.after { background: #D9E4EC; }
.ba img, .ba picture { width: 100%; height: 100%; }
.ba img { object-fit: cover; }
.ba-tag {
  position: absolute; left: 10px; top: 10px;
  background: var(--white); color: var(--navy);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.ba.after .ba-tag { background: var(--navy); color: var(--white); }
.work-card h3 { font-size: 22px; line-height: 1.15; }
.work-card p { font-size: 14px; line-height: 1.5; color: var(--text); }
.work-card .card-copy { display: flex; flex-direction: column; gap: 4px; }

.work-featured .featured-img { position: relative; height: 200px; border-radius: 14px; overflow: hidden; }
.work-featured .featured-img img { width: 100%; height: 100%; object-fit: cover; background: #E7E3DA; }
.work-featured .ba-tag { background: var(--navy); color: var(--white); }
.swipe-hint { font-size: 13px; color: var(--text); }

.signature { display: none; }

/* enlarge button laid over each before/after pair */
.ba-pair { position: relative; }
.ba img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ba-zoom { display: none; }
.js .ba-zoom {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: zoom-in;
}
.ba-zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.zoom-icon {
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); color: var(--navy);
  box-shadow: 0 4px 12px rgba(14, 34, 56, .18);
  transition: transform .2s ease, background-color .2s ease;
}
@media (hover: hover) {
  .ba-pair:hover .ba img { transform: scale(1.04); }
  .ba-pair:hover .zoom-icon { transform: scale(1.08); background: var(--white); }
}

/* ---------- before/after viewer ---------- */
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 26, 43, .97); color: var(--white);
}
.lightbox::backdrop { background: rgba(10, 26, 43, .6); }
.lightbox[open] { display: block; animation: lb-in .25s ease both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-inner {
  height: 100%; display: flex; flex-direction: column; gap: 14px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  max-width: 1280px; margin: 0 auto;
}
.lb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lb-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-count { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.lightbox h2 { color: var(--white); font-size: 26px; line-height: 1.1; }
.lb-note { font-size: 14px; line-height: 1.5; color: var(--on-navy); }
.lb-close {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; color: var(--white); cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .12); }
.lightbox :focus-visible { outline-color: var(--sky); }

.lb-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.lb-toggle button {
  min-height: 40px; border: 0; border-radius: 999px; background: transparent;
  color: var(--on-navy); font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer;
}
.lb-toggle button[aria-pressed="true"] { background: var(--white); color: var(--navy); }

.lb-stage { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); touch-action: pan-y; }
.lb-fig { position: relative; margin: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-stage[data-side="before"] .lb-fig.after,
.lb-stage[data-side="after"] .lb-fig[data-fig="before"] { display: none; }
.lb-fig picture { display: contents; }
.lb-fig img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 12px; background: rgba(255, 255, 255, .04);
}
.lb-fig .ba-tag { position: absolute; left: 12px; top: 12px; z-index: 1; }
.lb-fig.after .ba-tag { background: var(--white); color: var(--navy); }
.lb-fig:not(.after) .ba-tag { background: var(--navy); color: var(--white); border: 1px solid rgba(255, 255, 255, .35); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.lb-nav:hover { background: var(--white); }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb-nav[hidden] { display: none; }
.lb-hint { text-align: center; font-size: 13px; color: var(--on-navy); }

@media (min-width: 768px) {
  .lb-inner { padding: 28px 40px 32px; gap: 20px; }
  .lightbox h2 { font-size: 34px; }
  .lb-note { font-size: 16px; }
  /* room for side-by-side: before and after next to each other, no toggle needed */
  .lb-toggle, .lb-hint { display: none; }
  .lb-stage { grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 60px; }
  .lb-stage .lb-fig { display: flex !important; }
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
  .lb-nav { width: 48px; height: 48px; }
}

/* ---------- service areas ---------- */
.areas .wrap { display: flex; flex-direction: column; gap: 16px; }
.areas-card { background: var(--white); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.area-group h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--navy); display: inline; }
.area-group h3::after { content: ":"; }
.area-group ul { display: inline; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.area-group li { display: inline; }
.area-group li::after { content: " · "; }
.area-group li:last-child::after { content: ""; }
.area-group .rule { display: none; }

.zip-cta {
  background: var(--navy); border-radius: 16px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px; color: var(--white);
}
.zip-cta:hover { color: var(--white); }
.zip-cta strong { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.zip-cta > span:not(.btn) { font-size: 15px; color: var(--sky); font-weight: 600; }
.zip-cta .btn { display: none; }

/* ---------- contact ---------- */
.contact { background: var(--white); padding: 40px 0 48px; }
.contact .wrap { display: flex; flex-direction: column; gap: 16px; padding: 0 16px; }
.contact-panel {
  background: var(--navy); border-radius: 20px; padding: 32px 24px;
  display: flex; flex-direction: column; gap: 16px; color: var(--white);
  position: relative; overflow: hidden;
}
.contact-panel > * { position: relative; }
.contact-panel .panel-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact-panel h2, .contact-panel h3 { color: var(--white); }
.contact-panel h2 { font-size: 38px; }
.contact-panel .lead { color: var(--on-navy); font-size: 16px; }
.promise { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.promise li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--on-navy-bright); }
.promise svg { flex-shrink: 0; }
.contact-lines {
  display: flex; flex-direction: column; gap: 12px; margin-top: 4px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.contact-lines a, .contact-lines div { display: flex; gap: 12px; align-items: center; min-height: 44px; color: var(--white); font-size: 15px; }
.contact-lines a:hover { color: var(--sky); }
.contact-lines .phone { font-size: 21px; font-weight: 600; }
.contact-lines .phone span { font-size: 13px; font-weight: 500; color: var(--sky); }
.contact-lines .email { word-break: break-word; }
.contact-lines .where { color: var(--on-navy-bright); }
.contact-lines svg { flex-shrink: 0; }

.form-card { background: var(--porcelain); border-radius: 20px; padding: 26px 20px; }
form { display: flex; flex-direction: column; gap: 14px; }
.form-head { display: flex; flex-direction: column; gap: 4px; }
.form-head h2 { font-size: 28px; line-height: 1.1; }
.form-head p { font-size: 14px; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label, .field .label-text { font-size: 13px; font-weight: 600; color: var(--navy); }
.field .hint { font-weight: 400; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px; font-family: var(--sans); font-size: 16px; color: var(--navy); background: var(--white);
}
.field textarea { height: 100px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.file-drop {
  min-height: 64px; border: 1.5px dashed #B9C6D3; border-radius: 12px; background: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--navy-mid); font-size: 15px; font-weight: 600; cursor: pointer; padding: 12px;
  text-align: center;
}
.file-drop:hover { background: #F3F7FA; }
input[type="file"]:focus-visible + .file-drop { outline: 2px solid var(--link); outline-offset: 2px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-names { font-size: 13px; color: var(--text); }
.form-note { font-size: 13px; color: var(--text); text-align: center; }
.form-status {
  display: none; border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.55;
  background: #E3EEF6; color: var(--navy); border: 1px solid #BBD7E8;
}
.form-status[data-show="true"] { display: block; }
.form-status a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--foot); padding: 48px 0 120px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 32px; }
.site-footer a { color: var(--foot); }
.site-footer a:hover { color: var(--white); }
.site-footer a.btn-light, .site-footer a.btn-light:hover { color: var(--navy); }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand img { height: 50px; width: auto; align-self: flex-start; }
.foot-brand p { font-size: 14px; line-height: 1.65; max-width: 320px; }
.foot-col h2 {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white); margin-bottom: 6px;
}
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; font-size: 15px; }
.foot-nav a { min-height: 40px; display: flex; align-items: center; }
.foot-services { display: none; }
.foot-contact { display: none; }
.foot-legal {
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; gap: 10px; font-size: 13px;
}
.foot-legal nav { display: flex; gap: 20px; }

/* ---------- sticky bottom bar (phones) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--navy); box-shadow: 0 -8px 24px rgba(14, 34, 56, .25);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px;
}
.sticky-bar a {
  min-height: 48px; border-radius: 999px; color: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15px; font-weight: 600; border: 1.5px solid rgba(255, 255, 255, .55);
}
.sticky-bar a:hover { color: var(--white); background: rgba(255, 255, 255, .12); }
.sticky-bar .primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.sticky-bar .primary:hover { background: #E6EEF5; color: var(--navy); }

/* ---------- legal pages ---------- */
.legal { padding: 48px 0 64px; background: var(--porcelain); }
.legal .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 26px; margin-top: 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--text); }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal .updated { font-size: 14px; color: var(--text); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   TABLET — 768px and up
   ===================================================================== */
@media (min-width: 768px) {
  :root { --gutter: 40px; }

  h1 { font-size: 60px; }
  h2 { font-size: 48px; }
  .section { padding: 80px 0; }
  .work { padding: 80px 0; }

  .hero { padding: 56px 0 72px; }
  .hero .wrap { gap: 24px; }
  .hero-copy { display: flex; flex-direction: column; gap: 24px; }
  .hero-figure, .hero-stats { order: 0; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat { font-size: 24px; }
  .hero-stats .stat-note { font-size: 14px; }
  .hero-figure { max-width: 680px; }

  .about-photos { flex-direction: row; align-items: flex-start; gap: 0; }
  .about-photos .photo-1 { width: 66%; }
  .about-photos .photo-2 { width: 42%; margin: 120px 0 0 -8%; align-self: flex-start; }
  .motto blockquote { font-size: 30px; }

  .services-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .services-list .service { grid-column: span 2; }
  /* an odd card out keeps the same width and sits centred under the row above */
  .services-list .service:last-child:nth-child(odd) { grid-column: 2 / span 2; }
  .services-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .14); }
  .services-foot .copy { display: flex; flex-direction: column; gap: 10px; }

  .why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .why-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .steps { padding: 32px; }
  .steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps .btn { display: none; }

  /* work becomes a grid; the phone-only swipe card gives way to the signature panel */
  .work-filters { flex-wrap: wrap; overflow: visible; padding: 4px 0; margin: 0; width: 100%; }
  .work-cards {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
    overflow: visible; padding: 6px 0 0; margin: 0; width: 100%;
  }
  .work-card { flex: none; }
  .work-featured { display: none !important; }
  .ba-pair { height: 240px; gap: 4px; }
  .ba-tag { left: 12px; top: 12px; font-size: 11px; padding: 5px 10px; }
  .swipe-hint { display: none; }

  .signature {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--porcelain); border-radius: 22px; overflow: hidden; margin-top: 48px;
  }
  .signature img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; background: #E7E3DA; }
  .signature-copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
  .signature-copy h3 { font-size: 40px; line-height: 1.02; }
  .signature-copy p { font-size: 17px; line-height: 1.7; color: var(--text); }
  .signature-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .signature-points li { display: flex; gap: 10px; align-items: center; font-size: 16px; color: var(--navy); }
  .signature-points svg { flex-shrink: 0; }
  .signature .btn { align-self: flex-start; }

  .areas-card { flex-direction: row; gap: 20px; padding: 0; background: transparent; }
  .area-group {
    flex: 1; background: var(--white); border-radius: 16px; padding: 24px;
    display: flex; flex-direction: column; gap: 12px;
  }
  .area-group h3 { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
  .area-group h3::after { content: ""; }
  .area-group .rule { display: block; width: 32px; height: 2px; background: var(--accent); }
  .area-group ul { display: block; font-size: 15px; line-height: 1.9; }
  .area-group li { display: block; }
  .area-group li::after { content: ""; }

  .zip-cta {
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 24px; padding: 24px 32px; margin-top: 24px;
  }
  .zip-cta strong { font-size: 26px; }

  .contact .wrap { padding: 0 var(--gutter); }
  .contact-panel { padding: 44px 40px; }
  .form-card { padding: 36px 32px; }
  .field-row { gap: 16px; }

  .site-footer { padding: 72px 0 64px; }
  .site-footer .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-nav { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .foot-services, .foot-contact { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
  .foot-contact .btn { align-self: flex-start; margin-top: 8px; }
  .foot-legal { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; margin-top: 8px; }

  .sticky-bar { display: none; }
}

/* =====================================================================
   DESKTOP — 1024px and up (follows design-desktop.html)
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 48px; }

  h1 { font-size: 72px; line-height: .98; }
  h2 { font-size: 52px; line-height: 1.02; }
  .lead { font-size: 17px; line-height: 1.75; }
  .section { padding: 96px 0; }
  .work { padding: 96px 0; }
  .d-only { display: revert; }
  .m-only { display: none !important; }

  .eyebrow .rule { width: 40px; }
  .eyebrow span:not(.rule) { font-size: 13px; letter-spacing: 0.18em; }

  /* top utility bar */
  .topbar {
    display: block; background: var(--navy); color: #D6DEE7;
    font-size: 13px; letter-spacing: 0.04em;
  }
  .topbar .wrap {
    min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  .topbar ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
  .topbar .topbar-contact { display: flex; gap: 28px; align-items: center; }
  .topbar a { color: var(--white); }
  .topbar a:hover { color: var(--sky); }

  /* header */
  .header-inner { min-height: 96px; }
  .logo img { height: 58px; }
  .header-nav {
    display: flex; gap: 36px; font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  }
  .header-nav a { color: var(--navy); white-space: nowrap; }
  .header-nav a:hover { color: var(--link); }
  .header-phone {
    display: flex; align-items: center; gap: 8px;
    color: var(--navy); font-weight: 600; font-size: 15px;
  }
  .header-phone:hover { color: var(--link); }
  .header-phone { white-space: nowrap; }
  .header-cta { display: inline-flex; }
  .icon-btn.call-btn, .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .header-actions { gap: 20px; }

  /* hero */
  .hero { padding: 72px 0 96px; }
  .hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 72px; align-items: start;
  }
  .hero-copy { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; }
  .hero .lead { font-size: 19px; line-height: 1.65; max-width: 520px; }
  .hero-actions { gap: 16px; }
  .hero-actions .btn { min-height: 56px; padding: 0 32px; }
  /* The backdrop waves keep a fixed height instead of stretching with the hero,
     so they always run through the gap between the buttons and the stat row. */
  .hero-swoosh { top: 20px; bottom: auto; height: 800px; }
  .hero-stats { gap: 24px; margin-top: 116px; padding-top: 28px; }
  .hero-stats .stat { font-size: 26px; }

  .hero-figure { margin-top: 0; max-width: none; padding-bottom: 96px; }
  .hero-figure img { height: 400px; aspect-ratio: auto; border-radius: 20px; box-shadow: 0 24px 50px rgba(14, 34, 56, .16); }
  .hero-card {
    position: absolute; left: -48px; right: auto; bottom: 0; width: 300px;
    margin: 0; padding: 24px 26px; border-radius: 16px;
    box-shadow: 0 18px 40px rgba(14, 34, 56, .14);
  }
  .hero-card .kicker { font-size: 12px; }
  .hero-card .title { font-size: 24px; }

  /* about */
  .about .wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 96px; align-items: start;
  }
  .about-copy { display: flex; flex-direction: column; gap: 24px; padding-top: 12px; }
  .about-photos { margin-top: 0; flex-direction: column; }
  .about-photos .photo-1 { width: 88%; }
  .about-photos .photo-1 img { height: 342px; aspect-ratio: auto; }
  .about-photos .photo-2 { width: 58%; margin: -80px 0 0 auto; align-self: flex-end; }
  .about-photos .photo-2 img { height: 256px; aspect-ratio: auto; border-width: 8px; }
  .photo-tag { left: 16px; top: 16px; font-size: 12px; padding: 6px 12px; }
  .motto blockquote { font-size: 30px; }

  /* services */
  .services .wrap { display: block; }
  .services-head {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 72px; align-items: end;
  }
  .services-head .head-copy { display: flex; flex-direction: column; gap: 22px; }
  .services-hint { display: none !important; }
  .services-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: 64px; align-items: stretch; }
  .services-list .service,
  .services-list .service:last-child:nth-child(odd) { grid-column: span 2; }
  .services-list .service:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
  .services-list .service:nth-child(5):last-child { grid-column: 4 / span 2; }
  .service { padding: 36px; border-radius: 16px; min-height: 250px; }
  .service-title { font-size: 28px; line-height: 1.1; align-items: flex-start; flex-direction: column; gap: 16px; }
  .service-title::before { width: 40px; height: 2px; border-radius: 0; }
  .service-desc { font-size: 15px; margin-top: 16px; }
  .services-foot {
    margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 48px;
  }
  .services-foot .copy { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
  .services-foot h3 { font-size: 34px; }
  .services-foot p { font-size: 16px; line-height: 1.7; }
  .services-foot .btn { flex-shrink: 0; }

  /* why */
  .why .wrap {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 96px; align-items: start;
  }
  .why-copy-col { display: flex; flex-direction: column; gap: 24px; }
  .why-copy-col .btn { display: inline-flex; margin-top: 8px; }
  .why-list { display: flex; gap: 0; }
  .why-list li { gap: 20px; padding: 22px 0; }
  .why-list li:nth-last-child(2) { border-bottom: 0; }
  .tick { width: 32px; height: 32px; margin-top: 2px; }
  .why-list h3 { font-size: 27px; }
  .why-list p { font-size: 16px; line-height: 1.6; }
  .steps { grid-column: 1 / -1; margin-top: 72px; border-radius: 18px; padding: 36px 44px; gap: 24px; }
  .steps > .kicker { font-size: 13px; letter-spacing: 0.18em; }
  .steps ol { gap: 40px; }
  .steps li { gap: 18px; }
  .step-num { width: 48px; height: 48px; font-size: 26px; }
  .step-body { display: flex; flex-direction: column; gap: 6px; }
  .step-body h3 { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; }
  .step-body p { display: block; font-size: 15px; line-height: 1.6; color: var(--text); }

  /* work */
  .work-intro { align-items: center; text-align: center; gap: 20px; }
  .work-intro .eyebrow::after {
    content: ""; width: 40px; height: 2px; background: var(--accent); flex-shrink: 0;
  }
  .work-sub { display: block; max-width: 600px; font-size: 17px; line-height: 1.7; color: var(--text); }
  .work-filters { justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding: 0; overflow: visible; width: 100%; }
  .chip { height: 44px; padding: 0 20px; }
  .work-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
  .work-card { gap: 16px; }
  .work-card h3 { font-size: 25px; }
  .work-card p { font-size: 15px; line-height: 1.55; }
  .signature { margin-top: 72px; }
  .signature img { height: 520px; min-height: 0; }
  .signature-copy { padding: 56px; gap: 20px; }
  .signature-copy h3 { font-size: 48px; }

  /* areas */
  .areas .wrap {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 64px; align-items: start;
  }
  .areas-copy { display: flex; flex-direction: column; gap: 22px; }
  .areas-card { gap: 20px; }
  .area-group { padding: 28px; }
  .area-group h3 { font-size: 26px; }
  .zip-cta { grid-column: 1 / -1; margin-top: 48px; padding: 24px 32px; }
  .zip-cta strong { font-size: 28px; color: var(--white); }
  .zip-cta strong .em { color: var(--sky); }
  .zip-cta > span:not(.btn) { display: none; }
  .zip-cta .btn { display: inline-flex; flex-shrink: 0; }

  /* contact */
  .contact { padding: 90px 0 96px; }
  .contact .wrap { display: block; }
  .contact-grid {
    background: var(--navy); border-radius: 24px; padding: 64px;
    display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 64px; position: relative; overflow: hidden;
  }
  .contact-panel { background: transparent; border-radius: 0; padding: 0; gap: 24px; }
  .contact-panel h2 { font-size: 56px; }
  .contact-panel .lead { font-size: 17px; line-height: 1.7; }
  .promise li { font-size: 16px; }
  .contact-lines { gap: 16px; margin-top: 16px; padding-top: 28px; }
  .contact-lines .phone { font-size: 22px; }
  .contact-lines .email, .contact-lines .where { font-size: 17px; }
  .form-card { position: relative; background: var(--white); border-radius: 18px; padding: 40px; }
  .form-head h2 { font-size: 32px; }
  .form-head p { font-size: 15px; }
  form { gap: 18px; }
  .field-row { gap: 16px; }
  .field input, .field select, .field textarea { font-size: 15px; background: #FBFAF7; }
  .field textarea { height: 110px; }
  .file-drop { min-height: 76px; background: #F3F7FA; }

  /* footer */
  .site-footer { padding: 80px 0 40px; }
  .site-footer .wrap {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
  }
  .foot-brand { grid-column: auto; gap: 18px; }
  .foot-brand img { height: 64px; }
  .foot-brand p { font-size: 15px; line-height: 1.7; }
  .foot-nav { display: flex; flex-direction: column; gap: 12px; }
  .foot-nav a { min-height: 0; }
  .foot-legal { margin-top: 48px; padding-top: 24px; }
  .foot-legal nav { gap: 24px; }
}

/* very wide: keep the hero card from colliding with the page edge */
@media (min-width: 1360px) {
  .hero-card { left: -48px; }
}

/* smaller desktops: tighten the header and hero so each stays in its intended layout */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
  .hero h1 { font-size: 62px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { padding: 0 22px; font-size: 15px; }
  .header-nav { gap: 20px; font-size: 14px; }
  .header-phone { font-size: 14px; }
  .header-actions { gap: 12px; }
  .btn-sm { padding: 0 18px; }
  .topbar { font-size: 12px; }
  .topbar ul, .topbar .topbar-contact { gap: 18px; }
}
