/* =================================
   Site.css
================================= */


:root {
  color-scheme: light;
  --ink: #1b2a3a;
  --ink-soft: #344656;
  --paper: #ffffff;
  --sand: #f4f0e9;
  --line: #ded8ce;
  --accent: #9c7655;
  --content-width: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;

  /* Unified button styling */
  --button-bg: #1b2a3a;
  --button-bg-hover: #344656;
  --button-text: #ffffff;
  --button-height: 52px;
  --button-radius: 0;
  --button-padding-x: 25px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 var(--sans);
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #b77b3e;
  outline-offset: 4px;
}

.container {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

/* =================================
   HEADER
================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(27, 42, 58, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.header-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  flex: 0 1 220px;
}

.brand img {
  width: 220px;
  max-height: 90px;
  object-fit: contain;
}

.primary-navigation ul,
.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  padding-block: 12px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
}

.primary-navigation a:hover,
.primary-navigation a[aria-current="page"] {
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
}

/* =================================
   HERO VIDEO
================================= */

.hero {
  position: relative;
  min-height: 670px;
  height: calc(100vh - 118px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(12, 23, 33, .48) 0%,
    rgba(12, 23, 33, .30) 55%,
    rgba(12, 23, 33, .12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
  padding-block: 80px;
}

.hero-content > * {
  max-width: 780px;
}

/* Shared typography */

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 700;
}

.hero .eyebrow {
  color: #ead3b8;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
}

h1 {
  max-width: 800px;
  font-size: clamp(2.8rem, 5.2vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.15rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0 0 18px;
}

/* Hero heading */

.hero-content h1 {
  max-width: 800px;
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 3.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

/* Hero description */

.hero-content p {
  max-width: 800px;
  margin: 0 0 26px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

.hero-lede,
.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

/* General button layout */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}



/* =================================
   UNIFIED BUTTON STYLES
================================= */

:where(
  a.button,
  a.hero-button,
  a.maya-contact-button,
  a.sold-button,
  .button,
  .hero-button,
  .maya-contact-button,
  .sold-button,
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"]
) {
  display: inline-flex;
  min-height: var(--button-height);
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px var(--button-padding-x);
  border: 1px solid var(--button-bg);
  border-radius: var(--button-radius);
  background: var(--button-bg);
  color: var(--button-text);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease;
}

:where(
  a.button,
  a.hero-button,
  a.maya-contact-button,
  a.sold-button,
  .button,
  .hero-button,
  .maya-contact-button,
  .sold-button,
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"]
):hover {
  border-color: var(--button-bg-hover);
  background: var(--button-bg-hover);
  color: #fff;
}

.button-light,
.button-outline,
.button-dark,
.hero-button,
.maya-contact-button,
.sold-button {
  border-color: var(--button-bg);
  border-radius: var(--button-radius);
  background: var(--button-bg);
  color: #fff;
}

.button-row {
  align-items: center;
  gap: 12px;
}

/* =================================
   SECTIONS
================================= */

.section {
  padding-block: 88px;
}

.section-muted {
  background: var(--sand);
}

/* =================================
   INTRO
================================= */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: center;
}

.intro-photo-wrap {
  max-width: 440px;
}

.intro-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
}

.photo-caption {
  margin: 12px 0 0;
  color: #6b6a66;
  font-size: .85rem;
}

.intro-copy h2 {
  max-width: 580px;
}

.trust-list {
  margin: 24px 0;
  padding-left: 21px;
}

.trust-list li {
  margin: 8px 0;
}

.text-link {
  display: inline-block;
  margin: 2px 0 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* Contact details */

.contact-details {
  margin-top: 10px;
  font-style: normal;
}

.contact-details p {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 8px;
}

.contact-details p > span:first-child {
  color: #6b6a66;
}

.contact-details a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* =================================
   PROPERTY GRID
================================= */

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.property-card {
  min-width: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 42, 58, .07);
}

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

.property-info {
  padding: 20px 18px 22px;
}

.property-info h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.property-info p {
  margin-bottom: 6px;
  color: #666a6d;
  font-size: .9rem;
}

.property-info .property-price {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
}

.centered {
  margin-top: 38px;
  text-align: center;
}

/* =================================
   WELCOME
================================= */

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
}

.welcome-grid img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* =================================
   MISSION
================================= */

.mission-section {
  background: var(--ink);
  color: #fff;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
}

.mission-grid .eyebrow {
  color: #d6b18c;
}

.mission-grid p:last-child {
  max-width: 480px;
  color: #e2e5e7;
}

/* =================================
   NEWSLETTER
================================= */

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.newsletter h2 {
  margin-bottom: 8px;
}

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





/* =================================
   FOOTER
================================= */

.site-footer {
  padding-top: 64px;
  background: #111e2a;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
}

.footer-brand img {
  width: 205px;
  max-height: 95px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 280px;
  color: #cbd1d6;
}

.site-footer h2 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.site-footer .social-heading {
  margin-top: 26px;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-items: start;
}

.footer-links a {
  color: #d8dee3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .17);
  color: #cbd1d6;
  font-size: .82rem;
}

.footer-bottom p {
  margin: 0;
}

/* =================================
   MAYA PROFILE
================================= */

.maya-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  max-width: 1160px;
  margin-inline: auto;
}

