/* GSAT iOS-style quick navigation for the Nissan Patrol 2027 landing page. */
body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

/* Editorial refinement: tighter rhythm, studio cards, and a fixed iPad-safe hero canvas. */
.hero {
    height: min(960px, 100svh);
    min-height: 720px;
}

.hero-image,
.hero-shade {
    min-height: 100%;
}

.hero-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.section-pad {
    padding: clamp(64px, 7.4vw, 112px) clamp(22px, 6vw, 96px);
}

.range-index {
    margin-top: 42px;
}

.grade-story {
    min-height: 760px;
    gap: clamp(42px, 6vw, 88px);
    padding-top: clamp(72px, 8vw, 120px);
    padding-bottom: clamp(72px, 8vw, 120px);
}

.grade-story:nth-child(even) {
    background: linear-gradient(120deg, rgba(216, 180, 116, .035), transparent 46%);
}

.vehicle-stage {
    min-height: 420px;
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .035);
}

.story-gallery figure,
.gallery-track figure {
    border-radius: 16px;
}

.story-gallery img {
    height: 220px;
}

.story-kicker {
    margin-bottom: 22px;
}

.story-editorial {
    margin-top: 20px;
}

.price-display {
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid rgba(216, 180, 116, .26);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(216, 180, 116, .11), rgba(216, 180, 116, .025));
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.price-display strong {
    margin-bottom: 0;
    font-size: clamp(2.6rem, 4.6vw, 4.7rem);
}

.feature-block {
    margin-top: 27px;
}

.image-notice {
    margin-top: 22px;
}

.story-actions {
    margin-top: 22px;
}

.engineering-image {
    min-height: 560px;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(56, 42, 20, .16);
}

.gallery-track {
    margin-top: 42px;
}

.final-cta {
    min-height: 580px;
}

.footer-source-note {
    color: rgba(244, 240, 232, .55);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.patrol-ios-tabs {
    position: fixed;
    z-index: 120;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    width: min(560px, calc(100% - 28px));
    min-height: 72px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 26px;
    background: rgba(15, 16, 17, .86);
    box-shadow: 0 18px 54px rgba(0, 0, 0, .44), inset 0 1px rgba(255, 255, 255, .09);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    transform: translateX(-50%);
}

.patrol-ios-tab {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 19px;
    color: #a9adb3;
    font: 580 9px/1 var(--font-geist-mono), ui-monospace, monospace;
    letter-spacing: .015em;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.patrol-ios-tab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.patrol-ios-tab:hover,
.patrol-ios-tab:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.patrol-ios-tab:focus-visible {
    outline: 2px solid #e1bd79;
    outline-offset: -2px;
}

.patrol-ios-tab:active {
    transform: scale(.96);
}

.patrol-ios-tab.is-active {
    color: #17130d;
    background: linear-gradient(145deg, #f1d39b, #c39f63);
    box-shadow: 0 8px 22px rgba(195, 163, 109, .27), inset 0 1px rgba(255, 255, 255, .58);
}

@media (max-width: 720px) {
    body {
        padding-bottom: calc(89px + env(safe-area-inset-bottom, 0px));
    }

    .patrol-ios-tabs {
        bottom: max(7px, env(safe-area-inset-bottom, 7px));
        width: calc(100% - 14px);
        min-height: 70px;
        padding: 6px 4px;
        border-radius: 24px;
    }

    .patrol-ios-tab {
        min-height: 56px;
        gap: 4px;
        border-radius: 17px;
        font-size: 8px;
    }

    .patrol-ios-tab svg {
        width: 21px;
        height: 21px;
    }
}

@media (max-width: 360px) {
    .patrol-ios-tab {
        font-size: 7.5px;
    }
}

@media (min-width: 801px) and (max-width: 1180px) {
    .hero {
        height: clamp(760px, 100svh, 900px);
        min-height: 760px;
    }

    .hero-image {
        object-position: 56% center !important;
        transform: none;
    }

    .hero-shade {
        background:
            linear-gradient(90deg, rgba(5, 5, 4, .96) 0%, rgba(5, 5, 4, .78) 36%, rgba(5, 5, 4, .08) 78%),
            linear-gradient(180deg, rgba(5, 5, 4, .18) 0%, transparent 45%, rgba(5, 5, 4, .94) 100%);
    }

    .hero-copy {
        width: min(620px, 68vw);
        min-height: 100%;
        padding: 118px 0 185px clamp(36px, 5vw, 64px);
    }

    .hero-price {
        right: 42px;
        bottom: 132px;
    }

    .hero-specs {
        right: 42px;
        left: 42px;
    }
}

@media (max-width: 1100px) {
    .grade-story,
    .story-reverse {
        gap: 38px;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .story-content {
        max-width: none;
    }

    .vehicle-stage {
        min-height: 380px;
    }

    .engineering-image {
        min-height: 460px;
    }
}

@media (max-width: 800px) {
    .hero {
        height: clamp(820px, 100svh, 900px);
        min-height: 820px;
    }

    .hero-image {
        object-position: 54% center !important;
        transform: none;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(5, 5, 4, .18) 0%, rgba(5, 5, 4, .66) 48%, rgba(5, 5, 4, .99) 100%),
            linear-gradient(90deg, rgba(5, 5, 4, .54), transparent 78%);
    }

    .hero-copy {
        height: 100%;
        min-height: 0;
        padding: 104px 22px 250px;
    }

    .section-pad {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .range-index {
        margin-top: 32px;
    }

    .grade-story,
    .story-reverse {
        gap: 30px;
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .vehicle-stage {
        min-height: 350px;
        border-radius: 20px;
    }

    .story-gallery figure,
    .gallery-track figure {
        border-radius: 14px;
    }

    .price-display {
        margin-top: 24px;
        padding: 18px;
        border-radius: 17px;
    }

    .final-cta {
        min-height: 540px;
    }
}

@media (max-width: 620px) {
    .section-pad {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .grade-story,
    .story-reverse {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .vehicle-stage {
        min-height: 300px;
    }

    .story-gallery img {
        height: 220px;
    }

    .engineering-image {
        min-height: 360px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .patrol-ios-tab {
        transition: none;
    }
}
