/* =================================================================
   VCWL — V CHONG W LAM
   Static site stylesheet.
   Aesthetic: quiet legal authority. Hairline gold rules, small-caps
   eyebrows, dignified hierarchy. Warm brown palette. Aptos display.
   ================================================================= */

/* -- Fonts -------------------------------------------------------- */
@font-face {
  font-family: 'Aptos';
  src: url('/assets/fonts/Aptos.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: url('/assets/fonts/Aptos-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: url('/assets/fonts/Aptos-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: url('/assets/fonts/Aptos-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: url('/assets/fonts/Aptos-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* -- Tokens ------------------------------------------------------- */
:root {
  --theme: #583826;
  --theme-deep: #3d2516;
  --theme-darker: #2a190e;
  --theme-accent: #c69365;    /* warm gold, slightly brighter than original */
  --theme-accent-soft: #d9b48c;
  --theme-overlay: rgba(54, 32, 18, 0.7);
  --theme-overlay-deep: rgba(30, 18, 10, 0.8);

  --ink: #1c1611;
  --ink-soft: #4a3c30;
  --ink-mute: #8a7969;
  --paper: #fbf8f4;
  --paper-warm: #f3ece2;
  --hairline: rgba(28, 22, 17, 0.18);
  --hairline-light: rgba(255, 255, 255, 0.28);

  --serif: 'Aptos', 'Noto Serif SC', 'Noto Sans SC', Georgia, serif;
  --sans:  'Aptos', 'Noto Sans SC', system-ui, sans-serif;

  --measure-text: 36rem;     /* ~640px reading column */
  --measure-wide: 78rem;     /* ~1248px max */
}

/* -- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }

/* Tabular numerals everywhere phone numbers, list numbers, etc. appear */
.tabular, .directory__value, .point-list__num, .practice-card__num,
.footer__bottom, .footer__links a[href^="tel:"] {
  font-variant-numeric: tabular-nums;
}

/* =================================================================
   NAVBAR
   ================================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 0.75rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background-color 0.35s ease, box-shadow 0.35s ease,
              backdrop-filter 0.35s ease;
}
@media (max-width: 768px) { .navbar { padding: 0.75rem 1.25rem; } }

.navbar--fixed {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
}
.navbar--solid {
  background: rgba(251, 248, 244, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.navbar__logo { height: 52px; width: auto; transition: filter 0.2s ease; }
.navbar--fixed .navbar__logo { filter: brightness(0) invert(1); }

.navbar__menu { display: flex; align-items: center; gap: 2.25rem; }

.navbar__link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.navbar__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--theme-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1);
}
.navbar__link:hover::after { transform: scaleX(1); }
.navbar--fixed .navbar__link { color: rgba(255, 255, 255, 0.92); }
.navbar--fixed .navbar__link:hover { color: #fff; }

.navbar__locales {
  display: flex; align-items: center; gap: 0.4rem;
  margin-left: 0.5rem; padding-left: 1.25rem;
  border-left: 1px solid var(--hairline);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}
.navbar--fixed .navbar__locales { border-left-color: var(--hairline-light); }
.navbar__locale {
  color: var(--ink-mute);
  padding: 0.1rem 0.1rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.navbar__locale:hover { color: var(--ink); }
.navbar__locale--active { color: var(--theme); font-weight: 700; }
.navbar--fixed .navbar__locale { color: rgba(255, 255, 255, 0.6); }
.navbar--fixed .navbar__locale:hover { color: #fff; }
.navbar--fixed .navbar__locale--active { color: #fff; }

.navbar__toggle {
  display: none;
  background: none; border: 0; padding: 0.5rem;
  cursor: pointer; color: inherit;
}
.navbar__toggle svg { width: 26px; height: 26px; }
.navbar--fixed .navbar__toggle { color: #fff; }
.navbar--solid .navbar__toggle { color: var(--ink); }

@media (max-width: 768px) {
  .navbar__toggle { display: block; }
  .navbar__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    padding: 0.5rem 0;
    border-top: 1px solid var(--hairline);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .navbar__menu.is-open { display: flex; }
  .navbar__menu .navbar__link {
    color: var(--ink);
    padding: 0.95rem 1.5rem;
    border-bottom: 1px solid var(--hairline);
  }
  .navbar__menu .navbar__link::after { display: none; }
  .navbar__menu .navbar__locales {
    border-left: 0; margin: 0; padding: 1rem 1.5rem;
    justify-content: center;
  }
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost-light:hover {
  background: #fff;
  color: var(--theme);
  border-color: #fff;
}
.btn--theme {
  background: var(--theme);
  color: #fff;
  border-color: var(--theme);
}
.btn--theme:hover { background: var(--theme-deep); border-color: var(--theme-deep); }
.btn--outline {
  background: transparent;
  color: var(--theme);
  border-color: var(--theme);
}
.btn--outline:hover {
  background: var(--theme);
  color: #fff;
}
.btn span[aria-hidden] { transition: transform 0.25s ease; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

/* =================================================================
   HEADING SYSTEM  (eyebrow ─ title ─ kicker)
   ================================================================= */
.heading { text-align: center; margin-bottom: 4.5rem; }
.heading__eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.heading__rule {
  width: 2.5rem; height: 1px;
  background: var(--theme-accent);
  display: inline-block;
}
.heading__eyebrow-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--theme-accent);
}
.heading__title {
  font-family: var(--sans);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.heading__kicker {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-left: auto; margin-right: auto;
  line-height: 1.55;
}
.heading--light .heading__title { color: #fff; }
.heading--light .heading__kicker { color: rgba(255, 255, 255, 0.78); }
.heading--light .heading__eyebrow-text { color: var(--theme-accent-soft); }
.heading--light .heading__rule { background: var(--theme-accent-soft); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  min-height: 100vh;
  padding: 9rem 2.5rem 5rem;
  background:
    linear-gradient(var(--theme-overlay), var(--theme-overlay-deep)),
    url('/assets/img/landing-bg.jpeg') center/cover no-repeat fixed;
  color: #fff;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .hero { padding: 8rem 1.5rem 4rem; } }
/* hairline frame inside the hero — gives "framed photograph" feel */
.hero::before, .hero::after {
  content: "";
  position: absolute; left: 2.5rem; right: 2.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.hero::before { top: 6rem; }
.hero::after  { bottom: 2rem; }
@media (max-width: 768px) {
  .hero::before, .hero::after { left: 1.5rem; right: 1.5rem; }
}

.hero__inner {
  position: relative;
  max-width: var(--measure-wide);
  margin: 0 auto;
  width: 100%;
  display: grid; gap: 4rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.2fr 1fr; gap: 6rem; }
}

.hero__left { text-align: center; }
@media (min-width: 900px) { .hero__left { text-align: left; } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--theme-accent-soft);
  margin-bottom: 1.5rem;
}
.hero__eyebrow::before {
  content: ""; width: 2.5rem; height: 1px;
  background: var(--theme-accent-soft);
  display: inline-block;
}
@media (max-width: 899px) { .hero__eyebrow { justify-content: center; } }

.hero__title {
  font-family: var(--sans);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 0.95;
  margin: 0;
}
.hero__subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}
.hero__credentials {
  margin-top: 1.75rem;
  max-width: 30rem;
  display: flex; flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.hero__credentials span { position: relative; }
.hero__credentials span:not(:last-child)::after {
  content: "·";
  margin-left: 1.25rem;
  color: var(--theme-accent-soft);
}
@media (min-width: 900px) {
  .hero__credentials { justify-content: flex-start; margin-left: 0; }
}
@media (max-width: 480px) {
  .hero__credentials { gap: 0.3rem 0.75rem; }
  .hero__credentials span:not(:last-child)::after { margin-left: 0.75rem; }
}

.hero__cta { margin-top: 2.75rem; }

.hero__about-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--theme-accent-soft);
  margin-bottom: 1.75rem;
  position: relative;
  padding-left: 3.5rem;
}
.hero__about-eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 2.5rem; height: 1px;
  background: var(--theme-accent-soft);
}

.hero__about {
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  line-height: 1.8;
  font-weight: 400;
}
.hero__about p { margin: 0; }
.hero__about p + p { margin-top: 1.15rem; }
/* Subtle drop-cap on the first paragraph, first letter only */
.hero__about p:first-of-type::first-letter {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--theme-accent-soft);
  float: left;
  line-height: 0.9;
  margin: 0.25rem 0.55rem -0.05rem 0;
  letter-spacing: -0.02em;
}

