:root {
    --navy-950: #081426;
    --navy-900: #0b1f3a;
    --navy-800: #123055;
    --navy-700: #1c4575;
    --gold-500: #d4af37;
    --gold-300: #ecd58b;
    --sand-100: #f7f3ea;
    --mist-100: #eef3f8;
    --white: #ffffff;
    --text-900: #16212f;
    --text-700: #425066;
    --text-500: #6f7b8f;
    --border: rgba(11, 31, 58, 0.12);
    --shadow-lg: 0 24px 60px rgba(8, 20, 38, 0.16);
    --shadow-md: 0 16px 40px rgba(8, 20, 38, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--gold-500) rgba(11, 31, 58, 0.12);
    scrollbar-width: thin;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-900);
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.2), transparent 26%),
        linear-gradient(180deg, #f9fbfd 0%, #eef3f8 100%);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.09), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(28, 69, 117, 0.08), transparent 22%);
    z-index: -1;
}

::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--navy-950);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(11, 31, 58, 0.08);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-500), #b68a18);
    border: 3px solid #eef3f8;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e2be54, var(--gold-500));
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

p {
    margin: 0;
    color: var(--text-700);
}

.page-shell {
    overflow: hidden;
}

.site-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1400;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.08);
}

.site-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-300), var(--gold-500), #f3d98f);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
    transform-origin: left center;
    transition: width 0.12s linear;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(8, 20, 38, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 56px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: var(--white);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.12);
}

.nav-links a:hover {
    transform: translateY(-1px);
}

.btn-nav {
    background: var(--gold-500);
    color: var(--navy-900) !important;
    font-weight: 700;
}

.btn-nav:hover {
    background: var(--gold-300) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
}

.section {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 88px 0;
}

.section-tight {
    padding: 64px 0;
}

.hero-banner-wrap,
.hero-intro,
.trust-strip,
.page-hero,
.listing-hero,
.cta {
    width: min(calc(100% - 32px), var(--max-width));
    margin-left: auto;
    margin-right: auto;
}

.hero-banner-wrap {
    margin-top: 28px;
}

.hero-banner-panel {
    border-radius: 32px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.68);
}

.hero-banner-panel img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-intro {
    margin-top: 24px;
    display: grid;
    gap: 22px;
}

.hero-intro-copy {
    max-width: 760px;
}

.hero-intro-copy .eyebrow {
    margin-bottom: 18px;
}

.hero-intro-copy h1 {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    color: var(--navy-900);
}

.hero-intro-copy p {
    max-width: 620px;
    margin-top: 18px;
    font-size: 1.05rem;
}

.hero-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold-300);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.eyebrow-light {
    background: var(--sand-100);
    color: var(--navy-700);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn,
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn,
.action-btn.primary {
    background: var(--gold-500);
    color: var(--navy-900);
}

.btn:hover,
.action-btn.primary:hover {
    transform: translateY(-2px);
    background: var(--gold-300);
}

.action-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.18);
}

.action-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.trust-strip {
    margin-top: 24px;
    padding: 22px 26px;
    border-radius: 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.trust-strip-simple {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
}

.about-highlights {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 18px auto 0;
    padding: 0;
}

.about-highlights-restored .highlights-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.about-highlights-restored .highlight {
    padding: 24px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.about-highlights-restored .highlight h3 {
    font-size: 2rem;
    color: var(--navy-900);
}

.about-highlights-restored .highlight p {
    margin-top: 8px;
    color: var(--text-700);
}

.count {
    letter-spacing: 0.02em;
}

.trust-item {
    display: grid;
    gap: 6px;
}

.trust-item strong {
    color: var(--navy-900);
    font-size: 1.1rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading .eyebrow {
    margin-bottom: 14px;
}

.section-heading h2 {
    margin-top: 0;
}

.section-heading p {
    margin-top: 14px;
    max-width: 620px;
}

.section-heading-simple {
    align-items: center;
}

.section-link {
    color: var(--navy-700);
    font-weight: 700;
    white-space: nowrap;
}

.split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.split-grid-balanced {
    grid-template-columns: 1fr 0.8fr;
}

.about-panel,
.testimonial-card,
.service-card,
.property,
.journey-card,
.market-card,
.listing-section,
.listing-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-panel,
.listing-section,
.listing-sidebar {
    padding: 30px;
}

.about-preview {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 88px 0;
}

.about-image-card img {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.stats-grid,
.journey-grid,
.properties,
.service-grid,
.testimonials-grid,
.market-grid,
.listing-highlight-grid,
.listing-feature-grid,
.mini-card-grid {
    display: grid;
    gap: 24px;
}

.stats-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 28px;
}

.stat {
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--mist-100);
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--navy-900);
}

.journey-grid,
.service-grid,
.market-grid {
    grid-template-columns: repeat(3, 1fr);
}

.properties,
.testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
}

