@charset "UTF-8";

/* ========================================
   CSS RESET AND BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #1a4d2e;
    --dark-green: #0d2818;
    --light-tan: #f5f1e8;
    --medium-tan: #e8dcc4;
    --white: #ffffff;
    --black: #000000;
    --text-gray: #333333;
}

/* ========================================
   TYPOGRAPHY - GLOBAL STYLES
   ======================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Consistent heading styles throughout the site */
h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-gray);
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-gray);
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text-gray);
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-gray);
}

p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

ul, ol {
    padding-left: 40px;
    margin-bottom: 20px;
}

ul li, ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Target links that are NOT in the header and NOT buttons */
a:not(header a):not(.cta-button):not(.nav-link) {
    color: var(--primary-green); /* Or your preferred hex code */
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:not(header a):not(.cta-button):not(.nav-link):hover {
    color: var(--dark-green);
    text-decoration: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

/* White text for dark backgrounds */
.white-text h1,
.white-text h2,
.white-text h3,
.white-text h4,
.white-text p {
    color: var(--white);
}

/* ========================================
   SKIP TO MAIN CONTENT (ACCESSIBILITY)
   ======================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--black);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   TOP BAR
   ======================================== */

.top-bar {
background-color: var(--dark-green);
    color: var(--white);
    padding: 10px 20px;
    font-size: 16px;
    width: 100%;
    position: relative; /* Ensure it stays in normal flow */
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
	text-align:center;  
    min-height: 34px; /* Ensures the bar has height even if content is slow to load */
}

.top-bar a {
    color: var(--white) !important;
    text-decoration: none;
}

.top-bar a:hover,
.top-bar a:focus {
    text-decoration: underline;
}

/* ========================================
   HEADER AND NAVIGATION
   ======================================== */
.main-navigation-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: column;
}
header {
    background-color: var(--light-tan);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative; /* Changed from sticky to relative */
    top: auto;          /* Reset any manual offsets */
    z-index: 999;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--black);
}

.logo:focus {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

.logo img {
    height: 50px;
    width: auto !important;
    max-width: 329px;
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

.hamburger {
    width: 25px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--black);
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Navigation */
nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0;
}

.nav-list a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
}

.nav-list a:hover,
.nav-list a:focus {
    text-decoration: underline;
    outline: none;
}

 /* Dropdown Menu */
        .has-dropdown {
            position: relative;
        }

        .dropdown-toggle {
            background: none;
            border: 2px solid transparent;
            cursor: pointer;
            font: inherit;
            color: var(--black);
            font-weight: 500;
            font-size: 16px;
            text-transform: uppercase;		
            letter-spacing: 0.5px;
            padding: 0;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .dropdown-toggle:hover,
        .dropdown-toggle:focus {
            border-bottom: 2px solid var(--black);
            outline: none;	
			transition: all 0.25s ease;
        }

        .dropdown-toggle::after {
            content: '▾';
            font-size: 20px;
			transition: transform 0.25s ease;
        }
.has-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}
        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--white);
            min-width: 220px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
            list-style: none;
            padding: 10px 0;           
        }

        .has-dropdown:hover .dropdown-menu,
        .has-dropdown:focus-within .dropdown-menu {
            display: block;
        }

        .dropdown-menu a {
            display: block;
            padding: 10px 20px;
            white-space: nowrap;
        }

/* CTA Buttons */
.cta-button {
    background-color: var(--primary-green);
    color: var(--white) !important;
    padding: 5px 25px !important;
    text-decoration: none !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-green);
    transition: all 0.3s;
    display: inline-block;
}

.cta-button:hover,
.cta-button:focus {
    background-color: var(--dark-green) !important;
    border-color: var(--dark-green) !important;
    color: var(--white) !important;
    text-decoration: none !important;
    outline: none;
}

.cta-button-white {
    background-color: var(--white);
    color: var(--primary-green) !important;
    border-color: var(--white);
}

.cta-button-white:hover,
.cta-button-white:focus {
    background-color: var(--primary-green) !important;
    color: var(--white) !important;
    border-color: var(--white) !important;
}

/* ========================================
   PAGE HEADERS
   ======================================== */

