/* ==========================================================================
   West Warwick Wallpaper Hanger — Clean Corporate
   Palette: deep navy · warm white · light gray · blue-gray · brass accent
   Type: Public Sans (self-hosted, SIL OFL 1.1)
   ========================================================================== */

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #0A1A31;
  --navy-900: #0E2240;
  --navy-800: #15315A;
  --navy-700: #1F4173;
  --slate-700: #3F4D61;
  --slate-600: #536176;
  --slate-400: #8593A6;
  --slate-300: #B9C3D0;
  --slate-200: #D8DEE6;
  --slate-100: #E8ECF1;
  --gray-50: #F2F4F7;
  --warm-50: #FAF8F4;
  --white: #FFFFFF;
  --ink: #1B2434;
  --accent: #C08A3E;
  --accent-hover: #D19B4F;
  --accent-ink: #8A5B1E;
  --accent-light: #DDB26E;
  --success: #1D6B45;
  --error: #B42318;

  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: 16px;
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(14, 34, 64, .06), 0 1px 3px rgba(14, 34, 64, .08);
  --shadow-md: 0 8px 24px rgba(14, 34, 64, .08), 0 2px 6px rgba(14, 34, 64, .06);
  --shadow-lg: 0 24px 48px rgba(14, 34, 64, .14);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--warm-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-900); }
h1, h2, h3 { color: var(--navy-900); line-height: 1.2; margin: 0; letter-spacing: -0.012em; }
h1 { font-weight: 700; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-weight: 650; font-size: 1.1875rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; background: var(--navy-900); color: var(--white);
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--white); }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 650; font-size: 1rem; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--navy-950); }
.btn--accent:hover { background: var(--accent-hover); color: var(--navy-950); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--navy-900); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn:active { transform: translateY(1px); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8125rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow__mark { position: relative; width: 30px; height: 10px; flex: none; }
.eyebrow__mark::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 2px; background: currentColor; opacity: .55;
}
.eyebrow__mark::after {
  content: ""; position: absolute; right: 1px; top: 1px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg);
}
.eyebrow--light { color: var(--accent-light); }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head__lead { margin-top: 16px; color: var(--slate-600); font-size: 1.0625rem; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head--left .eyebrow { justify-content: flex-start; }
.section-head--light h2 { color: var(--white); }
.section-head--light .section-head__lead { color: var(--slate-300); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: var(--slate-300); font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 24px; min-height: 38px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item .icon { width: 15px; height: 15px; color: var(--accent-light); }
.topbar a { color: var(--slate-200); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 767px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.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(--navy-900); flex: none; }
.brand__mark { width: 40px; height: 40px; border-radius: 8px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 750; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--navy-900); }
.brand__sub { font-weight: 600; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--slate-600); margin-top: 4px; }
.brand--light .brand__name { color: var(--white); }
.brand--light .brand__sub { color: var(--slate-300); }

.nav-desktop { margin-left: auto; }
.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a {
  display: block; padding: 10px 12px; border-radius: var(--radius);
  font-weight: 550; font-size: .97rem; color: var(--slate-700); text-decoration: none; white-space: nowrap;
}
.nav-desktop a:hover { color: var(--navy-900); background: var(--gray-50); }

.header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-desktop + .header__actions { margin-left: 8px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-weight: 700; color: var(--navy-900); text-decoration: none; font-variant-numeric: tabular-nums;
}
.header__phone .icon { color: var(--accent-ink); }
.header__phone:hover { color: var(--navy-700); text-decoration: underline; }
.header__cta { white-space: nowrap; }

/* Mobile navigation — <details> works without JavaScript */
.nav-mobile { display: none; }
.nav-mobile > summary { list-style: none; }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile__toggle {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  min-height: 44px; padding: 0 14px; border: 1.5px solid var(--slate-200); border-radius: var(--radius);
  font-weight: 650; font-size: .95rem; color: var(--navy-900); background: var(--white); user-select: none;
}
.nav-mobile__toggle:hover { border-color: var(--slate-400); }
.nav-mobile__bars { position: relative; width: 20px; height: 14px; }
.nav-mobile__bars span {
  position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-mobile__bars span:nth-child(1) { top: 0; }
.nav-mobile__bars span:nth-child(2) { top: 6px; }
.nav-mobile__bars span:nth-child(3) { top: 12px; }
.nav-mobile[open] .nav-mobile__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-mobile[open] .nav-mobile__bars span:nth-child(2) { opacity: 0; }
.nav-mobile[open] .nav-mobile__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-mobile__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow-lg);
  padding: 8px var(--gutter) 24px;
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.nav-mobile__panel ul { display: grid; }
.nav-mobile__panel li + li { border-top: 1px solid var(--slate-100); }
.nav-mobile__panel ul a {
  display: block; padding: 14px 4px; font-weight: 600; font-size: 1.0625rem; color: var(--navy-900); text-decoration: none;
}
.nav-mobile__panel ul a:hover { color: var(--accent-ink); }
.nav-mobile__actions { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 768px) {
  .nav-mobile__panel {
    left: auto; right: var(--gutter); top: calc(100% + 8px); width: 360px; padding: 8px 20px 20px;
    border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  }
}

