/* ============ Fonts ============ */
/* Cormorant Garamond (headings) + Inter (body / buttons) loaded via Google Fonts link in <head> */

/* ============ Tokens ============ */
:root {
  /* Palette */
  --bg: #F8F6F2;
  --surface: #FFFFFF;
  --brand: #541C16;
  --secondary: #C8A46A;
  --secondary-hover: #B8955B;
  --cta: #A32020;
  --cta-hover: #8B1B1B;
  --text: #2F2F2F;
  --text-muted: rgba(47, 47, 47, 0.64);
  --text-faint: rgba(47, 47, 47, 0.44);
  --border: #E8E6E2;
  --success: #5E7D5A;

  /* Derived washes (opacity variants of palette colors only) */
  --secondary-tint: rgba(200, 164, 106, 0.12);
  --success-tint: rgba(94, 125, 90, 0.12);
  --cta-tint: rgba(163, 32, 32, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.92);

  /* Logo palette, sampled directly from images/logo-wordmark.png */
  --logo-ink: #0D0605;
  --logo-maroon: #541C16;
  --logo-red: #DB1C27;
  --logo-gold-deep: #7B654B;
  --logo-gold: #B59A72;
  --logo-gold-light: #D7C08E;
  --logo-cream: #F7F3DA;

  --shadow-color: 6 58% 21%;
  --line-accent: rgba(84, 28, 22, 0.12);
  --radius-card: 20px;
  --radius-input: 12px;
  --nav-height: 82px;
  --strip-height: 6px;
  --wrap-pad: 24px;
  --max: 1320px;
  --focus-ring: 0 0 0 3px rgba(84, 28, 22, 0.28);

  /* Semantic color aliases (point at the palette above; use these in components) */
  --color-primary: var(--brand);
  --color-on-primary: var(--surface);
  --color-secondary: var(--secondary);
  --color-on-secondary: var(--brand);
  --color-accent: var(--cta);
  --color-on-accent: var(--surface);

  /* Spacing scale (4/8pt rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Small-UI type scale — the three sizes small UI text (labels, meta,
     nav, captions) had already converged on across the stylesheet,
     just with ~1px of accidental drift between near-duplicates.
     Distinct heading tiers (1.1–1.7rem) are left as authored; they
     read as deliberate, not drift. */
  --text-xs: 0.8rem;
  --text-sm: 0.875rem;
  --text-base: 0.92rem;
  --text-md: 1.08rem;

  /* Motion tokens — shared duration/easing vocabulary, tiered by what's moving.
     Do not collapse to a single value: micro state changes stay fast,
     card/control transforms stay base, large content crossfades stay slow. */
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s;
  --transition-base: 0.25s;
  --transition-slow: 0.5s;
  --transition-slower: 0.7s;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", "Inter", serif;
  color: var(--brand);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}
