/* ================================================================
   styles.css — HandsFree Property Group
   Shared stylesheet for all three pages:
     • index.html  (home)
     • listings.html
     • legal.html

   HOW TO LINK IN EACH HTML FILE (inside <head>):
     <link rel="stylesheet" href="styles.css" />
================================================================ */


/* ================================================================
   SECTION 1 — HOME PAGE
   (also contains all shared rules: reset, nav, portal, lang toggle,
    buttons, footer, responsive breakpoints)
================================================================ */

/* ── VARIABLES ── */
  :root {
    --navy:         #0a1628;
    --gray-navy:    #181F29;
    --deep-purple:  #0A0D29;
    --blue:         #0A1729;
    --deep-navy:    #060e1a;
    --gold:         #c9a84c;
    --gold-light:   #e8c878;
    --gold-on-cream: #8a6518;
    --cream:        #f5f0e8;
    --white:        #ffffff;
    /* #8a9ab5 on #0A0D29 = ~3.8:1, fails WCAG AA for small text.
       Boosted to #a8b8d0 = ~5.2:1 — passes AA. */
    --gray:         #a8b8d0;
    --text-dark:    #1a2540;
    --text-mid:     #4a5568;
    --focus-ring:   #e8c878;
    --error-red:    #b91c1c;
  }

  /* ── RESET ── */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
  }

  /* ── SCREEN-READER ONLY UTILITY ── */
  .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;
  }

  /* ── SKIP LINK ── */
  .skip-link {
    position: absolute;
    top: -999px; left: 1rem;
    background: var(--gold);
    color: var(--deep-purple);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
    transition: top 0.2s;
  }
  .skip-link:focus { top: 0; }

  /* ── GLOBAL FOCUS RING ── */
  :focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 2px;
  }

  /* ── NAVIGATION ── */
  header nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 5%;
    min-height: 80px;
    height: auto;
    background: rgba(10, 22, 40, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-on-cream);
    transition: box-shadow 0.3s ease;
    gap: 1rem;
    flex-wrap: wrap;
  }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.logo-link {
  text-decoration: none !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

.logo-link:hover,
.logo-link:focus,
.logo-link:visited { text-decoration: none !important; }

  /* Title wraps instead of truncating */
  .nav-logo .logo-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.9rem, 2vw, 1.45rem);
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
    white-space: normal;
    overflow: visible;
    line-height: 1.25;
  }

  .nav-logo .logo-sub {
    font-size: clamp(0.42rem, 1.2vw, 0.52rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--gray);
    text-transform: uppercase;
    margin-top: 3px;
    white-space: normal;
    line-height: 1.4;
  }

  .nav-links {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
    flex-shrink: 0;
  }

  .nav-links a {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s;
  }

  .nav-links a:hover { color: var(--gold); }
  .nav-links a:hover::after { width: 100%; }

  .nav-cta {
    background: var(--gold) !important;
    color: var(--deep-purple) !important;
    padding: 0.55rem 1rem !important;
    border-radius: 2px;
    font-weight: 700 !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.3;
    max-width: 110px;
  }

  .nav-cta:hover { background: var(--gold-light) !important; }
  .nav-cta::after { display: none !important; }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 3px;
  }

  .hamburger span {
    width: 26px; height: 2px;
    background: var(--gold);
    display: block;
    transition: all 0.3s;
  }

  /* ── MOBILE NAV ── */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 80px; left: 0; right: 0; bottom: 0;
    background: var(--blue);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    overflow-y: auto;
    padding: 2rem 1rem;
  }

  .mobile-nav.open { display: flex; }

  .mobile-nav a {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.4rem 0;
  }

  .mobile-nav a:hover { color: var(--gold); }

  .mobile-nav-divider {
    width: 80%;
    height: 1px;
    background: rgba(201,168,76,0.25);
    margin: 0.5rem 0;
  }

  .mobile-lang-btn {
    background: transparent;
    border: 1px solid rgba(201,168,76,0.5);
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.3s;
  }
  .mobile-lang-btn:hover { background: rgba(201,168,76,0.1); }

  /* ── PORTAL DROPDOWN ── */
  .nav-portal {
    position: relative;
    flex-shrink: 0;
  }

  .nav-portal-btn {
    background: transparent;
    border: 1px solid var(--gold-on-cream);
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: border-color 0.3s, color 0.3s;
    white-space: nowrap;
  }
  .nav-portal-btn:hover { border-color: var(--gold); color: var(--gold); }

  .portal-chevron {
    font-size: 0.6rem;
    transition: transform 0.2s;
    display: inline-block;
  }
  .nav-portal-btn[aria-expanded="true"] .portal-chevron { transform: rotate(180deg); }

  .portal-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--blue);
    border: 1px solid var(--gold-on-cream);
    border-radius: 3px;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    z-index: 1100;
    overflow: hidden;
  }
  .portal-dropdown[hidden] { display: none; }

  .portal-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .portal-dropdown a:last-child { border-bottom: none; }
  .portal-dropdown a:hover { background: rgba(201,168,76,0.1); color: var(--gold); }

  /* ── LANGUAGE TOGGLE ── */
  .lang-toggle {
    background: transparent;
    border: 1px solid var(--gold-on-cream);
    border-radius: 2px;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.65rem;
    min-width: 130px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: border-color 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
  .lang-active { color: var(--gold); font-weight: 700; }
  .lang-divider { color: var(--gold-on-cream); margin: 0 1px; }
  .lang-other   { color: var(--gold-on-cream); }
  .lang-toggle.es-active .lang-active { color: var(--gold); }

  /* ── HERO ── */
  #home {
    min-height: 100vh;
    padding-top: clamp(100px, 15vh, 180px);
    padding-bottom: 4rem;
    background: var(--deep-purple);
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
      url('https://images.unsplash.com/photo-1567684014761-b65e2e59b9eb?w=1600&q=80') center/cover no-repeat;
    opacity: 0.45;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(6,14,26,0.93) 40%, rgba(6,14,26,0.55) 100%);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 5%;
    max-width: 780px;
    animation: heroFadeIn 1.2s ease forwards;
  }

  @keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 40px; height: 1px;
    background: var(--gold);
    flex-shrink: 0;
  }

  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
  }

  .hero-title em { font-style: italic; color: var(--gold); }

  .hero-sub {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1.9;
    max-width: 560px;
    margin-bottom: 2.5rem;
  }

  .hero-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
  }

  .badge {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-on-cream);
    padding: 0.4rem 0.9rem;
    border-radius: 2px;
  }

  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero-stat-single {
    position: absolute;
    bottom: 3rem;
    right: 5%;
    z-index: 2;
    text-align: center;
    animation: heroFadeIn 1.4s ease 0.3s both;
  }

  .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
  }

  .stat-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 0.3rem;
  }

  /* ── SHARED BUTTONS ── */
  .btn-primary {
    background: var(--gold);
    color: var(--deep-purple);
    padding: 0.95rem 2.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
  }

  .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

  .btn-outline {
    background: transparent;
    color: var(--white);
    padding: 0.95rem 2.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--gold-on-cream);
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
    display: inline-block;
  }

  .btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

  /* ── SHARED SECTION STYLES ── */
  section { scroll-margin-top: 100px; }

  .section-header { text-align: center; margin-bottom: 4rem; }

  .section-eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
  }

  .section-eyebrow::before,
  .section-eyebrow::after {
    content: '';
    width: 30px; height: 1px;
    background: var(--gold);
    display: inline-block;
    flex-shrink: 0;
  }

  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.2;
  }

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

  /* ── GOLD ON LIGHT SECTIONS ─────────────────────────────────
   Add class="light-section" to any <section> with a cream or
   white background. Eyebrow text, decorative lines, and italic
   title text will automatically use --gold-on-cream (#8a6518)
   which passes WCAG AA at 4.68:1 on both --cream and --white.
   Do NOT add this class to dark-background sections.
──────────────────────────────────────────────────────────── */
.light-section .section-eyebrow, 
.light-section .section-title em,
.light-section .overview-text h2 em,
.light-section .overview-checks li:before
{color: var(--gold-on-cream);}