/* =================================================================
   SECTIONS — light & dark
   ================================================================= */
.section {
  padding: 7rem 1.5rem;
  background: var(--paper);
}
.section__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
}
.section--dark {
  background:
    linear-gradient(rgba(54, 32, 18, 0.86), rgba(30, 18, 10, 0.94)),
    url('/assets/img/team-bg.jpeg') center/cover no-repeat fixed;
  color: #fff;
}
.section--practice { background: var(--paper); }

/* =================================================================
   PRACTICE GRID
   ================================================================= */
.practice-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .practice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .practice-grid { grid-template-columns: repeat(4, 1fr); } }

.practice-card {
  position: relative;
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2.5rem 1.75rem 2rem;
  background: #fff;
  border: 1px solid var(--hairline);
  text-align: left;
  transition: border-color 0.3s ease, transform 0.3s ease,
              box-shadow 0.3s ease;
  overflow: hidden;
}
.practice-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--theme-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.practice-card:hover {
  border-color: var(--theme-accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(88, 56, 38, 0.35);
}
.practice-card:hover::after { transform: scaleX(1); }

.practice-card__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--theme-accent);
}
.practice-card__icon {
  width: 4.5rem; height: 4.5rem;
  margin-top: 0.25rem;
}
.practice-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.practice-card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-top: auto;
  min-height: 3rem;
}
.practice-card__more {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--theme);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.25s ease;
}
.practice-card:hover .practice-card__more { gap: 0.75rem; }

