/* ==========================================================================
   Krestone Realty — design tokens
   Palette: ink (near-black), gold (accent), stone (warm neutral).
   Type: Fraunces (serif, display) + Work Sans (sans, body/UI).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
    --ink: #15140f;
    --ink-soft: #2a2820;
    --stone: #f1ece1;
    --stone-deep: #e1d8c3;
    --paper: #fbfaf6;
    --brass: #b3893f;
    --brass-light: #d7ac66;
    --brass-dark: #8c6a2e;
    --slate: #6b6558;
    --line: #e3dccb;
    --white: #ffffff;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Header height = logo + nav padding. The hero is pulled up by exactly this, so no gap shows above it. */
:root {
    --logo-h: 84px;
    --header-h: calc(var(--logo-h) + 13px); /* 12px nav padding + 1px border */
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--ink);
}

p { margin: 0 0 1em; max-width: 62ch; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brass-light), var(--brass));
    color: var(--ink);
}
.btn-primary:hover { background: var(--brass-dark); color: var(--paper); }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-outline-light {
    background: transparent;
    color: var(--paper);
    border-color: rgba(251,250,246,0.45);
}
.btn-outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Header / Nav ---------- */

.site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header.is-solid {
    background: rgba(21, 20, 15, 0.96);
    border-bottom-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
}
.site-header.no-hero { background: var(--ink); border-bottom-color: rgba(255,255,255,0.08); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    color: var(--paper);
}
.logo span { color: var(--brass-light); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    color: rgba(251,250,246,0.88);
    letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { border-bottom-color: var(--brass-light); color: var(--paper); }

.nav-phone {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-phone a.phone-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--paper);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--paper);
    margin: 5px 0;
}

/* ---------- Hero (full-bleed, image background) ---------- */

.hero {
    position: relative;
    margin-top: calc(-1 * var(--header-h)); /* sit behind the transparent sticky header */
    min-height: 760px;
    max-height: 900px;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #2c2a22, #15140f) center/cover;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21,20,15,0.55) 0%, rgba(21,20,15,0.45) 45%, rgba(21,20,15,0.92) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 160px 0 60px;
}

.hero-kicker {
    display: inline-block;
    color: var(--brass-light);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    max-width: 15ch;
    color: var(--paper);
    font-weight: 400;
}

.hero-copy .lede {
    font-size: 1.15rem;
    color: rgba(251,250,246,0.82);
    max-width: 46ch;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin: 26px 0 56px;
}

/* Floating search card */
.hero-search {
    position: relative;
    z-index: 2;
    background: rgba(251,250,246,0.98);
    border-radius: 4px;
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 18px;
    align-items: end;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    margin-top: -10px;
}
.hero-search .filter-field label {
    color: var(--slate);
}
.hero-search .filter-field select {
    background: var(--paper);
}
.hero-search .btn-primary { white-space: nowrap; height: 46px; }

/* ---------- Kicker + centered section intro ---------- */

.kicker {
    display: block;
    color: var(--brass);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.kicker-light { color: var(--brass-light); }

.intro-center {
    max-width: 620px;
    margin: 0 auto 48px;
    text-align: center;
}
.intro-center p { margin-left: auto; margin-right: auto; }

/* ---------- Standard / stats section ---------- */

.standard-copy {
    max-width: 680px;
    margin: 0 auto 50px;
    text-align: center;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid var(--line);
    padding-top: 36px;
}
.stat-row div {
    text-align: center;
    border-right: 1px solid var(--line);
}
.stat-row div:last-child { border-right: none; }
.stat-row strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.3rem;
    color: var(--brass-dark);
}
.stat-row span {
    font-size: 0.85rem;
    color: var(--slate);
    letter-spacing: 0.02em;
}

/* ---------- Section headings ---------- */

.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0; }
.section-head p { margin: 0; color: var(--slate); }

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--brass-dark);
    border-bottom: 1px solid var(--brass);
    padding-bottom: 2px;
}
.view-all-link:hover { color: var(--ink); border-color: var(--ink); }

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

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.property-grid.listing-grid {
    grid-template-columns: repeat(3, 1fr);
}

.property-card {
    background: var(--paper);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid var(--line);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.property-card:hover {
    box-shadow: 0 20px 40px rgba(21,20,15,0.12);
    transform: translateY(-3px);
}

.property-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--stone-deep);
}
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .property-media img { transform: scale(1.05); }

