/* A & Y Remodeling and Construction — site styles */

:root {
  --navy: #1f4e78;
  --navy-deep: #12314d;
  --ink: #17212b;
  --text: #34414d;
  --muted: #5d6975;
  --stone: #f6f3ee;
  --sand: #ece6db;
  --line: #ddd5c8;
  --white: #ffffff;
  --brass: #b5782a;
  --brass-dark: #8f5d1e;
  --brass-light: #e4b66f;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
  --radius: 6px;
  --shadow: 0 10px 30px rgba(18, 49, 77, 0.12);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

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

/* ---------- Layout ---------- */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--stone { background: var(--stone); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy-deep); color: #d9e3ec; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.section--navy .lead { color: #c3d2df; }

.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; margin-top: 0.62em; }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--brass-light); }

.split {
  display: grid; gap: clamp(32px, 5vw, 72px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 5fr 6fr; }
  .split--reverse > :first-child { order: 2; }
}

.media-frame { position: relative; }
.media-frame img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-frame--offset::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border: 2px solid var(--brass); border-radius: var(--radius);
}
@media (max-width: 899px) {
  .media-frame--offset::before { inset: 12px -10px -12px 10px; }
  .media-frame--offset { margin-right: 10px; }
}
.media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-stack img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-stack img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brass); color: var(--white); }
.btn--primary:hover { background: var(--brass-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
}
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header (rendered by site.js) ---------- */

#site-header { min-height: var(--header-h); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(18, 49, 77, 0.08); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 52px; height: 44px; flex: none;
  background: var(--navy); color: #e8edf2; border-radius: 3px;
  font: 600 1.15rem/1 var(--font-display); letter-spacing: 0.02em;
}
.brand__text { font: 500 1.05rem/1.1 var(--font-display); color: #4a4f55; white-space: nowrap; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  font-weight: 500; font-size: 0.97rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { color: var(--navy); background: var(--stone); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.site-header__call { white-space: nowrap; }

.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent;
  border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1239px) {
  .site-header__call { display: none; }
}
@media (max-width: 1079px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--stone); border-radius: 0; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brass); padding-left: 14px; }
  .site-nav .site-nav__call { margin-top: 16px; }
  .site-nav .site-nav__call a { display: flex; padding: 12px 22px; border: 0; border-radius: var(--radius); color: var(--white); }
}
@media (min-width: 1080px) { .site-nav__call { display: none; } }
@media (max-width: 400px) { .brand__text { font-size: 0.95rem; } }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 760px); display: flex; align-items: flex-end;
  color: var(--white); background: var(--navy-deep);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 26, 42, 0.15) 0%, rgba(10, 26, 42, 0.55) 45%, rgba(10, 26, 42, 0.9) 100%);
}
.hero__content { padding-block: clamp(96px, 14vw, 140px) clamp(48px, 7vw, 88px); max-width: 820px; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #e2e9ef; max-width: 640px; }

.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--navy-deep);
}
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12, 32, 51, 0.95) 0%, rgba(12, 32, 51, 0.7) 55%, rgba(12, 32, 51, 0.35) 100%);
}
.page-hero__content { padding-block: clamp(64px, 10vw, 120px); max-width: 760px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.8vw, 3.5rem); }
.page-hero p { color: #dbe4ec; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 0.88rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #8ea4b8; }
.breadcrumbs a { color: #c9d6e2; text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--white); }

/* ---------- Facts strip ---------- */

.facts { background: var(--navy); color: var(--white); }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.facts li { padding: 26px 18px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.facts li:nth-child(odd) { border-left: 0; }
.facts strong { display: block; font: 600 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--font-display); color: var(--white); }
.facts span { font-size: 0.92rem; color: #c3d2df; }
@media (min-width: 900px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li { padding: 32px 28px; }
  .facts li:nth-child(odd) { border-left: 1px solid rgba(255, 255, 255, 0.14); }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Cards / lists ---------- */

.cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column;
}
.section--stone .card { border-color: transparent; box-shadow: 0 1px 2px rgba(18, 49, 77, 0.06); }
.card__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--stone); color: var(--navy); margin-bottom: 18px;
}
.section--stone .card__icon { background: var(--sand); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); }
.card > .text-link { margin-top: auto; padding-top: 12px; align-self: flex-start; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px;
  border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg);
}
.card .checklist { margin-top: 8px; font-size: 0.97rem; }