.light-section .section-eyebrow::before,
.light-section .section-eyebrow::after
{background: var(--gold-on-cream);}
 
  .payment-card.featured .payment-title,
  .payment-card.featured .payment-price,
  .payment-card.featured li:before
  { color: var(--gold); }

/* Named sections with dark backgrounds */
#services .section-title em,
#about    .section-title em,
#home     .hero-title em,
#home     .section-title em {
  color: var(--gold);
}

#services .section-eyebrow,
#about    .section-eyebrow {
  color: var(--gold);
}

#services .section-eyebrow::before,
#services .section-eyebrow::after,
#about    .section-eyebrow::before,
#about    .section-eyebrow::after {
  background: var(--gold);
}

  .section-desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.9;
    max-width: 580px;
    margin: 1rem auto 0;
  }

  /* ── OVERVIEW ── */
  #overview { padding: 7rem 5%; background: var(--cream); }

  .overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .overview-img-wrap { position: relative; }

  .overview-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
  }

  .overview-text .section-eyebrow { justify-content: flex-start; }
  .overview-text .section-eyebrow::after { display: none; }

  .overview-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
  }

  .overview-text h2 em { font-style: italic; color: var(--gold-on-cream); }

  .overview-text p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.9; margin-bottom: 1rem; }

  .overview-checks { list-style: none; margin: 1.5rem 0 2rem; }

  .overview-checks li {
    font-size: 0.85rem;
    color: var(--text-mid);
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }

  .overview-checks li::before {
    content: '✦';
    color: var(--gold);
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 3px;
  }

  /* ── SERVICES ── */
  #services { padding: 7rem 5%; background: var(--deep-purple); }
  #services .section-title { color: var(--white); }
  #services .section-desc  { color: var(--gray); }

  .services-tabs-wrap { text-align: center; margin-bottom: 3rem; }

  .services-tabs {
    display: inline-flex;
    border: 1px solid var(--gold-on-cream);
    border-radius: 2px;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    padding: 0.9rem 1.5rem;
    background: transparent;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s;
  }

  .tab-btn.active { background: var(--gold); color: var(--deep-purple); }
  .tab-btn:not(:last-child) { border-right: 1px solid var(--gold-on-cream); }

  /* Ensure HTML hidden attribute hides tab panels even when display:grid is set */
  .services-grid[hidden] { display: none !important; }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    max-width: 1200px;
    margin: 0 auto;
    background:rgba(187, 155, 68, 0.322);
  }

  .service-card {
    background: var(--blue);
    padding: 2.5rem;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--gold);
    transition: height 0.4s;
  }

  .service-card:hover { background: rgba(93, 75, 26, 0.05); }
  .service-card:hover::before { height: 100%; }

  .service-icon { font-size: 1.6rem; margin-bottom: 1.2rem; display: block; }

  .service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.75rem;
  }

  .service-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.8; }

  /* ── AREAS ── */
  #areas { padding: 7rem 5%; background: var(--white); }

  .areas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .area-card { position: relative; overflow: hidden; border-radius: 2px; }

  .area-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
  }

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

  .area-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,14,26,0.9) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
  }

  .area-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
  }

  .area-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.5rem;
  }

  /* Boosted from 0.65 to 0.8 opacity for WCAG contrast */
  .area-desc { font-size: 0.8rem; color: var(--gold); line-height: 1.7; }

  .area-cta {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.75rem;
  }

  /* area-card as anchor */
  a.area-card { display: block; text-decoration: none; cursor: pointer; }
  a.area-card:hover img { transform: scale(1.05); }

  /* ── TESTIMONIALS ── */
  #testimonials { padding: 7rem 5%; background: var(--cream); }

  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-bottom: 3px solid var(--gold);
    position: relative;
  }

  .testimonial-card::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: var(--gold-on-cream);
    opacity: 0.2;
    position: absolute;
    top: 0.5rem; left: 1rem;
    line-height: 1;
    pointer-events: none;
  }

  .testimonial-text {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    padding: 0;
    border: none;
  }

  .author-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--blue);
    border: 2px solid var(--gold-on-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-light);
  }

  .author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    font-style: normal;
    display: block;
  }

  .author-type {
    font-size: 0.67rem;
    color: var(--text-mid);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
  }

  /* ── ABOUT ── */
  #about { padding: 7rem 5%; background: var(--deep-purple); }
  #about .section-title { color: var(--white); }
  #about .section-desc  { color: var(--gray); }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    max-width: 1200px;
    margin: 4rem auto 0;
  }

  .about-text p { font-size: 0.9rem; color: var(--gray); line-height: 1.9; margin-bottom: 1.2rem; }

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

  .value-item { border-left: 2px solid var(--gold); padding-left: 1rem; }

  .value-item h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
    font-family: 'Montserrat', sans-serif;
  }

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

  .team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  .team-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.15);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s;
  }

  .team-card:hover { border-color: var(--gold); }

  .team-avatar {
    width: 70px;
    height: 70px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold) 0%, #a07a30 100%);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-purple);
  }

  .team-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
  }

  .team-role {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.7rem;
  }

  .team-bio { font-size: 0.78rem; color: var(--gray); line-height: 1.7; }

  /* ── PRICING ── */
  #payments { padding: 7rem 5%; background: var(--white); }

  .payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .payment-card {
    border: 1px solid rgba(0,0,0,0.08);
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 2px;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
  }

  .payment-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }

  .payment-card.featured {
    background: var(--deep-purple);
    border-color: var(--gold);
    position: relative;
  }

  .payment-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--deep-purple);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    white-space: nowrap;
  }

  .payment-icon { font-size: 2.2rem; margin-bottom: 1rem; }

  .payment-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
  }


  .payment-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold-on-cream);
    line-height: 1;
    margin-bottom: 0.3rem;
  }

  .payment-period { font-size: 0.7rem; color: var(--text-mid); margin-bottom: 1.5rem; }
  .payment-card.featured .payment-period { color: var(--gray); }


  .payment-features { list-style: none; text-align: left; margin-bottom: 2rem; flex: 1; }

  .payment-features li {
    font-size: 0.8rem;
    color: var(--text-mid);
    padding: 0.4rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .payment-card.featured .payment-features li {
    color: var(--gray);
    border-bottom-color: rgba(255,255,255,0.07);
  }

  .payment-features li::before {
    content: '✦';
    color: var(--gold-on-cream);
    font-size: 0.6rem;
    margin-top: 3px;
    flex-shrink: 0;
  }

  .payment-cta-note {
    max-width: 720px;
    margin: 3rem auto 0;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 2px;
    padding: 1.5rem 2rem;
    text-align: center;
  }

  .payment-cta-note h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
  }

  .payment-cta-note p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.8; }
  .payment-cta-note a { color: #7a5a10; font-weight: 700; text-decoration: underline; }

  /* ── CONSULTATION FORM ── */
  #consultation { padding: 7rem 5%; background: var(--cream); }

  /* ── Web3Forms spam honeypot — hidden from all users ── */
  .botcheck { display: none; }

  .form-wrapper {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  }

  .form-header {
    background: var(--deep-purple);
    padding: 2.5rem;
    text-align: center;
  }

  .form-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 0.5rem;
  }

  .form-header p { font-size: 0.8rem; color: var(--gray); }

  .form-body { padding: 2.5rem; }

  .role-fieldset { border: none; padding: 0; margin-bottom: 2rem; }

  .form-role-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
  }

  .required-note, .optional-label {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-mid);
    letter-spacing: 0;
    text-transform: none;
  }

  .role-selector { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

  .role-option {
    border: 2px solid rgba(0,0,0,0.15);
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 2px;
  }

  .role-option.selected { border-color: var(--gold); background: rgba(201,168,76,0.06); }
  .role-option:hover    { border-color: var(--gold); }

  .role-option:focus-visible {
      outline: 3px solid var(--gold);
      outline-offset: 2px;
    }

  .role-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }

  .role-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
  }

  .role-desc { font-size: 0.72rem; color: var(--text-mid); line-height: 1.5; }

  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

  .form-group { margin-bottom: 1.25rem; }

  .form-group label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid rgba(0,0,0,0.15);
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-on-cream);
  }

  .form-group input[aria-invalid="true"],
  .form-group select[aria-invalid="true"],
  .form-group textarea[aria-invalid="true"] { border-color: var(--error-red); }

  .form-group textarea { resize: vertical; min-height: 110px; }

  .field-error {
    font-size: 0.75rem;
    color: var(--error-red);
    margin-top: 0.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .field-error::before { content: '⚠'; font-size: 0.7rem; }

  .owner-fields, .renter-fields { display: none; }
  .owner-fields.visible, .renter-fields.visible { display: block; }

  .form-error-summary {
    background: #fdf2f2;
    border: 2px solid var(--error-red);
    border-radius: 3px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: #7f1d1d;
  }

  .form-error-summary strong { display: block; margin-bottom: 0.5rem; }
  .form-error-summary ul { padding-left: 1.2rem; }
  .form-error-summary li { margin-bottom: 0.25rem; }

  .form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    color: var(--deep-purple);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s;
    margin-top: 0.5rem;
  }

  .form-submit:hover { background: var(--gold-light); }

  .captcha-group { margin-top: 0.5rem; margin-bottom: 0.5rem; }

  .success-reset-btn {
    margin-top: 1.5rem;
    background: transparent;
    color: var(--gold-on-cream);
    border: 2px solid var(--gold-on-cream);
    padding: 0.75rem 2rem;
    font-size: 0.72rem;
  }
  .success-reset-btn:hover { background: var(--gold); color: var(--deep-purple); }

  .form-success { text-align: center; padding: 3rem; }
  .form-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }

  .form-success h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
  }

  .form-success p { font-size: 0.85rem; color: var(--text-mid); }
  .form-success .success-phone { font-size: 0.78rem; color: var(--gold-on-cream); margin-top: 1rem; }
  .form-success .success-phone a { color: inherit; text-decoration: underline; }

  /* ── FOOTER COL nav override — keep footer navs static, not fixed ── */
  .footer-col {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    height: auto;
    min-height: 0;
    display: block;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    gap: unset;
  }

  /* ── FOOTER ── */
  footer {
    background: var(--blue);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--gold-on-cream);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .footer-brand .logo-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
    display: block;
  }

  .footer-brand .logo-sub {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
    display: block;
    margin-top: 3px;
    margin-bottom: 1rem;
  }

  .footer-brand p { font-size: 0.8rem; color: var(--gray); line-height: 1.8; margin-bottom: 1.2rem; }

  .footer-contact-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    align-items: center;
  }

  .footer-contact-item a { color: var(--gray); text-decoration: none; transition: color 0.2s; }
  .footer-contact-item a:hover { color: var(--gold); }

  .footer-col h2 {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.2rem;
    font-family: 'Montserrat', sans-serif;
  }

  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 0.6rem; }

  .footer-col ul li a {
    font-size: 0.8rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-col ul li a:hover { color: var(--gold); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-bottom p { font-size: 0.7rem; color: var(--gray); }
  .footer-bottom a { color: var(--gray); text-decoration: underline; }
  .footer-bottom a:hover { color: var(--gold); }

  /* ── RESPONSIVE: 1024px ── */
  @media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
    .payment-grid  { grid-template-columns: 1fr 1fr; }
  }

.footer-brand-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

  /* ── RESPONSIVE: 768px ── */
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .nav-logo .logo-main {
      white-space: normal;
      font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    }

    .nav-logo .logo-sub {
      white-space: normal;
      font-size: clamp(0.4rem, 1.5vw, 0.5rem);
    }

    .nav-cta {
      font-size: 0.58rem !important;
      padding: 0.45rem 0.7rem !important;
      white-space: normal !important;
      max-width: 85px;
    }

    /* Hero clears the nav even when nav wraps at 200% zoom */
    #home {
      padding-top: 110px;
      min-height: 0;
      align-items: flex-start;
    }

    .hero-stat-single { display: none; }

    .overview-grid,
    .about-grid,
    .areas-grid       { grid-template-columns: 1fr; }

    .services-grid,
    .testimonials-grid,
    .payment-grid     { grid-template-columns: 1fr; }

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

    .footer-grid      { grid-template-columns: 1fr; }
    .footer-bottom    { flex-direction: column; text-align: center; }

    .author-avatar {
      width: 44px !important;
      height: 44px !important;
      min-width: 44px !important;
      border-radius: 50% !important;
    }

    .team-avatar {
      width: 70px !important;
      height: 70px !important;
    }
  }

  /* ── RESPONSIVE: 480px ── */
  @media (max-width: 480px) {
    header nav { min-height: 0; padding: 0.75rem 4%; flex-wrap: wrap; gap: 0.5rem; }
    #home { padding-top: 120px; }
    .form-body { padding: 1.5rem; }
    .payment-grid { grid-template-columns: 1fr; }
    .role-selector { grid-template-columns: 1fr; }
    .a11y-block { padding: 1.5rem; }
  }

  /* ── REDUCED MOTION ── */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
  }


