/*
    styles.css
    Version: 2.0 (Light Theme)
    Description: Comprehensive stylesheet for the Tucker Roger Trucking digital marketing website.
    Features: Light & Professional Theme, Responsive Design, Business-Oriented Animations.
*/

/* TABLE OF CONTENTS
---------------------------
1.  Global Styles & Variables
2.  Typography
3.  Layout & Container
4.  Buttons & Forms
5.  Header & Navigation
6.  Footer
7.  Hero Section
8.  Services Section
9.  Process Section (Timeline)
10. Industry Section
11. Testimonials Section (Slider)
12. CTA Section
13. Page-Specific Styles (Contact, Legal)
14. Animations & Keyframes
15. Utility Classes
16. Media Queries (Responsiveness)
--------------------------- */

/* 1. GLOBAL STYLES & VARIABLES */
:root {
    --color-primary: #0056b3;
    /* Professional Blue */
    --color-secondary: #004085;
    /* Darker Blue */
    --color-accent: #FFA500;
    /* Warm Orange */
    --color-light: #F8F9FA;
    /* Light Gray Background */
    --color-white: #FFFFFF;
    --color-dark: #212529;
    /* Dark text */
    --color-text-secondary: #495057;
    /* Medium gray text */
    --color-border: #DEE2E6;

    --font-family-headings: 'Montserrat', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --transition-speed: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-white);
    color: var(--color-text-secondary);
    font-family: var(--font-family-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    color: var(--color-dark);
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-secondary);
}

.section-title {
    margin-bottom: 3.5rem;
}

.section-title h2 {
    position: relative;
    padding-bottom: 1rem;
}

.section-title.text-center h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.section-title.text-left h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* 3. LAYOUT & CONTAINER */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

/* 4. BUTTONS & FORMS */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-family-headings);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: #e69500;
    border-color: #e69500;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-accent {
    background: var(--color-white);
    color: var(--color-secondary);
    border-color: var(--color-white);
}

.btn-accent:hover {
    background: var(--color-light);
    transform: scale(1.05);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-dark);
    font-family: var(--font-family-body);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row>.form-group {
    flex: 1;
}

/* 5. HEADER & NAVIGATION */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-speed);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--color-dark);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-family-headings);
}

.logo img {
    height: 80px;
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--color-text-secondary);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--color-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 10px;
    transition: all var(--transition-speed);
}

.mobile-nav {
    display: none;
}


/* 6. FOOTER */
.site-footer {
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col p,
.footer-col ul a {
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: block;
    width: 36px;
    height: 36px;
    color: var(--color-secondary);
    background: var(--color-white);
    border-radius: 50%;
    padding: 8px;
}

.social-links a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #00336a;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #adb5bd;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact p span {
    font-weight: 600;
    color: var(--color-white);
    margin-right: 5px;
}

/* 7. HERO SECTION */
.hero {
    padding: 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--color-white);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero .highlight {
    color: var(--color-primary);
}

.hero-buttons .btn {
    margin: 0.5rem 1rem 0.5rem 0;
}

.hero-graphic {
    perspective: 1500px;
}

.graphic-window {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s;
}

.graphic-window:hover {
    transform: rotateY(0) rotateX(0) scale(1.05);
}

.graphic-header {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: var(--color-light);
    border-bottom: 1px solid var(--color-border);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.graphic-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.graphic-header .title {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: 0 auto;
}

.graphic-body {
    padding: 1.5rem;
}

.graphic-body p {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
}

.bar-container {
    text-align: center;
}

.bar-container span {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
    display: block;
}

.bar {
    width: 30px;
    background: linear-gradient(to top, var(--color-primary), #007bff);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease-out;
}

/* 8. SERVICES SECTION */
.services-section {
    background-color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--color-primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 86, 179, 0.1);
    transition: all var(--transition-speed);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-primary);
    transition: all var(--transition-speed);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
}

.service-card:hover .service-icon svg {
    fill: var(--color-white);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* 9. PROCESS SECTION (TIMELINE) */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--color-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
}

.process-step:nth-child(even) {
    left: 50%;
}

.process-step:nth-child(odd) .process-content {
    text-align: right;
}

.process-step:nth-child(even) .process-content {
    text-align: left;
}

.process-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-white);
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: all var(--transition-speed);
}

.process-step:hover .process-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.process-step:nth-child(odd) .process-icon {
    right: -30px;
}

.process-step:nth-child(even) .process-icon {
    left: -30px;
}

.process-content {
    padding: 20px 30px;
    background: var(--color-light);
    border-radius: var(--border-radius);
    position: relative;
}

/* 10. INDUSTRY SECTION */
.industry-section {
    background: var(--color-white);
}

.industry-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.industry-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.industry-list {
    list-style: none;
    margin: 2rem 0;
}

.industry-list li {
    font-family: var(--font-family-headings);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.industry-list li span {
    color: var(--color-accent);
    margin-right: 10px;
    font-size: 1.5rem;
    line-height: 1;
}

/* 11. TESTIMONIALS SECTION */
.testimonials-section {
    background: var(--color-light);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}

.testimonial-slider {
    overflow: hidden;
    position: relative;
    min-height: 280px;
}

.testimonial-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    transform: scale(0.95);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    margin: 0;
}

.author-info span {
    font-size: 0.9rem;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-nav button {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    line-height: 1;
}

.slider-nav button:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* 12. CTA SECTION */
.cta-section {
    padding: 5rem 0;
    background: var(--color-primary);
}

.cta-container {
    text-align: center;
    color: var(--color-white);
}

.cta-container h2 {
    color: var(--color-white);
    font-size: 2.8rem;
}

.cta-container p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: var(--color-light);
}

/* 13. PAGE-SPECIFIC STYLES (Contact, Legal) */
.page-header {
    background: var(--color-light);
    padding: 5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-page-section,
.legal-content {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-form-container {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    margin-bottom: 2rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h4 {
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.info-block p {
    margin: 0;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content p,
.legal-content li {
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-content strong {
    color: var(--color-dark);
}

/* 14. ANIMATIONS & KEYFRAMES */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
}

.fade-in.visible {
    animation: fadeIn 1s forwards;
}

.fade-in-up.visible {
    animation: fadeInUp 0.8s forwards;
}

.slide-in-left.visible {
    animation: slideInLeft 0.8s forwards;
}

.slide-in-right.visible {
    animation: slideInRight 0.8s forwards;
}


/* 15. UTILITY CLASSES */
.mb-0 {
    margin-bottom: 0 !important;
}

/* 16. MEDIA QUERIES (Responsiveness) */

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-container,
    .industry-container,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p,
    .hero-buttons,
    .section-title.text-left {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-graphic {
        margin-top: 4rem;
    }

    .industry-image {
        grid-row: 1;
        margin-bottom: 3rem;
    }

    .section-title.text-left h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .process-timeline::after {
        left: 30px;
    }

    .process-step {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .process-step:nth-child(even) {
        left: 0;
    }

    .process-icon {
        left: 0;
    }

    .process-step:nth-child(odd) .process-content,
    .process-step:nth-child(even) .process-content {
        text-align: left;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-white);
        z-index: 999;
        transition: right 0.4s ease;
        padding-top: 100px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav.open {
        right: 0;
    }

    .mobile-nav nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-nav nav a {
        font-size: 1.2rem;
        color: var(--color-dark);
    }

    .mobile-nav .btn {
        display: block;
        margin: 2rem auto 0;
        text-align: center;
    }

    .hamburger.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 7px);
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}