/* ==========================================================================
   Haven & Co. Realty — Scottsdale, AZ
   Luxury editorial design system
   Crafted by Ali Digital Marketing — alidigitalmarketing.com
   ========================================================================== */

:root {
  --ink: #16302b;
  --ink-deep: #0f221e;
  --ink-soft: #24443d;
  --ivory: #faf7f0;
  --cream: #f2ede1;
  --brass: #b08d4f;
  --brass-light: #c9a86b;
  --gray: #7d7668;
  --gray-light: #a9a294;
  --line: rgba(22, 48, 43, 0.14);
  --line-light: rgba(250, 247, 240, 0.22);
  --shadow: 0 22px 60px -24px rgba(15, 34, 30, 0.35);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

::selection {
  background: var(--brass);
  color: var(--ivory);
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.container--narrow {
  width: min(820px, 92%);
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.15rem;
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--brass);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--brass);
}

.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  color: var(--ink);
  max-width: 22ch;
}

.section-title em {
  font-style: italic;
  color: var(--brass);
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-title {
  margin-inline: auto;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.lede {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 58ch;
  margin-top: 1.1rem;
}

.section-head--center .lede {
  margin-inline: auto;
}

section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 2.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--ivory);
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--brass);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(250, 247, 240, 0.55);
  color: var(--ivory);
}

.btn--ghost:hover {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ivory);
}

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

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

.btn .btn-arrow {
  transition: transform 0.4s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.3rem;
  transition: border-color 0.35s var(--ease), gap 0.35s var(--ease);
}

.text-link:hover {
  border-color: var(--brass);
  gap: 1.05rem;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.6rem 0;
  transition: background 0.45s var(--ease), padding 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(15, 34, 30, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0;
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.55);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ivory);
}

.brand svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.brand-tag {
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 0.28rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-links a {
  position: relative;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.85);
  padding: 0.4rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ivory);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border: 1px solid var(--brass);
  padding: 0.72rem 1.6rem !important;
  color: var(--ivory) !important;
  transition: background 0.4s var(--ease);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--brass);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ivory);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  isolation: isolate;
  color: var(--ivory);
}

.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 bottom,
    rgba(15, 34, 30, 0.55) 0%,
    rgba(15, 34, 30, 0.25) 45%,
    rgba(15, 34, 30, 0.78) 100%
  );
}

.hero-inner {
  max-width: 720px;
}

.hero-eyebrow {
  color: var(--brass-light);
}

.hero-eyebrow::before {
  background: var(--brass-light);
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.3rem);
  font-weight: 500;
  color: var(--ivory);
}

.hero h1 em {
  font-style: italic;
  color: var(--brass-light);
}

.hero-sub {
  margin-top: 1.6rem;
  max-width: 48ch;
  font-size: 1.13rem;
  font-weight: 300;
  color: rgba(250, 247, 240, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 2.8rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.7);
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(to bottom, var(--brass), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: 11rem 0 5.5rem;
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(176, 141, 79, 0.22), transparent 55%),
    linear-gradient(160deg, var(--ink-deep) 0%, var(--ink) 60%, var(--ink-soft) 100%);
  color: var(--ivory);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(250, 247, 240, 0.028) 0 1px,
    transparent 1px 90px
  );
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  color: var(--ivory);
}

.page-hero h1 em {
  font-style: italic;
  color: var(--brass-light);
}

.page-hero .lede {
  color: rgba(250, 247, 240, 0.78);
}

.page-hero .eyebrow {
  color: var(--brass-light);
}

.page-hero .eyebrow::before {
  background: var(--brass-light);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Property cards ---------- */

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.4rem;
}

.property-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.property-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

.property-card:hover .property-media img {
  transform: scale(1.07);
}

.badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  padding: 0.42rem 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(15, 34, 30, 0.82);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(250, 247, 240, 0.25);
}

.badge--new {
  background: var(--brass);
  border-color: var(--brass);
}

.badge--pending {
  background: rgba(125, 118, 104, 0.88);
}

.property-body {
  padding: 1.9rem 1.9rem 2.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-price {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--ink);
}

