/* Landing page polish — hero gap fix, showcase, 3D, animations */

html {
    scroll-behavior: smooth;
}

body.mc-site {
    margin: 0;
    background: #f4f5f7;
}

/* —— Header: no white gap over hero —— */
body.mc-site header#header.mc-header {
    background: rgba(244, 245, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: max(10px, env(safe-area-inset-top, 0px)) 0 12px;
}

body.mc-site header#header.mc-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    padding: 8px 0;
}

/* —— Hero —— */
.mc-hero {
    position: relative;
    margin-top: 0;
    padding: max(128px, calc(100px + env(safe-area-inset-top, 0px))) 0 72px;
    min-height: auto;
    background: linear-gradient(165deg, #f0f2f5 0%, #fafbfc 45%, #ffffff 100%);
    overflow: hidden;
    isolation: isolate;
}

.mc-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: mc-float 14s ease-in-out infinite;
}

.mc-orb-1 {
    width: 420px;
    height: 420px;
    background: rgba(255, 146, 104, 0.35);
    top: -120px;
    right: -80px;
}

.mc-orb-2 {
    width: 280px;
    height: 280px;
    background: rgba(255, 180, 150, 0.25);
    bottom: 10%;
    left: -60px;
    animation-delay: -4s;
}

.mc-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(200, 210, 230, 0.4);
    top: 40%;
    left: 35%;
    animation-delay: -7s;
}

.mc-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

@keyframes mc-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -24px) scale(1.05);
    }
}

.mc-hero .mc-container {
    position: relative;
    z-index: 1;
}

.mc-hero-title span {
    display: block;
    animation: mc-title-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.mc-hero-title span:nth-child(2) {
    animation-delay: 0.12s;
    color: var(--mc-orange);
}

@keyframes mc-title-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mc-hero-image-wrap {
    transform-style: preserve-3d;
    perspective: 1200px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 146, 104, 0.08);
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}

.mc-hero-image-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mc-hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.mc-hero-image-wrap:hover img {
    transform: scale(1.06);
}

.mc-hero-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.mc-hero-image-wrap:hover .mc-hero-shine {
    opacity: 1;
}

.mc-hero-badge {
    animation: mc-pulse-badge 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes mc-pulse-badge {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(255, 146, 104, 0.4);
    }

    50% {
        box-shadow: 0 12px 32px rgba(255, 146, 104, 0.55);
        transform: scale(1.05);
    }
}

.mc-progress-ring .fg {
    animation: mc-ring-fill 2s ease forwards 0.5s;
}

@keyframes mc-ring-fill {
    from {
        stroke-dashoffset: 251;
    }

    to {
        stroke-dashoffset: 63;
    }
}

.mc-hero-arrow:hover {
    background: var(--mc-orange);
    border-color: var(--mc-orange);
    color: var(--mc-white);
    transform: scale(1.08);
}

/* —— Showcase (post-hero) —— */
.mc-showcase {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    overflow: hidden;
}

.mc-showcase-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mc-showcase-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255, 146, 104, 0.12) 0%, transparent 70%);
}

.mc-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.mc-showcase-title {
    font-size: clamp(2rem, 3.8vw, 2.85rem);
    line-height: 1.15;
    color: var(--mc-black);
    margin-bottom: 16px;
}

.mc-showcase-lead {
    color: var(--mc-gray-600);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}

.mc-pillar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.mc-pillar-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--mc-white);
    border: 1px solid var(--mc-gray-200);
    border-radius: var(--mc-radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    transform-style: preserve-3d;
}

.mc-pillar-card:hover {
    transform: translateY(-4px) translateZ(8px);
    box-shadow: 0 16px 40px rgba(255, 146, 104, 0.12);
    border-color: rgba(255, 146, 104, 0.35);
}

.mc-pillar-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--mc-orange);
    background: var(--mc-orange-soft);
    padding: 8px 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

.mc-pillar-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.mc-pillar-card p {
    font-size: 0.88rem;
    color: var(--mc-gray-600);
    line-height: 1.5;
    margin: 0;
}

.mc-showcase-gallery {
    position: relative;
    min-height: 480px;
    perspective: 1000px;
}

.mc-gallery-card {
    position: absolute;
    background: var(--mc-white);
    border-radius: var(--mc-radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.mc-gallery-main {
    top: 0;
    right: 0;
    width: 72%;
    z-index: 2;
}

.mc-gallery-secondary {
    bottom: 0;
    left: 0;
    width: 48%;
    z-index: 3;
    animation: mc-float-card 6s ease-in-out infinite;
}

.mc-gallery-secondary[data-tilt] {
    animation: mc-float-card 6s ease-in-out infinite;
}

.mc-gallery-secondary[data-tilt]:hover {
    animation-play-state: paused;
}

@keyframes mc-float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mc-gallery-img-frame {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--mc-gray-100);
}

.mc-gallery-img-frame--sm {
    aspect-ratio: 1;
}

.mc-gallery-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.mc-gallery-card:hover .mc-gallery-img-frame img {
    transform: scale(1.04);
}

.mc-gallery-card-label {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.03), transparent);
}

