/* ==========================================================
   Arena Stoneworks — site styles
   Colours come straight from the logo.
   ========================================================== */

:root {
  --navy: #0A1F3C;
  --navy-deep: #06152B;
  --blue: #0B5CC0;
  --blue-hover: #094EA6;
  --blue-light: #1E78C8;
  --blue-dark: #0A3A8C;
  --blue-soft: #8EC0F2;
  --paper: #FFFFFF;
  --stone: #F5F3EF;
  --grout: #E3DFD7;
  --ink: #0A1F3C;
  --muted: #535E70;
  --wa: #25D366;
  --wa-dark: #1DA851;
  --error: #B42318;
  --success: #067647;

  --display: "Archivo", "Helvetica Neue", sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip; /* clip, unlike hidden, doesn't make body a scroll box (keeps the header sticky while the menu is open) */
}
/* lock page scroll on the root only: overflow on body would unstick the sticky header */
html.no-scroll { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 112%; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

/* the tile diamond from the logo, used as a bullet everywhere */
.diamond {
  display: inline-block; width: 9px; height: 9px; flex: none;
  background: currentColor; transform: rotate(45deg);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 15.5px/1.1 var(--body); letter-spacing: .01em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  text-align: center;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 92, 192, .8); text-transform: uppercase; letter-spacing: .06em; font-size: 14.5px; }
.btn-primary.btn-sm { font-size: 13px; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:disabled { opacity: .7; cursor: progress; transform: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); text-transform: uppercase; letter-spacing: .06em; font-size: 14.5px; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; font-size: 14.5px; }
.btn-light:hover { background: var(--stone); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 600; color: var(--navy);
  border-bottom: 1.5px solid var(--navy); padding-bottom: 4px;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color .3s;
}
/* the frosted glass lives on a layer behind the header: a backdrop-filter on the header
   itself would trap the fixed full-screen mobile menu inside the header's 62px box */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled, .site-header.menu-open { border-color: var(--grout); }
.site-header.menu-open::before { background: #fff; }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.brand-name {
  display: flex; flex-direction: column; gap: 3px;
  font: 800 13px/1 var(--display); font-stretch: 125%;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
  padding-left: 14px; border-left: 1px solid var(--grout);
}
.brand-name b { font-weight: 400; }

.nav { display: flex; gap: 26px; }
.nav a {
  position: relative; font-weight: 500; font-size: 15px; color: var(--navy);
  padding: 6px 0; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--navy); white-space: nowrap; }
.header-phone svg { width: 17px; height: 17px; color: var(--blue); }
.header-phone:hover { color: var(--blue); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--grout); border-radius: var(--radius);
  background: none; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--navy);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

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

.hero {
  position: relative;
  padding: clamp(32px, 6vw, 88px) 0 clamp(40px, 6vw, 80px);
  background-color: var(--paper);
  /* faint grout grid: the page sits on a tiled surface */
  background-image:
    linear-gradient(to right, rgba(10, 31, 60, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 31, 60, .045) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center top;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}

.hero-title {
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 800; font-stretch: 100%;
  line-height: 1; letter-spacing: -.025em;
  margin-bottom: 26px;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--blue); }
.hero-sub { font-size: clamp(17px, 1.45vw, 19px); color: var(--muted); max-width: 34em; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-direct { margin-top: 18px; font-size: 15px; color: var(--muted); }
.hero-direct a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--grout); }
.hero-direct a:hover { text-decoration-color: var(--blue); }
.hero-direct span { white-space: nowrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  margin: 40px 0 0; padding-top: 26px; border-top: 1px solid var(--grout);
}
.hero-stats div { padding-right: clamp(18px, 3vw, 40px); margin-right: clamp(18px, 3vw, 40px); border-right: 1px solid var(--grout); }
.hero-stats div:last-child { border: 0; margin: 0; padding: 0; }
.hero-stats dt { font: 800 28px/1 var(--display); font-stretch: 118%; color: var(--navy); margin-bottom: 8px; }
.hero-stats dd { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.35; max-width: 11em; }

