/* ==========================================================================
   A&F Services — quality work. honest service. every time.
   Palette + logo are the client's real brand: navy #042141, gold #FABA03.
   ========================================================================== */

/* === defensive base — injected by harden_css.py; do not hand-edit === */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: calc(var(--nav-h, 72px) + 1rem); }
img, svg, video, iframe, canvas, table { display: block; max-width: 100%; }
p, li, h1, h2, h3, h4, blockquote, td, dd, dt { overflow-wrap: anywhere; }
form[style*="min-height"] { align-content: center; }
/* === end defensive base === */

:root {
  --navy-950: #04101f;
  --navy-900: #042141;
  --navy-800: #0a2e56;
  --navy-700: #123f70;
  --navy-line: rgba(255, 255, 255, .10);

  --gold: #faba03;
  --gold-deep: #d99a00;
  --gold-soft: #f6ce63;

  --bone: #f4f1ea;
  --bone-dim: #e8e3d8;
  --bone-line: #d9d2c3;
  --ink: #0e1620;
  --ink-soft: #4a5765;
  --steel: #8b939e;

  --font-display: "Anton", "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --nav-h: 74px;
  --wrap: 1180px;
  --r: 4px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

@media (max-width: 700px) {
  :root { --nav-h: 64px; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

/* parked ABOVE the viewport, never to the left of it — an off-canvas -9999px
   here registers as real horizontal overflow in the pre-deploy check. */
.skip-link {
  position: absolute; left: 0; top: 0; z-index: 200;
  transform: translateY(-130%);
  background: var(--gold); color: var(--navy-900);
  padding: .75rem 1.25rem; font-family: var(--font-cond);
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none;
  transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }

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

/* --------------------------------------------------------------- type bits */

.eyebrow {
  margin: 0 0 .95rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(.76rem, .72rem + .18vw, .88rem);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--gold { color: var(--gold); }

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.35rem + 2.7vw, 3.5rem);
  line-height: .96;
  letter-spacing: .004em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* hard breaks tuned for the wide layout; on narrow screens they orphan a word */
.br-lg { display: none; }
@media (min-width: 861px) { .br-lg { display: inline; } }

.sec-lede {
  margin-top: 1.1rem;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.06em;
}

.sec-head { margin-bottom: clamp(2.4rem, 4vw, 3.4rem); }
.sec-head--center { text-align: center; }
.sec-head--center .sec-lede { margin-inline: auto; }

.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section--bone { background: var(--bone); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(.94rem, .9rem + .2vw, 1.06rem);
  letter-spacing: .085em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
  box-shadow: 0 10px 26px -14px rgba(250, 186, 3, .95);
}
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }

.btn--ghost { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn--navy { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-800); border-color: var(--navy-800); transform: translateY(-2px); }

.btn--quiet { border-color: var(--bone-line); color: var(--ink); }
.btn--quiet:hover { border-color: var(--navy-900); transform: translateY(-2px); }

.btn--sm { padding: .68rem 1.1rem; font-size: .88rem; letter-spacing: .07em; }
.btn--lg { padding: 1.08rem 2rem; }

/* ---------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-h);
  background: rgba(244, 241, 234, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bone-line);
}

.nav__inner {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.nav__brand { flex: none; display: block; }
.nav__brand img { width: auto; height: clamp(38px, 4.6vw, 50px); }

.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.1rem);
}

.nav__links a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-900);
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.nav__links a:hover { border-bottom-color: var(--gold); }

.nav__actions { display: flex; align-items: center; gap: .9rem; flex: none; }

.nav__tel {
  display: none;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--navy-900);
}
.nav__tel svg { width: 17px; height: 17px; fill: var(--gold-deep); }
.nav__tel:hover { color: var(--gold-deep); }

.nav__burger {
  display: none;
  width: 44px; height: 40px;
  padding: 0 9px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--bone-line);
  border-radius: var(--r);
  cursor: pointer;
}
.nav__burger span { display: block; height: 2px; background: var(--navy-900); transition: transform .22s ease, opacity .22s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 981px) { .nav__tel { display: inline-flex; } }

@media (max-width: 980px) {
  .nav__burger { display: flex; }
  /* the links go position:absolute below, so nothing is left to push the
     actions right — do it here instead. */
  .nav__actions { margin-left: auto; }

  /* closed by default — display:none, so a class can't be beaten by [hidden] alone */
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: .5rem clamp(1.15rem, 4vw, 2.5rem) 1.25rem;
    background: var(--bone);
    border-bottom: 1px solid var(--bone-line);
    box-shadow: 0 22px 40px -26px rgba(4, 33, 65, .55);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding-block: .85rem; border-bottom: 1px solid var(--bone-dim); }
  .nav__links a:last-child { border-bottom: 0; }
}