/* =================================================================
   TEAM GRID — true hierarchy: row 1 (3 senior, larger), row 2 (4 staff, compact)
   ================================================================= */
.team-grid {
  display: grid; gap: 2rem;
}
.team-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .team-row--senior { grid-template-columns: repeat(2, 1fr); }
  .team-row--staff  { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .team-row--senior { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .team-row--staff  { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.team-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover { transform: translateY(-3px); }

.team-card__photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--paper-warm) 0%, #e7dccc 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
@media (min-width: 640px) {
  .team-card--lg .team-card__photo { aspect-ratio: 4 / 5; }
  .team-card--sm .team-card__photo { aspect-ratio: 1 / 1; }
}

.team-card__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  transition: transform 0.6s ease;
}
.team-card:hover .team-card__photo img { transform: scale(1.04); }

.team-card__body {
  padding: 1.5rem 1.25rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.team-card--sm .team-card__body { padding: 1.1rem 1rem; }

.team-card__designation {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--theme-accent);
}
.team-card__name {
  margin-top: 0.4rem;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.team-card--sm .team-card__name { font-size: 1rem; }

/* Monogram placeholder — elegant initials in display weight */
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 3.5rem;
  letter-spacing: 0.04em;
  color: var(--theme-accent);
  background:
    linear-gradient(135deg, #efe4d2 0%, #e2d2b8 100%);
  position: relative;
}
.monogram::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 22%;
  transform: translateX(-50%);
  width: 2rem; height: 1px;
  background: var(--theme);
  opacity: 0.35;
}
.team-card--sm .monogram { font-size: 2.5rem; }
.monogram--xl { font-size: 5.5rem; }

/* =================================================================
   DETAIL HERO — practice + contact
   ================================================================= */
.detail-hero {
  padding: 11rem 1.5rem 6rem;
  color: #fff;
  position: relative;
}
.detail-hero--ip { background: linear-gradient(var(--theme-overlay), var(--theme-overlay-deep)), url('/assets/img/ip-bg.jpeg') center/cover no-repeat fixed; }
.detail-hero--conveyancing { background: linear-gradient(var(--theme-overlay), var(--theme-overlay-deep)), url('/assets/img/conveyancing-bg.jpeg') center/cover no-repeat fixed; }
.detail-hero--industrial { background: linear-gradient(var(--theme-overlay), var(--theme-overlay-deep)), url('/assets/img/industrial-bg.jpeg') center/cover no-repeat fixed; }
.detail-hero--rights { background: linear-gradient(var(--theme-overlay), var(--theme-overlay-deep)), url('/assets/img/rights-bg.jpeg') center/cover no-repeat fixed; }
.detail-hero__inner {
  max-width: var(--measure-wide); margin: 0 auto;
  text-align: center;
}
.detail-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--theme-accent-soft);
  margin-bottom: 1.25rem;
}
.detail-hero__eyebrow::before,
.detail-hero__eyebrow::after {
  content: ""; width: 2rem; height: 1px;
  background: var(--theme-accent-soft);
  display: inline-block;
}
.detail-hero__title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  max-width: 48rem; margin: 0 auto;
}

