/* ========================================
   TN Diesel LLC - Classic & Elegant Theme
   Forest Green + Off-White Palette
======================================== */

/* --- CSS Custom Properties --- */
:root {
    --forest-dark: #1a3c2a;
    --forest-medium: #2d5a3f;
    --forest-light: #3d7a54;
    --forest-accent: #4a9462;
    --off-white: #f8f6f0;
    --cream: #f0ece0;
    --warm-gray: #6b6560;
    --dark-text: #1a1a18;
    --light-text: #f8f6f0;
    --gold-accent: #c9a84c;
    --shadow-sm: 0 2px 8px rgba(26, 60, 42, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 60, 42, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 60, 42, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-text);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text, .logo-sub {
    font-family: 'Playfair Display', serif;
}

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

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

ul {
    list-style: none;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--forest-medium);
    color: var(--light-text);
    border-color: var(--forest-medium);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border-color: rgba(248, 246, 240, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(248, 246, 240, 0.1);
    border-color: var(--light-text);
}

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

.btn-outline:hover {
    background-color: var(--forest-medium);
    color: var(--light-text);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* --- Section Headers --- */
.section-tag {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest-accent);
    margin-bottom: 12px;
}

.section-tag.light {
    color: var(--gold-accent);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title.light {
    color: var(--light-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 600px;
    line-height: 1.7;
}

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

.section-header.light {
    margin-bottom: 80px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 60, 42, 0.08);
    transition: var(--transition);
}

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-dark);
}

.logo-sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--forest-light);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    letter-spacing: 0.02em;
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--forest-medium);
    color: var(--light-text) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: var(--forest-dark);
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--forest-dark);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--off-white);
    z-index: 999;
    padding: 100px 24px 40px;
}

.mobile-menu.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--dark-text);
}

.mobile-menu a:hover {
    color: var(--forest-accent);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 60, 42, 0.92) 0%,
        rgba(45, 90, 63, 0.85) 50%,
        rgba(26, 60, 42, 0.88) 100%
    );
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-card {
    max-width: 640px;
    padding: 48px;
    background: rgba(248, 246, 240, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(248, 246, 240, 0.15);
    border-radius: 8px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 100px;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(248, 246, 240, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

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

.hero-actions .btn-primary {
    background-color: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--dark-text);
}

.hero-actions .btn-primary:hover {
    background-color: #b8963f;
    border-color: #b8963f;
}

/* Floating Stat Cards */
.floating-cards {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.float-card {
    padding: 24px 28px;
    background: rgba(248, 246, 240, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(248, 246, 240, 0.15);
    border-radius: 8px;
    text-align: center;
    min-width: 160px;
}

.float-card-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 4px;
}

.float-card-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 246, 240, 0.75);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(26, 60, 42, 0.06);
    transition: var(--transition);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--forest-medium), var(--forest-light));
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--light-text);
}

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

.service-card p {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

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

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--forest-medium);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.15;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
}

.about-feature svg {
    color: var(--forest-accent);
    flex-shrink: 0;
}

/* --- Why Us Section --- */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-medium) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.why-card {
    padding: 40px 28px;
    background: rgba(248, 246, 240, 0.06);
    border: 1px solid rgba(248, 246, 240, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(248, 246, 240, 0.1);
    transform: translateY(-4px);
}

.why-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-accent);
    opacity: 0.4;
    margin-bottom: 16px;
    line-height: 1;
}

.why-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    color: rgba(248, 246, 240, 0.7);
    line-height: 1.7;
}

/* --- CTA Section --- */
.cta {
    padding: 100px 0;
    background: var(--cream);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--forest-medium), var(--forest-light));
    border-radius: 12px;
    color: var(--light-text);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 4px;
}

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

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

.contact-item a:hover {
    color: var(--forest-accent);
    text-decoration: underline;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

/* --- Footer --- */
.footer {
    padding: 64px 0 32px;
    background: var(--forest-dark);
    color: var(--light-text);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(248, 246, 240, 0.6);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(248, 246, 240, 0.6);
}

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

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(248, 246, 240, 0.6);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(248, 246, 240, 0.6);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(248, 246, 240, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(248, 246, 240, 0.4);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .floating-cards {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 40px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .float-card {
        min-width: 140px;
    }

    .hero-card {
        text-align: center;
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-card {
        padding: 32px 24px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .floating-cards {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 350px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-card {
        padding: 24px 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .btn-large {
        width: 100%;
    }
}