/* ================================================================
   SECTION 2 — LISTINGS PAGE
   (page-specific rules only; shared rules like nav, portal, lang
    toggle are already defined above and apply to all pages)
================================================================ */

/* PAGE HERO */
.listings-hero {
  background-image: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1600&q=80');
  padding: clamp(120px, 18vh, 200px) 5% 4rem;
  position: relative;
  overflow: hidden;
}

.listings-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(201,168,76,0.08) 0%, transparent 50%),
    linear-gradient(to right, var(--deep-navy) 0%, rgba(10,13,41,0.85) 100%);
}

.listings-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.listings-hero .hero-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.listings-hero .hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
  flex-shrink: 0;
}

/* ── Listings page footer (simple two-line footer) ── */
.footer-bottom-simple p { font-size: 0.7rem; color: var(--gray); }
.footer-bottom-simple a { color: var(--gray); text-decoration: underline; }
.footer-bottom-simple a:hover { color: var(--gold); }

.listings-hero-content { position: relative; z-index: 1; max-width: 700px; }
.listings-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; color: var(--white); margin-bottom: 1rem; line-height: 1.1; }
.listings-hero-sub { font-size: 0.9rem; color: var(--gold); line-height: 1.8; max-width: 540px; }

/* MAIN SECTION */
.listings-section { padding: 4rem 0 6rem; background: var(--white); }
.listings-container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }

