/* ============================================================
   NET RENTALS — MARKETING UI
   /css/marketing/rentals-marketing-ui.css

   PURPOSE
   ------------------------------------------------------------
   Shared visual shell for every Net Rentals marketing page.

   OWNS:
   - Design tokens
   - Global reset
   - Typography foundation
   - Shared containers
   - Header
   - Desktop navigation
   - Mobile navigation
   - Shared buttons
   - Shared headings / eyebrows
   - Shared CTA shell
   - Footer
   - Responsive shell behavior

   DOES NOT OWN:
   - Page-specific hero layouts
   - Page-specific cards
   - Page-specific tables
   - Page-specific illustrations
   - Page-specific content sections
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
    /* Brand */
    --nr-primary: #0f7c55;
    --nr-primary-dark: #0b1f18;
    --nr-primary-hover: #0c6948;

    --nr-primary-tint: #e8f1ec;
    --nr-primary-tint-2: #d9ebe1;
    --nr-primary-line: #cfe3d8;

    /* Text */
    --nr-text-dark: #0f1a15;
    --nr-text-gray: #55645d;
    --nr-text-muted: #8a978f;

    /* Surfaces */
    --nr-paper: #f7f8f6;
    --nr-card: #ffffff;
    --nr-border: #e3e9e4;

    /* Radius */
    --nr-radius-sm: 12px;
    --nr-radius-md: 20px;
    --nr-radius-lg: 28px;
    --nr-radius-pill: 999px;

    /* Shadows */
    --nr-shadow-sm:
        0 1px 2px rgba(15, 31, 24, 0.06);

    --nr-shadow-md:
        0 12px 28px -10px rgba(15, 31, 24, 0.14);

    --nr-shadow-lg:
        0 24px 48px -18px rgba(15, 31, 24, 0.20);

    --nr-shadow-float:
        0 30px 60px -20px rgba(15, 31, 24, 0.25);

    /* Layout */
    --nr-container: 1120px;
    --nr-container-narrow: 760px;

    /* iOS safe areas */
    --nr-safe-top: env(safe-area-inset-top, 0px);
    --nr-safe-bottom: env(safe-area-inset-bottom, 0px);
}


/* ============================================================
   2. RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;

    min-width: 320px;

    background: var(--nr-paper);
    color: var(--nr-text-dark);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;
}

body.nr-menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ============================================================
   3. PAGE SHELL
   ============================================================ */

.nr-marketing-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: var(--nr-paper);
}

.nr-marketing-main {
    width: 100%;
    flex: 1 1 auto;
}

.nr-container {
    width: min(
        calc(100% - 48px),
        var(--nr-container)
    );

    margin-inline: auto;
}

.nr-container-narrow {
    width: min(
        calc(100% - 48px),
        var(--nr-container-narrow)
    );

    margin-inline: auto;
}


/* ============================================================
   4. SHARED TYPOGRAPHY
   ============================================================ */

.nr-eyebrow {
    display: block;

    margin: 0 0 10px;

    color: var(--nr-primary);

    font-size: 12px;
    line-height: 1.3;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nr-section-title {
    margin: 0;

    color: var(--nr-text-dark);

    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.06;
    font-weight: 700;

    letter-spacing: -0.035em;
}

.nr-section-description {
    margin: 16px 0 0;

    max-width: 680px;

    color: var(--nr-text-gray);

    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
}

.nr-page-title {
    margin: 0;

    color: var(--nr-text-dark);

    font-size: clamp(40px, 7vw, 68px);
    line-height: 1.02;
    font-weight: 680;

    letter-spacing: -0.045em;
}

.nr-page-description {
    margin: 20px 0 0;

    max-width: 720px;

    color: var(--nr-text-gray);

    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.55;
}


/* ============================================================
   5. SHARED BUTTONS
   ============================================================ */

.nr-button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 0;
    border-radius: var(--nr-radius-pill);

    padding: 11px 22px;

    cursor: pointer;

    font-size: 15px;
    line-height: 1;
    font-weight: 650;

    transition:
        background 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.nr-button:active {
    transform: scale(0.98);
}

.nr-button-primary {
    background: var(--nr-primary);
    color: #ffffff;
}

.nr-button-primary:hover {
    background: var(--nr-primary-hover);
}

.nr-button-secondary {
    background: var(--nr-card);
    color: var(--nr-text-dark);

    border: 1px solid var(--nr-border);
}

.nr-button-secondary:hover {
    border-color: var(--nr-primary-line);
    background: var(--nr-primary-tint);
}

.nr-button-dark {
    background: var(--nr-primary-dark);
    color: #ffffff;
}

.nr-button-dark:hover {
    background: #102a21;
}


/* ============================================================
   6. MARKETING HEADER
   ============================================================ */

.nr-site-header {
    position: sticky;
    top: 0;
    z-index: 10002;

    width: 100%;

    background: rgba(247, 248, 246, 0.94);

    border-bottom: 1px solid var(--nr-border);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        background 180ms ease,
        border-color 180ms ease;
}

.nr-site-header.nr-menu-active {
    background: var(--nr-card);
    border-bottom-color: transparent;
}

.nr-header-inner {
    width: 100%;

    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;

    padding:
        calc(8px + var(--nr-safe-top))
        22px
        8px;
}


/* ============================================================
   7. BRAND
   ============================================================ */

.nr-brand {
    position: relative;

    height: 42px;

    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    overflow: visible;
}

.nr-brand-logo {
    display: block;

    width: auto;
    height: 88px;

    object-fit: contain;

    transform: translateX(-55px) scale(1.65);
    transform-origin: left center;
}


/* ============================================================
   8. DESKTOP NAVIGATION
   ============================================================ */

.nr-desktop-nav {
    display: none;
    align-items: center;

    gap: 4px;

    margin-left: auto;
}

.nr-nav-link,
.nr-nav-dropdown-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 0;
    border-radius: 8px;

    padding: 8px 11px;

    background: transparent;
    color: var(--nr-text-dark);

    cursor: pointer;

    font-size: 14px;
    font-weight: 560;

    white-space: nowrap;

    transition:
        background 140ms ease,
        color 140ms ease;
}