.maya-profile-copy h2 {
  margin-bottom: 24px;
  color: #202124;
  font-family: var(--sans);
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.maya-brokerage {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin: 0 0 24px;
}

.maya-brokerage-logo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
}

.maya-brokerage-name {
  color: #606060;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.maya-brokerage-tagline {
  color: #777;
  font-size: .9rem;
  font-style: italic;
  letter-spacing: .05em;
}

.maya-description {
  max-width: 500px;
  color: #555961;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
}

.maya-contact {
  margin-top: 20px;
}

.maya-contact p {
  margin-bottom: 24px;
  color: #414141;
  font-size: .98rem;
}

.maya-contact a {
  text-underline-offset: 3px;
}

.maya-socials {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 18px 0 24px;
}

.maya-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 24px;
  text-decoration: none;
  transition: opacity .2s ease;
}

.maya-socials a:hover {
  opacity: .65;
}

.maya-profile-visual {
  width: 100%;
  max-width: 445px;
  margin: 0 auto;
}

.maya-profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0 150px 0 150px;
}

.maya-credentials {
  margin-top: 22px;
  padding: 12px 16px;
  background: #2168df;
  color: #fff;
}

.maya-credentials p {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.maya-credentials p:last-child {
  margin-bottom: 0;
}



/* =================================
   RECENTLY SOLD HOMES
================================= */

.sold-section {
  background: #f4f0e9;
  padding: 88px 0 84px;
}

.sold-section .container {
  width: min(1120px, calc(100% - 48px));
}

.sold-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.sold-heading .eyebrow {
  margin-bottom: 12px;
  color: #9c7655;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sold-heading h2 {
  margin-bottom: 18px;
  color: #1b2a3a;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.sold-heading > p:last-child {
  margin-bottom: 0;
  color: #1b2a3a;
  font-size: 1rem;
}

.sold-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.sold-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 42, 58, .06);
}

.sold-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sold-card .property-info {
  padding: 20px 17px 22px;
  text-align: left;
}

.sold-card .property-info h3 {
  margin-bottom: 8px;
  color: #1b2a3a;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.sold-card .property-info p {
  margin-bottom: 8px;
  color: #65686b;
  font-size: .9rem;
  line-height: 1.5;
}

.sold-card .property-info .property-price {
  margin-top: 14px;
  margin-bottom: 0;
  color: #1b2a3a;
  font-size: 1.05rem;
  font-weight: 700;
}

.sold-actions {
  margin-top: 36px;
  text-align: center;
}

/* =================================
   RESPONSIVE — TABLET
================================= */