/* ── FEATURED PROPERTIES ── */
.featured-section {
  background: var(--deep-navy);
  padding: 5rem 0 4rem;
  position: relative;
}

/* Subtle gold divider line at bottom */
.featured-section::after {
  content: '';
  position: absolute; bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-on-cream), transparent);
}

.featured-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 5%;
}

/* Override section-eyebrow and section-title for dark bg */
.featured-section .section-eyebrow {
  color: var(--gold);
  justify-content: center;
}
.featured-section .section-eyebrow::before,
.featured-section .section-eyebrow::after {
  background: var(--gold);
}
.featured-section .section-title {
  color: var(--white);
}
.featured-section .section-title em {
  color: var(--gold);
}
.featured-section .section-desc {
  color: var(--gray);
  margin: 0 auto;
  max-width: 540px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  align-items: start;
}

.featured-card {
  background: var(--blue);
  border: 1px solid var(--gold-on-cream);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.featured-card:hover {
  border-color: var(--gold-on-cream);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.featured-img-wrap { position: relative; overflow: hidden; }
.featured-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.92);
}
.featured-card--large .featured-img-wrap img { height: 310px; }
.featured-card:hover .featured-img-wrap img {
  transform: scale(1.05);
  filter: brightness(1);
}

.featured-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--gold);
  color: var(--deep-navy);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}