@media (max-width: 640px) {
  :root {
    --wrap-pad: 20px;
  }
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: var(--text-base);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast) var(--ease-standard), box-shadow var(--transition-fast) ease, background-color var(--transition-fast) ease, border-color var(--transition-fast) ease, color var(--transition-fast) ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 10px 24px -12px hsl(var(--shadow-color) / 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-sm {
  padding: 10px 18px;
  font-size: var(--text-sm);
}

/* ============ Paint strip ============ */
.paint-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: var(--strip-height);
  background: linear-gradient(
    90deg,
    var(--secondary) 0%,
    var(--cta) 35%,
    var(--brand) 70%,
    var(--secondary) 100%
  );
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: var(--strip-height);
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--nav-height) - var(--strip-height));
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-accent);
  transition: border-color var(--transition-base) ease, background-color var(--transition-base) ease;
}
.nav.is-scrolled {
  background: var(--surface);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: var(--text-base);
  font-weight: 500;
  transition: color var(--transition-fast) ease;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base) var(--ease-standard);
}
.nav-links a:hover {
  color: var(--brand);
}
.nav-links a:hover::after {
  transform: scaleX(0.6);
}
.nav-links a.is-active {
  color: var(--brand);
}
.nav-links a.is-active::after {
  transform: scaleX(1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  padding: 4px;
  cursor: pointer;
}

@media (max-width: 1140px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}
.btn-label-short {
  display: none;
}
@media (max-width: 480px) {
  .nav-inner {
    gap: 12px;
  }
  .brand-logo {
    height: 32px;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-actions .btn-sm {
    min-height: 44px;
    padding: 12px 16px;
    font-size: var(--text-xs);
  }
  .nav-actions .btn-sm .btn-label-full {
    display: none;
  }
  .nav-actions .btn-sm .btn-label-short {
    display: inline;
  }
}
@media (max-width: 360px) {
  :root {
    --wrap-pad: 14px;
  }
  .brand-logo {
    height: 28px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn-sm {
    padding: 12px 14px;
  }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--surface);
  z-index: 99;
  padding: 32px 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu a {
  text-decoration: none;
  color: var(--brand);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast) ease, border-color var(--transition-fast) ease;
}
.mobile-menu a.is-active {
  color: var(--secondary-hover);
  border-bottom-color: var(--secondary);
}
.mobile-menu .btn {
  margin-top: 20px;
}
.mobile-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  text-decoration: none;
  color: var(--cta);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============ Section rhythm ============ */
section {
  padding-block: 100px;
}
@media (max-width: 768px) {
  section {
    padding-block: 64px;
  }
}
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
  position: relative;
  padding-top: 20px;
}
.section-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--secondary);
}
.section-head h2 {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 700;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 60ch;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center::before {
  left: 50%;
  transform: translateX(-50%);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 72px;
  overflow: hidden;
}

/* ============ Motion toggle ============
   Single site-wide control for the auto-rotating background crossfades
   (.fade-slide pairs loop indefinitely and last well over 5s, so they
   need a manual pause per WCAG 2.2.2, on top of the prefers-reduced-motion
   handling on .fade-slide further down). */
body.motion-paused .fade-slide {
  animation-play-state: paused;
}
.motion-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  color: var(--brand);
  cursor: pointer;
  box-shadow: 0 12px 28px -16px hsla(var(--shadow-color), 0.4);
  transition: background-color var(--transition-fast) ease, transform var(--transition-fast) ease;
}
.motion-toggle:hover {
  background: var(--surface);
  transform: scale(1.06);
}
.motion-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.motion-toggle .icon {
  width: 18px;
  height: 18px;
}
.motion-toggle .icon-play {
  display: none;
}
.motion-toggle.is-paused .icon-pause {
  display: none;
}
.motion-toggle.is-paused .icon-play {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  /* Nothing to pause: the media query above already stops every crossfade. */
  .motion-toggle {
    display: none;
  }
}

