/* ============================================================
   DERMIIZ — RESPONSIVE DESIGN SYSTEM
   ============================================================ */

/* 1280px Breakpoint */
@media (max-width: 1280px) {
    :root {
        --container-padding: 1.75rem;
    }

    .hero-heading {
        font-size: 3.15rem;
    }

    .hero-dermiiz {
        padding: 8.5rem 2.5rem 4rem;
        min-height: 660px;
    }

    .navbar-wrapper {
        left: 2rem;
        right: 2rem;
    }
}

/* 1024px (Tablet Landscape) */
@media (max-width: 1024px) {
    :root {
        --fs-4xl: 2.35rem;
        --fs-3xl: 2.1rem;
    }

    .hero-wrapper-outer {
        padding: 0;
    }

    .top-announcement {
        border-radius: 0;
        padding: 0.75rem 1.5rem;
    }

    .navbar-wrapper {
        top: 1rem;
        left: 1.5rem;
        right: 1.5rem;
    }

    .nav-links,
    .navbar-container .btn-dark {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-nav-panel {
        display: flex;
    }

    /* Hide Help/Support/Contact links on tablet/mobile */
    .top-announcement-links {
        display: none;
    }

    .hero-dermiiz {
        border-radius: 0 0 20px 20px;
        padding: 7.5rem 2rem 4rem;
        background-position: top right;
        min-height: 680px;
        justify-content: flex-end;
    }

    .hero-inner-content {
        margin-top: auto;
    }

    .hero-heading {
        font-size: 2.75rem;
    }

    /* Hide 3500+ Happy Patients floating card on tablet/mobile */
    .hero-review-floating-card {
        display: none;
    }

    .services-header-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-care-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .expertise-dark-section {
        margin: 2rem 1rem;
        padding: 4.5rem 1.5rem 3.5rem;
    }

    .expertise-title-large {
        font-size: 2.25rem;
    }

    .expertise-bento-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trusted-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

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

    .appointment-card-banner {
        grid-template-columns: 1fr;
    }

    .appointment-doctor-side {
        display: none;
    }

    .before-after-duo-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-bento-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .faq-layout-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .footer-grid-4col {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-main-card {
        padding: 3.5rem 2.5rem 3rem;
    }

    .footer-bottom-strip {
        padding: 1.25rem 2rem;
    }
}

/* 768px (Tablet Portrait & Large Mobile) */
@media (max-width: 768px) {
    :root {
        --fs-5xl: 2.5rem;
        --fs-4xl: 2rem;
        --fs-2xl: 1.65rem;
        --container-padding: 1.25rem;
    }

    .section-padding {
        padding: 4.5rem 0;
    }

    .section-padding-lg {
        padding: 5.5rem 0;
    }

    .dermiiz-footer-section {
        padding: 3.5rem 1rem 1.5rem;
    }

    .footer-main-card {
        padding: 2.5rem 1.5rem 2rem;
        border-radius: 20px;
    }

    .footer-grid-4col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom-strip {
        flex-direction: column;
        gap: 0.85rem;
        text-align: center;
        padding: 1.25rem 1.5rem;
        border-radius: 14px;
    }

    .collage-container,
    .layered-showcase,
    .faq-photos-cluster {
        height: 380px;
    }

    .trusted-heading {
        font-size: 2.25rem;
    }

    .about-stat-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .top-announcement {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        text-align: center;
        padding: 0.65rem 1rem;
    }

    /* Keep links hidden at 768px too */
    .top-announcement-links {
        display: none;
    }

    .hero-dermiiz {
        padding: 6.5rem 1.5rem 3rem;
        min-height: 560px;
        background-image: linear-gradient(to right, rgba(28, 20, 18, 0.90) 0%, rgba(28, 20, 18, 0.65) 45%, rgba(28, 20, 18, 0.12) 72%, transparent 100%), url('../assets/images/hero_banner_portrait.png');
        background-position: 85% center;
        background-size: cover;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .hero-inner-content {
        margin-top: auto;
        max-width: 320px;
        width: 100%;
        z-index: 2;
    }

    .hero-heading {
        font-size: 1.75rem;
        font-weight: 700;
        line-height: 1.22;
        letter-spacing: -0.02em;
        max-width: 310px;
        margin-bottom: 0.85rem;
    }

    .hero-description {
        font-size: 0.92rem;
        line-height: 1.55;
        max-width: 275px;
        margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.88);
    }

    .hero-btn-pill {
        width: 100%;
        max-width: 335px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.55rem 0.65rem 0.55rem 1.45rem;
        font-size: 0.95rem;
        font-weight: 600;
        background: #F2DEC8;
        color: #2D2320;
        border-radius: 999px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .hero-btn-arrow-circle {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #DDC5AF;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .hero-btn-arrow-circle svg {
        width: 16px;
        height: 16px;
        stroke: #2D2320;
    }

    /* Still hidden at 768px */
    .hero-review-floating-card {
        display: none;
    }

    /* DQS Doctor Stack (Panel) at 768px */
    .dqs-panel {
        display: flex;
        flex-direction: column;
        min-height: unset;
        border-radius: 28px;
        overflow: hidden;
        background: #FAF7F2;
        box-shadow: 0 10px 30px rgba(48, 37, 34, 0.06);
        border: 1px solid rgba(48, 37, 34, 0.08);
        opacity: 1 !important;
        transform: none !important;
    }

    .dqs-panel-bg {
        position: relative;
        height: 340px;
        width: 100%;
        inset: auto;
        overflow: hidden;
        background: #FAF7F2;
    }

    .dqs-bg-img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
        display: block;
        -webkit-mask-image: linear-gradient(to bottom, #000 70%, rgba(0, 0, 0, 0.8) 84%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 70%, rgba(0, 0, 0, 0.8) 84%, transparent 100%);
    }

    #dqsPanel1 .dqs-bg-img {
        object-position: center 12%;
    }

    #dqsPanel2 .dqs-bg-img {
        object-position: 50% 8%;
    }

    .dqs-panel-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom,
                rgba(250, 247, 242, 0) 0%,
                rgba(250, 247, 242, 0) 62%,
                rgba(250, 247, 242, 0.45) 78%,
                rgba(250, 247, 242, 0.92) 92%,
                rgba(250, 247, 242, 1) 100%);
        pointer-events: none;
    }

    .dqs-panel-inner {
        min-height: unset;
        padding: 0;
        display: block;
        background: #FAF7F2;
    }

    .dqs-text-col {
        width: 100%;
        max-width: 100%;
        padding: 1.35rem 1.75rem 2.25rem;
        gap: 0;
        display: flex;
        flex-direction: column;
    }

    .dqs-quote-symbol {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #1C1615;
        color: #FAF7F2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.85rem;
    }

    .dqs-quote-symbol svg {
        width: 22px;
        height: 22px;
        fill: #FFFFFF;
    }

    .dqs-eyebrow {
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        color: #8C533E;
        text-transform: uppercase;
        margin-bottom: 0.35rem;
        display: block;
    }

    .dqs-name {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1E1A18;
        margin-bottom: 0.35rem;
        line-height: 1.2;
    }

    .dqs-role {
        font-size: 0.875rem;
        color: #786B65;
        margin-bottom: 1.15rem;
        line-height: 1.4;
    }

    .dqs-quote {
        font-size: 0.95rem;
        line-height: 1.65;
        color: #302522;
        font-style: italic;
        margin-bottom: 1.5rem;
    }

    .dqs-tags {
        display: none !important;
    }

    .dqs-action {
        margin-top: 0;
    }

    .dqs-link {
        font-size: 0.92rem;
        font-weight: 600;
        color: #1E1A18;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Form: stack to single column at 768px */
    .banner-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .appointment-form-side {
        padding: 2rem 1.5rem;
    }

    /* Newsletter pill: stack on small screens */
    .footer-newsletter-pill {
        flex-wrap: wrap;
        border-radius: 14px;
        padding: 0.75rem 1rem;
    }

    .newsletter-submit-btn {
        width: 100%;
        text-align: center;
        border-radius: 10px;
    }
}