.nr-nav-link:hover,
.nr-nav-dropdown-button:hover {
    background: var(--nr-primary-tint);
    color: var(--nr-primary-dark);
}

.nr-nav-dropdown {
    position: relative;
}

.nr-nav-chevron {
    width: 14px;
    height: 14px;

    color: var(--nr-text-gray);

    transition: transform 160ms ease;
}

.nr-nav-dropdown:hover .nr-nav-chevron,
.nr-nav-dropdown:focus-within .nr-nav-chevron {
    transform: rotate(180deg);
}


/* ============================================================
   9. DESKTOP DROPDOWN
   ============================================================ */

.nr-nav-menu {
    position: absolute;

    top: calc(100% + 8px);
    left: 50%;

    width: 260px;

    padding: 8px;

    border: 1px solid var(--nr-border);
    border-radius: 16px;

    background: var(--nr-card);

    box-shadow: var(--nr-shadow-lg);

    transform:
        translateX(-50%)
        translateY(-4px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 150ms ease,
        transform 150ms ease,
        visibility 150ms ease;
}

.nr-nav-dropdown:hover .nr-nav-menu,
.nr-nav-dropdown:focus-within .nr-nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}

.nr-nav-menu-link {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 12px;

    border-radius: 10px;

    transition: background 140ms ease;
}

.nr-nav-menu-link:hover {
    background: var(--nr-primary-tint);
}

.nr-nav-menu-title {
    color: var(--nr-text-dark);

    font-size: 14px;
    font-weight: 650;
}

.nr-nav-menu-description {
    color: var(--nr-text-gray);

    font-size: 12px;
    line-height: 1.4;
}


/* ============================================================
   10. HEADER ACCOUNT ACTIONS
   ============================================================ */

.nr-header-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    flex: 0 0 auto;
}

.nr-header-login {
    display: none;

    padding: 9px 10px;

    color: var(--nr-text-dark);

    font-size: 14px;
    font-weight: 600;
}

.nr-header-login:hover {
    color: var(--nr-primary);
}

.nr-header-signup {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 15px;

    border-radius: 8px;

    background: var(--nr-primary);
    color: #ffffff;

    font-size: 14px;
    font-weight: 650;

    transition:
        background 160ms ease,
        transform 160ms ease;
}

.nr-header-signup:hover {
    background: var(--nr-primary-hover);
}

.nr-header-signup:active {
    transform: scale(0.97);
}


/* ============================================================
   11. MOBILE MENU BUTTON
   ============================================================ */