/* ============ Gallery lightbox ============ */
body.lightbox-open {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 6, 5, 0.88);
  cursor: zoom-out;
}
.lightbox-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 70px -30px hsla(var(--shadow-color), 0.6);
}
.lightbox-stage figcaption {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--surface);
  text-align: center;
}
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: var(--surface);
  cursor: pointer;
  transition: background-color var(--transition-fast) ease, transform var(--transition-fast) ease;
}
.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}
.lightbox-close .icon {
  width: 20px;
  height: 20px;
}
.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}
.lightbox-arrow .icon {
  width: 22px;
  height: 22px;
}
.lightbox-arrow--prev {
  left: 16px;
}
.lightbox-arrow--next {
  right: 16px;
}
@media (max-width: 640px) {
  .lightbox-arrow {
    width: 42px;
    height: 42px;
  }
  .lightbox-arrow--prev {
    left: 8px;
  }
  .lightbox-arrow--next {
    right: 8px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}
.hero-copy {
  max-width: 46ch;
}
.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-hover);
  padding-bottom: 14px;
  position: relative;
}
.hero-eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary);
}
.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 3.6vw, 3.4rem);
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero-copy p {
  margin-top: 20px;
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-calls {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-call {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 7px 8px;
  transition: color var(--transition-fast) ease;
}
.hero-call:hover {
  color: var(--brand);
}
.hero-call .icon {
  color: var(--cta);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.hero-call strong {
  color: var(--brand);
  margin-right: 4px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.hero-trust .icon {
  color: var(--success);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-media {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
  gap: 18px;
}
.hero-media-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  height: 100%;
  min-height: 0;
}
.hero-photo {
  position: relative;
  margin: 0;
  min-height: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 24px 50px -28px hsla(var(--shadow-color), 0.4);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo--a {
  /* Drives the row height: matches the source photos' native 4:3 ratio
     so the main shot displays uncropped instead of being squeezed into
     a taller box. The stacked b/c thumbnails stretch to match. */
  width: 100%;
  aspect-ratio: 4 / 3;
}
.hero-photo--b,
.hero-photo--c {
  height: 100%;
}
.hero-photo--a figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.96);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -16px hsla(var(--shadow-color), 0.3);
}

@media (max-width: 900px) {
  .hero {
    padding-bottom: 56px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy {
    max-width: none;
  }
  .hero-media {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-photo--a {
    aspect-ratio: 4 / 3;
  }
  .hero-media-col {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .hero-photo--b,
  .hero-photo--c {
    aspect-ratio: 4 / 3;
  }
}

/* ============ Stat strip ============ */
.stats {
  background: linear-gradient(120deg, var(--secondary-tint) 0%, var(--bg) 100%);
  padding-block: 44px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 24px;
  border-left: 1px solid var(--border);
}
.stat:first-child {
  border-left: none;
  padding-left: 0;
}
.stat .icon {
  font-size: 1.7rem;
  color: var(--brand);
  flex-shrink: 0;
}
.stat strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--brand);
}
.stat span {
  color: var(--text-muted);
  font-size: var(--text-sm);
  display: block;
}
@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
    column-gap: 16px;
  }
  .stat {
    min-width: 0;
    border-left: none;
    padding-inline: 0;
  }
}

/* ============ Services (bento) ============ */
.services-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--text);
  border: 2px solid transparent;
  transition: border-color var(--transition-base) ease;
}
.service-card:hover {
  border-color: var(--secondary);
}
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.fade-slide {
  opacity: 0;
  animation: twoSlideFade 16s infinite;
}
.fade-slide-1 {
  animation-delay: 0s;
}
.fade-slide-2 {
  animation-delay: 8s;
}
@keyframes twoSlideFade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fade-slide {
    animation: none;
    opacity: 0;
  }
  .fade-slide-1 {
    opacity: 1;
  }
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.94) 78%);
  z-index: 1;
}
.service-card--feature {
  grid-row: 1 / 3;
}
.service-content {
  position: relative;
  z-index: 2;
  padding: 34px;
}
.service-content h3 {
  font-size: 1.7rem;
  color: var(--brand);
}
.service-content p {
  margin-top: 10px;
  color: var(--text-muted);
  max-width: 40ch;
  font-size: var(--text-base);
}
.service-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-base);
  color: var(--text);
}
.service-list .icon {
  background: transparent;
  padding: 0;
  color: var(--success);
  margin: 3px 0 0;
  font-size: 1rem;
}
.services-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card--feature {
    grid-row: auto;
  }
  .service-card {
    min-height: 340px;
  }
}