.property-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(21,20,15,0.82);
    color: var(--brass-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 2px;
}

.property-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }

.property-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--brass-dark);
    margin-bottom: 14px;
}

.property-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; margin-bottom: 4px; }

.property-address {
    font-size: 0.85rem;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.property-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: auto;
}

.property-view {
    margin-top: 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brass-dark);
}
.property-card:hover .property-view { color: var(--ink); }

/* ---------- Why / features ---------- */

.feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.feature-row > div {
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 24px;
}
.feature-row h3 { font-size: 1.1rem; }
.feature-row p { margin: 0 auto; }
.feature-icon-wrap {
    width: auto; height: auto;
    margin: 0 auto 20px;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon {
    width: 52px; height: 52px;
    color: var(--brass-dark);
}

/* ---------- Split section (image + copy), e.g. Signature Development ---------- */

.split-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--ink);
    color: var(--paper);
}
.split-media { position: relative; min-height: 420px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy {
    padding: 70px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-copy h2 { color: var(--paper); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.split-copy p { color: rgba(251,250,246,0.78); }
.split-stats {
    display: flex;
    gap: 48px;
    margin: 28px 0 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(251,250,246,0.16);
}
.split-stats div span {
    display: block;
    font-size: 0.78rem;
    color: rgba(251,250,246,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.split-stats div strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--brass-light); font-weight: 500; }

/* ---------- Explore by collection ---------- */

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.collection-tile {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}
.collection-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.collection-tile:hover img { transform: scale(1.08); }
.collection-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21,20,15,0) 40%, rgba(21,20,15,0.85) 100%);
}
.collection-tile span {
    position: absolute;
    left: 18px; bottom: 18px;
    z-index: 2;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.15rem;
}

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

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.testimonial-card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 34px 30px;
}
.testimonial-quote-mark {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--brass-light);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}
.testimonial-card blockquote {
    margin: 0 0 20px;
    font-size: 1rem;
    color: var(--ink-soft);
    font-style: italic;
}
.testimonial-card cite {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brass-dark);
}

/* ---------- CTA band with image background ---------- */

.cta-image-band {
    position: relative;
    padding: 110px 28px;
    text-align: center;
    overflow: hidden;
}
.cta-image-band img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.cta-image-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(21,20,15,0.72);
    z-index: 1;
}
.cta-image-band .cta-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-image-band h2 { color: var(--paper); }
.cta-image-band p { color: rgba(251,250,246,0.82); margin-left: auto; margin-right: auto; }

/* ---------- Modifiers: 3-up stat row, 5-up grids, contact row ---------- */

.stat-row-3 { grid-template-columns: repeat(3, 1fr); }

.collection-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
}

.feature-row-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 40px 28px;
}
.feature-row-5 > div {
    text-align: center;
}
.feature-row-5 h3 { font-size: 1.1rem; }
.feature-row-5 p { margin: 0 auto; }
.feature-row-5 .feature-icon-wrap {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--stone);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-row-5 .feature-icon {
    width: 28px; height: 28px;
    color: var(--brass-dark);
}

.locations-more {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
}
.locations-more p { margin: 0 0 16px; color: var(--slate); }

.cta-image-band .contact-info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin: 28px 0 34px;
    font-size: 0.95rem;
    color: rgba(251,250,246,0.9);
}
.cta-image-band .contact-info-row a { color: var(--brass-light); }
.cta-image-band .cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-image-band .cta-subhead {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--paper);
    margin: 0 0 18px;
}

/* ---------- Dark band ---------- */

.band-dark {
    background: var(--ink);
    color: var(--stone);
}
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark p { color: var(--stone-deep); }

.city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
}
.city-list li { border-bottom: 1px solid transparent; }
.city-list a:hover { border-bottom: 1px solid var(--brass); }

/* ---------- CTA band ---------- */

.cta-band {
    background: var(--brass);
    color: var(--paper);
    text-align: center;
    padding: 70px 28px;
}
.cta-band h2 { color: var(--paper); }
.cta-band .btn-primary { background: var(--ink); color: var(--paper); }
.cta-band .btn-primary:hover { background: var(--paper); color: var(--ink); }

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

