/* --- Hero Overlay and Visibility --- */

.m-hero__overlay--darker {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.65));
    z-index: 1;
}

.m-hero__content--front {
    position: relative;
    z-index: 2;
}

/* Ensure text is white for contrast */
.m-hero__title,
.m-hero__sub {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.m-hero__eyebrow {
    color: var(--sb-gold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* --- New Content Section Styles --- */

.m-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

/* Make cards more spacious as requested */
#areas-of-expertise .glass-card {
    padding: 48px 32px;
    /* Increased top/bottom padding */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#areas-of-expertise .glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Minimal CTA Styling */
#minimal-cta .cta-box {
    background: transparent !important;
    border: none !important;
    padding: 60px 20px !important;
    box-shadow: none !important;
}

#minimal-cta h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

/* Boutique Advisory Typography */
#boutique-advisory .m-story p {
    line-height: 1.8;
    color: var(--sb-text-secondary);
}



/* --- 3D Cards (Our Approach) --- */
.three-d-card {
    background: rgba(20, 20, 20, 0.6);
    /* Dark glass background */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 32px;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 2px solid transparent;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.three-d-card:hover {
    transform: translateY(-6px) rotateX(2deg) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--sb-gold);
    border-color: rgba(255, 255, 255, 0.15);
}

.three-d-card h3,
.three-d-card p {
    transform: translateZ(20px);
    /* Subtle depth for text */
}

/* --- Premium Grid (Expertise) --- */
.premium-grid-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 48px 32px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.premium-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 40px rgba(166, 138, 78, 0.05), 0 16px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(166, 138, 78, 0.25);
    /* Subtle light reflection */
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.7) 0%, rgba(30, 30, 30, 0.7) 100%);
}

/* --- Mobile Footer Alignment --- */
@media (max-width: 768px) {
    .footer-brand-col {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-logo {
        margin: 0 auto 20px;
        display: block;
    }

    .footer-tagline {
        text-align: center;
        margin: 0 auto 24px;
    }

    .footer-socials {
        justify-content: center;
        margin: 0 auto;
    }

    .footer-nav-col h4 {
        text-align: center;
    }

    .footer-nav-col a {
        text-align: center;
    }
}

/* --- Stats Section --- */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    background: var(--sb-gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Editorial Split Layout (Vision) --- */
.editorial-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.split-head {
    text-align: right;
    padding-right: 40px;
    border-right: 1px solid var(--sb-border);
}

.split-body {
    text-align: left;
}


/* --- Off-Plan Hero Section --- */
.off-plan-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 60px;
}

.off-plan-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.off-plan-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.off-plan-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeUp 1s ease-out;
}

/* --- Trust / Why Choose Us Section --- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.trust-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.trust-item__icon {
    width: 50px;
    height: 50px;
    background: var(--sb-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--sb-gold-glow);
}

.trust-item__icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.trust-item__content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--sb-text);
}

.trust-item__content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--sb-text-secondary);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Refined Feature Cards (Glass Minimal) --- */
.m-feature {
    background: rgba(255, 255, 255, 0.02);
    /* More transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--sb-border);
    box-shadow: none;
    /* Remove default shadow for flatter look */
}

.m-feature:hover {
    background: var(--sb-card-bg);
    transform: translateY(-5px);
    box-shadow: var(--sb-shadow-hover);
    border-color: var(--sb-gold);
}

/* --- Premium CTA Section --- */
.premium-cta {
    position: relative;
    padding: 100px 0;
    margin-top: 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 60px;
    /* Add spacing before footer */
}

/* Decorative Gold Glow */
.premium-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(166, 138, 78, 0.15) 0%, transparent 60%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.premium-cta__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.premium-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: #fff;
    background: var(--sb-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.premium-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.premium-cta__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Specific Button Overrides for Dark CTA */
.premium-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.premium-cta .btn-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

@media (max-width: 768px) {
    .premium-cta {
        padding: 60px 24px;
        margin: 40px 16px;
        /* Inset on mobile */
    }
}

/* --- Premium Blog Article Styles --- */
.blog-article-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 60px;
    margin-top: 40px;
}

.blog-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.blog-text-column p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--sb-text-primary);
}

.blog-text-column h2 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 24px;
    color: var(--sb-text-primary);
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--sb-gold);
}

.blog-key-takeaways {
    background: var(--sb-surface-hover);
    padding: 30px;
    border-radius: var(--radius);
    position: sticky;
    top: 120px;
    border: 1px solid var(--sb-border);
}

.blog-key-takeaways h3 {
    color: var(--sb-gold);
    font-size: 1.2rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-key-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-key-takeaways li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: var(--sb-text-secondary);
}

.blog-key-takeaways li::before {
    content: '•';
    color: var(--sb-gold);
    position: absolute;
    left: 0;
}

.high-impact-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 40px 0;
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    .blog-main-content {
        grid-template-columns: 1fr;
    }

    .blog-key-takeaways {
        position: static;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .editorial-split {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .split-head {
        text-align: center;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--sb-border);
        padding-bottom: 24px;
    }

    .split-body {
        text-align: center;
    }

    .grid-3-col {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
}

/* --- Founders Section --- */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.founder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.founder-card__img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--sb-gold);
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.founder-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-role {
    display: block;
    color: var(--sb-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* --- News & Insights Section --- */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    margin-top: -60px;
    /* Overlap hero slightly if desired, or just spacing */
    margin-bottom: 60px;
}

.featured-article__img {
    height: 100%;
    min-height: 400px;
}

.featured-article__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article__content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.editorial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.editorial-card:hover {
    transform: translateY(-8px);
}

.editorial-card__img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.editorial-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.editorial-card:hover .editorial-card__img img {
    transform: scale(1.05);
}

.editorial-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--sb-gold);
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