@media (max-width: 1239px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 767px) {
  .header__cta { display: none; }
  .header__phone {
    width: 44px; height: 44px; justify-content: center; border: 1.5px solid var(--slate-200); border-radius: var(--radius);
  }
  .header__phone-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header__actions { gap: 10px; }
}
@media (max-width: 400px) {
  .header__inner { gap: 12px; }
  .brand { gap: 10px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 1rem; }
  .brand__sub { font-size: .6rem; letter-spacing: .1em; }
  .nav-mobile__word { display: none; }
  .nav-mobile__toggle { padding: 0 12px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--warm-50); border-bottom: 1px solid var(--slate-100); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  min-height: clamp(540px, calc(100vh - 110px), 720px);
}
.hero__content {
  align-self: center;
  padding: 64px 56px 64px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.hero h1 { font-size: clamp(2.05rem, 1.3rem + 2.2vw, 3.05rem); line-height: 1.1; letter-spacing: -0.022em; max-width: 16ch; }
.hero__lead { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--slate-700); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__points { display: grid; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--slate-200); max-width: 34rem; }
.hero__points li { position: relative; padding-left: 26px; color: var(--slate-700); font-size: .98rem; }
.hero__points li::before {
  content: ""; position: absolute; left: 3px; top: .55em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg);
}
.hero__media { position: relative; background: var(--slate-100); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__media::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); z-index: 1;
}

@media (max-width: 959px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__content { padding: 48px var(--gutter) 40px; }
  .hero h1 { max-width: 18ch; }
  .hero__media img { aspect-ratio: 16 / 9; height: auto; }
  .hero__media::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 5px; }
}
@media (max-width: 479px) {
  .hero__content { padding-top: 36px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Services ---------- */
.services { background: var(--gray-50); }
.service-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--slate-300); }
.service-card__media { aspect-ratio: 3 / 2; background: var(--slate-100); overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 24px 24px 28px; border-top: 3px solid var(--navy-900); flex: 1; }
.service-card__num {
  display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--accent-ink);
  font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--slate-600); font-size: 1rem; }

@media (max-width: 1079px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .service-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---------- Why choose us ---------- */
.why {
  background-color: var(--navy-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='112' viewBox='0 0 56 112'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.035'%3E%3Cpath d='M28 10l8 8-8 8-8-8z'/%3E%3Cpath d='M0 66l8 8-8 8z'/%3E%3Cpath d='M56 66l-8 8 8 8z'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--slate-200);
}
.why__grid { display: grid; gap: clamp(40px, 5vw, 72px); grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; }
.why-list { display: grid; gap: 28px 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid rgba(221, 178, 110, .45);
  background: rgba(255, 255, 255, .04); color: var(--accent-light);
}
.why-item__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { color: var(--white); font-size: 1.0625rem; margin-bottom: 6px; }
.why-item p { color: var(--slate-300); font-size: .975rem; }
.why__media { position: relative; }
.why__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.why__media::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid rgba(221, 178, 110, .55);
  border-radius: var(--radius-lg); z-index: -1;
}
.why__media { z-index: 0; }

@media (max-width: 959px) {
  .why__grid { grid-template-columns: minmax(0, 1fr); }
  .why__media { max-width: 520px; }
  .why__media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 639px) {
  .why-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .why__media::after { inset: 10px -10px -10px 10px; }
  .why__media { margin-right: 10px; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--warm-50); }
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-item {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--slate-100); color: var(--white); text-decoration: none;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 11px; font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--white);
  background: linear-gradient(to top, rgba(10, 26, 49, .9) 0%, rgba(10, 26, 49, .72) 45%, rgba(10, 26, 49, 0) 100%);
}
.gallery-item:focus-visible { outline-offset: 3px; }

@media (max-width: 1079px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .gallery-grid { gap: 12px; } .gallery-item__caption { font-size: .8125rem; padding: 28px 10px 9px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-800); color: var(--slate-200); padding: clamp(44px, 6vw, 64px) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.875rem); }
.cta-band p { margin-top: 8px; color: var(--slate-300); max-width: 40rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .cta-band__actions .btn { flex: 1 1 100%; } }

/* ---------- Process ---------- */
.process { background: var(--gray-50); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: none; position: relative; }
.step { position: relative; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 20px;
  background: var(--navy-900); color: var(--white); font-weight: 700; font-size: 1.125rem;
  box-shadow: 0 0 0 6px var(--slate-100);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--slate-600); font-size: 1rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 56px; right: -33px; width: 34px; height: 2px; background: var(--accent);
}
@media (max-width: 899px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; padding: 24px; }
  .step__num { grid-row: span 2; margin-bottom: 0; }
  .step:not(:last-child)::after { top: auto; bottom: -21px; right: auto; left: 47px; width: 2px; height: 20px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--warm-50); }