/* real project photo, with a second shot set in like a tile */
.hero-visual { position: relative; padding: 0 0 48px 48px; }
.hero-photo { margin: 0; border-radius: 3px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-inset {
  position: absolute; left: 0; bottom: 0; margin: 0;
  width: 38%; aspect-ratio: 3 / 4; border-radius: 3px; overflow: hidden;
  border: 8px solid #fff; box-shadow: 0 24px 48px -20px rgba(6, 21, 43, .45);
  background: var(--stone);
}
.hero-inset img { width: 100%; height: 100%; object-fit: cover; }

.hero-diamonds {
  position: absolute; width: 84px; height: 84px; right: -30px; top: 12%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px; transform: rotate(45deg);
}
.hero-diamonds i:nth-child(1) { background: var(--blue-light); }
.hero-diamonds i:nth-child(2) { background: var(--navy); }
.hero-diamonds i:nth-child(3) { background: var(--blue); }
.hero-diamonds i:nth-child(4) { background: var(--blue-dark); }

/* ---------- Load + reveal motion ---------- */

.load, .hero-diamonds i {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.hero-diamonds i { transform: scale(.4); }
.hero-diamonds i:nth-child(1) { --d: 700ms; }
.hero-diamonds i:nth-child(2) { --d: 780ms; }
.hero-diamonds i:nth-child(3) { --d: 860ms; }
.hero-diamonds i:nth-child(4) { --d: 940ms; }
.is-loaded .load, .is-loaded .hero-diamonds i { opacity: 1; transform: none; }

.reveal, .g-item {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in, .g-item.in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding-top: 0; }
.section-stone { background: var(--stone); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 750; }
.section-lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 40em; }
.section-head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split h2 { max-width: 15em; }

/* Services: photo cards */
.service-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--grout); border-radius: 6px; overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { border-color: #CFC9BE; box-shadow: 0 18px 40px -26px rgba(6, 21, 43, .45); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); }
.service-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card .num { font: 500 12px/1 var(--mono); color: var(--blue); letter-spacing: .1em; }
.service-card h3 { font-size: 20px; font-weight: 700; }
.service-card p { color: var(--muted); font-size: 15.5px; }
.card-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); font-size: 15px; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the first card leads, large, on desktop */
.service-card:first-child { grid-column: span 2; grid-row: span 2; }
.service-card:first-child img { aspect-ratio: auto; flex: 1; min-height: 280px; height: 0; }
.service-card:first-child .service-body { flex: none; }
.service-card:first-child h3 { font-size: 24px; }
/* the last two run wide, photo beside the text, so seven cards fill the grid */
.service-card:nth-child(6), .service-card:nth-child(7) { grid-column: span 2; flex-direction: row; }
.service-card:nth-child(6) img, .service-card:nth-child(7) img { width: 46%; aspect-ratio: auto; height: auto; align-self: stretch; }

/* ---------- Waterproofing ---------- */

.wp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.wp-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.wp-points li { display: flex; gap: 14px; }
.wp-points svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--blue); color: #fff; margin-top: 1px; }
.wp-points h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.wp-points p { color: var(--muted); font-size: 15.5px; }
.wp-note { margin-top: 32px; padding: 18px 20px; border-left: 3px solid var(--blue); background: #fff; color: var(--navy); font-size: 16px; }

.wp-visual { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.layers {
  list-style: none; margin: 0; padding: 26px 24px;
  background: var(--navy); border-radius: 6px; color: #fff;
  display: grid; gap: 6px;
}
.layers li {
  display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto;
  column-gap: 18px; align-items: center; padding: 6px 0;
}
.layers li::before {
  content: ""; grid-row: 1 / span 2; height: var(--h); border-radius: 2px; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.layers li:first-child::before {
  /* tile with grout joints */
  background: repeating-linear-gradient(to right, #fff 0 34px, #B9C2CC 34px 37px);
}
.layers span { font-weight: 600; font-size: 15.5px; line-height: 1.25; align-self: end; }
.layers small { grid-column: 2; display: block; color: rgba(255, 255, 255, .66); font-size: 13.5px; align-self: start; }
.wp-photo { margin: 0; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--grout); }
.wp-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wp-photo figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }

/* ---------- Gallery ---------- */

.gallery { display: grid; gap: 10px; }
.gallery--featured { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 250px); grid-auto-flow: dense; }
.gallery--featured .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery--featured .g-item:nth-child(3) { grid-row: span 2; }
.gallery--featured .g-item:nth-child(5),
.gallery--featured .g-item:nth-child(6) { grid-column: span 2; }
.gallery--all { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 26vw, 340px); grid-auto-flow: dense; }
.gallery--all .g-item:nth-child(6n + 1) { grid-row: span 2; }
.gallery--all .g-item:nth-child(6n + 5) { grid-column: span 2; }

