/* ==========================================================================
   SAMG Real — design system
   Palette: deep navy ink, brass accent, warm paper. Serif display over a
   neutral sans, which is the convention high-end property firms read as.
   ========================================================================== */

:root {
  --ink: #0e1a2b;
  --ink-2: #1c2f47;
  --ink-3: #44566e;
  --ink-4: #6b7c92;
  --paper: #fbf9f6;
  --paper-2: #f3efe8;
  --white: #ffffff;
  --brass: #a8813f;
  --brass-2: #c8a05a;
  --brass-wash: #f6efe1;
  --line: #e3ddd2;
  --line-2: #d3cabb;
  --ok: #1c6b4c;
  --warn: #8a6212;

  --shell: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);

  --font-display: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.2vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.75rem + 2.2vw, 3.9rem);

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06), 0 2px 8px rgba(14, 26, 43, 0.05);
  --shadow-md: 0 4px 12px rgba(14, 26, 43, 0.08), 0 16px 40px rgba(14, 26, 43, 0.09);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.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;
}

/* -------------------------------------------------------------- layout -- */

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

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--paper2 {
  background: var(--paper-2);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9rem;
}

.section--ink .eyebrow {
  color: var(--brass-2);
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-3);
  max-width: 62ch;
  line-height: 1.55;
}

.section--ink .lede {
  color: #b9c6d6;
}

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brass);
  color: var(--white);
}

.btn--primary:hover {
  background: #8f6c30;
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--ink-2);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--white);
}

.section--ink .btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.section--ink .btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}

.textlink:hover {
  border-bottom-color: currentColor;
  gap: 0.75rem;
}

/* -------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--ink);
  border-bottom-color: var(--line-2);
}

.nav__link[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.header__cta {
  padding: 0.7rem 1.3rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.75rem;
    box-shadow: var(--shadow-md);
  }

  .site-header__nav[data-open='true'] {
    display: block;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__link[aria-current='page'] {
    color: var(--brass);
  }

  .header__cta {
    margin-top: 1.1rem;
    width: 100%;
  }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 74vh, 45rem);
  padding-block: clamp(4rem, 10vw, 7rem);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(8, 16, 28, 0.92) 0%,
    rgba(8, 16, 28, 0.68) 38%,
    rgba(8, 16, 28, 0.34) 70%,
    rgba(8, 16, 28, 0.42) 100%
  );
}

.hero__inner {
  max-width: 46rem;
}

.hero .eyebrow {
  /* Lighter than --brass-2: the eyebrow can land on bright sky in some photos. */
  color: #ecd3a0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
}

.hero__lede {
  font-size: var(--step-1);
  color: #dfe5ec;
  max-width: 40rem;
  line-height: 1.55;
}

/* The hero sits on photography that varies shot to shot, so its type carries a
   shadow and its secondary button gets an explicit light treatment — inheriting
   .btn--ghost would put dark ink text on a dark image. */
.hero .eyebrow,
.hero h1,
.hero__lede {
  text-shadow: 0 1px 14px rgba(6, 12, 22, 0.55);
}

.hero .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(10, 18, 30, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero .btn--ghost:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.hero--compact {
  min-height: clamp(20rem, 42vh, 26rem);
  align-items: center;
}

/* Interior pages use a flat ink banner rather than a photo, so the portfolio
   imagery stays associated with actual properties. */
.pagehead {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.pagehead h1 {
  color: var(--white);
  max-width: 22ch;
}

.pagehead__lede {
  font-size: var(--step-1);
  color: #b9c6d6;
  max-width: 58ch;
  margin-top: 1.1rem;
  line-height: 1.55;
}

/* --------------------------------------------------------- breadcrumbs -- */

.crumbs {
  font-size: var(--step--1);
  color: var(--ink-4);
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.crumbs li::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--line-2);
}

.crumbs li:last-child::after {
  content: none;
}

.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brass);
}

/* ------------------------------------------------------- stats / facts -- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  color: var(--brass);
  display: block;
}

.section--ink .stat__num {
  color: var(--brass-2);
}

.stat__label {
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 0.65rem;
  display: block;
}

.section--ink .stat__label {
  color: #93a4b8;
}

/* ------------------------------------------------------ property cards -- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.28s var(--ease), transform 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__body {
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__type {
  font-size: var(--step--1);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.6rem;
}

.card__title {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.card__title a {
  text-decoration: none;
}

.card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.card__loc {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.card__summary {
  font-size: 0.94rem;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}

.card__specs {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.86rem;
  color: var(--ink-3);
  list-style: none;
  padding-inline: 0;
  margin-bottom: 0;
}

.card__specs strong {
  color: var(--ink);
  font-weight: 600;
}

.card--linked {
  position: relative;
}

/* status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.34rem 0.72rem;
  border-radius: 100px;
  border: 1px solid;
}

.pill--available {
  color: var(--ok);
  border-color: rgba(28, 107, 76, 0.35);
  background: rgba(28, 107, 76, 0.08);
}

.pill--leased {
  color: var(--ink-3);
  border-color: var(--line-2);
  background: var(--paper-2);
}

.pill--waitlist {
  color: var(--warn);
  border-color: rgba(138, 98, 18, 0.32);
  background: rgba(138, 98, 18, 0.08);
}

.card__media .pill {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  z-index: 1;
}

/* -------------------------------------------------- property detail pg -- */

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  /* Height is set here rather than on the main image so both columns match. */
  aspect-ratio: 16 / 9;
}

