/* ============================================
   Clark Service & Transport LLC — Design System
   Rugged Heritage: Thunder Navy + Brick Red
   ============================================ */

:root {
    /* Brand Colors — The Dual Flag */
    --theme-primary: #7A1315;       /* Brick Red — CTA buttons, accents */
    --theme-navy: #0D2240;          /* Thunder Navy — hero, cards, headers */
    --theme-navy-mid: #1A3560;      /* Navy midtone — hover states, borders */
    --theme-gold: #C5A059;          /* Bronze Gold — tertiary highlights */
    --theme-sand: #EAE3D2;          /* Warm Sandstone — light surfaces */
    --theme-cream: #F7F5F0;         /* Off-White Cream — page background */

    /* Text — Rule: colored bg = white/cream only. Never red-on-blue or blue-on-red. */
    --text-primary: #1A2535;        /* Near-navy for max legibility on cream */
    --text-secondary: #4A5568;      /* Body secondary text */
    --text-muted: #718096;          /* Captions, labels */
    --text-on-color: #FFFFFF;       /* White — on red OR navy backgrounds */
    --text-on-dark: #EAE3D2;        /* Cream — on very dark backgrounds (footer, quote) */

    /* Surfaces */
    --bg-page: #F7F5F0;
    --bg-light: #F7F5F0;
    --bg-section-alt: #EFEDE8;
    --white: #ffffff;
    --border-color: #DDD8CE;
    --header-bg: rgba(255, 255, 255, 0.98);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: 'Roboto Slab', serif;

    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(13, 34, 64, 0.07);
    --shadow-md: 0 8px 20px rgba(13, 34, 64, 0.12);
    --shadow-lg: 0 16px 36px rgba(13, 34, 64, 0.18);
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-page);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }

/* ====== LAYOUT ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section { padding: 4rem 0; }

/* ====== NAVIGATION ====== */
header {
    background-color: var(--header-bg);
    border-bottom: 3px solid var(--theme-navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(13, 34, 64, 0.10);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    flex: 1;
}

.logo-img {
    height: 135px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--theme-navy);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}

.logo-text span {
    color: var(--theme-primary);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    flex: 2;
    justify-content: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.nav-links a:hover { color: var(--theme-navy); }
.nav-links a.active { color: var(--theme-navy); font-weight: 700; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

/* ====== HERO SECTIONS ====== */
.hero, .about-hero, .hero-small, .area-hero, .contact-hero {
    background-color: var(--theme-navy);
    background-image: linear-gradient(rgba(13, 34, 64, 0.72), rgba(13, 34, 64, 0.94)),
                      url('../assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 8rem 0;
    text-align: center;
    border-bottom: 5px solid var(--theme-primary);
    position: relative;
    overflow: hidden;
}

/* Subtle texture */
.hero::before, .about-hero::before, .hero-small::before,
.area-hero::before, .contact-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23000000" fill-opacity="0.04"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3C/g%3E%3C/svg%3E');
    z-index: 0;
}

.hero .container, .about-hero .container, .hero-small .container,
.area-hero .container, .contact-hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 3rem;
    color: var(--text-on-dark);
    font-weight: 300;
    line-height: 1.7;
}

/* Smaller hero variants */
.about-hero h1, .hero-small h1, .area-hero h1, .contact-hero h1 {
    font-size: 3rem;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFFFFF;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.4);
}

/* ====== BUTTONS ====== */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 3px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

.btn-primary {
    background-color: var(--theme-primary);
    color: #FFFFFF;
    border-color: var(--theme-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: #5E0F10;
    border-color: #5E0F10;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--theme-navy);
    color: #FFFFFF;
    border-color: var(--theme-navy);
}

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

/* Secondary Button — Special Case for Dark Hero backgrounds */
.hero .btn-secondary, 
.about-hero .btn-secondary,
.hero-small .btn-secondary,
.area-hero .btn-secondary,
.contact-hero .btn-secondary {
    background-color: transparent;
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.hero .btn-secondary:hover, 
.about-hero .btn-secondary:hover,
.hero-small .btn-secondary:hover,
.area-hero .btn-secondary:hover,
.contact-hero .btn-secondary:hover {
    background-color: #FFFFFF;
    color: var(--theme-navy);
}



.btn-outline {
    background-color: transparent;
    border-color: var(--text-on-dark);
    color: var(--text-on-dark);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    color: #FFFFFF;
}

/* On light backgrounds */
section .btn-outline, .card .btn-outline, .contact-forms .btn-outline {
    border-color: var(--theme-navy);
    color: var(--theme-navy);
}

section .btn-outline:hover, .card .btn-outline:hover, .contact-forms .btn-outline:hover {
    background-color: var(--theme-navy);
    color: #FFFFFF;
}

/* ====== CARDS ====== */
.card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--border-color);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--theme-primary);
}