.site-footer {
    background: var(--ink);
    color: var(--stone-deep);
    padding: 60px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #3a3e35;
}
.site-footer .logo { color: var(--paper); }
.footer-col h4 {
    color: var(--brass-light);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col .footer-email {
    display: inline-block;
    margin-top: 10px;
    color: var(--paper);
    font-weight: 600;
    border-bottom: 1px solid var(--brass);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 0.82rem;
    color: #8b8f83;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Page header (interior pages) ---------- */

.page-header {
    background: var(--stone);
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.page-header p { color: var(--slate); margin: 0; }

/* ---------- About page ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 60px 0;
}
.stat-strip div {
    padding: 30px 24px;
    border-right: 1px solid var(--line);
}
.stat-strip div:last-child { border-right: none; }
.stat-strip strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
}
.stat-strip span { font-size: 0.85rem; color: var(--slate); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.team-card img { aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card span { font-size: 0.85rem; color: var(--brass); }

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 18px;
    margin: 28px 0;
}
.contact-info dt {
    font-weight: 600;
    color: var(--slate);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.contact-info dd { margin: 0; }

.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 2px;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--brass); }

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

.form-status {
    padding: 14px 16px;
    border-radius: 2px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}
.form-status.success { display: block; background: #e4ecdf; color: #3c5231; }
.form-status.error { display: block; background: #f4e1de; color: #7a2f24; }

/* ---------- Listings page filters ---------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    background: var(--stone);
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--line);
}
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.filter-field label { font-size: 0.78rem; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 0.03em; }
.filter-field select,
.filter-field input {
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.results-count { color: var(--slate); font-size: 0.9rem; margin-bottom: 24px; }

.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--slate);
}

/* ---------- Modal (property detail) ---------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33, 36, 31, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 100;
}
.modal-overlay.open { display: flex; }

.modal {
    background: var(--paper);
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    width: 34px; height: 34px;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
}
.modal-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.modal-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 36px 0;
    overflow-x: auto;
}
.modal-thumb {
    width: 76px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    flex: 0 0 auto;
}
.modal-thumb:hover { opacity: 0.85; }
.modal-thumb.active { opacity: 1; border-color: var(--brass-dark); }
.modal-body { padding: 32px 36px 36px; }
.modal-body .property-meta { border: none; padding: 0; margin: 18px 0; }
.modal-body dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.modal-body dt { font-size: 0.8rem; color: var(--slate); }
.modal-body dd { margin: 0 0 8px; font-weight: 600; }

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

@media (max-width: 960px) {
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-strip div:nth-child(2) { border-right: none; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .hero-search { grid-template-columns: 1fr 1fr; }
    .stat-row { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .stat-row div { border-right: none; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
    .split-section { grid-template-columns: 1fr; }
    .split-media { min-height: 300px; }
    .split-copy { padding: 50px 32px; }
    .collection-grid { grid-template-columns: 1fr 1fr; }
    .collection-grid-5 { grid-template-columns: 1fr 1fr; }
    .feature-row-5 { grid-template-columns: 1fr 1fr; }
    .stat-row-3 { grid-template-columns: 1fr; gap: 20px; }
    .stat-row-3 div { border-right: none; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
    .stat-row-3 div:last-child { border-bottom: none; padding-bottom: 0; }
    .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-links, .nav-phone .phone-number { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 20px 28px;
        gap: 18px;
    }
    .nav-links.open a { color: var(--ink); }
    .property-grid { grid-template-columns: 1fr; }
    .feature-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .modal-body dl { grid-template-columns: 1fr; }
    .hero { min-height: auto; max-height: none; align-items: flex-start; }
    .hero-inner { padding: calc(var(--header-h) + 40px) 0 40px; }
    .hero-search { grid-template-columns: 1fr; }
    .collection-grid { grid-template-columns: 1fr 1fr; }
    .collection-grid-5 { grid-template-columns: 1fr 1fr; }
    .feature-row-5 { grid-template-columns: 1fr; }
    .cta-image-band { padding: 70px 24px; }
    .cta-image-band .contact-info-row { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}


/* ==========================================================================
   About page (about.php) — redesigned
   ========================================================================== */

.ab-hero {
    background: var(--ink);
    color: var(--paper);
    padding: 96px 0 84px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ab-hero::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    width: 72px; height: 3px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--brass-light), var(--brass));
}
.ab-hero h1 { color: var(--paper); font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 14px; }
.ab-hero-sub {
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--brass-light);
}