/* 480px (Standard Mobile) */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    /* Hide Help/Support/Contact on small mobile */
    .top-announcement-links {
        display: none;
    }

    .top-announcement {
        justify-content: center;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    /* Index Hero Section — Matching Image 1 */
    .hero-dermiiz {
        padding: 5.5rem 1.25rem 2.5rem;
        min-height: 580px;
        height: 86vh;
        max-height: 720px;
        background-image: linear-gradient(to right, rgba(28, 20, 18, 0.90) 0%, rgba(28, 20, 18, 0.65) 45%, rgba(28, 20, 18, 0.12) 72%, transparent 100%), url('../assets/images/hero_banner_portrait.png');
        background-position: 86% center;
        background-size: cover;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .hero-inner-content {
        margin-top: auto;
        margin-bottom: 0.25rem;
        max-width: 320px;
        width: 100%;
        z-index: 2;
    }

    .hero-heading {
        font-size: 1.55rem;
        font-weight: 700;
        line-height: 1.22;
        letter-spacing: -0.02em;
        max-width: 310px;
        margin-bottom: 0.85rem;
    }

    .hero-description {
        font-size: 0.88rem;
        line-height: 1.55;
        max-width: 275px;
        margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.88);
    }

    .hero-btn-pill {
        width: 100%;
        max-width: 335px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.55rem 0.65rem 0.55rem 1.45rem;
        font-size: 0.95rem;
        font-weight: 600;
        background: #F2DEC8;
        color: #2D2320;
        border-radius: 999px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .hero-btn-arrow-circle {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #DDC5AF;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .hero-btn-arrow-circle svg {
        width: 16px;
        height: 16px;
        stroke: #2D2320;
    }

    /* Keep glass box hidden on small mobile */
    .hero-review-floating-card {
        display: none;
    }

    /* DQS Doctor Stack (Panel) at 480px — Matching Image 2 */
    .dqs-panel {
        border-radius: 28px;
        overflow: hidden;
        background: #FAF7F2;
        opacity: 1 !important;
        transform: none !important;
    }

    .dqs-panel-bg {
        height: 280px;
        overflow: hidden;
    }

    #dqsPanel1 .dqs-bg-img {
        object-position: 28% 0%;
    }

    #dqsPanel2 .dqs-bg-img {
        object-position: 23% 10%;
    }

    .dqs-panel-bg::after {
        background: linear-gradient(to bottom,
                rgba(250, 247, 242, 0) 0%,
                rgba(250, 247, 242, 0) 42%,
                rgba(250, 247, 242, 0.65) 72%,
                rgba(250, 247, 242, 0.95) 92%,
                rgba(250, 247, 242, 1) 100%);
    }

    .dqs-text-col {
        padding: 1.25rem 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .dqs-quote-symbol {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #1C1615;
        color: #FAF7F2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.85rem;
    }

    .dqs-quote-symbol svg {
        width: 22px;
        height: 22px;
        fill: #FFFFFF;
    }

    .dqs-eyebrow {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        color: #8C533E;
        text-transform: uppercase;
        margin-bottom: 0.35rem;
        display: block;
    }

    .dqs-name {
        font-size: 1.65rem;
        font-weight: 700;
        color: #1E1A18;
        margin-bottom: 0.35rem;
        line-height: 1.2;
    }

    .dqs-role {
        font-size: 0.875rem;
        color: #786B65;
        margin-bottom: 1.15rem;
        line-height: 1.4;
    }

    .dqs-quote {
        font-size: 0.95rem;
        line-height: 1.65;
        color: #302522;
        font-style: italic;
        margin-bottom: 1.5rem;
    }

    .dqs-tags {
        display: none !important;
    }

    .dqs-action {
        margin-top: 0;
    }

    .dqs-link {
        font-size: 0.92rem;
        font-weight: 600;
        color: #1E1A18;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Form: single column, full-width button */
    .banner-form-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .appointment-form-side {
        padding: 1.75rem 1.25rem;
    }

    .banner-submit-btn {
        width: 100% !important;
        justify-content: center;
    }

    .testimonial-quote-box {
        padding: 1.75rem 1.25rem;
    }

    .faq-accordion-trigger {
        padding: 1rem 1.25rem;
        font-size: var(--fs-sm);
    }
}

/* ============================================================
   ABOUT PAGE RESPONSIVE STYLES
   ============================================================ */
@media (max-width: 1024px) {

    .about-hero-dermiiz,
    .treatment-hero-banner {
        min-height: 500px;
        padding: 8rem 2rem 4rem;
    }

    .about-hero-heading,
    .treatment-hero-heading {
        font-size: 2.75rem;
    }

    .about-doctors-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .about-doctors-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-tailored-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .tailored-main-img {
        height: 400px;
    }

    .about-destination-section {
        padding: 4.5rem 2rem;
        margin: 2rem 1rem;
    }

    .about-destination-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .dest-feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dest-center-portrait {
        order: -1;
    }

    .about-complete-care-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .about-bento-grid {
        grid-template-columns: 1fr;
    }

    .about-reviews-grid {
        grid-template-columns: 1fr;
    }

    /* Carousel: 2 cards visible at tablet */
    .abt-tc-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }

    .about-faq-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 640px) {
    /* Carousel: 1 card on mobile */
    .abt-tc-card {
        flex: 0 0 100%;
    }
}