@media (max-width: 900px) {
  .header-inner {
    min-height: 96px;
    gap: 18px;
  }

  .brand {
    flex-basis: 190px;
  }

  .brand img {
    width: 190px;
  }

  .primary-navigation ul {
    gap: 16px;
  }

  .primary-navigation a {
    font-size: .85rem;
  }

  .property-grid,
  .sold-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .footer-grid {
    gap: 32px;
  }

  .hero {
    min-height: 650px;
    height: calc(100vh - 96px);
  }

  .hero-content {
    padding-block: 70px;
  }

  .hero-content h1 {
    max-width: 700px;
    font-size: clamp(2.5rem, 4.5vw, 3.2rem);
    line-height: 1.3;
  }

  .hero-content p {
    max-width: 680px;
  }
}



/* =================================
   RESPONSIVE — MOBILE
================================= */

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 36px), var(--content-width));
  }

  .header-inner {
    min-height: 82px;
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .brand {
    flex-basis: 170px;
  }

  .brand img {
    width: 170px;
    max-height: 62px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--line);
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
  }

  .nav-toggle-label {
    font-size: .9rem;
    font-weight: 700;
  }

  .nav-toggle-icon {
    display: grid;
    gap: 4px;
    width: 18px;
  }

  .nav-toggle-icon span {
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .primary-navigation {
    display: none;
    flex-basis: 100%;
    padding: 4px 0 12px;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: 0;
  }

  .primary-navigation a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
  }

  .hero {
    min-height: 620px;
    height: 85svh;
  }

  .hero-video {
    object-position: center center;
  }

  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(12, 23, 33, .64) 0%,
      rgba(12, 23, 33, .35) 100%
    );
  }

  .hero-content {
    width: calc(100% - 36px);
    padding-block: 56px;
  }

  .hero-content h1 {
    max-width: 540px;
    margin-bottom: 18px;
    font-size: clamp(2.15rem, 8.5vw, 3.2rem);
    line-height: 1.2;
  }

  .hero-content p {
    max-width: 520px;
    margin-bottom: 24px;
    font-size: .98rem;
    line-height: 1.55;
  }

  .section {
    padding-block: 62px;
  }

  .intro-grid,
  .welcome-grid,
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro-photo-wrap {
    max-width: 400px;
  }

  .property-grid {
    gap: 14px;
  }

  .property-info {
    padding: 15px 13px 17px;
  }

  .property-info h3 {
    font-size: 1.18rem;
  }

  .property-info p {
    font-size: .82rem;
  }

  .newsletter-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .maya-profile {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .maya-profile-copy h2 {
    font-size: 2.2rem;
  }

  .maya-profile-visual {
    max-width: 520px;
  }

  .maya-profile-photo {
    aspect-ratio: 4 / 5;
    height: auto;
    border-radius: 0 130px 0 130px;
  }

  .sold-section {
    padding: 60px 0;
  }

  .sold-section .container {
    width: calc(100% - 36px);
  }

  .sold-heading h2 {
    font-size: 2.15rem;
  }

  .sold-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sold-card .property-info {
    padding: 18px;
  }

  /* Uniform mobile CTA sizing */
  :where(
    a.button,
    a.hero-button,
    a.maya-contact-button,
    a.sold-button,
    .button,
    .hero-button,
    .maya-contact-button,
    .sold-button,
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"]
  ) {
    min-height: 48px;
    padding: 12px 20px;
    font-size: .92rem;
  }
}

/* Smaller phones */

@media (max-width: 480px) {
  .maya-profile-copy h2 {
    font-size: 1.9rem;
  }

  .maya-brokerage-name {
    font-size: 1.05rem;
  }

  .maya-contact p {
    margin-bottom: 16px;
  }

  .maya-profile-photo {
    border-radius: 0 100px 0 100px;
  }

  .maya-credentials p {
    font-size: .9rem;
  }
}

/* =================================
   ACCESSIBILITY — REDUCED MOTION
================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}



/* Capsule-shaped buttons — apply consistently across the website */

:root {
  --button-radius: 999px;
}