/* ============ Process timeline ============ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--border);
}
.timeline-step {
  position: relative;
}
.timeline-step:nth-child(even) {
  margin-top: 44px;
}
.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.timeline-step h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.timeline-step p {
  color: var(--text-muted);
  font-size: var(--text-base);
}

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .timeline::before {
    display: none;
  }
  .timeline-step:nth-child(even) {
    margin-top: 0;
  }
}

/* ============ Why us / About (image split) ============ */
.whyus {
  background: var(--bg);
}
.whyus-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.whyus-media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px -40px hsla(var(--shadow-color), 0.28);
}
.whyus-media .whyus-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.whyus-copy {
  position: relative;
  padding-top: 20px;
}
.whyus-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--secondary);
}
.whyus-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.whyus-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.whyus-list .icon {
  color: var(--success);
  font-size: 1.4rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.whyus-list strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  color: var(--brand);
  font-size: 1.15rem;
  margin-bottom: 3px;
}
.whyus-list span {
  color: var(--text-muted);
  font-size: var(--text-base);
}

@media (max-width: 900px) {
  .whyus-grid {
    grid-template-columns: 1fr;
  }
  .whyus-media {
    width: min(100%, 360px);
    margin-inline: auto;
  }
}

/* ============ Meet the Owners ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.team-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: 0 30px 70px -55px hsla(var(--shadow-color), 0.28);
}
.team-photo {
  position: relative;
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--secondary-tint);
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}
.team-photo picture {
  position: absolute;
  inset: 0;
  display: block;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-photo .icon {
  width: 42px;
  height: 42px;
  opacity: 0.7;
}
.team-photo-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.3;
  padding-inline: 8px;
}
.team-content h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--brand);
  line-height: 1.2;
}
.team-role {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--secondary-hover);
  margin: 4px 0 14px;
}
.team-content p {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
}
.team-content p + p {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
}

/* ============ Gallery — 3D coverflow ============ */
.gallery-carousel {
  position: relative;
  perspective: 1600px;
  overflow: hidden;
}
.gallery-track {
  position: relative;
  height: clamp(300px, 36vw, 380px);
  margin-inline: auto;
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
}
.gallery-track:active {
  cursor: grabbing;
}
.gallery-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  width: min(55vw, 440px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px hsla(var(--shadow-color), 0.35);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, box-shadow 0.4s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.gallery-slide.is-active {
  box-shadow: 0 40px 80px -28px hsla(var(--shadow-color), 0.5), 0 0 0 3px var(--secondary);
}
.gallery-open {
  all: unset;
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
}
.gallery-slide.is-active .gallery-open {
  cursor: zoom-in;
}
.gallery-open picture {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-open:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(84, 28, 22, 0.5);
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.gallery-slide figcaption {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.96);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -16px hsla(var(--shadow-color), 0.3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-slide.is-active figcaption {
  opacity: 1;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 60;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand);
  cursor: pointer;
  box-shadow: 0 12px 28px -16px hsla(var(--shadow-color), 0.4);
  transition: background var(--transition-fast) ease, transform var(--transition-fast) ease, opacity var(--transition-fast) ease;
}
.gallery-arrow:hover {
  background: var(--surface);
  transform: translateY(-50%) scale(1.08);
}
.gallery-arrow--prev {
  left: 0;
}
.gallery-arrow--next {
  right: 0;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition-fast) ease, transform var(--transition-fast) ease;
}
.gallery-dot.is-active {
  background: var(--brand);
  transform: scale(1.35);
}

@media (max-width: 640px) {
  .gallery-arrow {
    width: 36px;
    height: 36px;
  }
  .gallery-slide {
    width: min(64vw, 320px);
  }
}

/* ============ Before / after compare slider ============ */
.compare-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 70px -40px hsla(var(--shadow-color), 0.28);
}
@media (min-width: 720px) {
  .compare {
    aspect-ratio: 16 / 9;
  }
}
.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-select: none;
  user-select: none;
}
.compare-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--compare-pos, 50%)) 0 0);
}
.compare-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
}
.compare-range::-webkit-slider-runnable-track {
  background: transparent;
}
.compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 100%;
  background: transparent;
  cursor: ew-resize;
}
.compare-range::-moz-range-track {
  background: transparent;
  border: none;
}
.compare-range::-moz-range-thumb {
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: ew-resize;
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-pos, 50%);
  z-index: 2;
  width: 3px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -16px hsla(var(--shadow-color), 0.5);
}
.compare-handle .icon {
  width: 20px;
  height: 20px;
}
.compare-range:focus-visible ~ .compare-divider .compare-handle {
  box-shadow: var(--focus-ring);
}
.compare-tag {
  position: absolute;
  top: 16px;
  z-index: 2;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.96);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.compare-tag--before {
  left: 16px;
}
.compare-tag--after {
  right: 16px;
}