@media (max-width: 768px) {

    .about-hero-dermiiz,
    .treatment-hero-banner {
        min-height: 440px;
        padding: 7rem 1.5rem 3.5rem;
    }

    .about-hero-heading,
    .treatment-hero-heading {
        font-size: 2.25rem;
    }

    .about-doctors-grid {
        grid-template-columns: 1fr;
    }

    .complete-care-checks {
        flex-direction: column;
        gap: 0.85rem;
    }

    .complete-care-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .complete-care-visual-col {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .care-duo-photo-wrap {
        width: 100%;
        max-width: 320px;
    }

    .care-floating-inset {
        right: -10px;
        bottom: -15px;
    }

    .care-vertical-card {
        width: 100%;
        max-width: 320px;
    }

    /* Tailored Section Responsive at 768px (Matching Image 3 & Image 4) */
    .about-tailored-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .tailored-visual-col {
        width: 100%;
        overflow: hidden;
    }

    .tailored-main-img {
        width: calc(100% + 1.25rem);
        max-width: none;
        height: 320px;
        object-fit: cover;
        border-radius: 36px 0 0 36px;
        margin-right: -1.25rem;
        box-shadow: 0 10px 30px rgba(45, 35, 32, 0.08);
        display: block;
    }

    .tailored-content-col {
        padding-left: 0;
    }

    .tailored-heading {
        font-size: 1.85rem;
        font-weight: 600;
        line-height: 1.25;
        letter-spacing: -0.02em;
        margin-bottom: 0.85rem;
    }

    .tailored-subtext {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* Pill Tabs Row (Image 4) */
    .tailored-tabs-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 2px 2px 6px;
        margin-bottom: 1.5rem;
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tailored-tabs-row::-webkit-scrollbar {
        display: none;
    }

    .tailored-tab-btn {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.55rem 1.15rem;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        border: 1px solid rgba(45, 35, 32, 0.16);
        background: transparent;
        color: #2D2320;
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.25s ease;
    }

    .tailored-tab-btn.active {
        background: #231C1A;
        color: #FFFFFF;
        border-color: #231C1A;
    }

    .tailored-tab-btn.active .tailored-tab-icon svg {
        stroke: #FFFFFF;
    }

    .tailored-tab-icon svg {
        width: 15px;
        height: 15px;
    }

    /* Card Box (Image 4) */
    .tailored-card-box {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        background: #F8F3EC;
        border-radius: 24px;
        padding: 1.25rem;
        border: 1px solid rgba(45, 35, 32, 0.06);
        box-shadow: 0 4px 18px rgba(45, 35, 32, 0.04);
        width: 100%;
    }

    .tailored-card-img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 16px;
        margin: 0;
        flex-shrink: 0;
        align-self: auto;
    }

    .tailored-card-right {
        display: flex;
        flex-direction: column;
        gap: 1.15rem;
        width: 100%;
        padding: 0;
    }

    .tailored-card-desc {
        font-size: 0.92rem;
        line-height: 1.55;
        color: #4A3C38;
        text-align: center;
        margin: 0;
    }

    .tailored-card-divider {
        width: 100%;
        height: 1px;
        background: rgba(45, 35, 32, 0.12);
        margin: 0;
    }

    .tailored-checklist {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .tailored-check-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
        font-size: 0.88rem;
        font-weight: 500;
        color: #231C1A;
    }

    .tailored-check-icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #231C1A;
        color: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .tailored-check-icon svg {
        width: 11px;
        height: 11px;
        stroke: #FFFFFF;
    }
}

@media (max-width: 480px) {

    .about-hero-heading,
    .treatment-hero-heading {
        font-size: 1.85rem;
    }

    .about-doctors-title,
    .about-destination-title,
    .complete-care-title,
    .about-experience-title,
    .about-testimonials-title,
    .about-faq-title {
        font-size: 2rem;
    }

    .tailored-heading {
        font-size: 1.7rem;
    }

    .tailored-main-img {
        height: 300px;
    }

    .tailored-card-box {
        padding: 1.15rem;
        border-radius: 20px;
    }

    .tailored-card-img {
        height: 170px;
    }

    .about-faq-floating-badge {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 1.5rem;
    }

    .care-floating-inset {
        width: 175px;
        height: 110px;
        right: -5px;
    }

    .care-arched-main {
        height: 350px;
    }

    /* Why Doctors Section — mobile */
    .whydoc-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .whydoc-heading {
        font-size: 2rem;
    }

    .whydoc-right {
        gap: 0.85rem;
    }

    .whydoc-portrait-card--offset {
        margin-top: 2rem;
    }

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

/* 480px (Small Mobile) */
@media (max-width: 480px) {
    .whydoc-right {
        flex-direction: column;
        max-width: 320px;
        margin: 0 auto;
    }

    .whydoc-portrait-card--offset {
        margin-top: 0;
    }

    .whydoc-heading {
        font-size: 1.75rem;
    }
}