.g-item {
  position: relative; margin: 0; overflow: hidden; border-radius: 2px;
  background: var(--grout);
}
.g-item > img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.g-hit { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 0; }
a.g-hit { cursor: pointer; }
.g-hit:focus-visible { outline: none; box-shadow: inset 0 0 0 4px var(--blue), inset 0 0 0 6px #fff; }
.g-item:hover > img { transform: scale(1.045); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(6, 21, 43, .85), transparent);
  color: #fff; font-weight: 500; font-size: 15px; line-height: 1.35;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.g-item figcaption span {
  display: block; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-soft); margin-bottom: 7px;
}
.g-item:hover figcaption, .g-item:focus-within figcaption { opacity: 1; transform: none; }
.g-item.is-video::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; z-index: 1;
  background: rgba(255, 255, 255, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%230A1F3C'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.gallery-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Why ASW (navy) ---------- */

.section-navy {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
}
.section-navy::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 20% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 10%, transparent 70%);
}
.section-navy .eyebrow { color: var(--blue-soft); }
.about-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.about-lead h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 750; margin-bottom: 24px; }
.about-text { color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 30em; }
.big-number {
  display: flex; align-items: flex-end; gap: 18px; margin-top: 44px;
  font: 900 clamp(110px, 14vw, 190px)/.78 var(--display); font-stretch: 125%;
  color: transparent; -webkit-text-stroke: 1.5px rgba(142, 192, 242, .6);
  letter-spacing: -.04em;
}
.big-number small {
  -webkit-text-stroke: 0; color: rgba(255, 255, 255, .7);
  font: 500 12.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 8px; max-width: 9em;
}
.why { list-style: none; margin: 0; padding: 0; display: grid; }
.why li { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.why li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.why svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(142, 192, 242, .12); color: var(--blue-soft); }
.why h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.why p { color: rgba(255, 255, 255, .74); font-size: 16px; }

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

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.process li { position: relative; padding-top: 32px; border-top: 1px solid var(--grout); }
.process li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 48px; background: var(--blue);
}
.process .step {
  display: block; font: 800 60px/1 var(--display); font-stretch: 125%;
  color: var(--stone); -webkit-text-stroke: 1.5px var(--blue);
  margin-bottom: 20px;
}
.process h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.process p { color: var(--muted); }

/* ---------- Quote ---------- */