/* ============ Testimonials / Reviews ============ */
#reviews {
  background: var(--brand);
}
#reviews .section-head h2 {
  color: #FFFFFF;
}
#reviews .section-head p {
  color: rgba(255, 255, 255, 0.72);
}
#reviews .section-head::before {
  background: var(--secondary);
}
.testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin: 0 calc(var(--wrap-pad) * -1);
  padding-inline: var(--wrap-pad);
}
.testimonial {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial .icon {
  color: var(--secondary);
  font-size: 1.6rem;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--secondary);
  font-size: var(--text-base);
}
.testimonial p {
  font-size: 1.05rem;
  color: #FFFFFF;
  max-width: 42ch;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  color: #FFFFFF;
  font-size: var(--text-base);
}
.testimonial-author span {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-xs);
}

/* ============ Service area ============ */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
}

/* ============ Contact ============ */
.contact {
  background: linear-gradient(180deg, var(--bg) 0%, var(--secondary-tint) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.contact-grid > * {
  /* Grid items default to a min-width based on their content's intrinsic
     size. Native file inputs in particular refuse to shrink below their
     browser-drawn minimum, which would otherwise force this whole track
     (and the page) wider than the viewport. */
  min-width: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text);
}
.contact-line .icon {
  color: var(--brand);
  font-size: 1.3rem;
  margin-top: 2px;
}
.contact-line strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  color: var(--brand);
  font-size: 1.1rem;
}
.contact-line span {
  color: var(--text-muted);
  font-size: var(--text-base);
}
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  text-decoration: none;
  font-size: 1.1rem;
  transition: border-color var(--transition-fast) ease, color var(--transition-fast) ease, background-color var(--transition-fast) ease;
}
.social-row a:hover {
  border-color: var(--secondary);
  background: var(--secondary-tint);
  color: var(--brand);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: 0 28px 60px -40px hsla(var(--shadow-color), 0.24);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  min-width: 0;
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.field-hint {
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.field-error {
  font-size: var(--text-xs);
  color: var(--cta);
  display: none;
}
.field.has-error .field-error {
  display: block;
}
.field.has-error .field-hint {
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--cta);
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-size: var(--text-base);
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.form-submit {
  width: 100%;
  margin-top: 6px;
}
.form-note {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: 14px;
  text-align: center;
}
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--success-tint);
  border-radius: var(--radius-input);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: var(--text-base);
  color: var(--text);
}
.form-success.is-visible {
  display: flex;
}
.form-success .icon {
  color: var(--success);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.form-error {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--cta-tint);
  border-radius: var(--radius-input);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: var(--text-base);
  color: var(--text);
}
.form-error.is-visible {
  display: flex;
}
.form-error .icon {
  color: var(--cta);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.form-error a {
  color: var(--cta);
  font-weight: 600;
}
.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.form-submit:disabled:active {
  transform: none;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px;
    order: -1;
  }
}

/* ============ Footer ============ */
.footer {
  padding-block: 56px;
  background: var(--brand);
  color: var(--bg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo-link {
  display: inline-block;
}
.footer-logo {
  height: 108px;
  width: auto;
  display: block;
}
.footer-brand p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  max-width: 34ch;
}
.footer-col h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  text-decoration: none;
  color: var(--bg);
  font-size: var(--text-base);
  transition: color var(--transition-fast) ease;
}
.footer-col a:hover {
  color: var(--secondary);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--transition-slower) var(--ease-standard), transform var(--transition-slower) var(--ease-standard);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