/* ---------- Process steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font: 600 1.6rem/1 var(--font-display); color: var(--brass); margin-bottom: 10px;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { font-size: 0.95rem; color: var(--muted); }
.section--navy .steps li { border-color: rgba(255, 255, 255, 0.2); }
.section--navy .steps p { color: #c3d2df; }

/* ---------- Quote / difference band ---------- */

.pull-quote {
  font: 500 clamp(1.5rem, 3.2vw, 2.3rem)/1.3 var(--font-display); color: var(--white);
  margin: 0 0 24px; max-width: 900px;
}
.pull-quote em { color: var(--brass-light); font-style: italic; }
.values { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values h3 { font-size: 1.2rem; margin-bottom: 8px; }
.values p { color: #c3d2df; font-size: 0.98rem; }

/* ---------- Project mosaic / galleries ---------- */

.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.mosaic img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery--4 { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: 0.86rem; color: var(--muted); padding-top: 8px; }

.phase { display: grid; gap: 24px; padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.phase:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .phase { grid-template-columns: 300px 1fr; gap: 48px; } }
.phase__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-dark); }
.phase h3 { margin-top: 6px; }
.phase p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Team ---------- */

.team { display: grid; gap: 28px; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(18, 49, 77, 0.06); }
.person img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.person__body { padding: 24px 26px 28px; }
.person h3 { margin-bottom: 2px; }
.person__role { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 14px; }
.person p { color: var(--muted); font-size: 0.97rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font: 600 1.15rem/1.35 var(--font-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem/1 var(--font-body); color: var(--brass);
}
.faq details[open] summary::after { content: "–"; }
.faq .faq__answer { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Towns ---------- */

.towns { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
@media (min-width: 600px) { .towns { columns: 3; } }
@media (min-width: 900px) { .towns { columns: 4; } }
.towns li { padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 0.98rem; }
.towns small { color: var(--muted); }
.town-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.town-chips li { padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.9rem; }

/* ---------- Contact ---------- */

.contact-cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: flex; flex-direction: column; gap: 6px; padding: 30px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.contact-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.contact-card .card__icon { margin-bottom: 10px; }
.contact-card__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font: 600 1.25rem/1.3 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.contact-card__hint { font-size: 0.93rem; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--navy); color: var(--white); }
.cta-band__inner { display: grid; gap: 24px; align-items: center; padding-block: clamp(48px, 6vw, 72px); }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #c3d2df; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Footer (rendered by site.js) ---------- */

.site-footer { background: var(--ink); color: #b4c0cb; font-size: 0.95rem; }
.site-footer a { color: #dfe6ec; text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 36px; padding-block: 64px 40px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; } }
.site-footer h2 { font: 600 0.8rem/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand__text { color: #dfe6ec; }
.site-footer__about { max-width: 360px; margin-top: 18px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact svg { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--brass-light); }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.86rem;
}
.site-footer--static { padding-block: 40px; }
.site-footer--static ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }

/* ---------- Lightbox (site.js) ---------- */

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(8, 18, 28, 0.92); }
.lightbox__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 16px 72px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #dbe4ec; font-size: 0.95rem; padding-inline: 70px; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: var(--white); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
}

/* ---------- Misc ---------- */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  .hero, .page-hero { color: #000; background: none; min-height: 0; }
  .hero__img, .page-hero__img, .hero::after, .page-hero::after { display: none; }
  .hero h1, .page-hero h1 { color: #000; }
}