.journey-card,
.service-card,
.testimonial-card,
.market-card {
    padding: 28px;
}

.journey-card h3,
.service-card h3,
.testimonial-card h3,
.market-card h3,
.property-info h3 {
    font-size: 1.45rem;
    color: var(--navy-900);
}

.journey-card p,
.service-card p,
.testimonial-card p,
.market-card p {
    margin-top: 12px;
}

.journey-card a,
.market-card a {
    color: var(--navy-700);
    font-weight: 700;
}

.property {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-link:hover .property {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.badge.new {
    background: rgba(11, 31, 58, 0.92);
}

.badge.featured {
    background: var(--gold-500);
    color: var(--navy-900);
}

.property-info {
    padding: 22px;
}

.property-price {
    display: block;
    font-size: 1.4rem;
    color: var(--navy-900);
    font-weight: 800;
}

.property-meta,
.property-location {
    margin-top: 8px;
    color: var(--text-500);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.property-tag {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--mist-100);
    color: var(--navy-700);
    font-size: 0.82rem;
    font-weight: 700;
}

.accent-section {
    background: linear-gradient(180deg, rgba(8, 20, 38, 0.98), rgba(18, 48, 85, 0.96));
    color: var(--white);
}

.accent-section .section {
    padding: 88px 0;
}

.accent-section h2,
.accent-section h3,
.accent-section strong {
    color: var(--white);
}

.accent-section p {
    color: rgba(255, 255, 255, 0.78);
}

.accent-section .testimonial-card,
.accent-section .market-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.quote {
    font-size: 1.08rem;
    font-style: italic;
}

.testimonial-meta {
    margin-top: 18px;
    font-weight: 700;
}

.cta {
    margin: 0 auto 88px;
    padding: 42px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.35), transparent 28%),
        linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.cta-simple {
    margin-top: 12px;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
    margin-top: 12px;
}

.page-hero,
.listing-hero {
    margin-top: 36px;
    padding: 54px;
    border-radius: 34px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 20, 38, 0.95), rgba(18, 48, 85, 0.82));
    color: var(--white);
}

.page-hero-simple {
    padding: 42px 54px;
}

.page-hero .eyebrow,
.listing-hero .eyebrow {
    margin-bottom: 18px;
}

.page-hero h1,
.listing-hero h1 {
    margin-top: 0;
}

.page-hero::after,
.listing-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.16);
    filter: blur(10px);
}

.page-hero p,
.listing-hero p {
    margin-top: 20px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
}

.mini-card-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 30px;
}

.mini-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-card strong {
    display: block;
    color: var(--gold-300);
    font-size: 1.35rem;
}

.service-tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--sand-100);
    color: var(--navy-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.listing-layout {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 42px auto 88px;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 26px;
    align-items: start;
}

.listing-content {
    display: grid;
    gap: 26px;
}

.listing-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 20px;
}

.listing-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.summary-item {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--mist-100);
}

.summary-item span {
    display: block;
    color: var(--text-500);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-item strong {
    display: block;
    margin-top: 8px;
    color: var(--navy-900);
    font-size: 1.1rem;
}

.listing-highlight-grid {
    grid-template-columns: repeat(3, 1fr);
}

.listing-highlight {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--mist-100);
}

.listing-highlight strong {
    display: block;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.listing-feature-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 22px;
}

.listing-feature-grid li {
    position: relative;
    padding-left: 18px;
    color: var(--text-700);
}

.listing-feature-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-500);
}

.listing-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.listing-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.listing-gallery img:hover {
    transform: scale(1.02);
}

.listing-video {
    margin-top: 26px;
}