.featured-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.featured-area {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.featured-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.featured-details {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.featured-details li {
  font-size: 0.7rem;
  color: var(--gray);
}

.featured-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.25rem;
  margin-top: auto;
  line-height: 1;
}
.featured-price span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gray);
  font-family: 'Montserrat', sans-serif;
}

/* Responsive */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-card--large { grid-column: 1 / -1; }
  .featured-card--large .featured-img-wrap img { height: 260px; }
}
@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card--large { grid-column: auto; }
}

/* FILTERS */
.listings-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; background: var(--cream); border-radius: 4px; padding: 1.5rem; margin-bottom: 1.5rem; }
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; min-width: 160px; }
#filter-status { min-width: 170px; }
.filter-group label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); }
.filter-group select { padding: 0.65rem 0.85rem; border: 1.5px solid rgba(0,0,0,0.15); border-radius: 3px; font-family: 'Montserrat', sans-serif; font-size: 0.8rem; color: var(--text-dark); background: var(--white); cursor: pointer; outline: none; transition: border-color 0.2s; }
.filter-group select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-on-cream); }
.filter-reset { padding: 0.65rem 1.25rem; background: transparent; border: 1.5px solid rgba(0,0,0,0.2); border-radius: 3px; font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; color: var(--text-mid); transition: all 0.2s; align-self: flex-end; }
.filter-reset:hover { border-color: var(--gold); color: var(--gold); }
.results-count {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 0.75rem 0;
}
.results-count strong { color: var(--text-dark); }