.ab-intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: start;
}
.ab-lead {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.4;
    margin: 0;
    max-width: none;
    padding-left: 24px;
    border-left: 3px solid var(--brass);
}
.ab-intro-copy p { color: var(--slate); font-size: 1.02rem; }
.ab-intro-copy p:last-child { margin-bottom: 0; }

.ab-story {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    background: var(--ink);
    color: var(--paper);
}
.ab-story-media { position: relative; min-height: 460px; overflow: hidden; }
.ab-story-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ab-badge {
    position: absolute;
    left: 28px; bottom: 28px;
    background: var(--paper);
    color: var(--ink);
    padding: 18px 24px;
    border-left: 3px solid var(--brass);
    max-width: 220px;
}
.ab-badge strong { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--brass-dark); font-weight: 500; }
.ab-badge span { display: block; font-size: 0.82rem; color: var(--slate); margin-top: 6px; }
.ab-story-copy { padding: 76px 64px; display: flex; flex-direction: column; justify-content: center; }
.ab-story-copy h2 { color: var(--paper); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.ab-story-copy h3 { color: var(--brass-light); font-size: 1.15rem; font-weight: 400; margin-bottom: 24px; }
.ab-story-copy p { color: rgba(251,250,246,0.8); }
.ab-story-copy p:last-child { margin-bottom: 0; }

.ab-approach { background: var(--stone); border-bottom: 1px solid var(--line); }
.ab-statement {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink-soft);
}
.ab-approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
}
.ab-approach-grid > .ab-approach-card {
    background: var(--paper);
    padding: 32px 34px;
    border-top: 3px solid var(--brass);
    margin: 0;
    max-width: none;
    color: var(--slate);
}

.ab-why-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ab-why-grid li {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 30px 28px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.ab-why-grid li:hover { border-color: var(--brass); transform: translateY(-3px); }
.ab-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--brass);
    margin-bottom: 14px;
}
.ab-why-grid h3 { font-size: 1.12rem; margin: 0; }
.ab-why-close {
    max-width: 70ch;
    margin: 44px auto 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink-soft);
}

.ab-expertise { background: var(--paper); border-top: 1px solid var(--line); }
.ab-expertise-head {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    margin-bottom: 48px;
    align-items: start;
}
.ab-expertise-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.ab-expertise-copy p { color: var(--slate); }
.ab-expertise-copy p:last-child { margin-bottom: 0; }

.ab-cta .ab-cta-lead { font-family: var(--font-display); font-size: 1.25rem; margin: 0 auto 10px; }
.ab-cta .ab-cta-body { max-width: 60ch; margin: 0 auto 10px; }
.ab-cta .ab-cta-line { margin: 0 auto 28px; font-weight: 600; }

@media (max-width: 960px) {
    .ab-intro-grid, .ab-expertise-head, .ab-approach-grid { grid-template-columns: 1fr; gap: 28px; }
    .ab-story { grid-template-columns: 1fr; }
    .ab-story-media { min-height: 320px; }
    .ab-story-copy { padding: 52px 32px; }
    .ab-why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .ab-hero { padding: 72px 0 64px; }
    .ab-why-grid { grid-template-columns: 1fr; }
    .ab-badge { left: 16px; bottom: 16px; }
}


/* ---------- Ready to Move In (RTMI) badge on property cards ---------- */
.property-tag-rtmi {
    left: auto;
    right: 16px;
    background: linear-gradient(135deg, var(--brass-light), var(--brass));
    color: var(--ink);
}