.quote { background: var(--stone); }
.quote-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.quote-intro h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; }
.contact-list { margin: 36px 0 0; display: grid; }
.contact-list div { padding: 18px 0; border-top: 1px solid var(--grout); }
.contact-list div:last-child { border-bottom: 1px solid var(--grout); }
.contact-list dt {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.contact-list dd { margin: 0; font: 700 clamp(18px, 2vw, 22px)/1.25 var(--display); font-stretch: 108%; color: var(--navy); }
.contact-list a:hover { color: var(--blue); }

.quote-form {
  background: #fff; border: 1px solid var(--grout); border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 60px -40px rgba(6, 21, 43, .35);
  display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 15px; color: var(--navy); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #B7B0A3; border-radius: var(--radius); background: #fff;
  font-size: 16px; /* 16px stops iOS zooming into fields */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230A1F3C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #767F8C; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 92, 192, .22);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.field-error { color: var(--error); font-size: 14px; font-weight: 500; }
.field-error:empty { display: none; }

.upload {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px; cursor: pointer;
  border: 1.5px dashed #A69E90; border-radius: var(--radius); background: var(--stone);
  font-weight: 500; color: var(--navy); font-size: 15px;
  transition: border-color .2s, background .2s;
}
.upload svg { width: 20px; height: 20px; color: var(--blue); }
.upload:hover { border-color: var(--blue); background: #fff; }
.upload:has(+ input:focus-visible) { outline: 2.5px solid var(--blue); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: -6px; }

.form-status:empty { display: none; }
.form-status { padding: 16px 18px; border-radius: var(--radius); font-size: 15.5px; display: grid; gap: 10px; outline: none; }
.form-status.is-success { background: #ECFDF3; color: var(--success); border: 1px solid #ABEFC6; }
.form-status.is-error { background: #FEF3F2; color: var(--error); border: 1px solid #FECDCA; }
.form-status.is-fallback { background: #FFFAEB; color: #6A4000; border: 1px solid #FEDF89; }
.form-status .btn { justify-self: start; min-height: 46px; }

/* ---------- Projects page ---------- */

.page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-title { font-size: clamp(48px, 8vw, 104px); font-weight: 800; font-stretch: 116%; letter-spacing: -.03em; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters button {
  min-height: 42px; padding: 0 16px; border: 1px solid #CFC9BE; border-radius: 999px; background: #fff;
  font-weight: 500; font-size: 14.5px; color: var(--navy); white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.cta-strip-section { padding-top: 0; }
.cta-strip {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 8px;
  background: var(--blue); color: #fff;
}
.cta-strip h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.cta-strip p { color: rgba(255, 255, 255, .9); font-size: 17px; max-width: 34em; }
.cta-strip :focus-visible { outline-color: #fff; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 21, 43, calc(.97 * var(--lb-fade, 1))); color: #fff;
  overscroll-behavior: contain; touch-action: none;
}
.lightbox[open] { height: 100dvh; display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(6, 21, 43, .6); }
.lightbox-stage { grid-column: 2; grid-row: 1; height: 100%; display: flex; align-items: center; justify-content: center; padding: 48px 0 16px; min-height: 0; transition: transform .3s var(--ease); }
.lightbox-stage > img, .lightbox-stage > video { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-bar {
  grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 24px 24px; font-size: 15px;
}
.lightbox-count { font: 500 13px/1.6 var(--mono); color: rgba(255, 255, 255, .7); white-space: nowrap; }
.lb-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: transparent; color: #fff; display: grid; place-items: center; justify-self: center;
  transition: background .25s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .12); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-prev svg { transform: rotate(180deg); }
.lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: 18px; right: 18px; font-size: 28px; line-height: 1; z-index: 2; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .76); padding: 72px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 20px; max-width: 22em; }
.footer-logo { width: min(260px, 80%); height: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col h2 {
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-soft); margin-bottom: 8px;
}
.footer-col a { padding: 2px 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font: 400 13px/1.6 var(--mono); letter-spacing: .03em; color: rgba(255, 255, 255, .64);
}

/* ---------- Floating WhatsApp (desktop) ---------- */

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(6, 21, 43, .45);
  transition: transform .3s var(--ease), background .3s;
  animation: wa-in .7s 1.2s var(--ease) both;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); background: var(--wa-dark); }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(.7); } }

/* ---------- Mobile action bar (phones/tablets only) ---------- */

.action-bar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .nav { gap: 20px; }
  .brand-name { display: none; }
  .service-cards { grid-template-columns: repeat(3, 1fr); }
  .service-card:first-child { grid-column: span 1; grid-row: span 1; }
  .service-card:first-child img { aspect-ratio: 4 / 3; min-height: 0; height: auto; flex: none; }
  .service-card:first-child .service-body { flex: 1; }
  .service-card:first-child h3 { font-size: 20px; }
  .service-card:nth-child(6), .service-card:nth-child(7) { grid-column: span 1; flex-direction: column; }
  .service-card:nth-child(6) img, .service-card:nth-child(7) img { width: 100%; aspect-ratio: 4 / 3; }
  .service-card:nth-child(7) { grid-column: 1 / -1; flex-direction: row; }
  .service-card:nth-child(7) img { width: 34%; aspect-ratio: auto; }
}

/* Tablets and phones: the app-like layout */
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .header-inner { gap: 12px; }
  .brand-name { display: flex; font-size: 11px; padding-left: 12px; }
  .brand img { height: 26px; }
  .header-actions .btn-sm, .header-phone { display: none; }

  /* full-screen menu sheet */
  .menu-toggle { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    flex-direction: column; gap: 0;
    background: #fff;
    padding: 12px var(--gutter) calc(110px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav a {
    font: 750 clamp(26px, 7.5vw, 38px)/1.1 var(--display); font-stretch: 112%;
    padding: 18px 0; border-bottom: 1px solid var(--grout);
    opacity: 0; transform: translateY(14px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--blue); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .nav a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: .04s; }
  .menu-open .nav a:nth-child(3) { transition-delay: .08s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .12s; }
  .menu-open .nav a:nth-child(5) { transition-delay: .16s; }

  /* sticky Call / WhatsApp / Quote bar */
  .wa-float { display: none; }
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: 54px 54px 1fr; gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--grout);
    animation: bar-in .6s .6s var(--ease) both;
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    height: 54px; border-radius: 8px;
    font: 600 14.5px/1 var(--body); text-transform: uppercase; letter-spacing: .05em;
    transition: transform .15s var(--ease), background .2s;
  }
  .action-bar a:active { transform: scale(.96); }
  .action-bar svg { width: 22px; height: 22px; }
  .ab-call { background: var(--navy); color: #fff; }
  .ab-wa { background: var(--wa); color: #fff; }
  .ab-quote { background: var(--blue); color: #fff; }

  /* layout */
  .hero-grid, .about-grid, .wp-grid, .quote-grid, .cta-strip { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .hero-visual { padding: 0 0 36px 36px; max-width: 560px; }
  .hero-photo { aspect-ratio: 5 / 4; }
  .hero-inset { width: 34%; border-width: 6px; }
  .hero-diamonds { width: 56px; height: 56px; right: 12px; top: auto; bottom: 0; }
  .process { grid-template-columns: 1fr; gap: 36px; }
  .wp-visual { position: static; }
  .big-number { margin-top: 32px; }

  /* swipeable rows: they bleed to the screen edge and snap */
  .service-cards, .gallery--featured, .filters {
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .service-cards::-webkit-scrollbar, .gallery--featured::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }

  .service-cards { gap: 12px; padding-bottom: 6px; }
  .service-card { flex: 0 0 min(80%, 340px); scroll-snap-align: start; }
  .service-card:nth-child(n) { flex-direction: column; }
  .service-card:nth-child(n) img { width: 100%; aspect-ratio: 4 / 3; min-height: 0; height: auto; flex: none; }

  .gallery--featured { gap: 10px; }
  .gallery--featured .g-item {
    flex: 0 0 min(82%, 420px); height: min(108vw, 540px);
    scroll-snap-align: start; border-radius: 6px;
  }
  .gallery--featured figcaption { opacity: 1; transform: none; }

  .filters { gap: 8px; padding-bottom: 4px; }
  .filters button { flex: none; }

  .page-hero { padding-bottom: 24px; }
  .gallery--all { grid-template-columns: 1fr 1fr; grid-auto-rows: 46vw; gap: 4px; }
  .gallery--all .g-item:nth-child(6n + 1) { grid-row: span 1; }
  .gallery--all .g-item:nth-child(6n + 5) { grid-column: span 1; }
  .gallery--all .g-item:nth-child(9n + 1) { grid-column: span 2; }
  .gallery--all figcaption { display: none; }
  .gallery--all .g-item { border-radius: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }

  /* viewer: swipe instead of arrows */
  .lightbox[open] { grid-template-columns: 0 1fr 0; }
  .lightbox-stage { padding: calc(64px + env(safe-area-inset-top)) 0 8px; }
  .lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  .lightbox-bar { padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom)); }
}

@media (max-width: 960px) and (hover: none) {
  .lb-prev, .lb-next { display: none; }
  .btn:hover, .wa-float:hover { transform: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .hero-title { font-size: clamp(34px, 10vw, 46px); margin-bottom: 18px; }
  .hero-sub { margin-bottom: 26px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
  .hero-stats div { padding-right: 10px; margin-right: 10px; }
  .hero-stats dt { font-size: 22px; }
  .hero-stats dd { font-size: 12.5px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .section-lead { font-size: 16.5px; }
  .wp-points { grid-template-columns: 1fr; gap: 22px; }
  .layers { padding: 20px 18px; }
  .layers li { grid-template-columns: 72px 1fr; column-gap: 14px; }
  .layers li:first-child::before { background: repeating-linear-gradient(to right, #fff 0 22px, #B9C2CC 22px 25px); }
  .why li { gap: 16px; padding: 22px 0; }
  .why svg { width: 40px; height: 40px; padding: 9px; }
  .why h3 { font-size: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 22px 18px; border-radius: 10px; }
  .cta-strip .hero-ctas .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-top: 52px; }
}

@keyframes bar-in { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .load, .hero-diamonds i, .reveal, .g-item { opacity: 1; transform: none; }
}
