/* Global Styles */
:root {
    --primary-blue: #003366;
    /* Dark Blue */
    --secondary-blue: #0056b3;
    /* Medium Blue */
    --light-blue: #e0f2f7;
    /* Very Light Blue */
    --dark-grey: #333;
    --medium-grey: #666;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --accent-color: #ffc107;
    /* Yellow for highlights */
    --success-green: #28a745;
    --error-red: #dc3545;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --header-height: 80px;
    --padding-section: 80px 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
}

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

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark-grey);
    margin-bottom: 15px;
}

h1 {
    font-size: 2.8em;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

.section-padding {
    padding: var(--padding-section);
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 2.5em;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: var(--medium-grey);
}

.bg-light {
    background-color: var(--light-grey);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 60px;
    /* Increased by 20% */
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
    /* Center entire menu */
    width: 100%;
}

.nav-menu li a {
    color: var(--white);
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

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

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--white);
    color: var(--dark-grey);
    min-width: 240px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    /* Raise above header */
    list-style: none;
    padding: 12px 0;
    border-radius: 8px;
    top: 100%;
    /* Position below the parent link */
    left: 50%;
    transform: translateX(-50%);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
    /* Keep menu open when hovering inside */
}

.dropdown-menu li {
    padding: 8px 20px;
}

.dropdown-menu li a {
    color: var(--dark-grey);
    font-weight: 500;
    font-size: 1em;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.dropdown-menu li a:hover {
    color: var(--primary-blue);
}

.dropdown-menu li a::after {
    display: none;
    /* Hide underline for dropdown items */
}

.nav-toggle {
    display: none;
    /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: url('https://via.placeholder.com/1920x800/003366/FFFFFF?text=Transport+Truck+Road') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Added to contain animation */
}

/* Animated Logo Background */
.hero-traffic-bg::before,
.hero-traffic-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('../assets/images/Dark-logo.png');
    background-repeat: repeat;
    background-size: 140px auto;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.hero-traffic-bg::before {
    animation: trafficLeftToRight 45s linear infinite;
}

.hero-traffic-bg::after {
    animation: trafficRightToLeft 60s linear infinite;
    opacity: 0.06;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 51, 102, 0.45);
    /* Themed semi-transparent overlay */
    z-index: 1;
}

@keyframes trafficLeftToRight {
    from {
        transform: translate3d(-10%, -10%, 0) rotate(-5deg);
    }

    to {
        transform: translate3d(0, 0, 0) rotate(-5deg);
    }
}

@keyframes trafficRightToLeft {
    from {
        transform: translate3d(0, 0, 0) rotate(5deg);
    }

    to {
        transform: translate3d(-10%, -10%, 0) rotate(5deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-traffic-bg::before,
    .hero-traffic-bg::after {
        animation: none;
    }
}

/* Mega menu: multi-column layout */
.dropdown-menu.mega-menu {
    width: 1080px;
    /* Wider to reliably fit 4 columns */
    max-width: 96vw;
    padding: 18px 20px;
    display: none;
    background-color: var(--white);
    /* Ensure full mega menu background */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.dropdown:hover>.dropdown-menu.mega-menu,
.dropdown-menu.mega-menu:hover {
    display: grid;
}

/* Prevent flicker when moving across columns */
.dropdown-menu.mega-menu {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    /* Show all five columns */
    gap: 24px;
}

.dropdown-menu.mega-menu h3 {
    font-size: 0.95em;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.dropdown-menu.mega-menu>li {
    padding: 0 6px;
}

.dropdown-menu.mega-menu>li ul li a {
    display: block;
    padding: 4px 0;
}

.dropdown-menu.mega-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu.mega-menu ul li {
    margin: 6px 0;
}

.dropdown-menu.mega-menu a {
    color: var(--dark-grey);
}

/* Full-viewport dropdown background while keeping content centered */
.dropdown-menu.mega-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    /* Full viewport width backdrop */
    height: 100%;
    background: var(--white);
    z-index: -1;
    /* Sit behind the menu content */
}

/* Mobile: stack mega menu and remove centering transform */
@media (max-width: 768px) {

    .dropdown-menu,
    .dropdown-menu.mega-menu {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        padding: 8px 0;
    }

    .dropdown:hover>.dropdown-menu,
    .dropdown:hover>.dropdown-menu.mega-menu {
        display: block;
    }

    .dropdown-menu.mega-menu {
        grid-template-columns: 1fr;
    }
}

/* Animated Hero Background Components */
.hero-traffic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-traffic-bg::before,
.hero-traffic-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('../assets/images/Dark-logo.png');
    background-repeat: repeat;
    background-size: 280px auto;
    /* Doubled from 140px to reduce density */
    opacity: 0.15;
    /* Increased opacity for visibility */
    z-index: 0;
    pointer-events: none;
}

.hero-traffic-bg::before {
    animation: trafficLeftToRight 22.5s linear infinite;
    /* Halved from 45s to double speed */
}

.hero-traffic-bg::after {
    animation: trafficRightToLeft 60s linear infinite;
    opacity: 0.12;
    /* Increased opacity for visibility */
}

/* Overlay for readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.45);
    /* Themed semi-transparent blue */
    z-index: 1;
}

@keyframes trafficLeftToRight {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(280px, 0, 0);
    }

    /* Matches 1x logo size (280px) for seamless loop */
}

