/* Precision Paint - Red Isle Web build, 2026-08-19
   Palette: paper #EDEDEB, white, navy #122B3F (ink and edges only),
   gold #E69F45 (the single accent), coral #D85857 and teal #5D99A1 (small marks only).
   Light ground everywhere: no dark hero, no dark footer, no full-bleed navy field. */

:root {
  --paper: #EDEDEB;
  --white: #ffffff;
  --navy: #122B3F;
  --navy-soft: #3d5468;
  --gold: #E69F45;
  --gold-dark: #c9822c;
  --coral: #D85857;
  --teal: #5D99A1;
  --hairline: rgba(18, 43, 63, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1140px;
  --font: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  z-index: 300;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker,
.page-hero .kicker {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-soft);
  margin-bottom: 10px;
}

/* ---------- header ---------- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  overflow-anchor: none;
  transition: box-shadow 0.25s ease;
}
.site-header.is-shrunk { box-shadow: 0 6px 24px rgba(18, 43, 63, 0.10); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  transition: padding 0.25s ease;
}
.site-header.is-shrunk .header-inner { padding-top: 8px; padding-bottom: 8px; }
.brand img { height: 73px; width: auto; transition: height 0.25s ease; }
.site-header.is-shrunk .brand img { height: 56px; }
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.98rem;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  cursor: pointer;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
}
.nav-toggle .bars { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-dark); color: var(--navy); transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); color: var(--white); transform: translateY(-1px); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn--sm { padding: 9px 18px; font-size: 0.93rem; }

/* ---------- hero ---------- */
.hero { background: var(--paper); padding: 72px 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .tagline-rule {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 22px;
}
.hero-copy p.lede { font-size: 1.16rem; color: var(--navy-soft); max-width: 30em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 0.95rem; color: var(--navy-soft); }
.hero-note strong { color: var(--navy); }

.frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--white);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--band { aspect-ratio: 3 / 2; }
.frame--card { aspect-ratio: 4 / 3; }
.frame--portrait { aspect-ratio: 3 / 4; }
.frame--wide { aspect-ratio: 21 / 9; }
.frame--natural { aspect-ratio: auto; }
.frame--natural img { height: auto; }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 12px 30px rgba(18, 43, 63, 0.10); transform: translateY(-3px); }
.card .frame { border: 0; border-radius: 0; }
.card-body { padding: 22px 22px 26px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.97rem; color: var(--navy-soft); margin-bottom: 14px; }
.card-link { font-weight: 800; text-decoration: none; font-size: 0.97rem; }
.card-link::after { content: " \2192"; color: var(--gold-dark); }
.card--icon { justify-content: center; background: var(--paper); }
.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px 22px 0;
}
.icon-badge svg { width: 28px; height: 28px; stroke: var(--gold-dark); }

/* ---------- promise row ---------- */
.promise-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: start;
}
.promise {
  border-top: 4px solid var(--gold);
  padding-top: 22px;
}
.promise h3 { font-size: 1.22rem; }
.promise p { color: var(--navy-soft); font-size: 1rem; }