/* LISTINGS GRID */
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.listing-card { border: 1px solid rgba(0,0,0,0.08); border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; display: flex; flex-direction: column; background: var(--white); }
.listing-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.listing-card[hidden] { display: none; }
.listing-img-wrap { position: relative; overflow: hidden; }
.listing-img-wrap img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.listing-card:hover .listing-img-wrap img { transform: scale(1.04); }
.listing-badge { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--gold); color: var(--deep-purple); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 2px; }
.listing-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.listing-price { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.3rem; line-height: 1; }
.listing-price span { font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 400; color: var(--text-mid); }
.listing-address { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.3rem; }
.listing-location { font-size: 0.72rem; color: var(--text-mid); margin-bottom: 0.85rem; }
.listing-details { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.85rem; padding: 0.75rem 0; border-top: 1px solid rgba(0,0,0,0.07); border-bottom: 1px solid rgba(0,0,0,0.07); }
.listing-details li { font-size: 0.75rem; color: var(--text-mid); }
.listing-desc { font-size: 0.78rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.25rem; flex: 1; }
.listing-btn { display: block; text-align: center; background: var(--gold); color: var(--deep-purple); padding: 0.75rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background 0.3s; margin-top: auto; }
.listing-btn:hover { background: var(--gold-light); }
.no-results { text-align: center; padding: 4rem 2rem; }
.no-results p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 1.5rem; }

/* For Sale badge — distinct colour from For Rent */
.listing-badge--sale {
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold-on-cream);
}

/* CTA BLOCK */
.listings-cta-block { background: var(--deep-purple); border-radius: 4px; padding: 3rem 2rem; text-align: center; margin-top: 1rem; }
.listings-cta-block h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; color: var(--white); margin-bottom: 0.75rem; }
.listings-cta-block p { font-size: 0.875rem; color: var(--gray); margin-bottom: 1.75rem; line-height: 1.8; }

@media (max-width: 1024px) { .listings-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .listings-grid { grid-template-columns: 1fr; } .listings-filters { gap: 0.75rem; } }
@media (max-width: 480px) { .filter-group { min-width: 100%; } }


/* ================================================================
   SECTION 3 — LEGAL PAGE
   (page-specific rules only)
================================================================ */

/* HERO */
.legal-hero { background: var(--deep-purple); padding: clamp(140px, 18vh, 200px) 5% 4rem; position: relative; overflow: hidden; }
.legal-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 50%, rgba(201,168,76,0.06) 0%, transparent 70%); pointer-events: none; }
.legal-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.8rem; }
.eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); display: inline-block; flex-shrink: 0; }
.legal-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; color: var(--white); margin-bottom: 1rem; line-height: 1.1; }
.legal-hero-sub { font-size: 0.875rem; color: rgba(255,255,255,0.75); line-height: 1.8; max-width: 560px; margin-bottom: 1.5rem; }
.legal-nav { display: flex; gap: 1rem; align-items: center; font-size: 0.72rem; flex-wrap: wrap; }
.legal-nav a { color: var(--gold); font-weight: 600; text-decoration: underline; letter-spacing: 0.05em; }
.legal-nav a:hover { color: var(--gold-light); }
.legal-nav span { color: var(--gold-on-cream); }

/* CONTAINER */
.legal-container { max-width: 860px; margin: 0 auto; padding: 4rem 5% 6rem; }

/* BREADCRUMB */
.breadcrumb { margin-bottom: 0.5rem; }
.breadcrumb ol { list-style: none; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.breadcrumb li { font-size: 0.72rem; color: var(--text-mid); display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: '›'; color: var(--gold); }
.breadcrumb a { color: var(--text-mid); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--text-dark); font-weight: 600; }
.legal-date { font-size: 0.72rem; color: var(--text-mid); margin-bottom: 3rem; letter-spacing: 0.05em; }

