/* A&A Construction.al — one stylesheet for the public site
   Palette: slate #2e465f (brand blue) · ink #17232e · yellow #ffbc13 (logo)
            red #e0173b (the A&A script) · stone #eef0f2 · line #d5dae0          */

:root {
  --slate: #2e465f;
  --ink: #17232e;
  --yellow: #ffbc13;
  --red: #e0173b;
  --paper: #ffffff;
  --stone: #eef0f2;
  --line: #d5dae0;
  --mute: #5b6b7a;
  --head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --r: 4px;
  --tape: repeating-linear-gradient(90deg,
            var(--ink) 0 1px, transparent 1px 12px,
            var(--ink) 12px 13px, transparent 13px 24px,
            var(--ink) 24px 25px, transparent 25px 36px,
            var(--ink) 36px 37px, transparent 37px 48px,
            var(--ink) 48px 50px, transparent 50px 60px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 17px/1.55 var(--body); color: var(--ink); background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.02; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--slate); }
.brand-mark { width: 34px; height: auto; }
.brand-name { font: 700 1.55rem/1 var(--head); letter-spacing: .01em; }
.brand-name b { color: var(--red); font-weight: 700; }
.brand-tld { color: var(--mute); font-weight: 600; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { font: 600 1.1rem/1 var(--head); text-decoration: none; color: var(--ink); padding: .65rem .8rem; border-bottom: 3px solid transparent; }
.nav a:hover { border-color: var(--line); }
.nav a[aria-current] { border-color: var(--yellow); }
.nav-call { margin-left: .75rem; background: var(--ink); color: #fff !important; border-radius: var(--r); border-bottom: 0 !important; }
.nav-call:hover { background: var(--slate); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2.5px; background: var(--ink); transition: transform .2s, opacity .2s;
}
.burger span { top: 21px; }
.burger span::before { top: -8px; left: 0; }
.burger span::after { top: 8px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* The tape measure: the one decorative element on the site */
.tape { height: 9px; background: var(--tape), var(--yellow); background-size: 60px 100%, auto; background-repeat: repeat-x; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--slate); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,35,46,.15) 30%, rgba(23,35,46,.82) 100%); }
.hero-body { position: relative; z-index: 1; padding: 3.5rem 0 3rem; }
.hero h1 { max-width: 16ch; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-sub { font-size: 1.15rem; max-width: 46ch; color: #e8edf2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .6rem 1.4rem;
  font: 700 1.15rem/1 var(--head); letter-spacing: .02em; text-decoration: none; border-radius: var(--r); border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-y { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-y:hover { background: #ffc93f; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.band { padding: 4rem 0 1rem; }
.band + .band { padding-top: 2rem; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.band-head p { margin: 0; color: var(--mute); }
.more { font: 600 1.1rem/1 var(--head); text-decoration: none; border-bottom: 3px solid var(--yellow); padding-bottom: 2px; color: var(--ink); }
.page-head { padding-top: 3rem; }
.page-head p { color: var(--mute); font-size: 1.1rem; }

/* Service cards — content derived from gallery folders */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.service { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); text-decoration: none; color: #fff; background: var(--slate); }
.service img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service:hover img { transform: scale(1.04); }
.service-txt { position: absolute; inset: auto 0 0; padding: 1.1rem 1.2rem; display: flex; align-items: baseline; justify-content: space-between; background: linear-gradient(0deg, rgba(23,35,46,.9), rgba(23,35,46,0)); }
.service-name { font: 700 1.9rem/1 var(--head); }
.service-n { font-size: .9rem; opacity: .85; }

/* Photo grid + tiles */
.grid { columns: 3 260px; column-gap: 1rem; }
.tile { display: block; position: relative; break-inside: avoid; margin-bottom: 1rem; overflow: hidden; border-radius: var(--r); background: var(--stone); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-tag { position: absolute; left: .6rem; bottom: .6rem; padding: .25rem .55rem; font: 600 .85rem/1 var(--head); letter-spacing: .03em; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 2px; opacity: 0; transition: opacity .2s; }
.tile:hover .tile-tag, .tile:focus-visible .tile-tag { opacity: 1; }
.tile.is-hidden { display: none; }
.grid-work { margin-top: 1.5rem; }

/* Filters on the work page */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 600 1.05rem/1 var(--head); padding: .6rem 1rem; border: 2px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; color: var(--ink); }
.chip small { color: var(--mute); font-size: .85em; margin-left: .2rem; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--yellow); border-color: var(--yellow); }
.chip.is-on small { color: var(--ink); }
.empty { color: var(--mute); font-size: 1.1rem; }

/* Motto band */
.motto { background: var(--slate); color: #fff; margin-top: 3rem; }
.motto-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; padding: 4rem 0; align-items: center; }
.motto blockquote { margin: 0; }
.motto blockquote p { font: 700 clamp(1.7rem, 3.2vw, 2.5rem)/1.15 var(--head); max-width: 20ch; }
.motto cite { font-style: normal; color: #b9c6d3; }
.motto-points { display: grid; gap: 1.4rem; }
.motto-points div { display: grid; gap: .2rem; padding-left: 1rem; border-left: 3px solid var(--yellow); }
.motto-points b { font: 700 1.3rem/1.1 var(--head); }
.motto-points span { color: #d9e1e8; }

/* CTA */
.cta { padding-bottom: 4rem; }
.cta h2 { max-width: 20ch; }

/* ── About ──────────────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; padding-bottom: 2rem; }
.about-txt p { font-size: 1.1rem; }
.pull { margin: 2rem 0 0; padding-left: 1.2rem; border-left: 4px solid var(--yellow); }
.pull p { font: 700 1.6rem/1.2 var(--head); color: var(--slate); }
.about-card { background: var(--stone); padding: 1.6rem; border-radius: var(--r); }
.about-mark { width: 60px; margin-bottom: 1rem; }
.about-card dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0 0 1.3rem; }
.about-card dt { color: var(--mute); }
.about-card dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; padding-bottom: 4rem; }
.cform { display: grid; gap: 1rem; }
.f { display: grid; gap: .35rem; }
.f label { font: 600 1.05rem/1 var(--head); }
.f label small { color: var(--mute); font-weight: 400; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cform input, .cform textarea {
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  padding: .7rem .8rem; border: 2px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); width: 100%;
}
.cform input:focus, .cform textarea:focus { border-color: var(--slate); outline: none; }
.cform textarea { resize: vertical; min-height: 140px; }
.f-check input { max-width: 120px; }
.hp { position: absolute; left: -9999px; }
.f-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.f-status { margin: 0; font-weight: 500; }
.f-status.ok { color: #1f7a3a; }
.f-status.err { color: var(--red); }
.cform.is-sent .f, .cform.is-sent .btn { display: none; }
.cform.is-busy .btn { opacity: .6; pointer-events: none; }

.contact-side { background: var(--stone); padding: 1.6rem; border-radius: var(--r); display: grid; gap: 1.1rem; }
.contact-item { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; align-items: center; }
.contact-item span { grid-column: 1 / -1; color: var(--mute); font-size: .95rem; }
.contact-item a, .contact-item b { font-weight: 500; overflow-wrap: anywhere; }
.copy { font: 600 .9rem/1 var(--head); padding: .4rem .7rem; border: 2px solid var(--line); background: #fff; border-radius: var(--r); cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.copy.done { background: var(--yellow); border-color: var(--yellow); }
.qr { margin: .5rem 0 0; display: grid; gap: .4rem; justify-items: start; }
.qr img { width: 140px; background: #fff; padding: 6px; border-radius: var(--r); }
.qr figcaption { color: var(--mute); font-size: .9rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-foot { background: var(--ink); color: #c9d3dc; margin-top: 2rem; }
.foot-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; padding: 2.5rem 0; align-items: start; }
.foot-brand { font: 700 1.5rem/1 var(--head); color: #fff; }
.foot-brand b { color: var(--red); }
.foot-line { margin: .4rem 0 0; color: #93a3b3; }
.foot-contact { display: grid; gap: .3rem; text-align: right; }
.foot-contact a { color: #fff; text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: #7f8f9f; }

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(12,18,24,.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: min(96vw, 1400px); max-height: 92vh; display: grid; justify-items: center; gap: .6rem; }
.lb-fig img { max-width: 96vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-fig figcaption { color: #c9d3dc; font: 600 1rem/1 var(--head); letter-spacing: .03em; }
.lb-x, .lb-arrow { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 300 3rem/1 var(--body); width: 56px; height: 56px; display: grid; place-items: center; opacity: .8; }
.lb-x:hover, .lb-arrow:hover { opacity: 1; }
.lb-x { top: .5rem; right: .75rem; }
.lb-arrow { top: 50%; transform: translateY(-50%); font-size: 4rem; }
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
body.lb-open { overflow: hidden; }

/* ── Motion ─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-body > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-body > :nth-child(2) { animation-delay: .1s; }
  .hero-body > :nth-child(3) { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .lb-fig img { animation: pop .18s ease-out; }
  @keyframes pop { from { transform: scale(.97); opacity: 0; } }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .motto-body, .about, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .foot-row { grid-template-columns: 1fr; }
  .foot-contact { text-align: left; }
}
@media (max-width: 720px) {
  .head-row { height: 62px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 62px; background: var(--paper); flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1rem; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.3rem; }
  .nav a[aria-current] { border-color: var(--yellow); }
  .nav-call { margin: .75rem 0 0; text-align: center; padding: .9rem; }
  .hero { min-height: 70vh; }
  .hero-body { padding-bottom: 2rem; }
  .f-row { grid-template-columns: 1fr; }
  .grid { columns: 2 140px; column-gap: .6rem; }
  .tile { margin-bottom: .6rem; }
  .band { padding-top: 2.5rem; }
  .lb-arrow { display: none; }  /* swipe on touch */
}

/* Service list (editable in admin) */
.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem 2.5rem; }
.svc { padding-top: .9rem; border-top: 3px solid var(--yellow); }
.svc h3 { font-size: 1.55rem; margin-bottom: .3rem; }
.svc p { margin: 0; color: var(--mute); }
