/* =========================================================
   1) ROOT VARIABLES / GLOBAL SETTINGS
   ---------------------------------------------------------
   Reusable colors, spacing, shadows, transitions, fonts.
   Change these first if you want site-wide visual updates.
   ========================================================= */

:root {
    --color-primary: #980c05;
    --color-dark: #111;
    --color-light: #fff;
    --color-gray: #f5f5f5;
    --color-text: #333;

    --max-width: 1200px;

    --radius: 6px;
    --transition: 0.25s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    --font-main: 'Segoe UI', Arial, sans-serif;
}


/* =========================================================
   2) GLOBAL RESET / BASE TYPOGRAPHY
   ---------------------------------------------------------
   Removes default browser spacing and sets base styles for
   the whole page.
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-light);
    line-height: 1.6;
} 

h1,
h2,
h3 {
    font-family: 'Oswald', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}


/* =========================================================
   3) REUSABLE LAYOUT HELPERS
   ---------------------------------------------------------
   Common container and shared section spacing.
   ========================================================= */

.container {
    width: min(96%, 1400px);
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.section-header {
    color: #777;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}


/* =========================================================
   4) REUSABLE BUTTONS
   ---------------------------------------------------------
   Base button styles + primary/orange and outline versions.
   ========================================================= */

.btn {
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: #ff5a00;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #e14d00;
}

.btn-secondary {
    border: 2px solid #ff5a00;
    color: #ff5a00;
}

.btn-outline:hover,
.btn-secondary:hover {
    background: #ff5a00;
    color: white;
}


/* =========================================================
   5) SITE HEADER / TOP NAVIGATION
   ---------------------------------------------------------
   This controls the fixed-looking top row:
   - logo
   - nav links
   - CTA buttons
   Also includes the mobile hamburger button.
   ========================================================= */

.site-header {
    background: transparent;
    color: var(--color-light);
    padding: 1rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
}

/* Dark background added by JS once user scrolls */
.site-header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    transition: 0.3s ease;
}

/* Override normal page container so header can stretch wide */
.site-header .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Grid layout for logo, menu button/nav, and CTA buttons */
.header-inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

/* Logo image sizing and placement */
.herologo {
    justify-self: start;
    margin-right: 1rem;
}

.herologo img {
    height: 110px;
    width: auto;
    display: block;
}

/* Mobile hamburger button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
    justify-self: start;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Navigation layout */
.main-nav {
    justify-self: start;
}

.main-nav .nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Right-side header CTA buttons */
.header-cta {
    justify-self: end;
    display: flex;
    gap: 0.75rem;
}

.header-cta .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    line-height: 1.2;
}


/* =========================================================
   6) HERO SECTION
   ---------------------------------------------------------
   Fullscreen opening section with:
   - background slideshow
   - dark overlay
   - centered text/button content
   ========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: -webkit-optimize-contrast;
    overflow: hidden;
    z-index: 1;
}

/* Dark overlay on top of slideshow for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Slideshow wrapper sits behind the overlay/content */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Each background slide */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.2s ease-in-out;
}

/* The active slide is visible */
.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Centered hero text/content */
.hero-center {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
}

/* Main orange hero headline */
.hero-big {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ff5a00;
    line-height: 1.1;
    font-family: 'Oswald', sans-serif;
}

/* Small supporting hero text */
.hero-small {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin: 10px 0;
    opacity: 0.8;
}

/* Hero CTA button */
.hero-btn {
    margin-top: 20px;
    background: #ff5a00;
    color: white;
    border: none;
}

.hero-btn:hover {
    background: #e14d00;
}


/* =========================================================
   7) "WHY US" / 25 YEARS OF EXCELLENCE SECTION
   ---------------------------------------------------------
   White content panel under the hero that introduces the
   company before the highlight cards begin.
   ========================================================= */

.section-why {
    background: #f5f5f5;
    padding: 3rem 0 0;
}

.why-layout {
    max-width: 1000px;
    margin: 0 auto;
}

