/* Arnold & Blanc Contracting — site styles
   Palette derived from the logo: navy #282460, teal #1AA79C.
   Editorial, architectural layout: hairlines, generous space, no card chrome. */

:root {
  --navy: #282460;
  --navy-deep: #1C1946;
  --teal: #1AA79C;
  --teal-ink: #0F7F76;        /* AA-contrast teal for text on light */
  --teal-light: #5FD1C5;      /* teal for text on navy */
  --ink: #15142B;
  --body: #3F3F55;
  --muted: #6E6E84;
  --line: #D9D8E3;
  --line-strong: #B9B8C9;
  --paper: #FFFFFF;
  --stone: #F4F3EE;
  --stone-deep: #EBE9E2;
  --danger: #B42318;

  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: 20px;
  --header-h: 84px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (min-width: 720px) { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

*, *::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: none !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

.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; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.skip { position: absolute; left: 0; top: -100px; padding: 12px 18px; background: var(--navy); color: #fff; z-index: 100; font-weight: 600; }
.skip:focus { top: 0; }

/* ---------- Type ---------- */
.h1, .hero-h { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
.h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); }
.hero-h { font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.75rem); color: #fff; max-width: 16ch; }
.h2 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); color: var(--ink); }
.h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.75rem); color: var(--ink); }
.h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--ink); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--body); }
.eyebrow { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 1rem; }
.eyebrow-light { color: var(--teal-light); }
.meta { font-size: .95rem; color: var(--muted); }
.note { font-size: .95rem; color: var(--muted); max-width: 70ch; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.fine a { color: var(--teal-ink); }

.text-link { display: inline-block; margin-top: 1.25rem; font-weight: 600; color: var(--navy); text-decoration: none; padding-bottom: 3px; border-bottom: 1.5px solid var(--teal); transition: border-color .2s var(--ease), color .2s var(--ease); }
.text-link:hover { color: var(--teal-ink); border-color: var(--navy); }
.text-link-light { color: #fff; border-color: var(--teal-light); }
.text-link-light:hover { color: var(--teal-light); border-color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: 0 1.6rem; font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none; border: 1.5px solid transparent; border-radius: 2px; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--stone); border-color: var(--stone); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand img { height: 52px; width: auto; }
@media (min-width: 900px) { .brand img { height: 60px; } }
.nav { display: flex; align-items: center; }
.nav-list { display: none; }
.nav-list a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink); }
.nav-toggle { appearance: none; background: none; border: 1px solid var(--line-strong); border-radius: 2px; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: var(--navy); content: ""; position: relative; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899.98px) {
  .nav-list.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem; gap: 0; box-shadow: 0 20px 40px -30px rgba(21,20,43,.35); }
  .nav-list.is-open li { border-top: 1px solid var(--line); }
  .nav-list.is-open li a:not(.btn) { display: block; padding: .9rem 0; font-size: 1.1rem; }
  .nav-list.is-open .nav-cta { border-top: 0; padding-top: .75rem; }
  .nav-list.is-open .nav-cta .btn { width: 100%; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex; align-items: center; gap: 2rem; }
  .nav-list a:not(.btn) { position: relative; padding: .25rem 0; }
  .nav-list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--teal); transition: right .25s var(--ease); }
  .nav-list a:not(.btn):hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
  .nav-phone a { font-weight: 600; color: var(--navy); }
  .nav-cta .btn { min-height: 44px; padding-inline: 1.25rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; background: var(--navy-deep); color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media picture { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,50,.88) 0%, rgba(20,18,50,.45) 45%, rgba(20,18,50,.15) 100%); }