@media (max-width: 430px) {
  .nav__inner { gap: .55rem; }
  .nav__actions { gap: .5rem; }
  .nav__cta { padding: .62rem .74rem; font-size: .78rem; letter-spacing: .04em; }
}

/* --------------------------------------------------------------------- hero */

.hero {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: clamp(1.75rem, 4svh, 3.5rem);
  background:
    radial-gradient(115% 85% at 78% 8%, rgba(250, 186, 3, .17), transparent 58%),
    linear-gradient(178deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #fff;
  overflow-x: clip;   /* the blueprint rules + gold slash bleed on purpose */
}

/* blueprint grid + gold slash + grain */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 84px);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .25) 78%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background-image: var(--grain);
  opacity: .05;
  pointer-events: none;
}

.hero__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 4cqi, 3.5rem);
}

.hero__copy { min-width: 0; }

.hero__title {
  font-family: var(--font-display);
  /* cqi keeps it proportional to the hero's own width -> can't blow the fold on a phone */
  font-size: clamp(2.55rem, 9cqi, 5.6rem);
  line-height: .88;
  letter-spacing: .002em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__title span {
  color: var(--gold);
  -webkit-text-stroke: 0;
}

.hero__sub {
  margin-top: clamp(.9rem, 1.8cqi, 1.5rem);
  max-width: 44ch;
  font-size: clamp(1rem, 1.55cqi, 1.2rem);
  color: rgba(255, 255, 255, .82);
}

.hero__cta {
  margin-top: clamp(1.3rem, 2.4cqi, 2.1rem);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.hero__proof {
  margin-top: clamp(1.3rem, 2.4cqi, 2rem);
  padding-top: clamp(1rem, 2cqi, 1.5rem);
  border-top: 1px solid var(--navy-line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .55rem 1.4rem;
}
.hero__proof li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(.85rem, 1.25cqi, .98rem);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.hero__proof li::before {
  content: "";
  position: absolute;
  left: 0; top: .34em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.hero__card {
  min-width: 0;
  padding: clamp(1.25rem, 2.6cqi, 2rem);
  background: linear-gradient(165deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  border: 1px solid rgba(250, 186, 3, .45);
  border-radius: var(--r);
  border-left: 4px solid var(--gold);
  text-align: center;
}
.hero__card-kicker {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(.72rem, 1.1cqi, .84rem);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.hero__card-title {
  margin-top: .35rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.9cqi, 3.05rem);
  line-height: .9;
  text-transform: uppercase;
  color: #fff;
}
.hero__card-tel {
  display: block;
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(250, 186, 3, .3);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.35cqi, 1.75rem);
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--gold);
}
.hero__card-tel:hover { color: #fff; }
.hero__card-note {
  margin-top: .45rem;
  font-size: clamp(.82rem, 1.15cqi, .94rem);
  color: rgba(255, 255, 255, .62);
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__card { text-align: left; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ----------------------------------------------------------------- services */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  background: #fff;
  border: 1px solid var(--bone-line);
  border-radius: var(--r);
  border-top: 3px solid var(--navy-900);
  transition: transform .22s ease, box-shadow .22s ease, border-top-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-top-color: var(--gold);
  box-shadow: 0 26px 44px -30px rgba(4, 33, 65, .6);
}
.card--accent { border-top-color: var(--gold); background: linear-gradient(178deg, #fff, #fdf7e6); }

.card__ico {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 1.15rem;
  background: var(--navy-900);
  border-radius: var(--r);
}
.card__ico svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.32rem, 1.15rem + .6vw, 1.62rem);
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.card p { margin-top: .6rem; color: var(--ink-soft); font-size: .99em; }

.card__link {
  margin-top: 1.35rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-900);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.card__link span { transition: transform .2s ease; }
.card__link:hover { color: var(--gold-deep); }
.card__link:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------------ promise */

.section--navy {
  background:
    radial-gradient(85% 60% at 50% 0%, rgba(250, 186, 3, .12), transparent 62%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff;
  overflow-x: clip;
}
.section--navy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .05;
  pointer-events: none;
}
.section--navy .wrap { position: relative; }
.section--navy .eyebrow { color: var(--gold); }

.promise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem);
}

.promise__item { text-align: center; }

.promise__ico {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 1.1rem;
  border: 1px solid rgba(250, 186, 3, .42);
  border-radius: 50%;
}
.promise__ico svg {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise__item h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.15;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.promise__item p { margin-top: .6rem; color: rgba(255, 255, 255, .72); font-size: .97em; }

.promise__foot {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--navy-line);
  text-align: center;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(.95rem, .9rem + .3vw, 1.15rem);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* -------------------------------------------------------------------- about */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about__portrait { min-width: 0; }

.about__frame {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  place-content: center;
  gap: .4rem;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 46px),
    linear-gradient(168deg, var(--navy-900), var(--navy-950));
  text-align: center;
}
/* ghosted roofline so the slot reads as brand furniture, not a missing image */
.about__ghost {
  position: absolute;
  left: -8%; right: -8%; bottom: -4%;
  width: 116%; height: auto;
  z-index: -1;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linejoin: round;
  opacity: .1;
}
.about__frame::after {
  content: "";
  position: absolute;
  left: 1.15rem; right: 1.15rem; bottom: 1.15rem;
  border-bottom: 3px solid var(--gold);
}
.about__mono {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: .9;
  color: #fff;
}
.about__mono::first-letter { color: #fff; }
.about__mono-sub {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(.75rem, .7rem + .25vw, .88rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.about__portrait img { width: 100%; height: auto; border-radius: var(--r); }

.about__cap {
  margin-top: .85rem;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.about__copy { min-width: 0; }
.about__copy p { margin-top: 1.15rem; color: var(--ink-soft); }
.about__copy .sec-title { margin-top: 0; }

.about__quote {
  margin-top: 1.6rem !important;
  padding-left: 1.15rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy-900) !important;
}

.about__cta { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .8rem; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__portrait { max-width: 340px; }
}

/* ----------------------------------------------------------------- cta band */

.cta-band {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: #fff;
  text-align: center;
  /* both axes: ::before is inset -20% vertically, so overflow-x alone let the
     gold stripes bleed up into the About section and down over the footer. */
  overflow: clip;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -20% -12%;
  z-index: -1;
  background: repeating-linear-gradient(-38deg, rgba(250, 186, 3, .14) 0 12px, transparent 12px 42px);
  mask-image: radial-gradient(70% 100% at 50% 50%, #000, transparent 72%);
  pointer-events: none;
}

.cta-band__inner { max-width: 780px; }

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.5rem + 4vw, 5rem);
  line-height: .9;
  text-transform: uppercase;
}
.cta-band__title span { color: var(--gold); }

.cta-band__sub {
  margin-top: 1.2rem;
  margin-inline: auto;
  max-width: 46ch;
  color: rgba(255, 255, 255, .8);
}

.cta-band__actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
}

/* ------------------------------------------------------------------- footer */

.foot {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .72);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .97rem;
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.foot__plate {
  display: inline-block;
  padding: .8rem 1rem;
  background: var(--bone);
  border-radius: var(--r);
}
.foot__plate img { width: auto; height: 62px; }
.foot__brand p { margin-top: 1.1rem; max-width: 34ch; }

.foot__col h3 {
  margin-bottom: 1rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold);
}
.foot__col li + li { margin-top: .5rem; }
.foot__col a { text-decoration: none; transition: color .18s ease; }
.foot__col a:hover { color: var(--gold); }
.foot__note { margin-top: 1.1rem; color: rgba(255, 255, 255, .5); font-size: .92rem; }

/* .foot__base IS the .wrap, so a border on it would sit 40px wider than the
   footer columns above — draw the rule inset to match the content edges. */
.foot__base {
  position: relative;
  padding-block: 1.4rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
}
.foot__base::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.15rem, 4vw, 2.5rem);
  right: clamp(1.15rem, 4vw, 2.5rem);
  border-top: 1px solid var(--navy-line);
}

@media (max-width: 760px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
}

/* ------------------------------------------------- scroll reveal (below fold) */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ contact page */

.page-head {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(100% 80% at 80% 0%, rgba(250, 186, 3, .15), transparent 60%),
    linear-gradient(172deg, var(--navy-900), var(--navy-950));
  color: #fff;
  overflow-x: clip;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 84px);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.page-head__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4.2rem);
  line-height: .92;
  text-transform: uppercase;
}
.page-head__title span { color: var(--gold); }
.page-head__sub { margin-top: 1.1rem; max-width: 52ch; color: rgba(255, 255, 255, .82); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.form-card {
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background: #fff;
  border: 1px solid var(--bone-line);
  border-top: 3px solid var(--gold);
  border-radius: var(--r);
}
.form-card > h2 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.form-card > p { margin-top: .6rem; color: var(--ink-soft); }

#estimate-form { margin-top: 1.7rem; display: grid; gap: 1.1rem; }

.field { display: grid; gap: .4rem; min-width: 0; }
.field label {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem .95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--bone-line);
  border-radius: var(--r);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(250, 186, 3, .3);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }

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

