/* ==========================================================================
   GCV SMART DEVICES PAGE - USING GCV DESIGN SYSTEM TOKENS
   ========================================================================== */
.gcv-smart-devices-page {
    /* Fallbacks mapped exactly to your global design tokens */
    --gcv-smart-devices-primary:      var(--gcv-primary, #8634A0);
    --gcv-smart-devices-primary-dark: var(--gcv-primary-hover, #6C2882);
    --gcv-smart-devices-accent:       var(--gcv-surface-tint, #F4ECF7);
    --gcv-smart-devices-light:        var(--gcv-n100, #F3F4F8);
    --gcv-smart-devices-off-white:    var(--gcv-surface-tint, #F4ECF7);
    --gcv-smart-devices-white:        var(--gcv-n50, #FAFAFC);
    --gcv-smart-devices-dark-text:    var(--gcv-n900, #12131A);
    --gcv-smart-devices-muted-text:   var(--gcv-n500, #6B7280);
    --gcv-smart-devices-border:       var(--gcv-accent-border, #E8D4F0);
    --gcv-smart-devices-radius:       var(--gcv-radius-md, 8px);
    
    font-family: var(--gcv-font, 'Roboto', sans-serif);
    color: var(--gcv-smart-devices-dark-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-bottom: 0 !important;
}

/* Fix for the white space above the footer */
.gcv-smart-devices-page + footer,
.gcv-smart-devices-page + .footer,
main.gcv-smart-devices-page + footer,
body:has(.gcv-smart-devices-page) footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.gcv-smart-devices-page > section,
.gcv-smart-devices-page > .album {
    padding-top: clamp(4rem, 8vw, 7rem) !important;
    padding-bottom: clamp(4rem, 8vw, 7rem) !important;
}

.gcv-smart-devices-page .container {
    padding-right: clamp(1rem, 3vw, 1.5rem);
    padding-left: clamp(1rem, 3vw, 1.5rem);
}

.gcv-smart-devices-page .container.py-5,
.gcv-smart-devices-page .container.py-lg-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.gcv-smart-devices-page h1,
.gcv-smart-devices-page h2,
.gcv-smart-devices-page h3,
.gcv-smart-devices-page h4,
.gcv-smart-devices-page h5,
.gcv-smart-devices-page h6 {
    font-size: 1.5rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.gcv-smart-devices-page .display-2,
.gcv-smart-devices-page .display-3,
.gcv-smart-devices-page .display-4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gcv-smart-devices-page p,
.gcv-smart-devices-page .accordion-body {
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    overflow-wrap: anywhere;
}

.gcv-smart-devices-page .lead {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.65;
}

.gcv-smart-devices-page .text-muted {
    color: var(--gcv-smart-devices-muted-text) !important;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.gcv-smart-devices-page .gcv-smart-devices-hero {
    background-color: var(--gcv-smart-devices-light);
}

.gcv-smart-devices-page .gcv-smart-devices-hero-pre-header {
    color: var(--gcv-smart-devices-primary);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
}

.gcv-smart-devices-page .gcv-smart-devices-hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
}

/* Hero Image */
.gcv-smart-devices-page .gcv-smart-devices-hero-image-wrapper {
    padding: 1rem;
}

.gcv-smart-devices-page .gcv-smart-devices-hero-image {
    border-radius: var(--gcv-radius-lg, 16px);
    box-shadow: 0 20px 40px rgba(134, 52, 160, 0.15);
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

/* ==========================================================================
   2. CORE FOCUS AREAS (CARDS)
   ========================================================================== */
.gcv-smart-devices-page .album .text-center.mb-5 {
    margin-bottom: clamp(2rem, 5vw, 3.5rem) !important;
}

.gcv-smart-devices-page .album .text-center .display-4 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.gcv-smart-devices-page .gcv-smart-devices-focus-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gcv-smart-devices-border);
    border-radius: var(--gcv-smart-devices-radius);
    background: var(--gcv-smart-devices-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.gcv-smart-devices-page .gcv-smart-devices-focus-card .card-body {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.gcv-smart-devices-page .gcv-smart-devices-focus-card .card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gcv-smart-devices-dark-text);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.gcv-smart-devices-page .gcv-smart-devices-focus-card .card-text {
    margin-bottom: 0;
    color: var(--gcv-smart-devices-muted-text);
    line-height: 1.65;
}

/* Background Icons for Cards */
.gcv-smart-devices-page .gcv-smart-devices-focus-card::before {
    position: absolute;
    top: -20px;
    right: -30px;
    color: var(--gcv-smart-devices-primary);
    font-family: 'bootstrap-icons';
    font-size: 150px;
    font-weight: 900;
    opacity: 0.05;
    transform: rotate(-20deg);
}

.gcv-smart-devices-page .gcv-smart-devices-focus-card-robot::before { content: '\F55D'; }
.gcv-smart-devices-page .gcv-smart-devices-focus-card-city::before { content: '\F1D6'; }
.gcv-smart-devices-page .gcv-smart-devices-focus-card-health::before { content: '\F419'; }

/* ==========================================================================
   3. WEEWA SHOWCASE SECTION
   ========================================================================== */
.gcv-smart-devices-page .gcv-smart-devices-showcase {
    background-color: var(--gcv-smart-devices-off-white);
}

.gcv-smart-devices-page .gcv-smart-devices-showcase .text-center.mb-5 {
    margin-bottom: clamp(2rem, 5vw, 3.5rem) !important;
}

.gcv-smart-devices-page .gcv-smart-devices-showcase .text-center .display-4 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.gcv-smart-devices-page .gcv-smart-devices-showcase-container {
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--gcv-radius-lg, 16px);
    background-color: var(--gcv-smart-devices-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--gcv-smart-devices-border);
}

/* Tabs */
.gcv-smart-devices-page .gcv-weewa-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--gcv-smart-devices-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem !important;
}

.gcv-smart-devices-page .gcv-weewa-tabs .nav-link {
    padding: 0.6rem 1.25rem;
    border-radius: var(--gcv-radius-full, 9999px);
    color: var(--gcv-smart-devices-muted-text);
    font-weight: 500;
    font-size: 0.95rem;
    background: transparent;
    border: 1px solid transparent;
}

/* Tab Hover */
.gcv-smart-devices-page .gcv-weewa-tabs .nav-link:hover {
    background-color: var(--gcv-smart-devices-accent);
    color: var(--gcv-smart-devices-primary-dark);
    border-color: var(--gcv-smart-devices-accent);
}

.gcv-smart-devices-page .gcv-weewa-tabs .nav-link.active {
    background-color: var(--gcv-smart-devices-white);
    color: var(--gcv-smart-devices-primary);
    border-color: var(--gcv-smart-devices-border);
    box-shadow: 0 4px 10px rgba(134, 52, 160, 0.08);
}

/* Tab Content Typography */
.gcv-smart-devices-page .gcv-weewa-tab-content .gcv-feature-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gcv-smart-devices-dark-text);
}

.gcv-smart-devices-page .gcv-weewa-tab-content p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Device Mockup */
.gcv-smart-devices-page .gcv-smart-devices-mockup-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.gcv-smart-devices-page .gcv-smart-devices-device-mockup {
    aspect-ratio: 4 / 5;
    padding: 12px;
    border-radius: 32px;
    background: var(--gcv-n800, #1F2937);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.gcv-smart-devices-page .gcv-smart-devices-device-screen {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background-color: var(--gcv-n900, #12131A);
}

.gcv-smart-devices-page .gcv-screen-icon {
    font-size: 4rem;
    color: var(--gcv-smart-devices-primary);
}

.gcv-smart-devices-page .gcv-screen-label {
    color: var(--gcv-smart-devices-white);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

/* ==========================================================================
   4. SUPPORT & RESOURCES (ACCORDION)
   ========================================================================== */
.gcv-smart-devices-page .gcv-smart-devices-off-white {
    background-color: var(--gcv-smart-devices-off-white);
}

.gcv-smart-devices-page .gcv-smart-devices-off-white .text-center.mb-5 {
    margin-bottom: clamp(2rem, 5vw, 3.5rem) !important;
}

.gcv-smart-devices-page .gcv-smart-devices-off-white .text-center .display-4 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

/* Minimalist Bordered Accordion */
.gcv-smart-devices-page .gcv-minimal-accordion .accordion-item {
    background-color: var(--gcv-smart-devices-white);
    border: 1px solid var(--gcv-smart-devices-border);
    border-radius: var(--gcv-smart-devices-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.gcv-smart-devices-page .gcv-minimal-accordion .accordion-button {
    background-color: transparent;
    color: var(--gcv-smart-devices-dark-text);
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.gcv-smart-devices-page .gcv-minimal-accordion .accordion-button:not(.collapsed) {
    color: var(--gcv-smart-devices-primary);
    background-color: transparent;
}

/* Simple + / - Icons */
.gcv-smart-devices-page .gcv-minimal-accordion .accordion-button::after {
    width: auto;
    height: auto;
    flex-shrink: 0;
    margin-left: auto;
    background: none !important;
    content: "+";
    color: var(--gcv-smart-devices-primary);
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}

.gcv-smart-devices-page .gcv-minimal-accordion .accordion-button:not(.collapsed)::after {
    content: "−";
}

/* Body Content */
.gcv-smart-devices-page .gcv-minimal-accordion .accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--gcv-smart-devices-muted-text);
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    line-height: 1.7;
}

/* ==========================================================================
   5. CALL TO ACTION (CTA)
   ========================================================================== */
.gcv-smart-devices-page .gcv-smart-devices-cta {
    background-color: var(--gcv-smart-devices-primary-dark);
    color: var(--gcv-smart-devices-white);
    padding-top: clamp(4rem, 8vw, 6rem) !important;
    padding-bottom: clamp(4rem, 8vw, 6rem) !important;
    margin-bottom: 0 !important;
}

.gcv-smart-devices-page .gcv-smart-devices-cta .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.gcv-smart-devices-page .gcv-smart-devices-cta h2 {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    color: var(--gcv-smart-devices-white);
    margin-bottom: 1rem;
}

.gcv-smart-devices-page .gcv-smart-devices-cta p {
    color: rgba(250, 250, 252, 0.9);
    margin-bottom: 1.75rem;
}

.gcv-smart-devices-page .gcv-smart-devices-cta-button {
    padding: 0.85rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--gcv-smart-devices-radius);
    background-color: var(--gcv-smart-devices-white);
    color: var(--gcv-smart-devices-primary);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* CTA Button Hover - Solid Highlight Effect */
.gcv-smart-devices-page .gcv-smart-devices-cta-button:hover {
    background-color: var(--gcv-smart-devices-primary);
    color: var(--gcv-smart-devices-white);
    border-color: var(--gcv-smart-devices-white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   6. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */

/* --- Desktop Large & Ultra Wide --- */
@media (min-width: 1400px) {
    .gcv-smart-devices-page .container {
        max-width: 1240px;
    }
    .gcv-smart-devices-page .gcv-smart-devices-hero-title {
        font-size: 4rem;
    }
    .gcv-smart-devices-page .gcv-smart-devices-showcase-container {
        padding: 4rem;
    }
    .gcv-smart-devices-page .gcv-smart-devices-mockup-wrapper {
        max-width: 360px;
    }
}

@media (min-width: 1800px) {
    .gcv-smart-devices-page .container {
        max-width: 1320px;
    }
}

/* --- Desktop Standard --- */
@media (min-width: 992px) {
    .gcv-smart-devices-page .gcv-smart-devices-mockup-wrapper {
        margin-right: 0;
        margin-left: auto;
    }
}

/* --- Tablet --- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gcv-smart-devices-page .gcv-smart-devices-hero-content {
        max-width: 760px;
        margin-right: auto;
        margin-left: auto;
    }
    .gcv-smart-devices-page .gcv-smart-devices-hero .lead {
        max-width: 600px !important;
        margin-right: auto;
        margin-left: auto;
    }
    .gcv-smart-devices-page .gcv-smart-devices-mockup-wrapper {
        max-width: 340px;
        margin-top: 3rem;
    }
}

/* --- Mobile --- */
@media (max-width: 767.98px) {
    .gcv-smart-devices-page .gcv-smart-devices-hero.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
    }
    .gcv-smart-devices-page .gcv-smart-devices-hero .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    .gcv-smart-devices-page .gcv-smart-devices-hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    .gcv-smart-devices-page .gcv-smart-devices-hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
    }
    .gcv-smart-devices-page .gcv-smart-devices-hero .lead {
        max-width: 100% !important;
        margin-right: auto;
        margin-left: auto;
        line-height: 1.55;
    }

    /* Mobile Tabs */
    .gcv-smart-devices-page .gcv-weewa-tabs {
        justify-content: center;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem !important;
    }
    .gcv-smart-devices-page .gcv-weewa-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .gcv-smart-devices-page .gcv-smart-devices-showcase-container {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .gcv-smart-devices-page .gcv-smart-devices-mockup-wrapper {
        max-width: 260px;
        margin-top: 2rem;
    }

    .gcv-smart-devices-page .gcv-minimal-accordion .accordion-button {
        padding: 1.15rem 1.25rem;
        font-size: 1.05rem;
    }
    .gcv-smart-devices-page .gcv-minimal-accordion .accordion-body {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .gcv-smart-devices-page .gcv-smart-devices-focus-card .card-body {
        padding: 1.5rem;
    }
    .gcv-smart-devices-page .gcv-smart-devices-cta-button {
        width: 100%;
        max-width: 280px;
    }
}

/* --- Small Mobile --- */
@media (max-width: 575.98px) {
    .gcv-smart-devices-page .gcv-smart-devices-hero h1 {
        font-size: clamp(1.6rem, 7.5vw, 2rem);
    }
    .gcv-smart-devices-page .gcv-smart-devices-hero-pre-header {
        font-size: 0.7rem;
    }
    .gcv-smart-devices-page .gcv-smart-devices-mockup-wrapper {
        max-width: 220px;
    }
}