/* ===== Aguilera Construction — MERGED DESIGN =====
   A's full-bleed hero + warmth  ×  C's editorial services + Fraunces type
   Palette: creamy professional white + refined brick red (softened from #C1272D).
   Candidate for the live site. */
:root {
  --red: #A8433A;            /* refined brick red — warmer, less harsh than logo red */
  --red-dark: #8A342C;
  --red-soft: #C05B4E;       /* lighter accent for icons / hovers */
  --ink: #2B2521;            /* warm charcoal, not pure black */
  --cream: #FBF7EF;          /* creamy professional white */
  --cream-deep: #F4EDE0;     /* raised cream — alt sections */
  --stone: #7A7168;
  --mortar: #E7DFD0;
  --white: #FFFDF8;
  --radius: 6px;             /* between A's soft 12px and C's printed 2px */
  --shadow: 0 14px 40px rgba(43,37,33,.13);
  --shadow-sm: 0 4px 16px rgba(43,37,33,.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Karla', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; line-height: 1.12; font-weight: 600; color: var(--ink); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; cursor: pointer; letter-spacing: .01em;
  border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(168,67,58,.28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: rgba(255,253,248,.12); color: #fff; border-color: rgba(255,253,248,.55); }
.btn-ghost:hover { background: rgba(255,253,248,.22); }
.btn-call { background: var(--red); color: #fff; padding: 11px 22px; }
.btn-call:hover { background: var(--red-dark); }
.btn-block { width: 100%; justify-content: center; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--stone); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.review-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,239,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mortar);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-logo { height: 52px; width: auto; display: block; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.24rem;
  color: var(--ink); letter-spacing: .005em; white-space: nowrap;
}
.brand-tag {
  margin-top: 4px; font-size: .6rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mortar); white-space: nowrap;
}
.brand:hover .brand-name { color: var(--red); }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { font-weight: 500; color: var(--ink); font-size: .98rem; border-bottom: 1.5px solid transparent; padding-bottom: 2px; white-space: nowrap; }
.main-nav a:hover { color: var(--red); border-bottom-color: var(--red); }
.header-call { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ===== HERO — A's full-bleed photo, warmed up ===== */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.ph-chip {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  background: rgba(43,37,33,.72); color: #fff;
  font-size: .74rem; font-weight: 600; letter-spacing: .03em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px dashed rgba(255,253,248,.5);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(32,25,21,.88) 0%, rgba(32,25,21,.60) 45%, rgba(138,52,44,.52) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 84px 24px; max-width: 780px; width: 100%; min-width: 0; }
.hero h1, .hero .lede { overflow-wrap: break-word; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--mortar); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 600; margin-bottom: 22px; color: #fff; }
.hero h1 em { font-style: italic; color: #F0C9B8; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 560px; margin-bottom: 30px; color: #EFE7DB; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.trust-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; font-weight: 500; margin-bottom: 26px; }
.trust-strip li { color: #fff; }
.trust-strip li::before { content: '— '; color: #F0C9B8; }
.jump-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: .9rem; border-top: 1px solid rgba(255,253,248,.22); padding-top: 20px; }
.jump-row span { color: var(--mortar); font-weight: 600; }
.jump-row a { color: #fff; border-bottom: 1px dotted rgba(255,253,248,.6); padding-bottom: 1px; }
.jump-row a:hover { color: #F0C9B8; }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--cream-deep); }
.section-head { max-width: 700px; margin: 0 auto 54px; text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--red); }
.kicker.light { color: var(--mortar); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 12px 0 14px; }
.section-intro { color: var(--stone); font-size: 1.08rem; }
.section-intro em { color: var(--red); font-style: italic; }

/* ===== Services — C's alternating photo/text blocks + custom icons ===== */
.service-blocks { display: flex; flex-direction: column; gap: 64px; }
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: min(5vw, 60px); align-items: center; }
.service-block.flip .sb-photo { order: 2; }
.service-block.flip .sb-copy { order: 1; }
.sb-photo { position: relative; }
.sb-photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
/* offset printed frame behind photos — the human, hand-set touch from C */
.sb-photo::before {
  content: ''; position: absolute; inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--red); border-radius: var(--radius); z-index: -1; opacity: .5;
}
.service-block.flip .sb-photo::before { inset: 14px 14px -14px -14px; }
.sb-ico { color: var(--red); margin-bottom: 14px; }
.sb-ico svg { width: 46px; height: 46px; display: block; }
.sb-copy h3 { font-size: 1.9rem; margin-bottom: 12px; }
.sb-copy p { color: var(--stone); max-width: 460px; font-size: 1.05rem; }
.gc-strip {
  margin-top: 70px; text-align: center; font-size: 1.12rem; color: var(--ink);
  border-top: 1px solid var(--mortar); border-bottom: 1px solid var(--mortar);
  padding: 26px 12px;
}
.gc-strip a { color: var(--red); font-weight: 700; border-bottom: 1.5px solid var(--red); }
.center-cta { text-align: center; margin-top: 40px; font-size: 1.1rem; }
.center-cta a { color: var(--red); font-weight: 700; border-bottom: 1.5px solid var(--red); }
/* buttons inside a center-cta keep button styling (fix: red-on-red invisible text) */
.center-cta a.btn { color: #fff; border-bottom: none; }
.center-cta a.btn:hover { color: #fff; }

/* Why — C's rule-top editorial style with icon marks */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; max-width: 920px; margin: 0 auto; }
.why-item { border-top: 2px solid var(--red); padding-top: 20px; }
.why-ico { color: var(--red-soft); margin-bottom: 10px; }
.why-ico svg { width: 34px; height: 34px; display: block; }
.why-item h3 { font-size: 1.35rem; margin-bottom: 10px; }
.why-item p { color: var(--stone); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-tile { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tile-inner { position: relative; width: 100%; height: 100%; }
.tile-inner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-tile:hover .tile-inner img { transform: scale(1.04); }
.tile-inner figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(0deg, rgba(32,25,21,.84) 0%, rgba(32,25,21,0) 100%);
  color: #fff; display: flex; flex-direction: column; gap: 1px;
}
.tile-inner figcaption strong { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; }
.tile-inner figcaption span { font-size: .82rem; color: var(--mortar); }
button.tile-inner { border: none; padding: 0; background: none; cursor: pointer; display: block; text-align: left; font: inherit; color: inherit; }
button.tile-inner:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.tile-chip {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(43,37,33,.72); color: #fff;
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; border: 1px dashed rgba(255,253,248,.5);
}

/* Gallery controls */
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
.gal-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--red); background: transparent; color: var(--red);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gal-btn:hover:not(:disabled) { background: var(--red); color: #fff; }
.gal-btn:disabled { opacity: .3; cursor: default; border-color: var(--stone); color: var(--stone); }
.gal-count { font-weight: 600; font-size: .95rem; color: var(--stone); min-width: 160px; text-align: center; }

/* ===== Home bento mosaic (home teaser only — gallery.html keeps the grid) =====
   An offset photo collage: one large feature tile + smaller tiles fill the
   width so the home recap doesn't read as empty. Tiles reuse .tile-inner /
   figcaption / .tile-chip styling from the gallery grid above; only the grid
   placement is new. JS (galleryBento) rebuilds these from the GALLERY array
   with click-to-lightbox; the same markup is hardcoded as a no-JS fallback. */
.gallery-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 168px; gap: 16px; }
.bento-tile { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.bento-tile .tile-inner { height: 100%; }
.bento-tile:hover .tile-inner img { transform: scale(1.05); }
.b-feat   { grid-column: 1 / 3; grid-row: 1 / 3; }
.b-feat .tile-inner figcaption strong { font-size: 1.35rem; }
.b-r1c3   { grid-column: 3; grid-row: 1; }
.b-r1c4   { grid-column: 4; grid-row: 1; }
.b-r2c34  { grid-column: 3 / 5; grid-row: 2; }
.b-r3c12  { grid-column: 1 / 3; grid-row: 3; }
.b-r3c34  { grid-column: 3 / 5; grid-row: 3; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.review-card .stars { color: var(--red); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--ink); margin-bottom: 14px; font-size: 1.04rem; }
.review-card cite { font-style: normal; font-weight: 700; color: var(--stone); font-size: .9rem; }
.placeholder-quote { border: 1.5px dashed var(--mortar); box-shadow: none; background: var(--cream); }

/* Service area */
.area-inner { text-align: center; }
.area-text { max-width: 640px; margin: 0 auto 26px; color: var(--stone); font-size: 1.08rem; }
.town-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.town-list li {
  border: 1.5px solid var(--mortar); background: var(--white); color: var(--ink);
  padding: 8px 20px; border-radius: 999px; font-weight: 500; font-size: .95rem;
}

/* Contact */
.section-contact { background: var(--ink); color: #F2ECE2; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-copy h2 { color: #F2ECE2; font-size: clamp(1.9rem,4vw,2.7rem); margin: 12px 0 14px; }
.contact-copy p { color: #C9C0B4; margin-bottom: 22px; }
.contact-direct { display: flex; flex-direction: column; gap: 10px; }
.contact-direct a { color: #F2ECE2; font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px; }
.contact-direct a:hover { color: #F0C9B8; }
.contact-direct svg { width: 20px; height: 20px; flex: none; color: var(--red-soft); }
.quote-form { background: var(--cream); border-radius: 10px; padding: 34px; color: var(--ink); box-shadow: var(--shadow); }
.quote-form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 16px; }
.quote-form input, .quote-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--mortar);
  border-radius: 8px; font-family: inherit; font-size: 1rem; background: var(--white);
}
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--red); }
.form-note { font-size: .82rem; color: var(--stone); text-align: center; margin-top: 12px; font-weight: 400; }
.form-note-success { color: #1a7a3c; font-weight: 700; }
.form-note-error { color: var(--red); font-weight: 700; }
/* Invalid / missing required field highlight */
.quote-form .field-invalid,
.quote-form input.field-invalid,
.quote-form select.field-invalid,
.quote-form textarea.field-invalid {
  border-color: var(--red);
  background: #FBEEEC;
  box-shadow: 0 0 0 3px rgba(168, 67, 58, .12);
}
/* Honeypot — hidden from real users, catches spam bots that fill every field. */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Footer */
.site-footer { background: #221D19; color: #BDB4A8; padding-top: 54px; }
.footer-inner { display: grid; grid-template-columns: 1.8fr 1fr 1.3fr 1.3fr; gap: 34px; padding-bottom: 40px; }
.footer-logo { height: 60px; background: var(--cream); padding: 8px; border-radius: 8px; margin-bottom: 14px; }
.footer-col h4 { color: #F2ECE2; margin-bottom: 14px; font-size: 1.1rem; }
.footer-col a, .footer-col p { display: block; color: #BDB4A8; margin-bottom: 8px; }
.footer-col a:hover { color: #F0C9B8; }
.footer-bar { border-top: 1px solid #37302A; padding: 18px 0; font-size: .85rem; }
.footer-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ===== Lightbox ===== */
body.lb-lock { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(26,21,18,.93); }
.lb-stage { position: relative; z-index: 1; max-width: min(1100px, 92vw); max-height: 88vh; display: flex; flex-direction: column; margin: 0; }
.lb-img { max-width: 100%; max-height: calc(88vh - 74px); object-fit: contain; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.55); background: #2b2521; }
.lb-caption { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: #F2ECE2; padding: 14px 4px 0; }
.lb-caption strong { font-family: 'Fraunces', Georgia, serif; font-size: 1.08rem; }
.lb-caption span { color: var(--mortar); font-size: .9rem; }
.lb-count { margin-left: auto; color: #9E958A; font-style: normal; font-size: .85rem; font-weight: 700; }
.lb-btn {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(242,236,226,.4); background: rgba(43,37,33,.6); color: #F2ECE2;
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 18px; right: 18px; font-size: 1.2rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ===== Scroll reveal =====
   Base: fade + rise + a light scale-in, with a per-element stagger delay
   (--reveal-i is set in script.js based on position among reveal siblings,
   so rows of cards/blocks cascade in one after another instead of all at once). */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px) scale(.96);
  transition: opacity .65s cubic-bezier(.16,.8,.3,1), transform .65s cubic-bezier(.16,.8,.3,1);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* Direction-aware: alternating service blocks slide in from their own side,
   echoing the zig-zag layout (.flip reverses which side the photo sits on). */
html.js .service-block.reveal { transform: translateX(36px) translateY(14px) scale(.97); }
html.js .service-block.flip.reveal { transform: translateX(-36px) translateY(14px) scale(.97); }
html.js .service-block.reveal.in { transform: none; }

/* Cards get a touch more scale-punch since they're smaller elements */
html.js .gallery-tile.reveal,
html.js .why-item.reveal,
html.js .review-card.reveal {
  transform: translateY(22px) scale(.92);
}
html.js .gallery-tile.reveal.in,
html.js .why-item.reveal.in,
html.js .review-card.reveal.in {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .service-block.reveal,
  html.js .gallery-tile.reveal,
  html.js .why-item.reveal,
  html.js .review-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }
}

/* Mobile call FAB */
.mobile-call-fab {
  display: none; position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 60;
  background: var(--red); color: #fff; text-align: center; padding: 15px; border-radius: 999px;
  font-weight: 700; box-shadow: 0 8px 24px rgba(168,67,58,.45);
}

/* ===== Multi-page additions (2026-07-19) ===== */
.main-nav a.active { color: var(--red); border-bottom-color: var(--red); }

/* Hero split — content left, above-the-fold estimate card right */
.hero-content.wide { max-width: var(--maxw); }
.hero-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: min(5vw, 56px); align-items: center; }
.hero-quote-card {
  background: var(--cream); color: var(--ink);
  border-radius: 10px; padding: 28px 28px 22px; box-shadow: var(--shadow);
  max-width: 420px; justify-self: end; width: 100%;
}
.hero-quote-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.hqc-sub { color: var(--stone); font-size: .92rem; margin-bottom: 16px; }
.quote-form-compact { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.quote-form select {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--mortar);
  border-radius: 8px; font-family: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
}
.quote-form select:focus { outline: none; border-color: var(--red); }

/* Subpage hero band */
.page-hero {
  background: linear-gradient(105deg, #201915 0%, #33241f 55%, var(--red-dark) 130%);
  color: #fff; padding: 76px 0 64px;
}
.page-hero .kicker { color: #F0C9B8; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); color: #fff; margin: 10px 0 14px; }
.page-hero h1 em { font-style: italic; color: #F0C9B8; }
.page-hero p { color: #EFE7DB; max-width: 640px; font-size: 1.08rem; }

/* Our Story teaser (home) */
.story-teaser { background: var(--cream-deep); padding: 64px 0; }
.story-teaser-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.story-teaser-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 10px; }
.story-teaser-inner p { color: var(--stone); max-width: 560px; }

/* About page */
.story-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: min(5vw, 60px); align-items: start; }
.story-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-photo::before {
  content: ''; position: absolute; inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--red); border-radius: var(--radius); z-index: -1; opacity: .5;
}
.story-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.story-copy p { color: var(--ink); margin-bottom: 16px; font-size: 1.05rem; }
.story-copy p.muted { color: var(--stone); }
.story-values { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.story-values li { border-left: 3px solid var(--red); padding-left: 16px; color: var(--ink); }
.story-values strong { font-family: 'Fraunces', Georgia, serif; display: block; }

/* Services page — what to expect list */
.sb-steps { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.sb-steps li { color: var(--stone); font-size: .98rem; padding-left: 22px; position: relative; }
.sb-steps li::before { content: '—'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-quote-card { justify-self: stretch; max-width: 100%; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { aspect-ratio: 4 / 3; }
}
/* Collapse the nav to a hamburger earlier (≤1080) so the header wordmark + nav + CTA never crowd on tablets/small laptops */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--cream); padding: 16px 24px; gap: 4px; border-bottom: 1px solid var(--mortar);
    box-shadow: var(--shadow-sm); z-index: 60;
  }
  .main-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--mortar); }
  .nav-toggle { display: block; }
  .header-call { margin-left: auto; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--cream); padding: 16px 24px; gap: 4px; border-bottom: 1px solid var(--mortar);
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--mortar); }
  .header-call { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .brand { gap: 10px; }
  .brand-logo { height: 44px; }
  .brand-name { font-size: 1.02rem; }
  .brand-tag { display: none; }
  .why-grid, .gallery-grid, .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .mobile-call-fab { display: block; }
  body { padding-bottom: 76px; }

  .hero { display: block; min-height: 0; }
  .hero-content { padding: 56px 20px; max-width: 100%; width: 100%; }
  .hero h1 { font-size: 2.1rem; }
  .hero .lede { font-size: 1.05rem; }
  .trust-strip { flex-direction: column; gap: 8px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; width: 100%; }

  .service-block, .service-block.flip { grid-template-columns: 1fr; gap: 22px; }
  .service-block.flip .sb-photo { order: 1; }
  .service-block.flip .sb-copy { order: 2; }
  .service-blocks { gap: 48px; }
  .sb-photo::before, .service-block.flip .sb-photo::before { inset: 10px -8px -10px 8px; }
  .footer-bar .container { flex-direction: column; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-btn { width: 44px; height: 44px; }
  .lb-stage { max-width: 96vw; }

}

/* Bento mosaic responsive: collapse the 4-col collage on smaller screens */
@media (max-width: 820px) {
  .gallery-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .b-feat { grid-column: 1 / 3; grid-row: span 2; }
  .b-r1c3, .b-r1c4, .b-r2c34, .b-r3c12, .b-r3c34 { grid-column: auto; grid-row: auto; }
}
@media (max-width: 520px) {
  .gallery-bento { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .b-feat { grid-column: auto; grid-row: span 2; }
}

/* =====================================================================
   GALLERY — Trade Ledger layout: featured before/after slider,
   filter chips, and trade/town tags. (Added 2026-07-21.)
   ===================================================================== */

/* Before/After slider — reusable, dependency-free (drag / arrow keys) */
.ba { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  user-select: none; touch-action: none; cursor: ew-resize; box-shadow: var(--shadow); background: var(--mortar); }
.ba:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff;
  transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(43,37,33,.18); pointer-events: none; }
.ba-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px;
  border-radius: 50%; background: #fff; border: none; display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 1rem; font-weight: 700; box-shadow: 0 4px 14px rgba(43,37,33,.3); pointer-events: none; }
.ba-tag { position: absolute; top: 12px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(43,37,33,.66); padding: 4px 11px; border-radius: 999px; }
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; background: rgba(168,67,58,.85); }

/* Featured project block above the grid */
.gallery-feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; margin-bottom: 40px; }
.gallery-feature .gf-label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.gallery-feature h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.gallery-feature p { color: #57504a; margin-bottom: 18px; }

/* Filter chips */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.chip { font-family: 'Karla', sans-serif; font-weight: 700; font-size: .88rem; padding: 9px 20px; border-radius: 999px;
  border: 1.5px solid var(--mortar); background: var(--white); color: var(--ink); cursor: pointer; transition: .18s; }
.chip:hover { border-color: var(--red-soft); }
.chip.active { background: var(--red); color: #fff; border-color: var(--red); }
.chip .chip-n { opacity: .6; font-weight: 500; margin-left: 4px; }
.chip.active .chip-n { opacity: .8; }

/* Trade/town tag on each tile + filter hide */
.gallery-tile.is-hidden { display: none; }
.tile-trade { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(168,67,58,.9); padding: 3px 9px; border-radius: 999px; }
.gallery-count { text-align: center; color: var(--stone); font-size: .9rem; margin: 4px 0 24px; }

@media (max-width: 820px) {
  .gallery-feature { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Language switch (EN | ES) — added for bilingual site ===== */
.lang-switch { display: flex; align-items: center; gap: 5px; margin-left: 10px;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
.lang-switch a { color: var(--stone); text-decoration: none; padding: 4px 6px; border-radius: 6px; line-height: 1; }
.lang-switch a:hover { color: var(--red); }
.lang-switch a.active { color: var(--red); }
.lang-switch a.active:hover { color: var(--red); }
.lang-sep { color: var(--mortar); }
/* Keep the switch visible on mobile (the desktop nav + call button hide) and group it with the hamburger */
@media (max-width: 720px) {
  .lang-switch { margin-left: auto; }
  .nav-toggle { margin-left: 10px; }
}

/* ===== Mobile header overflow fix =====
   The wordmark ("Aguilera Construction") is white-space:nowrap and could not shrink,
   which shoved the ☰ hamburger past the right edge on narrow phones. Let the brand
   shrink (truncate if needed) and pin the lang switch + toggle so they're always visible. */
@media (max-width: 720px) {
  .header-inner { gap: 12px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; }
  .lang-switch { flex: 0 0 auto; margin-left: auto; }
  .nav-toggle { flex: 0 0 auto; margin-left: 8px; }
}
@media (max-width: 400px) {
  .brand-logo { height: 38px; }
  .brand-name { font-size: .94rem; }
  .lang-switch { font-size: .78rem; }
}