/* White content card / panel */
.why-intro {
    max-width: 900px;
    min-height: 320px;
    padding: 4rem 3rem;
    margin: 0 auto 3rem;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, 0.96);
    border-left: 6px solid #ff5a00;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    position: relative;
    z-index: 2;
}

/* Orange accent line above the section heading */
.why-intro .section-header {
    position: relative;
    margin-bottom: 1.25rem;
}

.why-intro .section-header::before {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background: #ff5a00;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
}

.why-intro::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background: #ff5a00;
    margin: 2rem auto 0;
    border-radius: 999px;
}

.section-body p {
    margin-bottom: 1.25rem;
}


/* =========================================================
   8) HIGHLIGHT CARDS BACKGROUND BAND
   ---------------------------------------------------------
   Full-width background image band that sits behind the
   four highlight cards.
   ========================================================= */

.highlight-background {
    background: url("assets/graders.jpeg") center/cover no-repeat;
    background-attachment: fixed;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-top: 2rem;

    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    position: relative;
    overflow: hidden;
}

/* Slight dark layer over the image so cards read better */
.highlight-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.11);
}

/* =========================================================
   9) Gallery section
   ---------------------------------------------------------
   2x2 glass-style cards used under the "Why Us" intro.
   ========================================================= */

.section-gallery {
   background: #f5f5f5;
}

.section-gallery .section-header {
   text-align: center;
   margin-bottom: 2rem;
   /* grid-template-columns: repeat(2, minmax(280px, 1fr));
   transform: translateY(-6px);
   box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16); */
}

   .gallery-item {
      position: relative;
      min-height: 260px;
      border-radius: 16px;
      overflow: hidden;
      background: #ddd;
      box-shadow: 0 10px 25px rgba(0,0,0,0.08);
   }

   .gallery-item.placeholder {
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #e8e8e8, #d8d8d8);
      border: 2px dashed rgba(0,0,0,0.15);
      color: #666;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
   }

   .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s ease;
   }

   .gallery-item:hover img {
      transform: scale(1.06);
   }

   .gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
   }
   


/* =========================================================
   10) HIGHLIGHT CARDS GRID
   ---------------------------------------------------------
   2x2 glass-style cards used under the "Why Us" intro.
   ========================================================= */

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.highlight-card {
    min-height: 320px;
    padding: 2rem;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    color: #111;
    background: rgba(255, 255, 255, 0.68);
    text-align: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inner wrapper lets text/icon scale smoothly on hover */
.highlight-card-inner {
    transform: scale(0.94);
    transform-origin: center;
    transition: transform 0.3s ease;
    width: 100%;
}

.highlight-card:hover {
    background: #fff;
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.highlight-card:hover .highlight-card-inner {
    transform: scale(1);
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.12);
}

/* Icon styling */
.highlight-icon {
    font-size: 2.5rem;
    color: #ff5a00;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

/* Card text */
.highlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
    color: #111;
    line-height: 1.2;
}

.highlight-card p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #333;
    margin: 0;
}


/* =========================================================
   11) SPECIALTIES SECTION
   ---------------------------------------------------------
   Full-width background image section with dark overlay and
   specialty cards laid out in a 2x2 grid.
   ========================================================= */

.logo-section {
    position: relative;
    background: url("assets/truck.jpeg") center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    background-color: #111;
    padding: 7rem 0;
    z-index: 2;
}

/* Dark overlay to improve text readability on image */
.logo-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.72);
    z-index: 1;
}

/* Content sits above the overlay */
.logo-section .container {
    position: relative;
    z-index: 2;
}

/* White section text on dark background */
.logo-section .section-header h2,
.logo-section .section-header {
    color: #fff;
}

/* 2x2 grid of specialties cards */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

/* Specialty card base style */
.specialty-card {
    min-height: 300px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    color: #fff;

    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

/* Inner wrapper for card text */
.specialty-card-inner {
    width: 100%;
}

/* Specialty text defaults on dark background */
.specialty-card h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.specialty-card p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

/* Specialty hover state */
.specialty-card:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
    transform: translateY(-6px);
}