.gallery__main {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 0;
}

.gallery__side {
  display: grid;
  gap: 0.75rem;
  grid-template-rows: repeat(3, 1fr);
  min-height: 0;
}

.gallery__side figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .gallery__main {
    aspect-ratio: 3 / 2;
  }
  .gallery__side {
    grid-template-rows: none;
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery__side figure {
    aspect-ratio: 3 / 2;
  }
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .detail {
    grid-template-columns: 1fr;
  }
}

.prose p {
  color: var(--ink-2);
  line-height: 1.75;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: sticky;
  top: 96px;
}

@media (max-width: 900px) {
  .aside {
    position: static;
  }
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec-list dt,
.spec-list .k {
  color: var(--ink-4);
}

.spec-list .v {
  font-weight: 600;
  text-align: right;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0.85rem 2rem;
}

.ticks li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
}

.tags li {
  font-size: 0.84rem;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
}

/* -------------------------------------------------------- editorial 2c -- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ------------------------------------------------------------- feature -- */

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  height: 100%;
}

.section--ink .feature {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: var(--step-1);
  margin-bottom: 0.7rem;
}

.feature p {
  color: var(--ink-3);
  font-size: 0.96rem;
  margin: 0;
}

.section--ink .feature p {
  color: #a9b8c9;
}

/* ----------------------------------------------------------------- faq -- */

.faq {
  max-width: 52rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 3rem 1.4rem 0;
  position: relative;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq details > div {
  padding: 0 3rem 1.6rem 0;
  color: var(--ink-3);
  max-width: 62ch;
}

/* ---------------------------------------------------------------- form -- */

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.75rem);
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  color: var(--ink-2);
}

.field .req {
  color: var(--brass);
}

.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.83rem;
  color: var(--ink-4);
  margin-top: 0.2rem;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(168, 129, 63, 0.16);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: #a8323b;
  box-shadow: 0 0 0 3px rgba(168, 50, 59, 0.12);
}

.field__error {
  display: block;
  font-size: 0.83rem;
  color: #a8323b;
  margin-top: 0.4rem;
  min-height: 1em;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0 1.25rem;
}

/* Honeypot — hidden from people, reachable by naive bots. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 560px) {
  .captcha {
    grid-template-columns: 1fr;
  }
}

.captcha__image {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #f4efe6;
  width: 260px;
  max-width: 100%;
  aspect-ratio: 260 / 96;
  overflow: hidden;
}

.captcha__image img,
.captcha__image svg {
  width: 100%;
  height: 100%;
}

.captcha__refresh {
  background: none;
  border: 0;
  padding: 0.35rem 0;
  margin-top: 0.4rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--brass);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.captcha__refresh:hover {
  text-decoration: underline;
}

.captcha input {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 1.2rem;
  font-weight: 600;
  max-width: 12rem;
}

/* Thank-you state, swapped in on successful submit. */
.thanks {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem) 1rem;
}

/* Focus is moved here on submit so screen readers announce the change. The panel
   is not interactive and the swap is obvious on screen, so the ring is suppressed
   rather than drawn around the whole card. */
.thanks:focus,
.thanks:focus-visible {
  outline: none;
}

.thanks__mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(28, 107, 76, 0.1);
  border: 1.5px solid rgba(28, 107, 76, 0.4);
  display: grid;
  place-items: center;
  color: var(--ok);
}

.thanks h2 {
  margin-bottom: 0.9rem;
}

.thanks p {
  color: var(--ink-3);
  max-width: 44ch;
  margin-inline: auto;
}

.form-alert {
  border: 1px solid rgba(168, 50, 59, 0.35);
  background: rgba(168, 50, 59, 0.07);
  color: #8a2a30;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------------- contact cards -- */

.contact-block {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-block:last-child {
  border-bottom: 0;
}

.contact-block__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brass-wash);
  color: var(--brass);
  display: grid;
  place-items: center;
}

.contact-block__icon svg {
  width: 19px;
  height: 19px;
}

.contact-block h3 {
  font-size: 1.02rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-block p,
.contact-block address {
  font-style: normal;
  color: var(--ink-3);
  font-size: 0.95rem;
  margin: 0;
}

.contact-block a {
  color: var(--brass);
  text-decoration: none;
  font-weight: 500;
}

.contact-block a:hover {
  text-decoration: underline;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--ink);
  color: #a9b8c9;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.site-footer .brand,
.site-footer h3 {
  color: var(--white);
}

.site-footer .brand__sub {
  color: #7e8fa3;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  color: #8b9cb0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.site-footer a {
  color: #c3cfdb;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass-2);
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #7e8fa3;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ----------------------------------------------------------- error pg -- */

.error-page {
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--brass);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--ink-3);
  max-width: 42ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------- print -- */

@media print {
  .site-header,
  .site-footer,
  .btn-row,
  .nav-toggle {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
