/* ==========================================================================
   Celestial Import - CSS Styling
   Aesthetics: Premium, Modern, Trust-focused, Enterprise-grade
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Color Palette (Logo Matched) */
    --color-primary: #1c6294;       /* Steel Blue de CELESTIAL */
    --color-primary-light: #3a86c8; /* Azul claro de Celestial */
    --color-secondary: #3f3f3f;     /* Gris carbón de IMPORT/Corona */
    --color-secondary-light: #525252;
    --color-success: #10b981;       /* Esmeralda */
    --color-warning: #f59e0b;       /* Ámbar */
    --color-danger: #ef4444;        /* Rojo */

    /* Dark mode neutral palette (Hero, Footer) */
    --color-dark-bg: #090d16;       /* Fondo oscuro */
    --color-dark-surface: #0f172a;  /* Gris pizarra oscuro */
    --color-dark-border: #1e293b;

    /* Light mode neutral palette (Header, Body, Sections) */
    --color-light-bg: #f8fafc;
    --color-light-surface: #ffffff;
    --color-light-border: #e2e8f0;

    /* Text Colors */
    --text-dark: #1e293b;           /* Slate 800 */
    --text-muted: #64748b;          /* Cool grey */
    --text-light: #ffffff;
    --text-light-muted: #cbd5e1;    /* Muted grey */

    /* Layout & Utilities */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Brand tints (derived from --color-primary #1c6294) */
    --tint-primary-08: rgba(28, 98, 148, 0.08);
    --tint-primary-12: rgba(28, 98, 148, 0.12);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), #2d7fb9);
    --gradient-dark: linear-gradient(180deg, #090d16 0%, #0f172a 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    /* Keep anchor targets clear of the fixed header */
    scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* Visible keyboard focus that works on light and dark surfaces */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 576px) {
    .section-padding {
        padding: 72px 0;
    }
}