/* =================================================================
   POINT LIST — practice detail
   ================================================================= */
.detail-section { padding: 6rem 1.5rem; }
.detail-section__inner {
  max-width: var(--measure-wide); margin: 0 auto;
}
.point-list {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 900px) {
  .point-list { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
}
.point-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.55;
}
.point-list__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--theme-accent);
  min-width: 1.5rem;
}
.point-list__text { color: var(--ink-soft); }

/* =================================================================
   TEAM DETAIL
   ================================================================= */
.team-hero {
  height: 22rem;
  background:
    linear-gradient(var(--theme-overlay), var(--theme-overlay-deep)),
    url('/assets/img/header-bg.jpeg') center/cover no-repeat fixed;
}
.team-profile {
  max-width: 38rem;
  margin: -6rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
}
.team-profile__photo {
  width: 12rem; height: 12rem;
  margin: 0 auto;
  background: linear-gradient(135deg, #efe4d2 0%, #e2d2b8 100%);
  border: 6px solid var(--paper);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.team-profile__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
}
.team-profile__photo .monogram { background: transparent; }
.team-profile__photo .monogram::after { display: none; }

.team-profile__eyebrow {
  margin-top: 2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--theme-accent);
}
.team-profile__name {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.15;
  color: var(--ink);
}
.team-profile__title {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
}
.team-profile__rule {
  margin: 2.5rem auto 0;
  width: 3rem; height: 1px;
  background: var(--theme-accent);
}
.team-profile__bio {
  text-align: left;
  padding: 2.5rem 0 6rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.team-profile__bio p strong {
  color: var(--ink);
  font-weight: 700;
}
@media (min-width: 768px) {
  .team-profile { max-width: 44rem; }
  .team-profile__bio { text-align: justify; hyphens: auto; }
}

/* =================================================================
   CONTACT — hero, directory bar, form
   ================================================================= */
.contact-hero {
  padding: 11rem 1.5rem 6rem;
  background:
    linear-gradient(var(--theme-overlay), var(--theme-overlay-deep)),
    url('/assets/img/header-bg.jpeg') center/cover no-repeat fixed;
  color: #fff;
  text-align: center;
}
.contact-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--theme-accent-soft);
  margin-bottom: 1.25rem;
}
.contact-hero__eyebrow::before,
.contact-hero__eyebrow::after {
  content: ""; width: 2rem; height: 1px;
  background: var(--theme-accent-soft); display: inline-block;
}
.contact-hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Directory bar — the elegant phone listing */
.directory {
  background: var(--theme-deep);
  color: #fff;
  padding: 0 1.5rem;
  position: relative;
}
.directory__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .directory__inner { grid-template-columns: repeat(4, 1fr); }
}
.directory__row {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--hairline-light);
}
@media (min-width: 768px) {
  .directory__row {
    border-top: 0;
    border-left: 1px solid var(--hairline-light);
  }
  .directory__row:first-child { border-left: 0; }
}
.directory__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--theme-accent-soft);
  margin-bottom: 0.75rem;
}
.directory__value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
a.directory__value:hover { color: var(--theme-accent-soft); }