/* Standard Page Header (tan background) */
.page-header {
    background-color: var(--light-tan);
    padding: 60px 20px;
    text-align: center;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Photo Header - Page header with background image */
.photo-header {
    background-color: var(--text-gray);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    color: var(--white);
}

/*use only for automatic overlay
.photo-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}*/

.photo-header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.photo-header h1 {
    color: var(--white);
}

.photo-header p {
    color: var(--white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   HERO SECTION (HOMEPAGE SLIDESHOW)
   ======================================== */

.hero {
    background-color: var(--text-gray);
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

/* Slideshow images - Update with actual image paths */
.hero-slide:nth-child(1) {
    background-image: url('../img/crane-service-chicopee1.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('../img/crane-service-chicopee4.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('../img/crane-service-chicopee2.jpg');
}

.hero-slide:nth-child(4) {
    background-image: url('../img/crane-service-chicopee3.jpg');
}

.hero-slide:nth-child(5) {
    background-image: url('../img/crane-service-chicopee5.jpg');
}

.hero-content {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--white);
}

.hero p {
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   GENERAL CONTENT SECTIONS
   ======================================== */

/* Standard content section with max-width container */
.content {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tan background section */
.tanbg {
    background-color: var(--light-tan);
    padding: 60px 20px;
}

.tanbg .industries-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Two-column layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.two-column.reverse {
    grid-template-columns: 1fr 1fr;
}

.column {
    display: flex;
    flex-direction: column;
}

.column img {
    width: 100%;
    height: auto;
    /*border-radius: 8px;*/
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
    padding: 60px 20px;
    background-color: var(--white);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.service-card-header {
    background-color: var(--black);
    color: var(--white);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-card h2 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
    color: var(--white);
}

.service-card-image {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-content {
    padding: 30px 25px;
    text-align: center;
}

.service-card p {
    font-size: 15px;
}

.learn-more {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.learn-more:hover span,
.learn-more:focus span {
    text-decoration: underline;
}

.learn-more::after {
    content: '›';
    font-size: 20px;
}

/* ========================================
   INDUSTRIES SECTION
   ======================================== */

.industries-section {
    background-color: var(--light-tan);
    padding: 60px 20px;
    text-align: center;
}

.industries-intro {
    max-width: 800px;
    margin: 0 auto 40px;
}

.industries-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.industry-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.industry-icon a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.industry-icon:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Placeholder div circles (if no image) */
div.industry-icon {
    background-color: var(--primary-green);
    border-radius: 50%;
}

.industry-card h3 {
    font-size: 18px;
	text-align:center !important;
}

/* ========================================
   WHY CHOOSE SECTION
   ======================================== */

.why-choose-section {
    padding: 60px 20px;
    background-color: var(--white);
	background-image:url("../img/crane-truck-service.svg");
    background-size: auto 65%;
    background-position: center;
	background-repeat: no-repeat;
    text-align: center;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;     /* Vertical centering */
    justify-content: center;  /* Horizontal centering */
}

/* Placeholder div circles (if no image) */
div.feature-icon {
    background-color: var(--primary-green);
    border-radius: 50%;
}

.feature h3 {
    font-size: 18px;
}

/* ========================================
   TESTIMONIAL SECTION
   ======================================== */

.testimonial-section {
    background-color: var(--light-tan);
    padding: 60px 20px;
}

.testimonial-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    color: var(--white);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(-45deg, #0d4f00, #0b4100, #052300, #0d2818);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: 40px 20px 20px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
}

.footer-section p,
.footer-section address {
    font-style: normal;
    line-height: 1.8;
    color: var(--white);
}

.footer-section ul {
    padding-left: 0;
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white) !important;
    text-decoration: underline;
}

.footer-section a:hover,
.footer-section a:focus {
    text-decoration: none;
}

.footer-map {
    width: 100%;
    height: 200px;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

.footer-bottom,
.footer-bottom p {
    color: var(--white);
}

.footer-bottom a {
    color: var(--white) !important;
    text-decoration: underline;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    text-decoration: none;
}

/* ========================================
   RESPONSIVE / MOBILE STYLES
   ======================================== */

@media (max-width: 1095px) {
    .top-bar-content {
		display: flex;
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 5px 0; /* Adds space so text doesn't hit the edges */
    }
   /* Mobile menu */
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        padding: 60px 0 20px;
    }

    nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .nav-list > li {
        border-bottom: 1px solid var(--light-tan);
    }

    .nav-list a,
    .dropdown-toggle {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: left;
    }

    .has-dropdown {
        position: static;
    }

    .dropdown-toggle {
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #f5f5f5;
        display: none;
        margin-top: 0;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
    }

}


@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

     .cta-button {
        margin: 10px 20px;
        text-align: center;
    }

    /* Hero adjustments */
    .hero-subtitle {
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Photo header adjustments */
    .photo-header {
        padding: 60px 20px;
    }

    /* Two-column layout stacks on mobile */
    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Services grid */
    .services-grid {
        gap: 40px;
    }

    /* Industries grid */
    .industries-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .industry-icon {
        width: 100px;
        height: 100px;
    }

    div.industry-icon {
        background-color: var(--primary-green);
        border-radius: 50%;
    }
}

/* ========================================
   ACCESSIBILITY - FOCUS VISIBLE
   ======================================== */

*:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}