.property-address {
  margin-top: 0.35rem;
  font-size: 0.94rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

.property-specs {
  display: flex;
  gap: 1.6rem;
  margin: 1.3rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.spec svg {
  width: 17px;
  height: 17px;
  stroke: var(--brass);
  flex-shrink: 0;
}

.property-desc {
  font-size: 0.95rem;
  color: var(--gray);
  flex: 1;
}

.property-body .text-link {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* ---------- Filter bar ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 3.2rem;
}

.filter-btn {
  padding: 0.7rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.filter-btn:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.property-card.is-hidden {
  display: none;
}

.property-card.is-filtered-in {
  animation: cardIn 0.6s var(--ease) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Stats strip ---------- */

.stats {
  background:
    radial-gradient(90% 140% at 15% 0%, rgba(176, 141, 79, 0.16), transparent 60%),
    var(--ink);
  color: var(--ivory);
  padding: clamp(4rem, 7vw, 5.5rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.stat {
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--line-light);
}

.stat-number {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-weight: 500;
  color: var(--brass-light);
  line-height: 1;
}

.stat-label {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.68);
}

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

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.6rem;
}

.process-step {
  position: relative;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.process-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.4rem;
  height: 1px;
  background: var(--brass);
  transition: width 0.5s var(--ease);
}

.process-step:hover::before {
  width: 100%;
}

.process-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-style: italic;
  color: rgba(176, 141, 79, 0.42);
  line-height: 1;
}

.process-step h3 {
  margin-top: 1.1rem;
  font-size: 1.45rem;
}

.process-step p {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--gray);
}

/* ---------- About teaser / split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.split--reverse > .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--brass);
  z-index: -1;
}

.split--reverse .split-media::after {
  inset: 1.4rem 1.4rem -1.4rem -1.4rem;
}

.split-body p + p {
  margin-top: 1.1rem;
}

.split-body p {
  color: var(--gray);
}

.split-body .btn,
.split-body .text-link {
  margin-top: 2rem;
}

.signature {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.signature .sig-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink);
}

.signature .sig-role {
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Testimonials ---------- */

.testimonials {
  background: var(--cream);
}

.slider {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.slide {
  display: none;
  animation: slideFade 0.85s var(--ease);
}

.slide.is-active {
  display: block;
}

@keyframes slideFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.slide-quote-mark {
  font-family: var(--serif);
  font-size: 5.4rem;
  line-height: 0.6;
  color: var(--brass);
  display: block;
  margin-bottom: 1.6rem;
}

.slide blockquote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.slide-author {
  margin-top: 1.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
}

.slide-context {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.06em;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 2.6rem;
}

.slider-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.slider-arrow:hover {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ivory);
}

.slider-dots {
  display: flex;
  gap: 0.7rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.slider-dot.is-active {
  background: var(--brass);
  transform: scale(1.25);
}

/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative;
  background:
    radial-gradient(110% 180% at 80% 120%, rgba(176, 141, 79, 0.28), transparent 55%),
    linear-gradient(150deg, var(--ink-deep), var(--ink) 70%);
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(176, 141, 79, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::before {
  top: -190px;
  left: -140px;
}

.cta-banner::after {
  bottom: -220px;
  right: -120px;
}

.cta-banner h2 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  color: var(--ivory);
  max-width: 20ch;
  margin-inline: auto;
}

.cta-banner h2 em {
  font-style: italic;
  color: var(--brass-light);
}

.cta-banner p {
  margin: 1.3rem auto 0;
  max-width: 52ch;
  color: rgba(250, 247, 240, 0.78);
}

.cta-banner .btn {
  margin-top: 2.6rem;
}

/* ---------- Agents ---------- */

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 2.4rem;
}

.agent-card {
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.agent-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.agent-media {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
}

.agent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}

.agent-card:hover .agent-media img {
  transform: scale(1.06);
}

.agent-body {
  padding: 1.7rem 1.6rem 1.9rem;
}

.agent-body h3 {
  font-size: 1.5rem;
}

.agent-role {
  margin-top: 0.3rem;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
}

.agent-bio {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--gray);
}

