/* ========================================
   L & H Towing & Recovery — Stylesheet
   Classic & Elegant Design System
   ======================================== */

/* --- Custom Properties --- */
:root {
    --color-forest-dark: #1a3c28;
    --color-forest: #2d5a3f;
    --color-forest-medium: #3d7a56;
    --color-forest-light: #5a9a74;
    --color-forest-pale: #e8f0eb;
    --color-cream: #f7f5f0;
    --color-off-white: #faf9f6;
    --color-warm-white: #fefdfb;
    --color-warm-gray: #8a8578;
    --color-dark-text: #1c1917;
    --color-body-text: #3d3935;
    --color-muted-text: #6b6560;
    --color-border: #e5e0d8;
    --color-border-light: #f0ece4;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 3px rgba(26, 60, 40, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 60, 40, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 60, 40, 0.12);
    --shadow-xl: 0 20px 60px rgba(26, 60, 40, 0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-body-text);
    background-color: var(--color-off-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 48px;
    }
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--color-dark-text);
    line-height: 1.2;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-forest);
    color: #ffffff;
    border-color: var(--color-forest);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-forest);
    border-color: var(--color-forest);
}

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-forest);
    margin-bottom: 16px;
}

.section-eyebrow-light {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Section Title --- */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
    color: var(--color-dark-text);
}

.section-title-light {
    color: #ffffff;
}

/* --- Section Subtitle --- */
.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-muted-text);
    max-width: 560px;
    line-height: 1.8;
}

/* --- Site Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

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

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

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

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-forest);
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-muted-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logo-light .logo-mark {
    color: #ffffff;
}

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

/* --- Main Nav --- */
.main-nav ul {
    display: none;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-body-text);
    transition: color var(--transition-fast);
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-forest);
    transition: width var(--transition-base);
}

.main-nav a:not(.btn):hover {
    color: var(--color-forest);
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

@media (min-width: 1024px) {
    .main-nav ul {
        display: flex;
    }
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark-text);
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--color-off-white);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-dark-text);
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--color-forest);
}

/* --- Hero Section --- */
.hero {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-cream);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* --- Hero Content --- */
.hero-content {
    order: 2;
}

@media (min-width: 1024px) {
    .hero-content {
        order: 1;
    }
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.eyebrow-line {
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-forest);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    color: var(--color-dark-text);
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted-text);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 500px;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-body-text);
}

.trust-item svg {
    color: var(--color-forest);
    flex-shrink: 0;
}

/* --- Hero Image --- */
.hero-image {
    order: 1;
    position: relative;
}

@media (min-width: 1024px) {
    .hero-image {
        order: 2;
    }
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero-image-wrapper img {
        height: 650px;
    }
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--color-forest);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-badge {
    position: absolute;
    bottom: 24px;
    left: -16px;
    background-color: var(--color-forest-dark);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1023px) {
    .hero-badge {
        display: none;
    }
}

.badge-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.badge-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
    background-color: var(--color-off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

@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-warm-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-base);
}

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

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

.service-card:hover .service-icon {
    background-color: var(--color-forest);
    color: #ffffff;
}

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

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

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

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

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.about-image-stack {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--color-cream);
}

.about-img-secondary img {
    width: 280px;
    height: 340px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: 24px;
    background-color: var(--color-forest);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.exp-text {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

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

.about-text {
    font-size: 1rem;
    color: var(--color-muted-text);
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-body-text);
}

.value-item svg {
    color: var(--color-forest);
    flex-shrink: 0;
}

/* --- Why Us Section --- */
.why-us {
    padding: 100px 0;
    background-color: var(--color-forest-dark);
}

.why-us-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .why-us-inner {
        grid-template-columns: 1fr auto;
        gap: 80px;
    }
}

.why-us-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 480px;
}

.why-us-stats {
    display: flex;
    gap: 48px;
}

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

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Quote Section --- */
.quote-section {
    padding: 100px 0;
    background-color: var(--color-off-white);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

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

.quote-mark {
    color: var(--color-forest-pale);
    margin-bottom: 24px;
}

blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    color: var(--color-dark-text);
    line-height: 1.6;
    margin-bottom: 32px;
}

.quote-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-forest);
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-muted-text);
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0 60px;
    background-color: var(--color-off-white);
}

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

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.contact-subtitle {
    font-size: 1.0625rem;
    color: var(--color-muted-text);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--color-warm-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.contact-detail-item:hover {
    border-color: var(--color-forest-pale);
    box-shadow: var(--shadow-sm);
}

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

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

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted-text);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-dark-text);
    line-height: 1.5;
}

/* --- Contact Form --- */
.contact-form-col {
    background-color: var(--color-warm-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

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

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-body-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-dark-text);
    background-color: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-forest);
    box-shadow: 0 0 0 3px rgba(45, 90, 63, 0.1);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: var(--color-forest-pale);
    border: 1px solid var(--color-forest-light);
    border-radius: var(--radius-md);
    color: var(--color-forest-dark);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 16px;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
    color: var(--color-forest);
}

/* --- Contact Map --- */
.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-forest-dark);
    color: #ffffff;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

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

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

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

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

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact li:not(:first-child) a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-forest);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* --- 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;
}