#estimate-form .btn { width: 100%; }
#estimate-form .btn[disabled] { opacity: 1; background: var(--navy-900); border-color: var(--navy-900); color: var(--gold); box-shadow: none; transform: none; }

.form-status {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  border-left: 3px solid var(--gold);
  background: var(--bone);
  color: var(--ink);
  font-size: .99rem;
}
.form-status--ok { border-left-color: #1c7a4a; background: #eef7f1; }
.form-status--err { border-left-color: #b4232a; background: #fdf0f0; }
.form-status strong { display: block; font-family: var(--font-cond); font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy-900); }
.form-fine { margin-top: .35rem; font-size: .88rem; color: var(--ink-soft); }

.turnstile-box { min-height: 65px; }

.rail { display: grid; gap: 1rem; }
.rail__card {
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  border: 1px solid var(--bone-line);
  border-radius: var(--r);
  background: #fff;
}
.rail__card--navy {
  background: linear-gradient(165deg, var(--navy-900), var(--navy-950));
  border-color: transparent;
  border-left: 4px solid var(--gold);
  color: #fff;
}
.rail__card h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.rail__card--navy h3 { color: var(--gold); }
.rail__card:not(.rail__card--navy) h3 { color: var(--navy-900); }
.rail__tel {
  display: block;
  margin-top: .55rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
  letter-spacing: .01em;
  text-decoration: none;
  color: #fff;
}
.rail__tel:hover { color: var(--gold); }
.rail__card p { margin-top: .6rem; color: var(--ink-soft); font-size: .96rem; }
.rail__card--navy p { color: rgba(255, 255, 255, .72); }
.rail__list { margin-top: .85rem; display: grid; gap: .45rem; }
.rail__list li {
  position: relative;
  padding-left: 1.35rem;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.rail__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 8px; height: 8px;
  background: var(--gold);
}
.rail__actions { margin-top: 1.1rem; display: grid; gap: .6rem; }
.rail__actions .btn { width: 100%; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* === site credit (injected by credit_footer.py); do not hand-edit === */
.site-credit {
  margin: 2.25rem 0 0;
  padding-inline: 1.25rem;
  font-size: .73rem;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: center;
  opacity: .65;
}
.site-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(128, 128, 128, .5);
  border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  transition: border-bottom-color .25s ease;
}
.site-credit a:hover,
.site-credit a:focus-visible { border-bottom-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .site-credit a { transition: none; }
}

/* Shares the footer's own copyright row: sits opposite it rather than adding a
   third line under the page. The parent is reached with :has() so no client
   class name has to be guessed, and the rule cannot fire on a footer that has
   no inline credit in it. */
.site-credit--inline {
  margin: 0;
  padding: 0;
  text-align: right;
}
footer :has(> .site-credit--inline) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1.5rem;
}
/* === end site credit === */