.agent-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.agent-specialties li {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.3rem 0.75rem;
}

.agent-contact {
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.agent-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-soft);
}

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

.agent-contact svg {
  width: 15px;
  height: 15px;
  stroke: var(--brass);
  flex-shrink: 0;
}

/* ---------- Values / feature cards ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: 2.4rem 2.1rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.value-card svg {
  width: 34px;
  height: 34px;
  stroke: var(--brass);
  margin-bottom: 1.4rem;
}

.value-card h3 {
  font-size: 1.42rem;
}

.value-card p {
  margin-top: 0.75rem;
  font-size: 0.94rem;
  color: var(--gray);
}

/* ---------- Expertise list ---------- */

.expertise-list {
  display: flex;
  flex-direction: column;
}

.expertise-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2fr;
  gap: 2rem;
  align-items: baseline;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}

.expertise-item:first-child {
  border-top: 1px solid var(--line);
}

.expertise-item:hover {
  padding-left: 0.8rem;
}

.expertise-item .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--brass);
}

.expertise-item h3 {
  font-size: 1.5rem;
}

.expertise-item p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: clamp(1.8rem, 4vw, 3rem);
}

.form-panel h2 {
  font-size: 1.9rem;
}

.form-panel > p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--gray);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-radius: 0;
  width: 100%;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b08d4f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  cursor: pointer;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 141, 79, 0.14);
}

.form-field input.has-error,
.form-field select.has-error,
.form-field textarea.has-error {
  border-color: #b3452f;
}

.field-error {
  font-size: 0.78rem;
  color: #b3452f;
  letter-spacing: 0.04em;
  min-height: 1.1em;
}

.form-panel .btn {
  margin-top: 2rem;
  width: 100%;
  justify-content: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}

.form-success.is-visible {
  display: block;
  animation: slideFade 0.7s var(--ease);
}

.form-success svg {
  width: 58px;
  height: 58px;
  stroke: var(--brass);
  margin: 0 auto 1.4rem;
}

.form-success h3 {
  font-size: 1.8rem;
}

.form-success p {
  margin-top: 0.7rem;
  color: var(--gray);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.info-block h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.info-block h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 2.6rem;
  height: 1px;
  background: var(--brass);
}

.info-block p,
.info-block a {
  font-size: 0.97rem;
  color: var(--gray);
}

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

.hours-table {
  width: 100%;
  font-size: 0.95rem;
  color: var(--gray);
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--ink-soft);
}

.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.map-card:hover img {
  transform: scale(1.05);
}

.map-pin {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.map-pin svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 6px 12px rgba(15, 34, 30, 0.5));
  animation: pinBob 2.6s var(--ease) infinite;
}

@keyframes pinBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.map-label {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: rgba(15, 34, 30, 0.88);
  backdrop-filter: blur(4px);
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border-left: 2px solid var(--brass);
}

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

.site-footer {
  background: var(--ink-deep);
  color: rgba(250, 247, 240, 0.72);
  padding: 4.5rem 0 0;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line-light);
}

.footer-brand .brand {
  margin-bottom: 1.3rem;
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.4rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: rgba(250, 247, 240, 0.72);
}

.footer-col a:hover {
  color: var(--brass-light);
}

.footer-contact li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  stroke: var(--brass);
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(250, 247, 240, 0.5);
}

.footer-bottom a {
  color: var(--brass-light);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.footer-bottom a:hover {
  border-color: var(--brass-light);
}

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

@media (max-width: 1020px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .stat:nth-child(odd)::before {
    display: none;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(15, 34, 30, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.36em;
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse > .split-media {
    order: 0;
  }

  .split-media::after,
  .split--reverse .split-media::after {
    inset: 1rem -0.9rem -0.9rem 1rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .expertise-item {
    grid-template-columns: 3rem 1fr;
  }

  .expertise-item p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .process-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }

  .stat + .stat::before {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-head--split {
    align-items: flex-start;
    flex-direction: column;
  }
}