.hero-content { position: relative; padding-top: clamp(6rem, 18vh, 10rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-sub { max-width: 58ch; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: rgba(255,255,255,.86); margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { position: absolute; right: var(--gutter); bottom: 12px; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 0; }

/* ---------- Sections & grids ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.85); }
.section-navy .h3 { color: #fff; }
.page-head { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-head-tall { padding-block: clamp(5rem, 14vw, 10rem); border-bottom: 0; }
.page-head .lead { align-self: end; }
.grid-2-1 { display: grid; gap: 2rem; }
@media (min-width: 900px) { .grid-2-1 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; align-items: end; } }
.intro { border-bottom: 1px solid var(--line); }
.intro-body .lead { max-width: 60ch; }

/* Split (residential / commercial) */
.split-section { padding-top: 0; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.split-card { display: block; text-decoration: none; color: inherit; }
.split-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-deep); }
.split-media img, .split-media picture { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.split-card:hover .split-media img { transform: scale(1.03); }
.split-text { padding-top: 1.5rem; border-top: 1px solid var(--navy); margin-top: 1.25rem; }
.split-text .h3 { margin-bottom: .5rem; }
.split-text p { max-width: 48ch; }

/* Principles (numbered, on navy) */
.principles { display: grid; gap: 2.5rem; margin-top: 1rem; }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.principles li { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.22); }
.principle-num { display: block; font-family: var(--font-head); font-size: .85rem; letter-spacing: .12em; color: var(--teal-light); margin-bottom: 1rem; }
.principles .h3 { margin-bottom: .6rem; font-size: 1.3rem; }
.section-navy .text-link { margin-top: 3rem; }

/* Service area */
.area { background: var(--stone); }
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem 1.5rem; margin-top: 1.5rem; font-weight: 500; color: var(--ink); }
@media (min-width: 600px) { .area-list { grid-template-columns: repeat(3, 1fr); } }
.area-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }

/* CTA band */
.cta-band { border-top: 1px solid var(--line); }
.cta-row { display: grid; gap: 2rem; }
@media (min-width: 900px) { .cta-row { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.cta-row .lead { margin-top: 1rem; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .cta-actions { justify-content: flex-end; } }

/* Services page */
.service-block-alt { background: var(--stone); }
.service-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .service-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: start; } .service-block-alt .service-media { order: 2; } }
.service-media { position: relative; }
.service-media img, .process-media img, .about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone-deep); }
.media-note { display: block; margin-top: .5rem; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.service-text .lead { margin-top: 1rem; margin-bottom: 1.5rem; }
.service-list li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list .h4 { margin-bottom: .35rem; }
.service-list p { color: var(--body); max-width: 60ch; }

/* Process page */
.process-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .process-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 5rem; align-items: start; } .process-media { position: sticky; top: calc(var(--header-h) + 2rem); } }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--font-head); font-weight: 600; color: var(--teal-ink); letter-spacing: .08em; padding-top: .35rem; }
.step .h3 { margin-bottom: .5rem; }
.step p { max-width: 58ch; }

/* About */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: start; } }
.about-text p + p { margin-top: 1.1rem; }
.facts { display: grid; gap: 0; margin-top: 2rem; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.facts dd { color: var(--ink); font-weight: 500; }
.facts a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--teal); }

/* Contact & form */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; align-items: start; } }
.contact-side .facts { margin-top: 0; }
.inquiry { display: grid; gap: 1.1rem; }
.inquiry .h3 { margin-bottom: .25rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.req { color: var(--teal-ink); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; padding: .8rem .9rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,167,156,.25); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
textarea { resize: vertical; min-height: 8rem; }
.error { font-size: .85rem; color: var(--danger); min-height: 0; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; color: var(--ink); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.inquiry-success { padding: 2rem; border: 1px solid var(--line); background: var(--stone); }
.inquiry-success p { margin-top: .75rem; }
.inquiry-success a { color: var(--navy); font-weight: 600; }

/* Projects */
.project-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { text-decoration: none; color: inherit; display: block; }
.project-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-deep); margin-bottom: 1rem; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.03); }
.gallery { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery-item a { display: block; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone-deep); }
.gallery-item figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(21,20,43,.94); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; font: inherit; padding: .5rem .9rem; cursor: pointer; }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); margin: 2rem 0 .6rem; }
.prose p + p { margin-top: .9rem; }
.prose a { color: var(--teal-ink); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 6rem; font-size: .95rem; }
@media (min-width: 900px) { .site-footer { padding-bottom: 3rem; } }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 3rem; } }
.footer-brand img { height: 56px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 36ch; }
.footer-h { font-family: var(--font-head); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-light); margin-bottom: .9rem; }
.footer-col p + p { margin-top: .75rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links li + li { margin-top: .4rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: .75rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-disclosure { max-width: 90ch; }

/* Mobile sticky actions */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 2fr; background: #fff; border-top: 1px solid var(--line); padding: .6rem var(--gutter); gap: .6rem; padding-bottom: calc(.6rem + env(safe-area-inset-bottom)); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 46px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy); border: 1.5px solid var(--line-strong); border-radius: 2px; }
.mobile-bar-cta { background: var(--navy); color: #fff !important; border-color: var(--navy) !important; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* Reveal on scroll (restrained; disabled when reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* Polish */
.area .grid-2-1 { align-items: start; }
@media (min-width: 900px) { .service-media { position: sticky; top: calc(var(--header-h) + 2rem); } }