.card h3 {
    color: var(--theme-navy);
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.3rem;
}

.card i {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--theme-primary);
}

/* ====== SECTIONS ====== */
.why-us {
    background-color: var(--bg-section-alt);
    text-align: center;
}

.why-us h2 { margin-bottom: 3rem; }

.services-preview {
    background-color: var(--white);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

/* ====== HEADINGS ====== */
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-navy);
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--theme-gold), transparent);
}

/* ====== FOOTER ====== */
footer {
    background-color: #2C3539; /* Professional Charcoal */
    color: var(--text-on-dark);
    padding: 4rem 0 2rem 0;
    border-top: 4px solid var(--theme-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(234, 227, 210, 0.25);
    padding-bottom: 0.5rem;
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: rgba(234, 227, 210, 0.85);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a:hover { color: var(--theme-gold); }

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(234, 227, 210, 0.7);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.social-links a:hover { color: var(--theme-gold); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(234, 227, 210, 0.15);
    color: rgba(234, 227, 210, 0.5);
    font-size: 0.85rem;
}

/* ====== CTA SECTION ====== */
.cta-section {
    background-color: var(--theme-primary) !important;
    color: #FFFFFF !important;
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: #FFFFFF;
    left: 0;
    transform: none;
}

.cta-section h2::after { display: none; }

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ====== ICONS ====== */
.lucide {
    stroke-width: 1.5px;
    vertical-align: middle;
}

.icon-primary { color: var(--theme-primary); }
.icon-gold    { color: var(--theme-gold); }
.icon-sm      { width: 18px; height: 18px; }
.icon-md      { width: 28px; height: 28px; }

/* ====== HERITAGE QUOTE ENGINE ====== */
.quote-engine {
    background-color: var(--theme-navy);
    color: #FFFFFF;
    padding: 6rem 0;
    text-align: center;
    border-top: 3px solid var(--theme-primary);
    border-bottom: 3px solid var(--theme-primary);
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #FFFFFF;
    transition: opacity 0.8s ease;
}

.quote-author {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--theme-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: opacity 0.8s ease;
}

.quote-author::before, .quote-author::after {
    content: '';
    width: 40px;
    height: 1px;
    background-color: var(--theme-gold);
    opacity: 0.5;
}

/* ====== FORM CONTROLS ====== */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--theme-navy);
    box-shadow: 0 0 0 3px rgba(13,34,64,0.10);
}

/* ====== HAMBURGER & MOBILE NAV ====== */

/* Always hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: var(--theme-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animated X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav panel — slides down from header */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--theme-navy);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    padding: 1.2rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background-color: rgba(255,255,255,0.07);
    color: var(--theme-gold);
}

.mobile-nav .mobile-cta {
    margin-top: 2rem;
    font-size: 1.1rem;
    background-color: var(--theme-primary);
    color: #FFFFFF !important;
    border-radius: 3px;
    padding: 1rem 3rem;
    width: auto;
    border-bottom: none;
    letter-spacing: 1.5px;
}

.mobile-nav .mobile-cta:hover {
    background-color: #5E0F10 !important;
    color: #FFFFFF !important;
}

/* Mobile close button (X) inside overlay */
.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop links */
    .hamburger      { display: flex; }
    .nav-links      { display: none; }
    .nav-actions .btn { display: none; } /* hide call button from header on mobile (it's in nav panel) */

    /* Keep logo clean on mobile */
    .logo-img       { height: 99px; }
    .logo-text      { font-size: 0.95rem; }
    .logo-text span { font-size: 0.62rem; }

    /* Hero */
    .hero           { padding: 5rem 0 4rem; }
    .hero h1        { font-size: 2.25rem; letter-spacing: 1px; }
    .hero p         { font-size: 1rem; }

    /* Interior page heroes */
    .about-hero h1, .hero-small h1,
    .area-hero h1, .contact-hero h1 { font-size: 1.8rem; }

    h2              { font-size: 1.75rem; }
    .quote-text     { font-size: 1.3rem; }

    /* Stats bar — 2 columns on mobile */
    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
    .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.15); }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }

    /* Cards stack */
    .grid-3, .grid-2 { grid-template-columns: 1fr; }

    /* Trust banner wraps */
    .trust-items { gap: 1.5rem; }
}