/* Force text dark on hover so it remains readable */
.specialty-card:hover h3,
.specialty-card:hover p {
    color: #111;
}

.specialties {
    position: relative;
    padding: 80px 20px;

    background:
        url("assets/asphalt.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-attachment: fixed;
}


/* =========================================================
   12) VIDEO SECTION
   ---------------------------------------------------------
   Wrapper for embedded YouTube/video content.
   ========================================================= */

.video-wrapper {
    margin-top: 2rem;
    background: #000;
    padding: 1rem;
    border-radius: 16px;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    display: block;
    min-height: 500px;
    border: 0;
    border-radius: 12px;
}


/* =========================================================
   13) QUOTE / CONTACT SECTION
   ---------------------------------------------------------
   Two-column contact + form area with logo underneath.
   ========================================================= */

.section-quote .container {
    max-width: 1000px;
}

.contact-centered {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.contact-centered h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111;
}

.contact-subtext {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.contact-info {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-btn {
    font-size: 1.1rem;
    padding: 0.9rem 1.8rem;
}

.contact-info strong {
    color: #ff5a00;
}

.contact-row {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Logo placed below the quote form section */
.bottom-logo {
    margin-top: 2.5rem;
    text-align: center;
}

.bottom-logo img {
    height: 90px;
    width: auto;
    margin: 0 auto;
    opacity: 0.95;
}


/* =========================================================
   14) FOOTER
   ---------------------------------------------------------
   Footer layout and bottom copyright strip.
   ========================================================= */

.site-footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 3rem 0 1rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
}


/* =========================================================
   15) JS-DRIVEN STATE CLASSES
   ---------------------------------------------------------
   Used by JavaScript for reveal animations and form states.
   ========================================================= */

.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Current setup keeps these visible by default */
.section-header,
.footer-inner {
    opacity: 1;
    transform: none;
}

.form-message {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.form-message.success {
    background: #d4f5d4;
    color: #0a6b0a;
}

.form-message.error {
    background: #ffd4d4;
    color: #8b0000;
}

.form-message.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.input-error {
    border-color: red !important;
}


/* =========================================================
   16) RESPONSIVE / MOBILE STYLES
   ---------------------------------------------------------
   Adjusts layout for tablets and phones:
   - hamburger appears
   - nav becomes dropdown
   - CTA buttons hide
   - cards stack into one column
   ========================================================= */

@media (max-width: 768px) {

    /* Show hamburger on mobile */
    .menu-toggle {
        display: block;
        justify-self: end;
    }

    /* Nav becomes hidden until toggled open by JS */
    .main-nav {
        display: none;
        width: 100%;
        grid-column: 1 / -1;
    }

    .main-nav.nav-open {
        display: block;
    }

    /* Mobile nav dropdown styling */
    .main-nav .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        background: rgba(0, 0, 0, 0.92);
        border-radius: 12px;
        margin-top: 1rem;
    }

    /* Mobile header alignment */
    .herologo,
    .menu-toggle,
    .main-nav {
        justify-self: start;
    }

    .herologo img {
        height: 84px;
    }

    .header-cta {
        display: none;
    }

    .site-header {
        padding: 1rem;
    }

    .site-header.nav-active {
        background: rgba(0, 0, 0, 0.95);
    }

    .header-inner {
        grid-template-columns: auto auto;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
    }

   /* Gallery */

   .gallery-grid {
      grid-template-columns: 1fr;
   }

    /* Scale hero text down for smaller screens */
    .hero-big {
        font-size: 3rem;
    }

    /* Fixed backgrounds can behave badly on phones */
    .hero,
    .logo-section {
        background-attachment: scroll;
    }

    /* Stack cards into one column on mobile */
    .hero-highlights,
    .specialties-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .specialties {
        background-attachment: scroll;
    }

    .highlight-card,
    .specialty-card {
        min-height: 280px;
    }
}