/* SECTIONS */
.legal-section { margin-bottom: 1rem; }
.legal-section h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 300; color: var(--text-dark); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gold); scroll-margin-top: 100px; }
.legal-block { padding: 1.75rem 2rem; margin-bottom: 1rem; border-radius: 0 3px 3px 0; border: 1px solid rgba(0,0,0,0.06); border-left: 4px solid var(--gold); background: var(--white); }
.legal-block h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.75rem; }
.legal-block p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.9; margin-bottom: 0.75rem; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block ul { list-style: none; margin: 0.5rem 0 0.75rem 0; }
.legal-block ul li { font-size: 0.875rem; color: var(--text-mid); line-height: 1.8; padding: 0.3rem 0 0.3rem 1.5rem; position: relative; }
.legal-block ul li::before { content: '\2736'; position: absolute; left: 0; color: var(--gold); font-size: 0.6rem; top: 0.55rem; }
.legal-block strong { color: var(--text-dark); }
.contact-list { margin-top: 0.75rem; }
.contact-list li { padding-left: 0 !important; }
.contact-list li::before { display: none !important; }
.legal-block a { color: var(--gold-on-cream); font-weight: 600; text-decoration: underline; }
.legal-block code { background: rgba(0,0,0,0.06); padding: 0.1em 0.4em; border-radius: 3px; font-size: 0.85em; color: var(--deep-purple); }
.section-divider { height: 2px; background: linear-gradient(to right, var(--gold), transparent); margin: 3rem 0; border-radius: 2px; }
.a11y-intro { font-size: 0.72rem; color: var(--text-mid); margin-bottom: 2rem; letter-spacing: 0.05em; }
.back-link-wrap { margin-top: 3rem; }
.footer-bottom-simple nav { font-size: 0.7rem; }
.footer-bottom-simple [aria-current="page"] { color: var(--gold); text-decoration: none; }

@media (max-width: 768px) { .legal-block { padding: 1.25rem 1.5rem; } }
@media (max-width: 480px) { .legal-container { padding: 3rem 5% 4rem; } }


/* ================================================================
   SECTION 4 — LANDING PAGE
   Styles for landing.html. Links in the same way:
     <link rel="stylesheet" href="styles.css" />
   The shared rules (reset, :root variables, skip-link, focus-visible,
   form styles) are already defined in Sections 1–3 above.
   This section adds only the landing-page-specific layout and components.
================================================================ */

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  padding: 0.55rem 5%;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.trust-bar a { color: var(--gold); text-decoration: none; }
.trust-bar a:hover { color: var(--gold-light); }
.tb-dot { color: var(--gold-on-cream); }