.nr-menu-button {
    width: 32px;
    height: 36px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.nr-menu-button span {
    width: 21px;
    height: 2px;

    display: block;

    border-radius: 999px;

    background: var(--nr-text-dark);

    transform-origin: center;

    transition:
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nr-menu-button.open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.nr-menu-button.open span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}


/* ============================================================
   12. MOBILE NAVIGATION OVERLAY
   ============================================================ */

.nr-mobile-nav {
    position: fixed;

    inset: 0;

    z-index: 10001;

    display: flex;
    flex-direction: column;

    padding-top:
        calc(72px + var(--nr-safe-top));

    background: var(--nr-card);

    opacity: 0;

    transform: translateY(-100%);

    visibility: hidden;
    pointer-events: none;

    transition:
        transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 260ms ease,
        visibility 380ms ease;
}

.nr-mobile-nav.open {
    opacity: 1;

    transform: translateY(0);

    visibility: visible;
    pointer-events: auto;
}

.nr-mobile-nav-body {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    gap: 22px;

    padding:
        30px
        22px
        calc(36px + var(--nr-safe-bottom));

    overflow-y: auto;
}

.nr-mobile-nav details {
    border: 0;
}

.nr-mobile-nav summary {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 0;

    list-style: none;

    cursor: pointer;

    color: var(--nr-text-dark);

    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.15;
    font-weight: 530;

    letter-spacing: -0.03em;
}

.nr-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.nr-mobile-nav summary::after {
    display: none;
}

.nr-mobile-nav summary svg {
    width: 26px;
    height: 26px;

    flex: 0 0 auto;

    color: var(--nr-text-dark);

    transition: transform 180ms ease;
}

.nr-mobile-nav details[open] summary svg {
    transform: rotate(180deg);
}

.nr-mobile-nav-sub {
    display: flex;
    flex-direction: column;

    gap: 16px;

    padding:
        20px
        0
        0
        16px;
}

.nr-mobile-nav-sub a {
    color: var(--nr-text-gray);

    font-size: 19px;
    line-height: 1.35;
    font-weight: 520;
}

.nr-mobile-nav-sub a:hover {
    color: var(--nr-primary);
}

.nr-mobile-nav-link {
    color: var(--nr-text-dark);

    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.15;
    font-weight: 530;

    letter-spacing: -0.03em;
}

.nr-mobile-nav-divider {
    width: 100%;
    height: 1px;

    margin: 4px 0;

    background: var(--nr-border);
}

.nr-mobile-nav-account {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.nr-mobile-nav-login,
.nr-mobile-nav-signup {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    width: fit-content;

    font-size: 23px;
    font-weight: 560;

    letter-spacing: -0.02em;
}

.nr-mobile-nav-login {
    color: var(--nr-primary);
}

.nr-mobile-nav-signup {
    color: var(--nr-text-gray);
}


/* ============================================================
   13. SHARED PAGE HERO FOUNDATION

   Individual page CSS controls the actual arrangement.
   ============================================================ */

.nr-page-hero {
    width: 100%;

    padding:
        88px
        0
        80px;
}

.nr-page-hero-copy {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.nr-page-hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;
}


/* ============================================================
   14. SHARED SECTION FOUNDATION
   ============================================================ */

.nr-section {
    width: 100%;

    padding:
        88px
        0;
}

.nr-section-paper {
    background: var(--nr-paper);
}

.nr-section-card {
    background: var(--nr-card);
}

.nr-section-tint {
    background: var(--nr-primary-tint);
}

.nr-section-dark {
    background: var(--nr-primary-dark);
    color: #ffffff;
}

.nr-section-header {
    margin-bottom: 40px;
}


/* ============================================================
   15. SHARED MARKETING CTA
   ============================================================ */

.nr-marketing-cta {
    width: 100%;

    padding:
        90px
        0;

    background: var(--nr-primary-tint);
}

.nr-marketing-cta-inner {
    width: min(
        calc(100% - 48px),
        860px
    );

    margin-inline: auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.nr-marketing-cta .nr-section-description {
    margin-inline: auto;
}

.nr-marketing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 10px;

    margin-top: 28px;
}


/* ============================================================
   16. FOOTER
   ============================================================ */

.nr-site-footer {
    width: 100%;

    border-top: 1px solid var(--nr-primary-line);

    background: var(--nr-primary-tint);
}

.nr-footer-inner {
    width: min(
        calc(100% - 40px),
        980px
    );

    margin-inline: auto;

    padding:
        34px
        0
        calc(54px + var(--nr-safe-bottom));

    color: var(--nr-text-gray);

    font-size: 12px;
}


/* ============================================================
   17. FOOTER NAV
   ============================================================ */

.nr-footer-nav {
    width: 100%;

    border-top: 1px solid var(--nr-primary-line);
}

.nr-footer-group {
    border-bottom: 1px solid var(--nr-primary-line);
}

.nr-footer-group summary {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 0;

    list-style: none;

    cursor: pointer;

    color: var(--nr-text-dark);

    font-size: 14px;
    font-weight: 600;
}

.nr-footer-group summary::-webkit-details-marker {
    display: none;
}

.nr-footer-group summary::after {
    content: "";

    width: 7px;
    height: 7px;

    margin-right: 4px;

    border-right: 1.5px solid var(--nr-text-dark);
    border-bottom: 1.5px solid var(--nr-text-dark);

    transform: rotate(45deg);

    transition: transform 180ms ease;
}

.nr-footer-group[open] summary::after {
    transform: rotate(-135deg);
}

.nr-footer-links {
    display: flex;
    flex-direction: column;

    gap: 9px;

    padding:
        2px
        0
        18px;
}

.nr-footer-links a {
    width: fit-content;

    color: var(--nr-text-gray);

    font-size: 13px;
    line-height: 1.5;
}

.nr-footer-links a:hover {
    color: var(--nr-text-dark);
    text-decoration: underline;
}


/* ============================================================
   18. FOOTER BOTTOM
   ============================================================ */

.nr-footer-bottom {
    padding-top: 24px;

    line-height: 1.6;
}

.nr-footer-description {
    margin: 0 0 16px;

    color: var(--nr-text-gray);

    font-size: 13px;
}

.nr-footer-description a {
    color: var(--nr-primary);

    text-decoration: underline;
}

.nr-footer-country {
    margin: 0 0 16px;

    color: var(--nr-text-gray);

    font-size: 13px;
}

.nr-footer-meta {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.nr-footer-copyright {
    margin: 0;

    color: var(--nr-text-gray);
}

.nr-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px;
}

.nr-footer-legal a {
    color: var(--nr-text-gray);
}

.nr-footer-legal a:hover {
    color: var(--nr-text-dark);

    text-decoration: underline;
}

.nr-footer-legal-separator {
    color: var(--nr-text-muted);
}


/* ============================================================
   19. SHARED FOCUS STATES
   ============================================================ */

.nr-button:focus-visible,
.nr-nav-link:focus-visible,
.nr-nav-dropdown-button:focus-visible,
.nr-header-login:focus-visible,
.nr-header-signup:focus-visible,
.nr-menu-button:focus-visible,
.nr-mobile-nav a:focus-visible,
.nr-footer-links a:focus-visible,
.nr-footer-legal a:focus-visible {
    outline: 3px solid rgba(15, 124, 85, 0.22);
    outline-offset: 3px;
}


/* ============================================================
   20. DESKTOP
   ============================================================ */

@media (min-width: 900px) {

    .nr-header-inner {
        min-height: 72px;

        padding-left: 32px;
        padding-right: 32px;
    }

    .nr-desktop-nav {
        display: flex;
    }

    .nr-header-login {
        display: inline-flex;
    }

    .nr-menu-button {
        display: none;
    }

    .nr-mobile-nav {
        display: none;
    }


    /* Footer columns */

    .nr-footer-nav {
        display: grid;

        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        gap: 28px;

        border-top: 0;
    }

    .nr-footer-group {
        border-bottom: 0;
    }

    .nr-footer-group summary {
        padding:
            0
            0
            10px;

        cursor: default;
        pointer-events: none;
    }

    .nr-footer-group summary::after {
        display: none;
    }

    .nr-footer-links,
    .nr-footer-group:not([open]) .nr-footer-links {
        display: flex !important;
    }

    .nr-footer-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 24px;
    }
}


/* ============================================================
   21. MOBILE
   ============================================================ */

@media (max-width: 899px) {

    .nr-container,
    .nr-container-narrow {
        width: min(
            calc(100% - 40px),
            var(--nr-container)
        );
    }

    .nr-page-hero {
        padding:
            64px
            0
            60px;
    }

    .nr-section {
        padding:
            68px
            0;
    }

    .nr-marketing-cta {
        padding:
            72px
            0;
    }

    .nr-marketing-cta-inner {
        width: calc(100% - 40px);
    }
}


/* ============================================================
   22. SMALL MOBILE
   ============================================================ */

@media (max-width: 520px) {

    .nr-header-inner {
        min-height: 64px;

        padding-left: 18px;
        padding-right: 18px;
    }

    .nr-brand {
        height: 38px;
    }

    .nr-brand-logo {
        height: 82px;

        transform:
            translateX(-52px)
            scale(1.55);
    }

    .nr-header-signup {
        display: none;
    }

    .nr-page-hero-actions,
    .nr-marketing-cta-actions {
        width: 100%;
    }

    .nr-page-hero-actions .nr-button,
    .nr-marketing-cta-actions .nr-button {
        width: 100%;
    }
}


/* ============================================================
   23. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}