@keyframes trafficRightToLeft {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-280px, 280px, 0);
    }

    /* Matches new tile size for diagonal loop */
}

@media (prefers-reduced-motion: reduce) {

    .hero-traffic-bg::before,
    .hero-traffic-bg::after {
        animation: none;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    /* Increased to sit above animation and overlay */
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Subpage Hero Section */
.hero-subpage {
    background-color: var(--primary-blue);
    /* Fallback */
    background-position: center center;
    background-size: cover;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-subpage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
}

.hero-subpage .container {
    position: relative;
    z-index: 1;
}

.hero-subpage h1 {
    font-size: 3em;
    color: var(--white);
}


/* About Section */
.about-section {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.about-item {
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-item h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* Features Grid */
.features-grid {
    background-color: var(--light-grey);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 44px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin: 20px 15px 10px;
}

.feature-card p {
    padding: 0 15px 20px;
    color: var(--medium-grey);
}

.feature-card .btn {
    margin-bottom: 20px;
}

/* Testimonials Carousel */
.testimonials-section {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.testimonials-section .section-title {
    color: var(--white);
}

.testimonials-section .section-description {
    color: var(--light-blue);
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px auto;
    overflow: hidden;
    padding: 20px;
}

.testimonial-item {
    display: none;
    /* Hidden by default, JS will manage visibility */
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: fadeIn 0.8s ease-out;
}

.testimonial-item.active {
    display: block;
}

.testimonial-item .stars {
    color: var(--accent-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.testimonial-item p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-item cite {
    display: block;
    font-style: normal;
    font-weight: bold;
    color: var(--light-blue);
}

.carousel-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot.active {
    background-color: var(--white);
}

/* Service Areas Section */
.service-areas-section {
    background-color: var(--light-grey);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.area-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.area-item h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.area-item ul {
    list-style: none;
    padding: 0;
}

.area-item ul li {
    margin-bottom: 8px;
    color: var(--medium-grey);
}

.area-item ul li a {
    color: var(--medium-grey);
}

.area-item ul li a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Content Section for Subpages */
.content-section {
    background-color: var(--white);
}

.content-section h1,
.content-section h2,
.content-section h3 {
    color: var(--primary-blue);
}

.content-section p {
    margin-bottom: 1em;
}

.content-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.content-section ul li {
    margin-bottom: 5px;
}

.sub-section-title {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 2em;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background-color: var(--light-grey);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-item h3 {
    color: var(--secondary-blue);
    margin-bottom: 10px;
}

.text-center {
    text-align: center;
    margin-top: 30px;
}

/* Contact Form */
.contact-section {
    background-color: var(--white);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--light-grey);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-grey);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
/* Added date input */
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-grey);
    border-radius: 5px;
    font-size: 1em;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.form-hint {
    font-size: 0.9em;
    color: var(--medium-grey);
    margin-top: 5px;
    display: block;
}

.error-message {
    color: var(--error-red);
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
    /* Hidden by default, shown by JS */
}

.form-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    display: none;
    /* Hidden by default, shown by JS */
}

.form-feedback.success-message {
    background-color: var(--success-green);
    color: var(--white);
}

.form-feedback.error-message {
    background-color: var(--error-red);
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 60px 0 20px 0;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-col p,
.footer-col ul li {
    margin-bottom: 10px;
    color: var(--light-grey);
}

.footer-col a {
    color: var(--light-grey);
}

.footer-col a:hover {
    color: var(--accent-color);
}

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

.social-links a {
    display: inline-block;
    margin-right: 15px;
}

/* Styling for Font Awesome icons */
.social-links a i {
    color: var(--white);
    /* Make icons white */
    font-size: 24px;
    /* Adjust size as needed */
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: var(--accent-color);
    /* Yellowish hover */
}

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

/* Floating Buttons */
.floating-quote-btn,
.floating-phone-btn {
    position: fixed;
    bottom: 30px;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    /* Prevent text wrap */
}

.floating-quote-btn {
    right: 30px;
    background-color: var(--accent-color);
    color: var(--primary-blue);
}

.floating-quote-btn:hover {
    background-color: #ffda6a;
    /* Lighter yellow */
    transform: translateY(-3px);
}

.floating-phone-btn {
    left: 30px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--accent-color);
    /* Add a border to make it pop */
}

.floating-phone-btn:hover {
    background-color: var(--secondary-blue);
    border-color: var(--white);
    transform: translateY(-3px);
}


/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific hero animations */
.hero h1.animate-fade-in,
.hero p.animate-fade-in,
.hero .btn.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInFromBottom 1s ease-out forwards;
}

.hero p.delay-1 {
    animation-delay: 0.3s;
}

.hero .btn.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInFromBottom {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        gap: 20px;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.2em;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.6em;
    }

    .section-title {
        font-size: 2em;
    }

    .hero-subpage h1 {
        font-size: 2.5em;
    }

    .sub-section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .nav {
        width: 100%;
        text-align: center;
    }

    .nav-menu {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-blue);
        position: absolute;
        top: var(--header-height);
        /* Adjust based on actual header height */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-menu li a {
        padding: 10px 0;
        display: block;
    }

    .nav-toggle {
        display: block;
        /* Show hamburger icon on mobile */
        position: absolute;
        right: 20px;
        top: 25px;
        /* Align with logo */
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dropdown-menu {
        position: static;
        /* Make dropdown items flow naturally */
        background-color: rgba(0, 51, 102, 0.8);
        /* Slightly lighter blue for sub-menu */
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
        border-radius: 0;
    }

    .dropdown-menu li {
        padding: 8px 30px;
        /* Indent sub-menu items */
    }

    .hero {
        padding: 100px 20px;
        min-height: 450px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .hero-subpage {
        padding: 80px 20px;
        min-height: 250px;
    }

    .hero-subpage h1 {
        font-size: 2em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8em;
    }

    .section-description {
        font-size: 1em;
    }

    .about-grid,
    .grid-container,
    .areas-grid,
    .footer-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .testimonial-item {
        padding: 20px;
    }

    .testimonial-item p {
        font-size: 1em;
    }

    .contact-form {
        padding: 25px;
    }

    .floating-quote-btn,
    .floating-phone-btn {
        bottom: 20px;
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .floating-quote-btn {
        right: 20px;
    }

    .floating-phone-btn {
        left: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.4em;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero-subpage h1 {
        font-size: 1.8em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .header .logo img {
        height: 40px;
    }

    .nav-toggle {
        top: 20px;
    }

    .footer-col h3 {
        font-size: 1.2em;
    }

    .footer-col p,
    .footer-col ul li {
        font-size: 0.85em;
    }

    /* Stack floating buttons on very small screens */
    .floating-quote-btn {
        bottom: 80px;
        /* Adjust to stack above phone button */
        right: 50%;
        transform: translateX(50%);
    }

    .floating-phone-btn {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Mega Menu Styles */
.mega-menu {
    display: none;
    position: absolute;
    background-color: var(--primary-blue);
    width: 100%;
    padding: 20px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    left: 0;
}

.dropdown:hover .mega-menu {
    display: flex;
    justify-content: space-between;
}

.mega-menu>li {
    flex: 1;
    margin: 0 10px;
}

.mega-menu h3 {
    color: var(--accent-color);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.mega-menu ul {
    list-style: none;
    padding: 0;
}

.mega-menu ul li {
    margin-bottom: 8px;
}

.mega-menu ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9em;
}

.mega-menu ul li a:hover {
    color: var(--accent-color);
}