/* ===================================
   OILFIELD SERVICES SUMMIT — RESPONSIVE
   Mobile-first responsive styles
   =================================== */

/* === Large Tablets & Small Desktops (≤1199px) === */
@media (max-width: 1199px) {
    .nav-toggle {
        display: block;
        z-index: 101;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--spacing-lg) var(--spacing-lg);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right var(--transition-slow);
        overflow-y: auto;
        z-index: 100;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--spacing-sm);
        font-size: 1rem;
    }
    
    .nav-link.active::after {
        left: 0;
        transform: none;
    }
}

/* === Tablet (768px - 1023px) === */
@media (max-width: 1023px) {
    :root {
        --section-padding: var(--spacing-2xl);
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .hero-subhead {
        font-size: 1.125rem;
    }
    
    .agenda-item {
        grid-template-columns: 120px 1fr;
        gap: var(--spacing-md);
    }
    
    .pillars-grid,
    .promises-grid,
    .value-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .speakers-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* === Mobile (≤767px) === */
@media (max-width: 767px) {
    :root {
        --section-padding: var(--spacing-xl);
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }
    
    /* Header & Navigation */
    .header-container {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .logo-img {
        height: 38px;
        max-width: 180px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .logo-edition {
        font-size: 0.625rem;
    }
    
    .footer-logo {
        height: 36px;
        max-width: 180px;
    }
    
    .nav-list {
        width: 280px;
        padding: 70px var(--spacing-md) var(--spacing-md);
    }
    
    /* Trust Bar */
    .trust-container {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .trust-item {
        font-size: 0.8125rem;
    }
    
    .trust-number {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero {
        min-height: 70vh;
        padding: 80px 0;
        background-image: 
            linear-gradient(
                to bottom,
                rgba(0, 45, 114, 0.96),
                rgba(0, 45, 114, 0.88)
            ),
            url('../images/heroes/CNS_HAL125545_v2.jpg');
        background-position: center center;
        background-attachment: scroll;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subhead {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .hero-cta-group .btn {
        width: 100%;
    }
    
    .hero-microcopy {
        font-size: 0.8125rem;
        margin-top: var(--spacing-md);
    }
    
    /* Page Hero */
    .page-hero {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .page-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .page-intro {
        font-size: 1rem;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .section-intro {
        font-size: 1rem;
    }
    
    /* Execution Gap Section - Mobile */
    .execution-gap {
        padding: 60px 0;
    }
    
    .execution-gap .section-title {
        font-size: 28px;
    }
    
    .gap-divider {
        width: 60%;
    }
    
    .gap-focus, .gap-outcome {
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    
    .gap-focus:hover, .gap-outcome:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    }
    
    /* Grid Layouts - Stack on Mobile */
    .gap-grid,
    .pillars-grid,
    .testimonials-grid,
    .promises-grid,
    .value-grid,
    .attendees-grid,
    .speakers-grid,
    .tickets-grid,
    .highlights-grid,
    .hours-grid,
    .categories-list,
    .travel-grid,
    .hotels-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Agenda */
    .agenda-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        padding: var(--spacing-md) 0;
    }
    
    .agenda-item .time {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .session h3 {
        font-size: 1.125rem;
    }
    
    .parallel-tracks {
        gap: var(--spacing-xs);
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-cta {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Cards */
    .pillar-card,
    .promise-card,
    .testimonial-card,
    .value-card,
    .gap-focus,
    .gap-outcome,
    .attendee-category,
    .speaker-card,
    .tier-card,
    .ticket-card,
    .highlight-card,
    .hours-card,
    .category-group,
    .hotel-card,
    .travel-card,
    .contact-card {
        padding: var(--spacing-md);
    }
    
    .speaker-image {
        height: 240px;
    }
    
    /* Feature Cards */
    .feature-card,
    .briefing-room-box {
        padding: var(--spacing-lg);
    }
    
    .feature-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .feature-description {
        font-size: 1rem;
    }
    
    .feature-cta-group {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .feature-cta-group .btn {
        width: 100%;
    }
    
    /* Tickets */
    .ticket-price {
        margin-bottom: var(--spacing-md);
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    /* Sponsor Tiers */
    .tier-price {
        font-size: 1.75rem;
    }
    
    /* Forms */
    .contact-form,
    .checkout-form {
        padding: var(--spacing-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Modal */
    .modal {
        padding: var(--spacing-sm);
    }
    
    .modal-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm) auto;
    }
    
    .modal-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: var(--spacing-md);
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.75rem;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    /* Discount Table */
    .discount-row {
        grid-template-columns: 1fr;
    }
    
    .discount-col {
        padding: var(--spacing-sm);
    }
    
    .discount-col:first-child {
        border-bottom: 1px solid var(--medium-gray);
    }
    
    /* Typography Adjustments */
    .day-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .venue-name {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .venue-address,
    .venue-dates {
        font-size: 1rem;
    }
    
    .cta-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

/* === Small Mobile (≤480px) === */
@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .hero-subhead {
        font-size: 0.9375rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .price-amount {
        font-size: 1.75rem;
    }
    
    .tier-price {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: var(--spacing-md);
    }
}

/* === Print Styles === */
@media print {
    .header,
    .trust-bar,
    .nav-main,
    .hero-cta-group,
    .cta-buttons,
    .feature-cta-group,
    .ticket-buy-btn,
    .btn,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* === High Contrast Mode === */
@media (prefers-contrast: high) {
    :root {
        --navy-blue: #000080;
        --gold: #B8860B;
        --deep-red: #800000;
        --charcoal-gray: #000000;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .nav-link,
    a {
        text-decoration: underline;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === Dark Mode (Optional) === */
@media (prefers-color-scheme: dark) {
    /* Note: Dark mode is optional for this summit website
       Uncomment and customize if needed */
    
    /*
    :root {
        --color-bg: #1a1a1a;
        --color-bg-alt: #2a2a2a;
        --color-text: #e0e0e0;
        --color-text-light: #b0b0b0;
    }
    
    body {
        background-color: var(--color-bg);
        color: var(--color-text);
    }
    
    .header {
        background: #2a2a2a;
        box-shadow: 0 2px 8px rgba(255,255,255,0.1);
    }
    
    .card {
        background: #2a2a2a;
    }
    */
}

/* === Landscape Orientation (Mobile) === */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .nav-list {
        padding-top: 60px;
    }
}

/* === Large Screens (≥1440px) === */
@media (min-width: 1440px) {
    :root {
        --container-width: 1320px;
    }
    
    .hero-headline {
        font-size: 4.5rem;
    }
    
    .hero-subhead {
        font-size: 1.375rem;
    }
}

/* === Extra Large Screens (≥1920px) === */
@media (min-width: 1920px) {
    :root {
        --container-width: 1400px;
        --fs-body: 1.125rem;
    }
    
    .hero {
        min-height: 90vh;
    }
}