.editorial-card__content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.editorial-card__content h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    line-height: 1.4;
}

.editorial-card__content h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.editorial-card__content h3 a:hover {
    color: var(--sb-gold);
}

.editorial-card__content p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more-link {
    color: var(--sb-gold);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
    position: relative;
}

.read-more-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--sb-gold);
    transition: width 0.3s ease;
}

.read-more-link:hover::after {
    width: 100%;
}

@media (max-width: 992px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article__img {
        height: 300px;
        min-height: auto;
    }

    .featured-article__content {
        padding: 40px;
    }

    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .editorial-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Scroll Snap Utility --- */
@media (max-width: 768px) {
    .mobile-scroll-snap {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px !important;
        padding-bottom: 24px;
        /* Space for scrollbar/breathing room */
        -webkit-overflow-scrolling: touch;
        margin-left: -1rem;
        /* Negative margin to pull to edge of screen if container has padding */
        margin-right: -1rem;
        padding-left: 1rem;
        /* Inner padding to restore start alignment */
        padding-right: 1rem;
    }

    .mobile-scroll-snap>* {
        flex: 0 0 85%;
        /* Shows part of the next card */
        width: 85%;
        min-width: 85%;
        scroll-snap-align: center;
        margin-bottom: 0 !important;
        /* Override any grid margins */
    }

    /* Minimalist Mobile Card Refinements */
    .mobile-scroll-snap .three-d-card,
    .mobile-scroll-snap .premium-grid-card {
        padding: 24px !important;
        /* Reduce padding from 32/40px */
    }

    .mobile-scroll-snap h3 {
        font-size: 1.1rem !important;
        /* Slightly smaller heading */
    }

    .mobile-scroll-snap p {
        font-size: 0.9rem !important;
        /* Slightly smaller text */
        line-height: 1.5;
    }

    .stats-row {
        flex-direction: column;
        gap: 40px !important;
    }
}

/* --- Off-Plan Redesign Styles --- */

/* Grid Layout */
.off-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

/* Minimal Property Card */
.property-card-minimal {
    background: var(--sb-card-bg);
    border: 1px solid var(--sb-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    /* For "New Launch" badge positioning */
}

/* Light Theme overrides for card */
[data-theme="light"] .property-card-minimal {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .property-card-minimal {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.08);
}

.property-card-minimal:hover {
    transform: translateY(-8px);
    box-shadow: var(--sb-shadow-hover);
}

/* Image Container */
.property-card__img-container {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--sb-skeleton-b);
}

.property-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card-minimal:hover .property-card__img {
    transform: scale(1.05);
}

/* Badge */
.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--sb-gold);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    z-index: 10;
}

/* Content */
.property-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--sb-text);
}

.property-card__location {
    font-size: 0.9rem;
    color: var(--sb-text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-card__location svg {
    width: 16px;
    height: 16px;
    fill: var(--sb-gold);
}

/* Price & Details */
.property-card__footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--sb-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--sb-gold);
}

.property-price span {
    font-size: 0.8rem;
    color: var(--sb-text-secondary);
    font-weight: 400;
}

.property-type {
    font-size: 0.85rem;
    color: var(--sb-text-secondary);
    text-transform: capitalize;
}

/* Developer Logo/Name (Optional) */
.property-developer {
    margin-bottom: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sb-grey);
}

/* Responsive Grid Adjustments */

/* --- Off-Plan Story Section --- */
.m-story {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 40px 0;
}

.m-story__img {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sb-shadow);
    position: relative;
    aspect-ratio: 4/3;
}

.m-story__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.m-story__img:hover img {
    transform: scale(1.03);
}

.m-story__text {
    flex: 1;
}

.m-story h2 {
    margin-bottom: 24px;
    font-size: 2.5rem;
    line-height: 1.2;
}

.m-story p {
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* --- Off-Plan Features Grid --- */
.m-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.m-feature {
    background: var(--sb-card-bg);
    border: 1px solid var(--sb-border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .m-feature {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .m-feature {
    background: rgba(255, 255, 255, 0.03);
}

.m-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--sb-shadow-hover);
    border-color: rgba(166, 138, 78, 0.3);
}

.m-feature__num {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--sb-gold);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    right: 32px;
    font-weight: 700;
    line-height: 1;
}

.m-feature h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: var(--sb-text);
}

.m-feature p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--sb-text-secondary);
}

/* --- Partners Grid --- */
.partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.partners-grid .m-feature {
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* --- Text Links --- */
.m-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sb-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.m-text-link:hover {
    color: var(--sb-gold-accent);
    transform: translateX(4px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .m-story {
        flex-direction: column;
        gap: 40px;
    }

    .m-story__text {
        text-align: center;
    }

    .m-story__img {
        width: 100%;
        max-height: 400px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .m-story h2 {
        font-size: 2rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .m-feature {
        padding: 32px 24px;
    }
}