/* ==========================================================================
   AL ROBBAN TRADE — Responsive Styles
   Tablet & Mobile breakpoints
   ========================================================================== */

/* ---------- Tablet (max 1024px) ---------- */
@media (max-width: 1024px) {
    :root {
        --nav-h: 70px;
    }

    .section { padding: 70px 0; }

    .intro-grid {
        gap: 40px;
    }

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

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

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

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

    .thinker-card {
        grid-template-columns: 180px 1fr;
        gap: 28px;
        padding: 28px;
    }

    .thinker-photo {
        width: 180px;
        height: 180px;
    }
}

/* ---------- Mobile (max 768px) ---------- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 18px;
    }

    .section {
        padding: 60px 0;
    }

    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-logo-text strong {
        font-size: 0.95rem;
    }

    .nav-logo-text span {
        font-size: 0.58rem;
    }

    .nav-logo-mark {
        width: auto;
        height: 38px;
        max-width: 160px;
    }

    /* On very narrow screens, hide the brand text since logo is wide enough */
    .nav-logo {
        gap: 10px;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--c-white);
        flex-direction: column;
        padding: 24px 18px 36px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--c-gray-100);
        transform: translateY(-150%);
        transition: transform var(--transition);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: 16px 12px;
        font-size: 1rem;
        border-bottom: 1px solid var(--c-gray-100);
        text-align: left;
    }

    .nav-link::after {
        display: none;
    }

    /* Intro Overlay */
    .intro-content h1 {
        font-size: 2.2rem;
    }

    .intro-content p {
        font-size: 0.98rem;
        padding: 0 12px;
    }

    .intro-controls {
        bottom: 28px;
        gap: 10px;
    }

    .intro-btn {
        padding: 10px 20px;
        font-size: 0.78rem;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        padding: calc(var(--nav-h) + 60px) 0 60px;
    }

    .hero.hero-photo {
        min-height: 75vh;
    }

    .hero-music-toggle {
        right: 18px;
        bottom: 18px;
        width: 42px;
        height: 42px;
    }

    .hero-music-icon {
        width: 20px;
        height: 20px;
    }

    .hero-banner-title {
        padding: 16px 28px;
        letter-spacing: 0.02em;
    }

    .hero-banner-subtitle {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-tagline {
        font-size: 1.02rem;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
        padding: 6px 16px;
    }

    /* Page Header */
    .page-header {
        padding: calc(var(--nav-h) + 60px) 0 60px;
    }

    .page-header h1 {
        font-size: 1.9rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Brent Widget */
    .brent-widget {
        padding: 22px;
    }

    .brent-price {
        font-size: 2rem;
    }

    .brent-meta-row {
        gap: 16px;
    }

    /* Intro Block */
    .intro-block {
        padding: 60px 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .intro-image-wrap {
        aspect-ratio: 16 / 9;
    }

    /* Highlight Strip */
    .highlight-strip {
        padding: 50px 0;
    }

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

    .highlight-number {
        font-size: 2rem;
    }

    .highlight-label {
        font-size: 0.75rem;
    }

    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-card {
        padding: 28px 22px;
    }

    /* Markets */
    .markets-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 50px;
    }

    .services-section {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Philosophy */
    .thinker-card {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px;
        text-align: center;
    }

    .thinker-photo {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .thinker-info .role {
        text-align: center;
    }

    .thinker-info p {
        text-align: left;
    }

    .philosophy-closing {
        padding: 40px 26px;
    }

    .philosophy-values {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Insights */
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .subscribe-form {
        padding: 26px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-info-card {
        padding: 26px;
    }

    /* Contact: photo + map - smaller fixed heights on mobile */
    .contact-visual-stack {
        grid-template-rows: 200px 300px;
        gap: 14px;
    }

    .office-photo {
        height: 200px;
    }

    .map-embed {
        height: 300px;
    }

    /* Map card */
    .map-card-caption {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 36px;
    }

    .footer {
        padding-top: 50px;
    }

    /* Section title */
    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 0.98rem;
        margin-bottom: 36px;
    }
}

/* ---------- Small mobile (max 480px) ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-banner-title {
        padding: 12px 20px;
        letter-spacing: 0.01em;
    }

    .hero-banner-subtitle {
        padding: 8px 14px;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 0.88rem;
    }

    .brent-widget {
        padding: 20px 18px;
    }

    .brent-price {
        font-size: 1.8rem;
    }

    .brent-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

    .intro-text h2 {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 0 16px;
    }
}

/* ---------- 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;
    }
}