.mc-gallery-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--mc-orange);
    color: white;
    padding: 4px 10px;
    border-radius: var(--mc-radius-pill);
}

.mc-gallery-card-label strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mc-gray-900);
}

.mc-float-stat,
.mc-float-rating {
    position: absolute;
    background: var(--mc-white);
    border-radius: var(--mc-radius-md);
    padding: 16px 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--mc-gray-200);
    z-index: 4;
    transition: transform 0.2s ease-out;
}

.mc-float-stat {
    top: 12%;
    left: 8%;
    text-align: center;
}

.mc-float-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--mc-orange);
    line-height: 1;
}

.mc-float-stat span {
    font-size: 0.75rem;
    color: var(--mc-gray-600);
    font-weight: 500;
}

.mc-float-rating {
    bottom: 28%;
    right: 4%;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Wrapper for stat cards — invisible on desktop, grid on mobile */
.mc-showcase-gallery-stats {
    display: contents;
}

.mc-float-rating i {
    color: var(--mc-orange);
    font-size: 1.25rem;
}

.mc-float-rating strong {
    display: block;
    font-size: 1.1rem;
}

.mc-float-rating span {
    font-size: 0.72rem;
    color: var(--mc-gray-600);
}

.mc-features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--mc-gray-200);
}

.mc-features-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--mc-white);
    border-radius: var(--mc-radius-sm);
    border: 1px solid var(--mc-gray-200);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mc-gray-900);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.mc-features-strip-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mc-orange-soft);
    color: var(--mc-orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.mc-features-strip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 146, 104, 0.15);
    border-color: var(--mc-orange);
}

/* Luxury / trust image frames */
.mc-shape-image-main,
.mc-trust-image {
    box-shadow: var(--mc-shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.mc-shape-image-main img,
.mc-trust-image img {
    object-fit: cover;
    object-position: center;
}

/* Stagger fade */
.mc-fade {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.mc-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.mc-stat-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mc-stat-card:hover {
    transform: translateY(-8px) rotateX(4deg);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.mc-property-card {
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mc-property-card:hover {
    transform: translateY(-10px) rotateX(2deg);
}

/* —— Footer home —— */
.mc-footer--home {
    padding: 0;
    overflow: hidden;
}

.mc-footer-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200px;
    background: radial-gradient(ellipse, rgba(255, 146, 104, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.mc-footer-wrap {
    position: relative;
    padding: 72px 24px 0;
}

.mc-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mc-footer--home .mc-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mc-footer--home .mc-footer-col li {
    margin-bottom: 12px;
}

.mc-footer--home .mc-footer-col span,
.mc-footer--home .mc-footer-col a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s;
}

.mc-footer--home .mc-footer-col a:hover {
    color: var(--mc-orange);
}

.mc-footer-logo-img {
    height: 52px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.mc-footer-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--mc-white);
    margin-bottom: 12px;
    line-height: 1.05;
}

.mc-footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    max-width: 300px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.mc-footer-watermark {
    text-align: center;
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    line-height: 0.9;
    padding: 32px 0 8px;
    pointer-events: none;
    user-select: none;
}

.mc-footer--home .mc-footer-copy {
    border-top: none;
    padding: 16px 0 24px;
}

.mc-footer-social {
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .mc-showcase-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .mc-showcase-gallery {
        min-height: 400px;
        max-width: 520px;
        margin: 0 auto;
    }

    .mc-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mc-features-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile optimizations for landing page */
@media (max-width: 900px) {
    .mc-hero {
        padding-top: max(100px, calc(84px + env(safe-area-inset-top, 0px)));
        padding-bottom: 48px;
    }

    .mc-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mc-hero-copy {
        text-align: center;
    }

    .mc-hero-title span {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .mc-features-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .mc-showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mc-showcase-content {
        text-align: left;
    }

    .mc-showcase-lead {
        max-width: none;
    }

    /* Why Fari Wing gallery: stacked layout (no overlapping absolutes) */
    .mc-showcase-gallery {
        position: relative;
        min-height: 0;
        max-width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mc-gallery-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        animation: none;
    }

    .mc-gallery-main,
    .mc-gallery-secondary {
        width: 100%;
    }

    .mc-gallery-img-frame {
        aspect-ratio: 16 / 10;
    }

    .mc-gallery-img-frame--sm {
        aspect-ratio: 16 / 10;
    }

    .mc-showcase-gallery-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .mc-float-stat,
    .mc-float-rating {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        margin: 0;
        animation: none;
    }

    .mc-float-stat {
        text-align: left;
    }

    .mc-float-rating {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .mc-hero {
        padding-top: max(96px, calc(80px + env(safe-area-inset-top, 0px)));
        padding-bottom: 40px;
    }

    .mc-hero-title span {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .mc-showcase {
        padding: 64px 0 56px;
    }

    .mc-showcase-gallery-stats {
        grid-template-columns: 1fr;
    }

    .mc-features-strip {
        grid-template-columns: 1fr;
    }

    .mc-pillar-card {
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

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