/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-2 {
        gap: 32px;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .navbar-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .mobile-title-only {
        display: block !important;
    }

    .desktop-title-only {
        display: none !important;
    }

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

    /* Mobile Carousel for home */
    .brands-section {
        display: block !important;
        padding: 40px 0;
        overflow: hidden !important;
    }

    .brands-label {
        margin-bottom: 15px !important;
    }

    .marquee-track {
        gap: 0 !important;
    }

    .brand-item {
        padding: 6px !important;
        width: 176px !important;
        height: 76px !important;
    }

    .lens-rule {
        margin: 20px 0 !important;
    }

    .brands-track img {
        max-height: 65% !important;
        height: auto !important;
        /* let aspect ratio govern, not a fixed px cap */
    }

    .mobile-carousel {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 40px;
        /* Space for shadow — scoped manually below fold to prevent viewport wiggle */
        margin-right: -10px;
        margin-left: -10px;
        padding-left: 10px;
        padding-right: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-padding: 0 10px;
    }

    .mobile-carousel::-webkit-scrollbar {
        display: none;
    }

    .mobile-carousel>* {
        flex: 0 0 85%;
        /* Premium peek effect */
        max-width: 85%;
        scroll-snap-align: center;
    }

    .news-card {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border: none !important;
        background: var(--white);
        border-radius: var(--radius-lg);
    }

    .news-card-image {
        height: 180px !important;
    }

    .news-card-image img {
        height: 100%;
        object-fit: cover;
    }

    .news-card-body {
        padding: 24px !important;
    }

    .news-card-body h3 {
        font-size: 1.25rem !important;
        line-height: 1.3;
        margin-top: 5px;
        margin-bottom: 12px !important;
        font-family: var(--font-serif);
    }

    .news-card-body p {
        font-size: 0.92rem !important;
        line-height: 1.5;
        margin-bottom: 15px !important;
        display: -webkit-box;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--text-light);
    }

    .review-card {
        padding: 12px;
        margin-right: 5px;
    }

    .mobile-carousel .review-card {
        flex: 0 0 220px;
        max-width: 220px;
    }

    .review-stars {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .review-author-name {
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 2px;
    }

    .review-verified {
        font-size: 0.65rem;
        color: #34a853;
        margin-bottom: 8px;
    }

    .review-text {
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

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

    .grid-2x2 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 100px 0 60px;
    }

    /* Hero V5 (home) */
    .hero-v5 {
        min-height: 100vh;
    }

    .hero-v5-content {
        padding: 0 16px;
    }

    .hero-full {
        height: 300px;
    }

    /* Hero Immersive responsive */
    .hero-immersive {
        min-height: 85vh;
    }

    .hero-panel {
        max-width: 100%;
    }

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

    .hero-cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-cta-row .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-ribbon {
        padding: 14px 16px;
    }

    .hero-ribbon-item {
        padding: 4px 10px;
    }

    .hero-ribbon-item strong {
        font-size: 0.85rem;
    }

    .service-block:nth-child(even) .grid-2 {
        direction: ltr;
    }

    .service-block img {
        height: 260px;
    }

    .stats-bar .container {
        justify-content: space-between;
    }

    .stat-item {
        flex: 0 0 calc(50% - 10px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ── Hero Immersive mobile logic ── */
@media (max-width: 768px) {
    .hero-section {
        min-height: calc(var(--vh, 1vh) * 100) !important;
        overflow: hidden !important;
        width: 100vw;
        position: relative;
    }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .lg-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .lg-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lg-intro-visual {
        display: none;
    }

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

    .lg-process-steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .lg-step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 640px) {
    .lg-benefits-grid {
        grid-template-columns: 1fr;
    }

    .lg-types-grid {
        grid-template-columns: 1fr;
    }

    .lg-cta-inner {
        flex-direction: column;
        gap: 28px;
    }

    .lg-hero-title {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }
}

/* ── WYSIWYG Editor Content Styling ── */
.ql-editor-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.ql-editor-content p {
    margin-bottom: 1.5em;
}

.ql-editor-content h2,
.ql-editor-content h3,
.ql-editor-content h4 {
    color: var(--dark);
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-family: var(--font-serif);
}

.ql-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 2em 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ql-editor-content blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-light);
    background: var(--ivory);
    padding: 1.5em;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.ql-editor-content ul,
.ql-editor-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.ql-editor-content li {
    margin-bottom: 0.5em;
}

.ql-editor-content strong {
    font-weight: 700;
    color: var(--dark);
}

.ql-editor-content a {
    color: var(--gold);
    text-decoration: underline;
}