/* =========================================================
   LAPTOP MIC SI TABLETA MARE
========================================================= */

@media (max-width: 1100px) {
    :root {
        --header: 78px;
    }

    .navbar {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        z-index: 1002;
        display: flex;
    }

    .menu {
        position: fixed;
        z-index: 1001;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        background: rgba(20, 20, 18, 0.98);
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .menu.open {
        opacity: 1;
        visibility: visible;
    }

    .menu a,
    .navbar.scrolled .menu a {
        color: #ffffff;
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 34px;
        font-weight: 600;
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle.active span {
        background: #ffffff;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero {
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .hero-copy {
        max-width: 760px;
        justify-self: center;
        text-align: center;
    }

    .eyebrow,
    .hero-actions,
    .hero-benefits {
        justify-content: center;
    }

    .hero-frame,
    .hero-frame > img {
        min-height: 560px;
        height: 560px;
    }

    .floating-card-top {
        left: 22px;
    }

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

    .quick-grid article:nth-child(2) {
        border-right: 0;
    }

    .quick-grid article:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-layout,
    .location-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .about-copy {
        max-width: 720px;
    }

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

    .house-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 13px);
        justify-self: center;
    }

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

    .tour-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .tour-layout .btn {
        justify-self: start;
    }

    .location-layout,
    .contact-layout {
        gap: 58px;
    }

    .map-card {
        min-height: 470px;
    }

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

    .footer-tour {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   TABLETA
========================================================= */

@media (max-width: 820px) {
    .section {
        padding: 88px 0;
    }

    .section-head {
        margin-bottom: 46px;
    }

    .hero {
        padding-inline: 18px;
    }

    .hero-frame,
    .hero-frame > img {
        min-height: 490px;
        height: 490px;
    }

    .hero-outline {
        right: -26px;
        bottom: -28px;
    }

    .media-card img {
        min-height: 450px;
    }

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

    .stats article:nth-child(2) {
        border-right: 0;
    }

    .stats article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .gallery-grid {
        min-height: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 10px;
    }

    .gallery-item,
    .gallery-large {
        min-height: auto;
        aspect-ratio: 1 / 1.05;
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-large {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 11;
    }

    .contact-form {
        padding: 32px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   TELEFON
========================================================= */

@media (max-width: 620px) {
    :root {
        --header: 70px;
    }

    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .section {
        padding: 70px 0;
    }

    .navbar {
        min-height: 70px;
    }

    .navbar.scrolled {
        min-height: 64px;
    }

    .brand-main {
        font-size: 20px;
    }

    .hero {
        padding-top: 88px;
        padding-bottom: 48px;
        padding-inline: 0;
    }

    .hero-layout {
        gap: 24px;
    }

    .hero-copy {
        text-align: left;
    }

    .hero h1 {
        max-width: 360px;
        font-size: clamp(45px, 13vw, 62px);
        line-height: 0.96;
    }

    .hero-text {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.65;
    }

    .eyebrow {
        justify-content: flex-start;
        font-size: 9px;
    }

    .eyebrow::before {
        width: 24px;
    }

    .hero-actions {
        display: grid;
        width: 100%;
        max-width: none;
        margin-top: 26px;
        margin-inline: 0;
    }

    .btn {
        width: 100%;
        min-height: 52px;
        padding-inline: 20px;
    }

    .hero-benefits {
        display: none;
    }

    .hero-benefits li:last-child {
        grid-column: auto;
    }

    .hero-frame,
    .hero-frame > img {
        min-height: 0;
        height: auto;
    }

    .hero-frame {
        aspect-ratio: 1 / 1.05;
        border-radius: 24px 24px 72px 24px;
    }

    .hero-frame > img {
        height: 100%;
        object-position: center 42%;
    }

    .hero-outline {
        display: none;
    }

    .floating-card-top {
        display: none;
    }

    .floating-card-bottom {
        display: none;
    }

    .round-360 {
        width: 40px;
        height: 40px;
    }

    .hero-orb {
        display: none;
    }

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

    .quick-grid article,
    .quick-grid article:nth-child(2) {
        min-height: 96px;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 18px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .quick-grid article:nth-child(2n) {
        border-right: 0;
    }

    .quick-number {
        font-size: 30px;
    }

    .quick-grid article:last-child {
        border-bottom: 0;
    }

    .quick-grid article:nth-last-child(2) {
        border-bottom: 0;
    }

    .section-head h2,
    .tour h2,
    .location h2,
    .contact h2 {
        font-size: 42px;
    }

    .media-card img {
        min-height: 0;
        aspect-ratio: 4 / 5;
        object-position: center center;
    }

    .about-copy .lead {
        font-size: 26px;
    }

    .stats {
        margin-top: 48px;
    }

    .stats article {
        padding: 24px 17px;
    }

    .stats strong {
        font-size: 38px;
    }

    .house-grid {
        grid-template-columns: 1fr;
    }

    .house-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .house-media img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .house-body {
        padding: 23px;
    }

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

    .features li {
        display: flex;
        justify-content: space-between;
    }

    .features strong,
    .features span {
        display: inline;
    }

    .tour {
        min-height: 550px;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .advantage-grid article {
        min-height: auto;
        padding: 30px;
    }

    .advantage-grid h3 {
        margin-top: 26px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .gallery-item,
    .gallery-large {
        min-height: auto;
        aspect-ratio: 1 / 1.12;
        grid-column: auto;
    }

    .gallery-large {
        grid-column: 1 / -1;
        aspect-ratio: 4 / 3;
    }

    .map-card {
        min-height: 350px;
    }

    .contact-form {
        padding: 25px 19px;
        border-radius: 22px;
    }

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

    .footer {
        padding-top: 60px;
    }

    .footer-top,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-top {
        gap: 26px;
    }

    .footer-links {
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 44px;
        height: 44px;
    }

    .lightbox {
        width: calc(100vw - 24px);
        max-height: 86vh;
        border-radius: 16px;
    }

    .lightbox img {
        max-height: 72vh;
    }

    .lightbox p {
        padding: 12px 16px 15px;
        font-size: 13px;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
    }
}

/* =========================================================
   TELEFOANE FOARTE MICI
========================================================= */

@media (max-width: 390px) {
    .hero h1 {
        font-size: 43px;
    }

    .hero-frame {
        aspect-ratio: 3 / 4;
    }

    .floating-card-bottom {
        left: 13px;
        right: auto;
    }

    .section-head h2,
    .tour h2,
    .location h2,
    .contact h2 {
        font-size: 37px;
    }

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

    .stats article,
    .stats article:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stats article:last-child {
        border-bottom: 0;
    }

    .house-title {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================================
   REDUCEREA ANIMATIILOR
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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