.bg-light {
    background-color: #f1f5f9;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2-cols {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

.align-center {
    align-items: center;
}

.gap-large {
    gap: 64px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #7db9e8, #3a86c8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Badges (used on the dark hero — must stay readable on dark) */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #d9ecfb;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 420px) {
    .badge {
        font-size: 0.78rem;
        padding: 7px 12px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    box-shadow: 0 4px 14px rgba(28, 98, 148, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 98, 148, 0.5);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(63, 63, 63, 0.25);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.btn-outline:hover {
    border-color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-left: 10px;
    transition: var(--transition-smooth);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Glassmorphism Styling */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw + 0.75rem, 2.25rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.section-cta {
    text-align: center;
    margin-top: 56px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

.header.scrolled .header-container {
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 64px;
    width: auto;
    max-height: 64px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
    height: 54px;
}

/* Navigation Links */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.938rem;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    background-color: var(--color-dark-bg);
    background-image: url('images/hero_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(58, 134, 200, 0.15) 0%, rgba(9, 13, 22, 0.95) 80%);
    z-index: 1;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.125rem, 4.5vw + 1rem, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--text-light);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem);
    color: var(--text-light-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* Hero Stats Bar */
.hero-stats {
    position: relative;
    margin-top: 80px;
    z-index: 2;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #7db9e8, #3a86c8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Cards Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--color-light-surface);
    border: 1px solid var(--color-light-border);
    border-radius: var(--border-radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--tint-primary-08);
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background: var(--gradient-primary);
    color: var(--text-light);
    transform: scale(1.1);
}

.service-icon {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.938rem;
    color: var(--text-muted);
}

/* How It Works Section */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-card {
    background-color: var(--color-light-surface);
    border: 1px solid var(--color-light-border);
    border-radius: var(--border-radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: var(--text-light);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(28, 98, 148, 0.25);
}

.process-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.process-card p {
    font-size: 0.9rem;
}

/* Categories Section */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 820px;
    margin: 0 auto;
}

.category-chips li {
    background-color: var(--color-light-surface);
    border: 1px solid var(--color-light-border);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.938rem;
    padding: 12px 22px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.category-chips li:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.categories-note {
    text-align: center;
    margin-top: 36px;
    font-size: 0.938rem;
    color: var(--text-muted);
}

/* Value Proposition Section */
.value-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.list-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.list-icon-wrapper svg {
    width: 14px;
    height: 14px;
}

.value-list li strong {
    display: block;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Visual containers (image/diagram cards) */
.value-prop-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    width: 100%;
    max-width: 440px;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.showcase-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.showcase-img.framed {
    width: 100%;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.img-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-weight: 500;
}

.visual-container:hover .showcase-img,
.logistics-flow:hover .showcase-img {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.visual-title {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Optional component (currently unused): Channel Monitoring dashboard.
   Kept so the photo card in #protection can be swapped back to this mock. */
.dashboard-preview {
    width: 100%;
    max-width: 480px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--color-light-border);
    background-color: var(--color-light-surface);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.dashboard-header {
    background-color: #0f172a;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: var(--color-danger); }
.dot.yellow { background-color: var(--color-warning); }
.dot.green { background-color: var(--color-success); }

.dashboard-title {
    color: var(--text-light-muted);
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 8px;
}

.dashboard-body {
    padding: 24px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background-color: #f8fafc;
    border: 1px solid var(--color-light-border);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-card .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.metric-card .green-text {
    color: var(--color-success);
}

.chart-container {
    background-color: #0f172a;
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.dashboard-chart {
    width: 100%;
    height: auto;
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.813rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.log-item:last-child {
    border: none;
    padding-bottom: 0;
}

.log-item .time {
    color: var(--color-primary);
    font-weight: 600;
}

.log-item .text {
    color: var(--text-muted);
    flex-grow: 1;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-indicator.active {
    background-color: var(--color-success);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.protection-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.protection-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

@media (min-width: 576px) {
    .protection-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* About Us Section Details */
.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-stat .num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.about-stat .lbl {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Optional component (currently unused): prep workflow steps card.
   Kept so the photo card in #logistics can be swapped back to this list. */
.logistics-flow {
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    margin: 0 auto;
}

.logistics-flow .visual-title {
    text-align: left;
    border-bottom: 2px solid var(--color-light-border);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.flow-step {
    display: flex;
    gap: 20px;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 45px;
    left: 20px;
    width: 2px;
    height: calc(100% - 30px);
    background-color: var(--color-light-border);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--text-light);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(28, 98, 148, 0.25);
}

.step-desc .step-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 6px;
}

.step-desc p {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Business & Compliance Section */
.compliance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .compliance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .compliance-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.compliance-item {
    background-color: var(--color-light-surface);
    border: 1px solid var(--color-light-border);
    border-radius: var(--border-radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.compliance-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.compliance-item .list-icon-wrapper {
    margin-bottom: 16px;
}

.compliance-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.compliance-item p {
    font-size: 0.875rem;
}

/* Contact / Supplier Application Form */
.contact-container {
    max-width: 900px;
}

.contact-card {
    border-radius: var(--border-radius-lg);
    padding: 48px;
    margin-top: 40px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 576px) {
    .contact-card {
        padding: 24px;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .full-width {
        grid-column: span 2;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, .form-group textarea {
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-light-border);
    font-family: var(--font-body);
    font-size: 0.938rem;
    transition: var(--transition-smooth);
    background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--tint-primary-12);
    background-color: var(--color-light-surface);
}

/* Honeypot field: visually removed, still present for bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-error {
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #b91c1c;
    font-size: 0.9rem;
}

.form-error a {
    font-weight: 600;
    text-decoration: underline;
    color: #b91c1c;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-light-border);
}

@media (min-width: 768px) {
    .form-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.form-note {
    font-size: 0.813rem;
    color: var(--text-muted);
    max-width: 400px;
}

.form-note a {
    text-decoration: underline;
}

/* Success Modal — full-viewport overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(9, 13, 22, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--color-light-surface);
    border-radius: var(--border-radius-md);
    padding: 40px;
    max-width: 450px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.85);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border-radius: 50%;
    margin-bottom: 24px;
}

.modal-icon-wrapper svg {
    width: 36px;
    height: 36px;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 0.938rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Footer Styling */
.footer {
    background-color: var(--color-dark-bg);
    color: var(--text-light);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-container {
    background-color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    display: inline-block;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.footer-logo-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-logo {
    height: 56px;
    width: auto;
    max-height: 56px;
    object-fit: contain;
    display: block;
}

.footer-desc {
    color: var(--text-light-muted);
    font-size: 0.938rem;
    max-width: 350px;
}

.footer-customers {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    max-width: 350px;
}

.footer-heading {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-light-muted);
    font-size: 0.938rem;
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-light-muted);
    font-size: 0.938rem;
}

.footer-contact p {
    color: var(--text-light-muted);
}

.footer-contact strong {
    color: var(--text-light);
}

.footer-contact a:hover {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: var(--text-light-muted);
    font-size: 0.813rem;
}

.footer-bottom a {
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--text-light);
}

.footer-bottom .disclaimer {
    max-width: 500px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.58);
}

/* Slim footer for legal pages (no link columns, single hairline) */
.footer--slim {
    padding: 30px 0;
}

.footer--slim .footer-bottom {
    border-top: none;
    padding-top: 0;
}

/* Navigation Drawer Mobile */
@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: flex;
    }
    /* Keep the logo visible above the open drawer */
    .header .logo {
        position: relative;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        background-color: #ffffff;
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 130px;
        padding-bottom: 40px;
        transform: translateX(100%);
        transition: var(--transition-smooth);
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
        width: 100%;
        padding: 0 40px;
        text-align: center;
    }

    .nav .nav-link {
        font-size: 1.25rem;
        display: block;
    }

    .nav-btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Reduced motion: disable decorative animation & movement */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Legal pages (privacy.html / terms.html) */
.legal-main {
    /* Only vertical padding: .container's 24px side padding must survive */
    padding-top: 160px;
    padding-bottom: 80px;
    max-width: 800px;
}

.legal-main h1 {
    font-size: clamp(1.9rem, 3vw + 0.75rem, 2.5rem);
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 0.875rem;
    margin-bottom: 40px;
}

.legal-main h2 {
    font-size: 1.35rem;
    margin: 36px 0 12px 0;
}

.legal-main p, .legal-main li {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.legal-main ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-main a {
    color: var(--color-primary);
    text-decoration: underline;
}
