/**
 * 3DM Express - Global Styles
 *
 * Color Palette:
 * Primary:    #1B2A4A (deep navy)
 * Accent:     #FF6B00 (orange)
 * Dark:       #0F1B33
 * Text:       #2D3748
 * Text Light: #718096
 * Light BG:   #F8F9FA
 * White:      #FFFFFF
 * Border:     #E2E8F0
 */

/* ── Reset & Base ──────────────────────────────────── */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2D3748;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #1B2A4A;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: #4A5568;
}

a {
    color: #FF6B00;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #E05E00;
}

a:focus-visible {
    outline: 2px solid #FF6B00;
    outline-offset: 2px;
    border-radius: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    padding-left: 1.5rem;
}

/* ── Layout ────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: 800px;
}

.container--wide {
    max-width: 1400px;
}

/* ── Section Spacing ───────────────────────────────── */

.section {
    padding: 5rem 0;
}

.section--sm {
    padding: 3rem 0;
}

.section--lg {
    padding: 7rem 0;
}

.section--light {
    background-color: #F8F9FA;
}

.section--dark {
    background-color: #1B2A4A;
    color: #FFFFFF;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: #FFFFFF;
}

.section--dark p {
    color: #CBD5E0;
}

/* ── Legal Hero (all legal pages) ──────────────────── */

.legal-hero {
    background: #1B2A4A url('../images/highway-aerial.jpg') no-repeat center center / cover;
    padding: 6rem 0 3.5rem;
    text-align: center;
    position: relative;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 27, 51, 0.92) 0%, rgba(27, 42, 74, 0.88) 100%);
    z-index: 0;
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-hero__title {
    color: #FFFFFF !important;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.legal-hero__subtitle {
    color: #CBD5E0;
    font-size: 1.0625rem;
}

.legal-hero__updated {
    color: #A0AEC0;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ── Section Headers ───────────────────────────────── */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header__label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FF6B00;
    margin-bottom: 0.75rem;
}

.section-header__title {
    margin-bottom: 1rem;
}

.section-header__desc {
    font-size: 1.0625rem;
    color: #718096;
}

/* ── Buttons ───────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid #FF6B00;
    outline-offset: 2px;
}

.btn--primary {
    background-color: #FF6B00;
    color: #FFFFFF;
    border-color: #FF6B00;
}

.btn--primary:hover {
    background-color: #E05E00;
    border-color: #E05E00;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn--secondary {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.btn--secondary:hover {
    background-color: #FFFFFF;
    color: #1B2A4A;
    transform: translateY(-1px);
}

.btn--outline {
    background-color: transparent;
    color: #1B2A4A;
    border-color: #1B2A4A;
}

.btn--outline:hover {
    background-color: #1B2A4A;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn--white {
    background-color: #FFFFFF;
    color: #1B2A4A;
    border-color: #FFFFFF;
}

.btn--white:hover {
    background-color: #F8F9FA;
    color: #FF6B00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ── Page Hero (for inner pages) ───────────────────── */

.page-hero {
    background-color: #1B2A4A;
    padding: 6rem 0 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 27, 51, 0.9) 0%, rgba(27, 42, 74, 0.85) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .page-title,
.page-hero__title {
    color: #FFFFFF;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-hero__subtitle {
    color: #CBD5E0;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero__breadcrumb {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #A0AEC0;
}

.page-hero__breadcrumb a {
    color: #CBD5E0;
}

.page-hero__breadcrumb a:hover {
    color: #FF6B00;
}

.page-hero__breadcrumb span {
    margin: 0 0.5rem;
}

/* ── Cards ─────────────────────────────────────────── */

.card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #FFF3E8 0%, #FFE4CC 100%);
    color: #FF6B00;
    margin-bottom: 1.25rem;
}

.card__title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.card__text {
    font-size: 0.9375rem;
    color: #718096;
    line-height: 1.7;
}

/* ── CTA Section ───────────────────────────────────── */

.cta-section {
    background: linear-gradient(135deg, #1B2A4A 0%, #0F1B33 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.08);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.05);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section__title {
    color: #FFFFFF;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-section__text {
    color: #CBD5E0;
    font-size: 1.0625rem;
    max-width: 550px;
    margin: 0 auto 2rem;
}

.cta-section__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Scroll Reveal ─────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Utilities ─────────────────────────────────────── */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    padding: 1rem;
    background: #FF6B00;
    color: #FFFFFF;
    font-weight: 600;
    clip: auto;
    width: auto;
    height: auto;
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

    .section--lg {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .page-hero {
        padding: 5rem 0 2.5rem;
    }
}

/* ── Print Styles ──────────────────────────────────── */

@media print {
    .site-header,
    .site-footer,
    .cookie-consent,
    .cta-section,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}