.video-wrapper {
    margin-top: 16px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.video-wrapper video {
    width: 100%;
}

.contact-stack {
    display: grid;
    gap: 12px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    background: var(--mist-100);
    color: var(--navy-700);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(8, 20, 38, 0.08);
    background: #e7eef6;
}

.listing-side-note {
    padding: 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fbf7ea, #f5ecd0);
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.page-links a {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--mist-100);
    color: var(--navy-700);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.page-links a:hover,
.section-link:hover,
.footer-links a:hover,
.footer-meta a:hover {
    transform: translateY(-1px);
}

.page-links a:hover {
    background: #e7eef6;
    box-shadow: 0 14px 28px rgba(8, 20, 38, 0.08);
}

.site-footer {
    background: var(--navy-950);
    color: var(--white);
    padding: 58px 0 32px;
}

.footer-inner {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
}

.footer-brand {
    color: var(--gold-300);
    font-size: 1.6rem;
}

.footer-copy p,
.footer-links a,
.footer-meta a {
    color: rgba(255, 255, 255, 0.74);
}

.footer-links a,
.footer-meta a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-meta a:hover {
    color: var(--gold-300);
}

.js-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    will-change: opacity, transform;
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-reveal[data-reveal-delay="1"] {
    transition-delay: 0.08s;
}

.js-reveal[data-reveal-delay="2"] {
    transition-delay: 0.16s;
}

.js-reveal[data-reveal-delay="3"] {
    transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
    .site-progress__bar,
    .js-reveal,
    .nav-links a,
    .btn,
    .action-btn,
    .property,
    .contact-chip,
    .page-links a {
        transition: none !important;
    }

    .js-reveal {
        opacity: 1;
        transform: none;
    }
}

.footer-links,
.footer-meta {
    display: grid;
    gap: 10px;
}

.footer-bottom {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 20, 38, 0.94);
    z-index: 1200;
    padding: 24px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    border-radius: var(--radius-md);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 1080px) {
    .split-grid,
    .listing-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .journey-grid,
    .service-grid,
    .properties,
    .market-grid,
    .testimonials-grid,
    .mini-card-grid,
    .about-highlights-restored .highlights-container,
    .trust-strip,
    .listing-highlight-grid,
    .trust-strip-simple {
        grid-template-columns: repeat(2, 1fr);
    }

    .listing-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .navbar {
        min-height: 74px;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: 210px;
        display: none;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        border-radius: 22px;
        background: rgba(8, 20, 38, 0.96);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 14px;
        border-radius: 14px;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .page-hero,
    .listing-hero,
    .cta {
        padding: 28px;
    }

    .page-hero-simple {
        padding: 32px 28px;
    }

    .section,
    .about-preview {
        padding: 72px 0;
    }
}

@media (max-width: 640px) {
    .journey-grid,
    .service-grid,
    .properties,
    .market-grid,
    .testimonials-grid,
    .mini-card-grid,
    .about-highlights-restored .highlights-container,
    .trust-strip,
    .listing-gallery,
    .stats-grid,
    .listing-summary-grid,
    .listing-feature-grid,
    .listing-highlight-grid,
    .trust-strip-simple {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .cta-inner,
    .footer-bottom,
    .hero-contact-bar {
        display: block;
    }

    .hero-contact-bar > * {
        margin-top: 12px;
    }

    .section-link {
        display: inline-block;
        margin-top: 14px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .nav-links {
        width: calc(100vw - 32px);
        left: 0;
        right: 0;
    }

    .logo img {
        height: 48px;
    }
}

.remax-logo {
    width: 90px;
    margin-top: 6px;
    display: block;
}

.about-panel > * {
    margin-bottom: 16px;
}

.about-panel > *:last-child {
    margin-bottom: 0;
}
/* --- CONSOLIDATED HERO SECTION (CLEAN VERSION) --- */

/* 1. The Outer Wrapper */
.hero-banner-wrap {
    margin-top: 0; 
    width: 100vw; 
    max-width: 100%;
    margin-left: calc(50% - 50vw); 
}

/* 2. The Video Container */
.video-hero {
    position: relative;
    overflow: hidden;
    height: 100vh; /* Full screen height */
    width: 100%;
    border-radius: 0; 
    background: var(--navy-950);
}

/* 3. The Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 4. The Dark Gradient Shade */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.1) 0%, 
        rgba(0,0,0,0.3) 60%, 
        rgba(0,0,0,0.8) 100%
    );
    z-index: 2;
}

/* 5. THE BANNER - Correctly layered */
.hero-banner-overlay {
    position: absolute !important; /* Locks it inside the video box */
    left: 0;
    bottom: 0; 
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 5; /* Higher than overlay and video */
    
    /* Visual Effects */
    opacity: 0.75;
    mix-blend-mode: screen;
    
    /* The "Smooth Fuzz" Top Edge */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
}

/* --- THE MOBILE OBJECTIVE FIX --- */
@media (max-width: 768px) {
    .video-hero {
        height: 100vh !important; /* Force full height on phones */
    }

    .hero-banner-overlay {
        position: absolute !important; /* Force it to overlay, not fall under */
        bottom: 0 !important;
        width: 100% !important;
        display: block !important;
        opacity: 0.85; /* Better visibility for small screens */
    }
}

/* Better spacing for the Intro */
.hero-intro {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
}

.hero-intro h1 {
    font-size: clamp(2rem, 4vw, 3rem); /* Make it bolder */
    line-height: 1.1;
    margin-bottom: 20px;
}

/* Contact Bar Improvements */
.hero-contact-bar {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-links-group {
    display: flex;
    gap: 12px;
}

/* Refined Trust Strip */
.trust-strip-refined {
    margin-top: -20px; /* Pull it up slightly to overlap the transition */
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.2); /* Subtle Gold border */
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-icon {
    font-size: 1.5rem;
    background: var(--sand-100);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

@media (max-width: 820px) {
    .trust-strip-refined {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .trust-item {
        flex-direction: column;
        gap: 8px;
    }
    .trust-divider {
        display: none;
    }
}

/* --- Refined Intro & Trust Strip --- */
.hero-intro {
    padding-bottom: 20px;
}

.trust-strip-refined {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: 4px; /* Matches your minimal theme */
    margin-top: 0;
}

.trust-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.trust-item.divider {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.trust-stat {
    color: var(--navy-900);
    font-size: 1.25rem;
    display: block;
    margin-bottom: 4px;
}

.trust-label {
    color: var(--text-500);
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- Resources Grid Layout --- */
.resources-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.resource-title {
    margin-top: 10px;
}

.resource-split-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 40px;
    align-items: start;
}

.main-cards-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lead-card {
    padding: 30px !important;
    border: 1px solid var(--border);
    background: var(--white);
}

.action-link {
    margin-top: 20px;
    display: inline-block;
    font-weight: 700;
    color: var(--navy-700);
    border-bottom: 2px solid var(--gold-500);
    padding-bottom: 2px;
    text-decoration: none;
}

/* --- Refined Trust Strip (The Bridge) --- */
.trust-strip-refined {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    
    /* FIX: Constrain width so it doesn't stretch edge-to-edge */
    max-width: 1100px;
    margin: 0 auto; 
    width: 92%;
}

.trust-item {
    flex: 1;
    min-width: 250px; /* Ensures items stay grouped */
    text-align: center;
    padding: 10px 20px;
}

.trust-item.divider {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* --- Sidebar Tools & Resource Grid --- */
.resource-split-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px; /* Keep the whole section contained */
    margin: 0 auto;
    width: 92%;
}

.tool-box {
    padding: 24px !important;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    /* FIX: Prevents the sidebar from becoming too wide on huge monitors */
    max-width: 380px; 
    margin-left: auto;
}

.tool-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-500);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-500);
    font-weight: 700;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-btn {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-700);
    transition: all 0.25s ease;
}

.tool-btn.primary-tool {
    background: var(--mist-100);
    color: var(--navy-900);
    font-weight: 700;
    border-color: transparent;
}

.tool-btn:hover {
    border-color: var(--gold-500);
    background: var(--sand-50);
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: var(--shadow-sm);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .resource-split-grid {
        grid-template-columns: 1fr; /* Stack sidebar on tablet */
        max-width: 700px; /* Keep stacked cards readable */
    }

    .tool-box {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .main-cards-stack {
        grid-template-columns: 1fr;
    }
    
    .trust-strip-refined {
        padding: 20px;
    }

    .trust-item {
        min-width: 100%;
    }

    .trust-item.divider {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 20px 0;
    }
    
    .hero-contact-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .contact-chip {
        text-align: center;
        justify-content: center;
    }
}


@media (max-width: 768px) {
    /* 1. Ensure the video container allows overflow or relative positioning */
    .hero-banner-wrap {
        position: relative;
        z-index: 1;
    }

    /* 2. Lift the text section up so it overlays the video */
    .hero-intro {
        position: relative;
        z-index: 10;      /* Higher than the banner (z-index 5) */
        margin-top: -45vh; /* Pulls the text up into the middle of the video */
        padding: 20px;
        background: transparent; /* Keep it transparent so video shows behind text */
        text-align: center;
    }

    /* 3. Make the text white so it is readable over the video */
    .hero-intro-copy h1, 
    .hero-intro-copy p {
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Adds shadow for readability */
    }

    /* 4. Ensure the fuzzed banner stays at the very bottom beneath the text */
    .hero-banner-overlay {
        z-index: 5 !important; 
        pointer-events: none; /* Allows clicking links 'through' the image if needed */
    }

    /* 5. Adjust the contact bar for mobile visibility over video */
    .hero-contact-bar {
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    /* 1. Position the Intro section over the top of the video */
    .hero-intro {
        position: absolute !important;
        top: 40%; /* Swapped 150px for 40% for better scaling */
        transform: translateY(-50%); /* Keeps it balanced */
        left: 0;
        width: 100%;
        z-index: 20; 
        padding: 0 20px;
        margin-top: 0 !important;
        text-align: center;
        background: transparent !important;
    }

    /* 2. Style the Header for high visibility over video */
    .hero-intro-copy h1 {
        color: #ffffff !important;
        font-size: 1.8rem !important;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
        max-width: 90%;
        margin: 0 auto;
    }

    /* 3. OBJECTIVE: Header Only - Hide the paragraph and contact bar on mobile hero */
    .hero-intro-copy p, 
    .hero-contact-bar {
        display: none !important;
    }

    /* 4. Ensure the fuzzed banner remains locked at the very bottom */
    .hero-banner-overlay {
        z-index: 5 !important;
        bottom: 0 !important;
    }
}


/* Industry Presence Grid Logic */
.industry-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 30px;
    align-items: stretch;
}

.industry-banner-card {
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: #fff;
}

.industry-banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-footer {
    padding: 15px;
    background: var(--white);
    text-align: center;
    border-top: 1px solid var(--border);
}

.industry-footer p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-900);
}

.industry-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
}