.contact__grid {
  display: grid; column-gap: clamp(36px, 5vw, 64px); row-gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas: "head form" "card form"; grid-template-rows: auto 1fr; align-items: start;
}
.contact__head { grid-area: head; margin-bottom: 0; }
.contact__grid > .form-card { grid-area: form; }
.contact__card { grid-area: card; }
.contact-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-card__name { font-weight: 700; color: var(--navy-900); font-size: 1.125rem; padding-bottom: 16px; border-bottom: 1px solid var(--slate-100); }
.contact-list { display: grid; gap: 18px; margin-top: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.contact-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-ink); }
.contact-list li > span { min-width: 0; overflow-wrap: anywhere; }
.contact-list__label { display: block; font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-600); }
.contact-list a { font-weight: 600; color: var(--navy-900); }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-card__actions .btn { flex: 1 1 auto; white-space: nowrap; }

.form-card {
  background: var(--white); border: 1px solid var(--slate-200); border-top: 4px solid var(--navy-900);
  border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow-md);
}
.form-card__title { font-size: 1.5rem; }
.form-card__note { margin-top: 6px; color: var(--slate-600); font-size: .95rem; }
#wallpaperContactForm { display: block; margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy-900); margin-bottom: 7px; }
.req { color: var(--error); }
.optional { font-weight: 450; color: var(--slate-600); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--slate-400); border-radius: var(--radius); background: var(--white);
  color: var(--ink); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5F6C7E; opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--slate-600); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(192, 138, 62, .45); }
.field--hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { margin-top: 4px; }
.form-privacy { margin-top: 12px; font-size: .875rem; color: var(--slate-600); text-align: center; }

/* Messages rendered by js/script.js — color lifted for WCAG contrast */
.error-message { color: var(--error) !important; font-weight: 550; line-height: 1.35; }
.error-message::before { content: "! "; font-weight: 800; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

#form-success {
  display: none; margin-top: 24px; padding: 32px 24px; text-align: center;
  border: 1px solid #B7DCC8; background: #EFF8F3; border-radius: var(--radius-lg); color: var(--ink);
}
.form-success__icon { width: 48px; height: 48px; margin: 0 auto 12px; fill: none; stroke: var(--success); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-success__title { font-weight: 700; font-size: 1.1875rem; color: var(--success); margin-bottom: 6px; }


@media (max-width: 959px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "card"; grid-template-rows: auto; }
}
@media (max-width: 559px) { .form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } .contact-card { padding: 22px; } }

/* ---------- Location ---------- */
.location { background: var(--gray-50); }
.location__grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: stretch; }
.map-frame {
  position: relative; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm);
  background-color: var(--slate-100);
  background-image: linear-gradient(var(--slate-200) 1px, transparent 1px), linear-gradient(90deg, var(--slate-200) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.map-frame__fallback {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 10px 16px; background: var(--white); border-radius: var(--radius); font-weight: 600; box-shadow: var(--shadow-sm);
}
.location-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.location-card__label { font-size: .8125rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.location-card__address { font-size: 1.125rem; line-height: 1.55; color: var(--navy-900); font-weight: 550; }
.location-card__links { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--slate-100); }
.location-card__links a { font-weight: 600; color: var(--navy-900); overflow-wrap: anywhere; }

@media (max-width: 899px) {
  .location__grid { grid-template-columns: minmax(0, 1fr); }
  .map-frame { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-300); font-size: .975rem; }
.footer__grid {
  display: grid; gap: 40px 32px; padding-top: 64px; padding-bottom: 48px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1.4fr) minmax(0, 1fr);
}
.footer__brand p { margin-top: 18px; max-width: 22rem; }
.footer__title { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col address { display: grid; gap: 10px; }
.site-footer a { color: var(--white); text-decoration: none; overflow-wrap: break-word; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer__col--cta p { margin-bottom: 16px; }
.footer__col--cta .btn { color: var(--navy-950); }
.footer__col--cta .btn:hover { text-decoration: none; color: var(--navy-950); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: .875rem; color: var(--slate-300); }

@media (max-width: 1023px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .footer__grid { grid-template-columns: minmax(0, 1fr); padding-top: 48px; } }

/* ---------- Lightbox (enhancement, js/main.js) ---------- */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--white);
}
.lightbox::backdrop { background: rgba(6, 15, 29, .9); }
.lightbox__inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox__figure img { max-width: min(1200px, 100%); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 4px; box-shadow: var(--shadow-lg); }
.lightbox__caption { margin-top: 14px; text-align: center; color: var(--slate-200); font-size: .975rem; }
.lightbox__btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(14, 34, 64, .7); color: var(--white); font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.lightbox__btn:hover { background: var(--navy-700); }
.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: 639px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__inner { padding-bottom: 80px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .gallery-item:hover img, .service-card:hover { transform: none; }
}