/* ---------- Sticky WhatsApp button ---------- */
.wa-sticky {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-sticky:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0,0,0,0.35); color: #fff; }
.wa-sticky svg { width: 32px; height: 32px; fill: currentColor; }
.wa-sticky::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 640px) {
    .wa-sticky { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}


/* ---------- Blogs ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease; color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(21,20,15,0.10); }
.blog-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
.blog-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-size: 1.25rem; margin: 6px 0 10px; }
.blog-card-body p { color: var(--slate); font-size: 0.95rem; flex: 1; }
.blog-date { font-size: 0.8rem; color: var(--brass-dark); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.blog-article { max-width: 820px; }
.blog-cover { width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 36px; }
.blog-content { font-size: 1.06rem; line-height: 1.8; color: var(--ink-soft); }
.blog-content h2 { font-size: 1.6rem; margin: 36px 0 12px; }
.blog-content ul { padding-left: 22px; margin: 0 0 20px; }
.blog-content li { margin-bottom: 6px; }
.blog-back { margin-top: 44px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-figure { margin: 30px 0; }
.blog-figure img { width: 100%; height: auto; display: block; }
.blog-figure figcaption { font-size: 0.85rem; color: var(--slate); text-align: center; margin-top: 8px; }

/* ---------- About page: updated content additions ---------- */
.ab-subhead { font-size: 1.1rem; font-weight: 400; color: var(--brass-dark); margin: 0 0 14px; }
.ab-approach-card p { margin: 0 0 14px; max-width: none; color: var(--slate); }
.ab-approach-card p:last-child { margin-bottom: 0; }
.ab-approach-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.ab-approach-list li { position: relative; padding-left: 20px; color: var(--ink-soft); font-weight: 500; }
.ab-approach-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--brass); }
.ab-story-copy strong { color: var(--paper); }
.ab-cta .ab-cta-sub { font-family: var(--font-display); font-size: 1.5rem; margin: 26px auto 8px; color: var(--paper); }
.ab-cta .ab-cta-line { max-width: 60ch; }
@media (max-width: 1100px) and (min-width: 961px) { .ab-why-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Logo images ---------- */
.logo { display: inline-block; line-height: 0; }
.logo-img { display: block; width: auto; max-width: 100%; }
.logo-img-header { height: var(--logo-h); width: var(--logo-h); }
.logo-img-footer { height: 180px; width: 180px; }
@media (max-width: 720px) {
    :root { --logo-h: 64px; }
    .logo-img-footer { height: 140px; width: 140px; }
}

/* ==========================================================================
   Mobile-friendly layer
   ========================================================================== */

/* Never let anything push the page sideways */
/* 'clip' (not 'hidden') so the sticky header keeps working */
body { overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; }
table { max-width: 100%; }

/* The listings grid has a higher-specificity 3-column rule, so it needs its own breakpoints */
@media (max-width: 960px) {
    .property-grid.listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .property-grid.listing-grid { grid-template-columns: 1fr; }

    .container { padding-left: 20px; padding-right: 20px; }
    .nav { gap: 12px; }
    .nav-phone { gap: 10px; }
    .nav-phone .btn { padding: 11px 16px; font-size: 0.85rem; white-space: nowrap; }
    .nav-toggle { padding: 10px; }

    .page-header { padding: 36px 0; }
    .section { padding-top: 56px; padding-bottom: 56px; }

    /* Search + filter cards: one field per row, full width, easy to tap */
    .hero-search { padding: 20px; gap: 14px; }
    .filter-bar { padding: 18px; gap: 14px; }
    .filter-bar .filter-field { flex: 1 1 100%; min-width: 0; }
    .filter-field select,
    .filter-field input { width: 100%; }
    .filter-bar .btn,
    .hero-search .btn-primary { width: 100%; justify-content: center; }

    /* 16px inputs stop iPhones zooming the page when a field is tapped */
    input, select, textarea { font-size: 16px; }

    /* Footer: single column */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Property popup fits a phone screen */
    .modal-overlay { padding: 10px; align-items: flex-end; }
    .modal { max-height: 92vh; }
    .modal-body { padding: 22px 20px 26px; }
    .modal-thumbs { padding: 12px 20px 0; }

    .contact-info-row { flex-wrap: wrap; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn { justify-content: center; text-align: center; }
    .hero-actions { flex-wrap: wrap; margin: 20px 0 36px; }

    /* WhatsApp button sits a little smaller and clear of content */
    .wa-sticky { right: 14px; bottom: 14px; }
}
@media (max-width: 420px) {
    .nav-phone .btn { padding: 10px 12px; font-size: 0.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .property-meta { flex-wrap: wrap; gap: 6px 14px; }
}

/* Tablets / small laptops: switch to the menu button earlier so the nav never wraps */
.nav-links a, .nav-phone .btn, .nav-phone a.phone-number { white-space: nowrap; }
@media (max-width: 1100px) {
    .nav-links, .nav-phone .phone-number { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 20px 28px;
        gap: 18px;
    }
    .nav-links.open a { color: var(--ink); }
}
@media (max-width: 960px) {
    .hero-search .btn-primary { grid-column: 1 / -1; justify-content: center; }
}