/* Contact section: intro + form */
.contact-section { padding: 6rem 1.5rem; background: var(--paper); }
.contact-grid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  gap: 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: start; }
}
.contact-info__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--theme-accent);
  margin-bottom: 1rem;
}
.contact-info__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.contact-info__lede {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 28rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

/* ──────────────────────────────────────────────────────────────────
   Contact form — sheet-style enquiry form posting to jiannius/mailer
   ────────────────────────────────────────────────────────────────── */
.contact-form {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 2.5rem;
  position: relative;
  display: grid; gap: 1.5rem;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2rem; height: 2rem;
  background:
    linear-gradient(135deg, transparent 49.5%, var(--theme-accent) 49.5%, var(--theme-accent) 50.5%, transparent 50.5%);
  opacity: 0.55;
}
@media (max-width: 540px) { .contact-form { padding: 1.75rem; } }

.contact-form__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--theme-accent);
  display: inline-flex; align-items: center; gap: 0.85rem;
  margin-bottom: 0.25rem;
}
.contact-form__eyebrow::after {
  content: "";
  flex: 1; height: 1px;
  background: var(--hairline);
  min-width: 3rem;
}

.contact-form__row { display: grid; gap: 0.5rem; }
.contact-form__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-form__required { color: var(--theme-accent); margin-left: 0.15rem; }

.contact-form__input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.65rem 0;
  font: inherit;
  font-size: 1rem;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.contact-form__input:focus {
  outline: none;
  border-color: var(--theme);
}
.contact-form__input:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
}
.contact-form__textarea {
  resize: vertical;
  min-height: 7rem;
  padding: 0.65rem 0.25rem;
}
.contact-form__input:invalid:not(:placeholder-shown) {
  border-bottom-color: var(--theme-accent);
}

.contact-form__captcha {
  margin: 0.25rem 0 0;
  /* g-recaptcha widget is 304x78 by default; keep it from forcing scroll on
     narrow viewports by allowing horizontal overflow if needed. */
  overflow-x: auto;
}

.contact-form__error {
  background: rgba(186, 127, 93, 0.10);
  border-left: 3px solid var(--theme-accent);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--theme-deep);
}
.contact-form__error[hidden] { display: none; }

.contact-form__actions {
  display: flex; flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.btn--lg {
  padding: 1rem 1.85rem;
  font-size: 0.875rem;
}
.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.contact-form__submit-label { /* keeps button label and arrow grouped */ }

.contact-form__note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--ink-mute);
}

/* ──────────────────────────────────────────────────────────────────
   Thank-you page — post-submit confirmation
   ────────────────────────────────────────────────────────────────── */
.thanks {
  min-height: calc(100vh - 8rem);
  display: grid; place-items: center;
  background: var(--paper);
  padding: 6rem 1.5rem;
}
.thanks__inner {
  max-width: 36rem;
  text-align: center;
  display: grid; gap: 1.25rem;
  justify-items: center;
}
.thanks__ornament {
  color: var(--theme-accent);
  width: 4.5rem; height: 4.5rem;
  margin-bottom: 0.5rem;
}
.thanks__ornament svg { width: 100%; height: 100%; }
.thanks__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--theme-accent);
}
.thanks__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.thanks__body {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
  max-width: 28rem;
}
.thanks__cta { margin-top: 1.25rem; }
.thanks__cta span[aria-hidden] { transition: transform 0.25s ease; }
.thanks__cta:hover span[aria-hidden] { transform: translateX(-0.25rem); }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { color: #fff; }
.footer__prefooter {
  background: var(--theme);
  padding: 5rem 1.5rem 4rem;
}
.footer__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}
.footer__brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__logo { width: 11rem; filter: brightness(0) invert(1); }
.footer__tagline {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}
.footer__credentials {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  max-width: 22rem;
  line-height: 1.7;
}
.footer__col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--theme-accent-soft);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline-light);
}
.footer__links { display: grid; gap: 0.75rem; }
.footer__links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--theme-accent-soft); }
.footer__bottom {
  background: var(--theme-darker);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 0.4rem 0.8rem;
}
.footer__bottom-sep { color: var(--theme-accent); }