:where(
  a.button,
  a.hero-button,
  a.maya-contact-button,
  a.sold-button,
  .button,
  .hero-button,
  .maya-contact-button,
  .sold-button,
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"]
) {
  border-radius: 999px !important;
}




/* =================================
   RECENTLY SOLD HOMES — FINAL FIX
================================= */

.sold-section {
  background: #f4f0e9;
  padding: 72px 0 84px;
}

.sold-section .container {
  width: min(1190px, calc(100% - 48px));
  margin-inline: auto;
}

/* Heading */
.sold-heading {
  max-width: 100%;
  margin: 0 auto 40px;
  text-align: center;
}

.sold-heading .eyebrow,
.sold-heading > p:last-child {
  display: none;
}

.sold-heading h2 {
  margin: 0;
  color: #202124;
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Four equal-width cards */
.sold-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

/* Make each card fill the same height */
.sold-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  box-shadow: 0 8px 24px rgba(27, 42, 58, 0.06);
}

/* Uniform image dimensions */
.sold-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* Uniform content panels */
.sold-card .property-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 18px 24px;
  text-align: left;
}

.sold-card .property-info h3 {
  margin: 0 0 10px;
  color: #1b2a3a;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.sold-card .property-info p {
  margin: 0 0 8px;
  color: #65686b;
  font-size: .9rem;
  line-height: 1.5;
}