/* ── Social proof avatar colours ── */
.sp-av-1 { background: #2a3f6f; }
.sp-av-2 { background: #1e3a5f; }
.sp-av-3 { background: #243552; }

/* ── LANDING HEADER (sticky logo bar) ── */
.logo-bar {
  background: var(--navy);
  border-bottom: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.lp-logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.lp-logo-sub {
  font-size: clamp(0.42rem, 1vw, 0.52rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.lp-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lp-call-btn {
  background: var(--gold);
  color: var(--deep-purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
}
.lp-call-btn:hover { background: var(--gold-light); }

.lp-lang-toggle {
  background: transparent;
  border: 1px solid var(--gold-on-cream);
  border-radius: 2px;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.65rem;
  min-width: 130px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: border-color 0.3s;
  white-space: nowrap;
}
.lp-lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
.lp-lang-active { color: var(--gold); font-weight: 700; }
.lp-lang-div    { color: var(--gold-on-cream); margin: 0 1px; }
.lp-lang-other  { color: var(--gray); }

/* ── HERO LAYOUT (split grid) ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0 50% 0 0;
  background:
    linear-gradient(105deg, rgba(6,14,26,0.92) 0%, rgba(6,14,26,0.6) 100%),
    url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1200&q=80') center/cover no-repeat;
  z-index: 0;
}

/* ── HERO LEFT ── */
.hero-left {
  position: relative;
  z-index: 1;
  padding: 5rem 5% 4rem;
  display: flex;
  flex-direction: column;
  justify-content: top;
  gap: 1.5rem;
  background: var(--deep-navy);
}

.hero-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
}
.hero-h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.9;
  max-width: 480px;
}
.hero-sub strong { color: var(--white); }

.hero-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.5;
}
.hero-benefits li strong { color: var(--white); }
.hb-icon {
  color: var(--gold);
  font-size: 0.6rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── SOCIAL PROOF STRIP ── */
.social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 3px;
}
.sp-avatars { display: flex; margin-right: 0.5rem; }
.sp-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-right: -8px;
  flex-shrink: 0;
}
.sp-stars { color: var(--gold); font-size: 0.75rem; margin-bottom: 0.2rem; }
.sp-text p { font-size: 0.75rem; color: var(--gray); line-height: 1.5; }
.sp-text cite { font-size: 0.68rem; color: rgba(168,184,208,0.6); font-style: normal; }

.scroll-hint {
  display: none;
  font-size: 0.7rem;
  color: rgba(168,184,208,0.5);
  letter-spacing: 0.1em;
  text-align: center;
}

.lp-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gold-on-cream);
  border-radius: 3px;
}
.lp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.lp-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.lp-stat-lbl {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.3rem;
  line-height: 1.4;
}
.lp-stat-div {
  width: 1px;
  height: 36px;
  background: var(--gold-on-cream);
  flex-shrink: 0;
}

/* ── WHY US CARDS (hero-left) ── */
.lp-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.lp-why-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gold-on-cream);
  border-radius: 3px;
  transition: border-color 0.25s;
}
.lp-why-card:hover { border-color: var(--gold-on-cream); }
.lp-why-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.lp-why-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.lp-why-desc {
  font-size: 0.72rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ── EQUAL HOUSING + LICENSE (hero-left) ── */
.lp-compliance {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--gold-on-cream);
}
.lp-eho {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eho-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.eho-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--gold);
  opacity: 0.75;
}
.lp-eho-text {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.lp-license {
  font-size: 0.6rem;
  color: rgba(168,184,208,0.5);
  letter-spacing: 0.08em;
}

/* ── RESPONSIVE: hide why-grid on very small screens ── */
@media (max-width: 480px) {
  .lp-why-grid { grid-template-columns: 1fr; }
  .lp-stats { flex-wrap: wrap; gap: 0.75rem; }
  .lp-stat-div { display: none; }
}

/* ── HERO RIGHT (form panel) ── */
.hero-right {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 5%;
}

/* ── LANDING FOOTER ── */
.lp-footer {
  background: var(--blue);
  padding: 2rem 5%;
  border-top: 1px solid rvar(--gold-on-cream);
}
.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.lp-footer-brand { display: flex; flex-direction: column; gap: 2px; }
.lp-footer .lp-logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.lp-footer .lp-logo-sub {
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}
.lp-footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.lp-footer-links a {
  font-size: 0.7rem;
  color: var(--gray);
  text-decoration: underline;
  transition: color 0.2s;
}
.lp-footer-links a:hover { color: var(--gold); }
.lp-footer-copy { font-size: 0.65rem; color: rgba(168,184,208,0.6); }

/* ── LANDING RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: 0; height: auto; }
  .hero::before { display: none; }
  .hero-left { padding: 4rem 5% 3rem; }
  .hero-right {
    padding: 3rem 5%;
    background: var(--cream);
    position: relative;
    z-index: 1;
  }
  .scroll-hint { display: block; }
}
@media (max-width: 768px) {
  .lp-footer-inner { flex-direction: column; text-align: center; }
  .lp-footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 2.2rem; }
}
 
.eho-badge img.footer-mls-img {
  height: 42px;
  width: auto;
  max-width: 42px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.75;
  object-fit: contain;
  flex-shrink: 0;
}

img.footer-mls-img {
  height: 110px;
  width: auto;
  max-width: 290px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.75;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.footer-bottom-copy {
  font-size: 0.7rem;
  color: rgba(168,184,208,0.75);
  white-space: nowrap;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.7rem;
  color: rgba(168,184,208,0.75);
}

/* ════════════════════════════════════════════════════════
   LANDING PAGE FOOTER — scoped to .lp-footer only
   Does not affect .footer-bottom on other pages.
════════════════════════════════════════════════════════ */

/* Two-column layout: brand left, copyright+links right */
.lp-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 3rem 5% 2rem;
}

/* Left column — brand block */
.lp-footer-brand-block {
  display: flex;
  flex-direction: column;
}

/* Right column — copyright + links */
.lp-footer .footer-bottom {
  /* Override the home page .footer-bottom flex rules */
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding-top: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  gap: 0.75rem !important;
  border-top: none !important;
}

.lp-footer .footer-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  width: 100%;
}

.lp-footer .footer-bottom-copy {
  text-align: right;
}

.lp-footer .footer-bottom-links {
  justify-content: flex-end;
  text-align: right;
}

/* Stack to single column on smaller screens */
@media (max-width: 768px) {
  .lp-footer {
    grid-template-columns: 1fr;
  }
  .lp-footer .footer-bottom {
    align-items: flex-start !important;
  }
  .lp-footer .footer-bottom-row {
    align-items: flex-start;
  }
  .lp-footer .footer-bottom-copy,
  .lp-footer .footer-bottom-links {
    text-align: left;
    justify-content: flex-start;
  }
}

/* Success form reset button on white background */
.success-reset-btn {
  color: var(--gold-on-cream);
  border-color: var(--gold-on-cream);
}
.success-reset-btn:hover {
  background: var(--gold-on-cream);
  color: var(--white);
}
/* Success phone link on white background */
.form-success .success-phone {
  color: var(--gold-on-cream);
}