.industry-sub-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.industry-sub-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.industry-card-text {
    padding: 20px;
}

/* --- MOBILE FIX --- */
@media (max-width: 768px) {
    .industry-grid {
        grid-template-columns: 1fr; /* Stack everything */
        gap: 20px;
    }

    .industry-banner-card {
        height: 350px; /* Give the tall banner a specific height when stacked */
    }

    .industry-stack {
        grid-template-rows: auto; /* Allow content to dictate height */
        gap: 20px;
    }

    .industry-sub-card img {
        height: 200px; /* Slightly shorter images on phone */
    }
}

..testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    padding: 40px !important;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    min-height: 320px; /* Keeps cards uniform in height */
}

/* Fixes the tiny/stuck quote from your screenshot */
.quote-icon {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--gold-300);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: -35px; /* Pulls text closer to the quote */
    margin-left: -10px;
}

.quote-text {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-700);
    flex-grow: 1; /* Pushes meta info to the bottom */
}

/* Fixes the name and title stacking */
.testimonial-meta {
    margin-top: 20px;
}

.testimonial-meta strong {
    display: block; /* Puts name on its own line */
    color: var(--navy-900);
    font-size: 1.1rem;
}

.testimonial-meta span {
    display: block; /* Puts title on its own line */
    font-size: 0.85rem;
    color: var(--text-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr; 
    }
    
    .testimonial-card {
        padding: 30px !important;
        min-height: auto;
    }
}



/* --- SERVICES PAGE MOBILE OVERRIDES --- */
@media (max-width: 991px) {
    /* 1. Force the split grid to stack: Tools will go UNDER the services */
    .split-grid[style*="grid-template-columns: 1.4fr 0.6fr"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* 2. Force service cards to stack in 1 column instead of 2 */
    .service-grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* 3. Adjust sidebar tools for better mobile spacing */
    .sidebar-links {
        margin-top: 40px;
        width: 100% !important;
    }

    /* 4. Center the Hero text for mobile */
    .page-hero-simple {
        text-align: center;
        padding: 40px 20px !important;
    }

    .remax-logo {
        margin: 15px auto 0 !important;
    }
}

/* --- TABLET SPECIFIC OPTIMIZATION --- */
@media (min-width: 768px) and (max-width: 991px) {
    /* On tablets, let the tools sit side-by-side to save vertical space */
    .sidebar-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
}

/* --- UI POLISH FOR SERVICE CARDS --- */
.service-card img {
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.about-panel a {
    transition: all 0.2s ease;
}

.about-panel a:hover {
    filter: brightness(0.95);
    transform: translateX(4px);
}