/* ============================================
   Gary King Trucking — Custom Styles
   Palette: Burgundy (#491421) + Blush (#F5E6E0)
   Fonts: Libre Baskerville (headings) + Manrope (body)
============================================ */

/* --- CSS Custom Properties --- */
:root {
    --burgundy: #491421;
    --burgundy-dark: #350f18;
    --burgundy-light: #6b1d30;
    --blush: #F5E6E0;
    --blush-light: #FBF5F3;
    --blush-dark: #E8D0C8;
    --white: #ffffff;
    --off-white: #FAFAFA;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --font-heading: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(73, 20, 33, 0.06);
    --shadow-md: 0 4px 16px rgba(73, 20, 33, 0.08);
    --shadow-lg: 0 8px 32px rgba(73, 20, 33, 0.12);
    --shadow-xl: 0 16px 48px rgba(73, 20, 33, 0.16);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--burgundy-light);
}

ul {
    list-style: none;
}

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

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--burgundy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

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

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy);
    background: var(--blush);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--blush-dark);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--burgundy);
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--burgundy);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--burgundy);
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.logo-light .logo-text {
    color: var(--white);
}

.logo-light .logo-sub {
    color: rgba(255, 255, 255, 0.7);
}

.logo-light .logo-icon {
    color: var(--white);
}

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

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--burgundy);
    background: var(--blush-light);
}

.cta-nav {
    background: var(--burgundy) !important;
    color: var(--white) !important;
    margin-left: 8px;
}

.cta-nav:hover {
    background: var(--burgundy-dark) !important;
    color: var(--white) !important;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--burgundy);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--burgundy);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    background-color: var(--burgundy-dark);
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 100px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-scroll-indicator span {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scroll-indicator 1.8s ease-in-out infinite;
}

@keyframes scroll-indicator {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* --- Trust Bar --- */
.trust-bar {
    background: var(--blush-light);
    border-bottom: 1px solid var(--blush-dark);
    padding: 0;
}

.trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 32px;
    border-right: 1px solid var(--blush-dark);
}

.trust-item:last-child {
    border-right: none;
}

.trust-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    color: var(--burgundy);
    box-shadow: var(--shadow-sm);
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-text strong {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    color: var(--burgundy);
}

.trust-text span {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--blush);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about-stats {
    position: absolute;
    bottom: -24px;
    left: 24px;
    background: var(--burgundy);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-stats .stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.about-stats .stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content > p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

.about-features {
    margin-top: 32px;
    display: grid;
    gap: 14px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 500;
}

.about-features svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush);
    border-radius: var(--radius-md);
    color: var(--burgundy);
    margin-bottom: 24px;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--burgundy);
}

.service-desc {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: var(--burgundy);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 230, 224, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 230, 224, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-inner .section-label {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.cta-inner .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

/* --- Service Area Section --- */
.area-section {
    padding: 100px 0;
    background: var(--white);
}

.area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.area-content .section-title {
    margin-bottom: 20px;
}

.area-content > p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

.area-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.area-tag {
    background: var(--blush-light);
    color: var(--burgundy);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--blush-dark);
}

.area-map {
    position: sticky;
    top: 100px;
}

.map-placeholder {
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    text-align: center;
}

.map-placeholder svg {
    color: var(--burgundy);
    margin: 0 auto 20px;
    opacity: 0.6;
}

.map-placeholder p {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background: var(--blush-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-intro {
    color: var(--gray-600);
    font-size: 1.0625rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: grid;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    color: var(--burgundy);
    box-shadow: var(--shadow-sm);
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    color: var(--burgundy);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-item a {
    color: var(--gray-600);
}

.contact-item a:hover {
    color: var(--burgundy);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--blush-dark);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--burgundy);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.required {
    color: var(--burgundy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(73, 20, 33, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: 16px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: #16A34A;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--burgundy);
}

.form-success p {
    color: var(--gray-600);
    margin-bottom: 28px;
}

/* --- Footer --- */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-desc {
    margin-top: 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    display: grid;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}

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

/* --- Scroll Reveal --- */
.reveal {
    /* Default visible for no-JS / reduced-motion */
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .trust-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--blush-dark);
    }
    .trust-item:nth-child(2),
    .trust-item:nth-child(3) {
        border-right: 1px solid var(--blush-dark);
    }
    .trust-item:last-child {
        border-bottom: none;
    }
    .about-grid,
    .area-grid,
    .contact-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--blush-dark);
        padding: 16px 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }
    
    .cta-nav {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.75rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .trust-bar-inner {
        grid-template-columns: 1fr;
    }
    
    .trust-item {
        border-right: none !important;
        border-bottom: 1px solid var(--blush-dark) !important;
        padding: 20px 24px;
    }
    
    .trust-item:last-child {
        border-bottom: none !important;
    }
    
    .about-grid,
    .services-grid,
    .area-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .area-map {
        position: static;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .services-section,
    .about-section,
    .cta-section,
    .area-section,
    .contact-section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .service-card {
        padding: 28px 24px;
    }
}