.sold-card .property-info .property-price {
  margin-top: auto;
  padding-top: 12px;
  margin-bottom: 0;
  color: #1b2a3a;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Linked cards should not change appearance */
.sold-grid > a.sold-card-link {
  display: flex;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.sold-grid > a.sold-card-link .sold-card {
  width: 100%;
}

.sold-grid > a.sold-card-link:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Capsule CTA */
.sold-actions {
  margin-top: 36px;
  text-align: center;
}

.sold-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid #1b2a3a;
  border-radius: 999px !important;
  background: #1b2a3a;
  color: #fff;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.sold-button:hover {
  background: #344656;
  border-color: #344656;
  color: #fff;
}

/* Tablet */
@media (max-width: 900px) {
  .sold-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .sold-section {
    padding: 54px 0 60px;
  }

  .sold-section .container {
    width: calc(100% - 36px);
  }

  .sold-heading {
    margin-bottom: 28px;
  }

  .sold-heading h2 {
    font-size: 2rem;
  }

  .sold-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sold-card > img {
    aspect-ratio: 4 / 3;
  }

  .sold-card .property-info {
    padding: 18px;
  }
}




/* =========================================
   WELCOME SECTION
========================================= */

.welcome-section {
  width: 100%;
  padding: 78px 0 84px;
  background: #ffffff;
  color: #1b2a3a;
}

.welcome-container {
  width: min(1136px, calc(100% - 48px));
  margin-inline: auto;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
}

/* Welcome text */

.welcome-copy {
  min-width: 0;
  max-width: 540px;
}

.welcome-eyebrow {
  margin: 0 0 14px;
  color: #9c7655;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.welcome-copy h2 {
  margin: 0 0 22px;
  color: #1b2a3a;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.welcome-lead {
  margin: 0 0 18px;
  color: #1b2a3a;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.65;
}

.welcome-description {
  margin: 0 0 22px;
  color: #344656;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* Text link */

.welcome-link {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid #9c7655;
  color: #1b2a3a;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.welcome-link:hover {
  color: #9c7655;
  border-color: #9c7655;
}

.welcome-link:focus-visible {
  outline: 3px solid #b77b3e;
  outline-offset: 4px;
}

/* =========================================
   WELCOME IMAGE GRID
========================================= */

.welcome-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.welcome-image-grid img {
  display: block;
  width: 100%;
  height: 238px;
  min-width: 0;
  object-fit: cover;
  object-position: center;
}

/* =========================================
   MISSION SECTION
========================================= */

.mission-section {
  width: 100%;
  padding: 82px 0 88px;
  background: #1b2a3a;
  color: #ffffff;
}

.mission-container {
  width: min(1136px, calc(100% - 48px));
  margin-inline: auto;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 8vw, 110px);
}

.mission-item {
  min-width: 0;
  max-width: 520px;
}

.mission-eyebrow {
  margin: 0 0 18px;
  color: #d6b18c;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.mission-item h2 {
  margin: 0 0 20px;
  color: #ffffff;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.mission-item > p:last-child {
  max-width: 480px;
  margin: 0;
  color: #e2e5e7;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
  .welcome-grid {
    gap: 34px;
  }

  .welcome-image-grid img {
    height: 190px;
  }

  .welcome-copy h2 {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .mission-grid {
    gap: 44px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {
  .welcome-section {
    padding: 58px 0 64px;
  }

  .welcome-container,
  .mission-container {
    width: calc(100% - 36px);
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .welcome-copy {
    max-width: 620px;
  }

  .welcome-copy h2 {
    max-width: 560px;
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

  .welcome-lead {
    font-size: 1.08rem;
  }

  .welcome-image-grid img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .mission-section {
    padding: 60px 0 64px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .mission-item h2 {
    font-size: 2.4rem;
  }
}

/* Smaller phones */

@media (max-width: 380px) {
  .welcome-image-grid {
    gap: 4px;
  }

  .welcome-copy h2 {
    font-size: 2.05rem;
  }

  .mission-item h2 {
    font-size: 2.1rem;
  }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
  .welcome-link {
    transition: none;
  }
}



/* =================================
   FOOTER REDESIGN
================================= */

.site-footer {
  padding-top: 58px;
  background: #111e2a;
  color: #fff;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
}

/* Footer headings */
.site-footer h2 {
  margin: 0 0 22px;
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* Remove old logo and brand description if still present */
.site-footer .footer-brand {
  display: none;
}

/* Newsletter form */
.footer-subscribe {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}

.footer-subscribe input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: #1b2a3a;
  font: 400 .92rem var(--sans);
}

.footer-subscribe input[type="email"]::placeholder {
  color: #777f87;
}

.footer-subscribe input[type="email"]:focus-visible {
  border-color: #d6b18c;
  outline: 2px solid #d6b18c;
  outline-offset: 3px;
}

/* Capsule Send button */
.site-footer .footer-subscribe button {
  display: inline-flex;
  min-width: 88px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #1b2a3a;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.site-footer .footer-subscribe button:hover {
  background: transparent;
  color: #fff;
}

/* Screen-reader-only form label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer navigation */
.site-footer .footer-links {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-links a {
  color: #d8dee3;
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer .footer-links a:hover {
  color: #d6b18c;
}

/* Social icons */
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social-icons a {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.footer-social-icons a:hover {
  border-color: #d6b18c;
  background: #d6b18c;
  color: #111e2a;
}

.footer-social-icons svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* Copyright */
.site-footer .footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .17);
  color: #cbd1d6;
  font-size: .82rem;
}

.site-footer .footer-bottom p {
  margin: 0;
}

/* Tablet */
@media (max-width: 800px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px;
  }

  .footer-newsletter {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .site-footer {
    padding-top: 44px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }

  .footer-newsletter {
    grid-column: auto;
  }

  .footer-subscribe {
    gap: 8px;
  }

  .footer-subscribe input[type="email"] {
    padding-inline: 15px;
    font-size: .85rem;
  }

  .site-footer .footer-subscribe button {
    min-width: 72px;
    padding-inline: 17px;
  }
}



/* Stack footer email field and Send button vertically */
.footer-subscribe {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 460px;
}

.footer-subscribe input[type="email"] {
  width: 100%;
  flex: none;
}

.site-footer .footer-subscribe button {
  align-self: flex-start;
  min-width: 100px;
  border-radius: 999px;
}




/* Center only the Welcome heading */
.welcome-container > h2 {
  text-align: center;
}



/* =========================================
   MOBILE NAVIGATION — SLIDE-OUT DRAWER
========================================= */

@media (max-width: 680px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
  }

  .header-inner {
    min-height: 78px;
    flex-wrap: nowrap;
    gap: 12px;
    padding-block: 8px;
  }

  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand img {
    display: block;
    width: clamp(145px, 45vw, 180px);
    max-height: 60px;
    object-fit: contain;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    margin-left: auto;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    z-index: 1002;
  }

  .nav-toggle-label {
    font-size: 0.9rem;
    font-weight: 700;
  }

  .nav-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
    height: 20px;
  }

  .nav-toggle-icon span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  /* Animate hamburger into an X */

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

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

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

  /* Dark overlay behind the drawer */

  body.menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 25, 35, 0.48);
  }

  /* Slide-out navigation panel */

  .site-header .primary-navigation {
    display: block;
    position: fixed;
    top: 78px;
    right: 0;
    bottom: 0;
    z-index: 1001;
    width: min(86vw, 360px);
    height: calc(100dvh - 78px);
    padding: 24px 24px 40px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 260ms ease,
      visibility 260ms ease;
    overscroll-behavior: contain;
  }

  .site-header .primary-navigation.is-open {
    display: block;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .primary-navigation ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .primary-navigation li {
    width: 100%;
  }

  .primary-navigation a {
    display: block;
    padding: 17px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
  }

  .primary-navigation a:hover,
  .primary-navigation a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--line);
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Respect reduced-motion preferences */

@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
  .site-header .primary-navigation,
  .nav-toggle-icon span {
    transition: none;
  }
}


@media (max-width: 680px) {
  body.menu-open .site-header {
    z-index: 1002;
  }

  body.menu-open::after {
    z-index: 1000;
  }

  .site-header .primary-navigation {
    z-index: 1001;
  }
}


/* Larger header logo — desktop and mobile */
.site-header .brand img {
  width: 250px;
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .site-header .brand img {
    width: 210px;
    max-height: 75px;
  }
}

@media (max-width: 680px) {
  .site-header .brand img {
    width: 195px;
    max-height: 68px;
  }
}




/* Align Contact Maya button with the profile content */
.maya-contact-button {
  display: inline-block;
  margin-left: 0;
  align-self: flex-start;
}

.maya-profile-copy {
  text-align: left;
}


.maya-socials {
  display: flex;
  align-items: center;
  gap: 30px;
}




/* Unified four-column footer */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.2fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.site-footer .footer-contact a {
  overflow-wrap: anywhere;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 12px;
}

.site-footer .footer-links a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer .footer-links a:hover {
  opacity: 0.7;
}

/* Tablet */
@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}




/* FOOTER - CHANGES */


.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-credit {
  margin: 0;
  font-size: 13px;
}

.footer-credit strong {
  font-weight: 600;
}

@media (max-width: 600px) {
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}





/* Footer social media icons */
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.footer-social-icons a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.footer-social-icons a svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.footer-social-icons a[aria-label="Instagram"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-social-icons a[aria-label="Instagram"] .icon-dot {
  fill: currentColor;
  stroke: none;
}

.footer-social-icons a:hover {
  transform: translateY(-3px);
  opacity: 0.7;
}


/* Welcomes to Historic homes Space between homes and relocation to the St. Augustine/Jacksonville area.

Why Choose Me */

.welcome-copy .why-choose-heading {
  margin-top: 38px;
}


/* Welcome section text alignment */
.welcome-copy p {
  text-align: justify;
  text-justify: inter-word;
}

.welcome-copy h3 {
  text-align: center;
}





/* Footer contact icons */

.footer-contact-item {
  margin-bottom: 16px;
}

.footer-contact-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.footer-contact-item svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-item a:hover {
  opacity: 0.7;
}

.footer-contact-item span {
  overflow-wrap: anywhere;
}



/* News Letter */

.subscribe-message {
  width: 100%;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.subscribe-message.success {
  color: #78b58a;
}

.subscribe-message.error {
  color: #e28b82;
}

.footer-subscribe button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