/* ---------- before / after ---------- */
.ba-wrap { max-width: 860px; margin: 0 auto; }
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--white);
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-slider .ba-after-img { clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(18, 43, 63, 0.25);
  pointer-events: none;
}
.ba-handle::after {
  content: "\21C4";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-tag {
  position: absolute;
  bottom: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  pointer-events: none;
}
.ba-tag--before { left: 14px; background: var(--coral); }
.ba-tag--after { right: 14px; background: var(--navy); }
.ba-caption { text-align: center; color: var(--navy-soft); margin-top: 16px; font-size: 0.97rem; }

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.ba-pair figure { margin: 0; position: relative; }
.ba-pair .ba-tag { bottom: 12px; }
.ba-pair figcaption { text-align: center; color: var(--navy-soft); font-size: 0.95rem; margin-top: 10px; }

/* ---------- feature (image + copy) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature--flip .feature-media { order: 2; }
.feature-copy .kicker {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.feature-copy p { color: var(--navy-soft); }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}
.gallery-grid .card .meta { font-size: 0.9rem; color: var(--navy-soft); margin-bottom: 0; }
.card--tile {
  background: var(--navy);
  color: var(--white);
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  text-decoration: none;
}
.card--tile .card-body { padding: 28px 24px; }
.card--tile h3 { color: var(--white); }
.card--tile p { color: rgba(255, 255, 255, 0.82); }
.card--tile .card-link { color: var(--gold); }
.card--tile .card-link::after { color: var(--gold); }
.card--tile:hover { background: var(--navy-soft); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.photo-grid figure { margin: 0; }
.photo-grid figcaption { font-size: 0.92rem; color: var(--navy-soft); padding: 10px 4px 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--paper);
  border-top: 4px solid var(--gold);
  text-align: center;
  padding: 72px 0;
}
.cta-band p { color: var(--navy-soft); max-width: 34em; margin: 0 auto 26px; }

/* ---------- services page ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
}
.service-block:last-of-type { border-bottom: 0; }
.service-block--flip .service-media { order: 2; }
.service-copy h2 { margin-bottom: 14px; }
.service-copy > p { color: var(--navy-soft); }
.service-list {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
}
.service-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 0.98rem;
}
.service-list li:last-child { border-bottom: 0; }
.service-list li strong { display: block; }
.service-block--text { grid-template-columns: 1fr; max-width: 760px; }
.service-block--text .icon-badge { margin: 0 0 18px; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-details h2 { margin-bottom: 18px; }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { display: block; font-size: 0.88rem; color: var(--navy-soft); font-weight: 700; }
.contact-list a { font-weight: 800; text-decoration: none; }
.estimate-form {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 34px;
}
.estimate-form h2 { margin-bottom: 6px; }
.estimate-form .form-intro { color: var(--navy-soft); font-size: 0.97rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.97rem; }
.field label .req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}
.field .optional { font-weight: 400; color: var(--navy-soft); font-size: 0.9rem; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--navy-soft); font-size: 0.95rem; max-width: 24em; }
.footer-col h2, .footer-col h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: 0.96rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--gold-dark); }
.footer-cta { margin-top: 16px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--navy-soft);
}
.footer-bottom a { color: var(--navy-soft); }

/* ---------- mobile call bar ---------- */
.call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.call-bar .btn { flex: 1; text-align: center; padding: 12px 10px; font-size: 0.95rem; }

/* ---------- reveal motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- full-bleed hero (edit round 2) ---------- */
:root { --header-h: 102px; }
.hero-bleed { position: relative; height: min(calc(100svh - var(--header-h)), 860px); min-height: 440px; background: var(--paper); }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-slide img.pos-ext { object-position: center top; }
.hero-slide img.pos-int { object-position: center 22%; }
.hero-slide img.pos-int2 { object-position: center 28%; }
.hero-slide:not(:first-child) { display: none; }
html.js .hero-slide { display: block; opacity: 0; transition: opacity 1.1s ease; }
html.js .hero-slide.active { opacity: 1; }
.hero-tagbox {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--navy);
  color: var(--white);
  padding: 26px 38px;
  max-width: min(640px, 88vw);
}
.hero-tagbox h1 { color: var(--white); margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.25rem); }
@media (max-width: 700px) {
  :root { --header-h: 88px; }
  .hero-bleed { height: min(calc(72svh - var(--header-h)), 560px); min-height: 360px; }
  .hero-tagbox { bottom: 0; padding: 16px 20px; }
}

.img-top { object-position: center top !important; }

.ba-stack { max-width: 860px; margin: 0 auto; }
.ba-stack figure { margin: 0 0 22px; position: relative; }
.ba-stack img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.ba-stack .ba-tag { top: 14px; bottom: auto; }

/* ---------- misc ---------- */
.page-hero { background: var(--white); padding: 64px 0 56px; border-bottom: 1px solid var(--hairline); }
.page-hero p { color: var(--navy-soft); max-width: 38em; font-size: 1.08rem; }
.breadcrumb { font-size: 0.92rem; color: var(--navy-soft); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.notice-box {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 26px 28px;
  max-width: 640px;
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .feature, .contact-grid, .service-block { grid-template-columns: 1fr; gap: 36px; }
  .feature--flip .feature-media, .service-block--flip .service-media { order: 0; }
  .promise-row { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 18px 30px rgba(18, 43, 63, 0.12);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; }
  .main-nav li { border-bottom: 1px solid var(--hairline); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 13px 0; border-bottom: 0; }
  .main-nav a[aria-current="page"] { color: var(--gold-dark); }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .header-phone { display: none; }
  .header-actions .btn { padding: 9px 14px; font-size: 0.88rem; }
  .call-bar { display: flex; }
  body { padding-bottom: 72px; }
  .section { padding: 60px 0; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .card-grid, .gallery-grid, .photo-grid, .ba-pair { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand img { height: 58px; }
  .estimate-form { padding: 24px 20px; }
  .container { padding: 0 18px; }
  .header-inner { padding-left: 18px; padding-right: 18px; }
}
