/* Swiftia Development Custom CSS */
:root {
    /* Swiftia Brand Colors */
    --swiftia-green: #2E8B57;
    --swiftia-dark-green: #1E6B47;
    --swiftia-orange: #F68D2E;
    --swiftia-dark-orange: #D67B25;
    --swiftia-blue: #005EB8;
    --swiftia-dark-blue: #00447C;
    --swiftia-brown: #8B4513;

    /* Neutral Colors */
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;

    /* Cargill-inspired additions */
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --accent-orange: #F68D2E;

    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing */
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Safe default so any image without explicit sizing never overflows its container */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Any section/element that is a same-page anchor target scrolls to a position
   clear of the fixed navbar + top bar instead of being hidden underneath it */
section[id],
.footer[id],
main[id] {
    scroll-margin-top: 110px;
}

@media (max-width: 768px) {
    section[id],
    .footer[id],
    main[id] {
        scroll-margin-top: 90px;
    }
}

/* ==========================================================================
   PAGE LOADER
   Shown the instant <body> starts rendering (before the header/footer
   partials or any JS have finished), and faded out by script.js once
   those partials are injected. Pure CSS/markup - no extra image or font
   request, so it never adds to page weight itself.
   ========================================================================== */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    background: var(--white);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 5px solid rgba(46, 139, 87, 0.15);
    border-top-color: var(--swiftia-green);
    border-right-color: var(--swiftia-orange);
    animation: page-loader-spin 0.85s linear infinite;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.page-loader-brand {
    font-family: var(--font-serif);
    font-weight: var(--font-weight-bold);
    color: var(--swiftia-green);
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.page-loader-text {
    font-family: var(--font-primary);
    color: var(--medium-gray);
    font-size: 0.85rem;
}

/* Prevent background scroll while the loader is covering the page */
body.loading {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .page-loader-spinner {
        animation-duration: 1.4s;
    }
}

/* Top Bar */
.top-bar {
    background: var(--swiftia-dark-green);
    padding: 0.25rem 0;
    font-size: 0.8rem;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

.social-links a {
    color: var(--white);
    margin-left: 0.75rem;
    text-decoration: none;
}

/* Floating Navigation Bar */
.navbar {
    background-color: rgba(255, 255, 255, 255);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 1200px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    top: 20px;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 90px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--swiftia-green);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-weight: var(--font-weight-regular);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--swiftia-green);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link:active {
    color: var(--swiftia-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--swiftia-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 1001;
    top: 100%;
    left: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #000000;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: rgba(46, 139, 87, 0.1);
    color: var(--swiftia-green);
}

/* Fix Hero Slider Overflow */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden; /* Ensures 300% slides width never overflows outer screen */
    width: 100%;
    max-width: 100vw;
}

/* Flexbox-based carousel track: each slide is sized to 100% of the
   .slides box itself (not a percentage of a hardcoded multi-slide
   total), so this same markup/CSS works whether a page has 2 slides
   (contact.html) or 3 (index.html) without any per-page overrides. */
.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.2s ease;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    color: var(--white);
}

.slide-content {
    max-width: 800px;
    margin-left: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: 30px;
    font-family: var(--font-serif);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.slide-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

/* Video Button */
.video-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.1s;
}

.video-button:hover {
    background: var(--swiftia-dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-button i {
    font-size: 20px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: var(--swiftia-orange);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--swiftia-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--swiftia-dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 141, 46, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--swiftia-green);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--swiftia-green);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-family: var(--font-serif);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--swiftia-orange);
}

.section-title p {
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--swiftia-green);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    color: var(--swiftia-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--medium-gray);
}

/* Content Section */
.content-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.content-image:hover img {
    transform: scale(1.05);
}

.content-text h2 {
    font-size: 2.5rem;
    color: var(--swiftia-green);
    margin-bottom: 30px;
    font-family: var(--font-serif);
    line-height: 1.2;
    text-align: center;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-gray);
    margin-bottom: 20px;
    padding: 20px;
}

/* Stats Section */
.stats-section {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--swiftia-green);
    margin-bottom: 15px;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Our Purpose Section */
.purpose {
    padding: var(--section-padding);
    background-color: var(--white);
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.purpose-card {
    background: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
    border-top: 4px solid var(--swiftia-green);
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.purpose-card.mission {
    border-top-color: var(--swiftia-green);
}

.purpose-card.vision {
    border-top-color: var(--swiftia-blue);
}

.purpose-card.values {
    border-top-color: var(--swiftia-orange);
}

.purpose-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(46, 139, 87, 0.1);
}

.purpose-card.mission .purpose-icon {
    color: var(--swiftia-green);
}

.purpose-card.vision .purpose-icon {
    color: var(--swiftia-blue);
}

.purpose-card.values .purpose-icon {
    color: var(--swiftia-orange);
}

.purpose-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.purpose-card p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

.values-list {
    text-align: left;
    list-style: none;
    margin-top: 1rem;
}

.values-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--medium-gray);
}

.values-list i {
    color: var(--swiftia-orange);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Gallery Section */
.gallery {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 280px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--swiftia-orange);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2rem 2rem 0.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--swiftia-orange);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--swiftia-orange);
}

.contact-details p {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--white);
}

/* Phone/email are <a> tags and would otherwise inherit the browser's
   default blue underlined link color, which is hard to read against the
   dark footer background - force them to plain white like the rest of
   the footer text, with an underline only as a hover affordance. */
.contact-details p a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-details p a:hover,
.contact-details p a:focus-visible {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.8rem;
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

/* Close button for mobile menu */
.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--swiftia-green);
    cursor: pointer;
    z-index: 1002;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slide-content {
        margin-left: 40px;
        max-width: 600px;
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-text {
        padding-right: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    
    /* Hide the hamburger button when the menu is open */
    .nav-menu.active ~ .menu-toggle,
    body.menu-open .menu-toggle {
        display: none !important;
    }
    
    .navbar {
        width: 95%;
        top: 75px;
        border-radius: 10px;
    }

    .navbar.scrolled {
        top: 10px;
        width: 100%;
        border-radius: 0;
    }

    .nav-container {
        flex-direction: row;
        padding: 0.75rem 1rem;
    }

    .logo {
        flex-direction: row;
        gap: 0.5rem;
        margin-right: auto;
    }

    .logo-img {
        width: 85px;
        height: 55px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-tagline {
        font-size: 0.7rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

/* Standard mobile slide-out drawer positioning */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 70px 0 20px 0; /* Top padding leaves space for close button */
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1001; /* Ensure menu drawer is above top navbar */
        overflow-y: auto;
        gap: 0;
    }
    
    /* Position the close button distinctly inside top right of mobile drawer */
    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--swiftia-green);
        cursor: pointer;
        z-index: 1002;
    }
    
    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: rgba(46, 139, 87, 0.05);
        border-radius: 0;
        border-left: 3px solid var(--swiftia-green);
        margin-left: 2rem;
        width: calc(100% - 4rem);
    }

    .dropdown-content.active {
        display: block;
    }

    .dropdown-content a {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-slider {
        min-height: 600px;
    }

    .slide-content {
        margin: 0 20px;
        text-align: center;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .video-button {
        padding: 12px 25px;
    }

    .section-title h2,
    .content-text h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 0.8rem;
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .purpose-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .section-title h2,
    .content-text h2 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* (Removed: dead #videoContainer/#videoPlaceholder rules - no matching markup exists anywhere on the site) */


/* ==========================================================================
   SHARED INNER-PAGE COMPONENTS
   Used by: agricultural_machinery.html, irrigation_machinery.html,
   industrial_machinery.html, mining_machinery.html, construction_machinery.html,
   careers.html
   Consolidated here so every page shares ONE definition instead of each page
   carrying its own slightly-different copy.
   ========================================================================== */

/* Current-page nav highlighting (set by script.js) */
.nav-link.active {
    color: var(--swiftia-green);
    font-weight: var(--font-weight-bold);
}

/* ---- Inner Page Header (hero banner under the fixed nav) ---- */
.page-header {
    background: linear-gradient(135deg, var(--swiftia-green) 0%, var(--swiftia-dark-green) 100%);
    color: var(--white);
    padding: 9rem 1.5rem 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw + 1rem, 2.8rem);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.page-header p {
    font-size: clamp(1rem, 1vw + 0.85rem, 1.2rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-header {
        padding: 7.5rem 1.25rem 3rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 8.5rem 1rem 2.5rem;
    }
}

/* ---- Product Grid / Product Card (used by all machinery pages) ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-img .icon-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    color: var(--swiftia-green);
    font-size: 3rem;
}

/* Shown by script.js when a product image fails to load, or by default
   when a product card has no image at all */
.product-img.no-image .icon-fallback {
    display: flex;
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    color: var(--swiftia-green);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.product-description {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.price {
    color: var(--swiftia-orange);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0.8rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.features {
    list-style: none;
    margin: 1rem 0;
}

.features li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.features i {
    color: var(--swiftia-green);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.product-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.25rem;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   CAREERS PAGE COMPONENTS
   ========================================================================== */

.careers-hero {
    background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url('https://images.unsplash.com/photo-1672664214894-0ad13fc43643?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 11rem 1.5rem 5rem;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.careers-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.careers-hero h1 {
    font-size: clamp(1.9rem, 4vw + 1rem, 3.2rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.25rem;
    font-family: var(--font-serif);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.careers-hero p {
    font-size: clamp(1rem, 1vw + 0.85rem, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-green {
    background-color: var(--swiftia-green);
    color: var(--white);
}

.btn-green:hover {
    background-color: var(--swiftia-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

.why-work,
.job-openings,
.application-form-section {
    padding: var(--section-padding);
}

.why-work { background-color: var(--white); }
.job-openings { background-color: var(--light-gray); }
.application-form-section { background-color: var(--white); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
    text-align: center;
    border-top: 4px solid var(--swiftia-green);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--swiftia-green);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(46, 139, 87, 0.1);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--swiftia-green);
}

.benefit-card p {
    color: var(--medium-gray);
}

.job-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    background-color: var(--white);
    border: 2px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--swiftia-green);
    color: var(--white);
    border-color: var(--swiftia-green);
}

.jobs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.job-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    overflow: hidden;
    border-left: 4px solid var(--swiftia-orange);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.job-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.job-category {
    display: inline-block;
    background-color: rgba(46, 139, 87, 0.1);
    color: var(--swiftia-green);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
}

.job-card-header h3 {
    font-size: 1.4rem;
    color: var(--swiftia-blue);
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    color: var(--medium-gray);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.job-meta-item i {
    color: var(--swiftia-orange);
}

.job-card-body {
    padding: 1.5rem;
}

.job-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.job-requirements h4 {
    color: var(--swiftia-green);
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.job-requirements ul {
    list-style: none;
    padding-left: 0;
}

.job-requirements li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.job-requirements li::before {
    content: "\2713";
    color: var(--swiftia-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.job-card-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    text-align: right;
}

.no-jobs-message {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-jobs-icon {
    font-size: 3.5rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.no-jobs-message h3 {
    color: var(--swiftia-green);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.no-jobs-message p {
    color: var(--medium-gray);
    max-width: 500px;
    margin: 0 auto 1.2rem;
    font-size: 1.05rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--swiftia-green);
    font-size: 1.8rem;
    font-family: var(--font-serif);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--swiftia-green);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--swiftia-green);
    background-color: rgba(46, 139, 87, 0.05);
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--swiftia-green);
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.post-job-form {
    background: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 3rem;
    display: none;
}

.post-job-form.active {
    display: block;
}

.admin-controls {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--swiftia-orange);
}

.admin-controls h3 {
    color: var(--swiftia-orange);
    margin-bottom: 1rem;
}

.admin-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .careers-hero {
        padding: 9.5rem 1.25rem 3.5rem;
        min-height: 420px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .job-meta {
        flex-direction: column;
        gap: 0.6rem;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 1.75rem;
    }
}

/* ==========================================================================
   EXTRA RESPONSIVE POLISH (very small phones & large / wide screens)
   ========================================================================== */

@media (max-width: 360px) {
    .logo-text { font-size: 0.8rem; }
    .logo-tagline { font-size: 0.65rem; }
    .btn { padding: 0.7rem 1.1rem; font-size: 0.8rem; }
    .section-title h2 { font-size: 1.5rem; }
}

/* Large desktop / wide monitor refinements */
@media (min-width: 1600px) {
    .top-bar-content,
    .nav-container,
    .content-container,
    .services-grid,
    .stats-grid,
    .purpose-grid,
    .gallery-grid,
    .products-grid,
    .footer-content,
    .benefits-grid,
    .jobs-container,
    .form-container {
        max-width: 1400px;
    }

    .hero-slider {
        min-height: 820px;
    }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   SWIFTIA DEVELOPMENT LTD
   REQUEST QUOTE MODAL
   ========================================================= */

.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding-top: 20px;
}

.quote-modal.active {
    display: flex;
}


.quote-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


.quote-modal-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 850px;

    max-height: 92vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.30);

    animation:
        quoteModalOpen
        0.25s ease;
}


@keyframes quoteModalOpen {

    from {
        opacity: 0;
        transform:
            translateY(25px)
            scale(0.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }

}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.quote-close {

    position: absolute;

    top: 18px;
    right: 18px;

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.16);

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    z-index: 5;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.quote-close:hover {

    background:
        rgba(255, 255, 255, 0.28);

    transform:
        rotate(90deg);

}


/* =========================================================
   HEADER
   ========================================================= */

.quote-header {

    display: flex;

    align-items: center;

    gap: 18px;

    padding:
        28px
        65px
        28px
        30px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2e8b57,
            #1f6b43
        );

    border-radius:
        18px
        18px
        0
        0;
}


.quote-header-icon {

    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.15);

    font-size: 25px;

}


.quote-header h2 {

    margin:
        0 0 4px;

    font-size:
        1.6rem;

}


.quote-header p {

    margin: 0;

    opacity: 0.9;

    font-size:
        0.9rem;

}


/* =========================================================
   FORM
   ========================================================= */

.quote-form {

    padding:
        25px
        30px
        30px;

}


.quote-section {

    margin-bottom:
        25px;

}


.quote-section-title {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom:
        18px;

}


.quote-section-title > i {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #2e8b57;

    background:
        rgba(46, 139, 87, 0.10);

}


.quote-section-title h3 {

    margin: 0;

    color: #333333;

    font-size:
        1.1rem;

}


.quote-section-title p {

    margin:
        2px 0 0;

    color: #777777;

    font-size:
        0.82rem;

}


/* =========================================================
   SELECTED PRODUCT
   ========================================================= */

.quote-product-box {

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 18px;

    margin-bottom:
        28px;

    border:
        1px solid
        rgba(46, 139, 87, 0.18);

    border-left:
        5px solid
        #2e8b57;

    border-radius: 12px;

    background:
        #f7fbf8;

}


.quote-product-icon {

    width: 60px;
    height: 60px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #ffffff;

    background:
        #2e8b57;

    font-size: 24px;

}


.quote-product-info {

    min-width: 0;

}


.quote-label {

    display: block;

    margin-bottom: 3px;

    color: #777777;

    font-size:
        0.68rem;

    font-weight: 700;

    letter-spacing:
        1px;

}


.quote-product-info h3 {

    margin:
        0 0 3px;

    color:
        #2e8b57;

    font-size:
        1.25rem;

}


.quote-product-info p {

    margin:
        0 0 5px;

    color:
        #777777;

    font-size:
        0.88rem;

}


.quote-product-price {

    color:
        #f68d2e;

    font-weight:
        700;

    font-size:
        0.95rem;

}


/* =========================================================
   FORM GRID
   ========================================================= */

.quote-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 17px;

}


.quote-field {

    min-width: 0;

}


.quote-field label {

    display: block;

    margin-bottom: 7px;

    color:
        #333333;

    font-size:
        0.86rem;

    font-weight:
        600;

}


.quote-field label span {

    color:
        #d93025;

}


.quote-input-wrapper {

    position: relative;

}


.quote-input-wrapper > i {

    position: absolute;

    left: 14px;
    top: 50%;

    transform:
        translateY(-50%);

    color:
        #2e8b57;

    pointer-events:
        none;

}


.quote-input-wrapper input,
.quote-input-wrapper select,
.quote-field textarea {

    width: 100%;

    border:
        1px solid
        #dfe4e1;

    border-radius: 8px;

    outline: none;

    background:
        #ffffff;

    color:
        #333333;

    font-family:
        inherit;

    font-size:
        0.9rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.quote-input-wrapper input,
.quote-input-wrapper select {

    height:
        46px;

    padding:
        0
        13px
        0
        42px;

}


.quote-field textarea {

    min-height:
        120px;

    resize:
        vertical;

    padding:
        13px;

}


.quote-input-wrapper input:focus,
.quote-input-wrapper select:focus,
.quote-field textarea:focus {

    border-color:
        #2e8b57;

    box-shadow:
        0 0 0 3px
        rgba(46, 139, 87, 0.10);

}


.quote-input-wrapper input::placeholder,
.quote-field textarea::placeholder {

    color:
        #a0a7a3;

}


.quote-full-field {

    margin-top:
        17px;

}


/* =========================================================
   CONSENT
   ========================================================= */

.quote-consent {

    padding:
        14px;

    margin-top:
        5px;

    border-radius:
        8px;

    background:
        #f7f8f8;

}


.quote-consent label {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        10px;

    cursor:
        pointer;

    color:
        #777777;

    font-size:
        0.82rem;

}


.quote-consent input {

    margin-top:
        3px;

    accent-color:
        #2e8b57;

}


/* =========================================================
   FORMSPREE MESSAGES
   ========================================================= */

.quote-form-message {

    padding:
        12px
        14px;

    margin-top:
        15px;

    border-radius:
        8px;

    font-size:
        0.88rem;

}


.quote-form-message:empty {

    display:
        none;

}


.quote-form-message.success {

    color:
        #176b3a;

    background:
        #eaf7ef;

    border:
        1px solid
        #bce5ca;

}


.quote-form-message.error {

    color:
        #a52626;

    background:
        #fff0f0;

    border:
        1px solid
        #f0c4c4;

}


/* =========================================================
   BUTTONS
   ========================================================= */

.quote-actions {

    display:
        flex;

    justify-content:
        flex-end;

    gap:
        12px;

    margin-top:
        25px;

    padding-top:
        20px;

    border-top:
        1px solid
        #eeeeee;

}


.quote-cancel-btn,
.quote-submit-btn {

    min-height:
        46px;

    padding:
        0 22px;

    border-radius:
        7px;

    font-family:
        inherit;

    font-weight:
        600;

    cursor:
        pointer;

    transition:
        0.25s ease;

}


.quote-cancel-btn {

    border:
        1px solid
        #d7dcd9;

    background:
        #ffffff;

    color:
        #777777;

}


.quote-cancel-btn:hover {

    background:
        #f5f5f5;

}


.quote-submit-btn {

    border:
        none;

    background:
        #f68d2e;

    color:
        #ffffff;

}


.quote-submit-btn:hover {

    background:
        #dc7419;

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 15px
        rgba(246, 141, 46, 0.30);

}


.quote-submit-btn:disabled {

    opacity:
        0.65;

    cursor:
        not-allowed;

    transform:
        none;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .quote-modal {

        padding:
            10px;

    }


    .quote-modal-container {

        max-height:
            95vh;

        border-radius:
            14px;

    }


    .quote-header {

        padding:
            22px
            55px
            22px
            20px;

        border-radius:
            14px
            14px
            0
            0;

    }


    .quote-header-icon {

        width:
            48px;

        height:
            48px;

        font-size:
            20px;

    }


    .quote-header h2 {

        font-size:
            1.3rem;

    }


    .quote-header p {

        font-size:
            0.78rem;

    }


    .quote-form {

        padding:
            20px
            18px
            22px;

    }


    .quote-grid {

        grid-template-columns:
            1fr;

        gap:
            14px;

    }


    .quote-product-box {

        align-items:
            flex-start;

        padding:
            14px;

    }


    .quote-product-icon {

        width:
            48px;

        height:
            48px;

        font-size:
            19px;

    }


    .quote-product-info h3 {

        font-size:
            1.05rem;

    }


    .quote-product-info p {

        font-size:
            0.8rem;

    }


    .quote-actions {

        flex-direction:
            column-reverse;

    }


    .quote-cancel-btn,
    .quote-submit-btn {

        width:
            100%;

    }

}


@media (max-width: 480px) {

    .quote-modal {

        padding:
            0;

    }


    .quote-modal-container {

        width:
            100%;

        max-height:
            100vh;

        border-radius:
            0;

    }


    .quote-header {

        border-radius:
            0;

    }


    .quote-close {

        top:
            14px;

        right:
            14px;

    }

}

/* =========================================================
   MOBILE TOP CONTACT BAR
   ========================================================= */

@media (max-width: 768px) {

    /* Make the top bar compact */
    .top-bar {
        width: 100%;
    }

    .top-bar-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 7px 10px;
    }

    /* Phone + Email become two equal columns */
    .contact-info {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    /* Each contact occupies one column */
    .contact-info a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;

        min-width: 0;
        padding: 3px 8px;

        font-size: 0.72rem;
        white-space: nowrap;
        text-decoration: none;
    }

    /* Vertical separator between phone and email */
    .contact-info a + a {
        border-left: 1px solid rgba(255, 255, 255, 0.45);
    }

    /* Icons */
    .contact-info a i {
        flex-shrink: 0;
        font-size: 0.7rem;
    }

    /* Social media moves to its own row */
    .social-links {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;

        padding-top: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .social-links span {
        font-size: 0.68rem;
    }

    .social-links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .logo-text { font-size: 0.8rem; }
    .contact-info a {
        font-size: 0.64rem;
        gap: 4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .contact-info a i {
        font-size: 0.62rem;
    }

}
/* ==========================================================================
   CONTACT PAGE COMPONENTS
   Reuses .careers-hero, .hero-slider, .benefits-grid/.benefit-card,
   .form-container/.form-group and .products-grid conventions already
   defined above, so this section only adds what's genuinely new:
   the "get in touch" info cards and the location map.
   ========================================================================== */

.contact-info-section {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

/* Re-uses the same card look as .benefit-card (careers page) so the whole
   site stays visually consistent instead of introducing a new card style. */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 4px solid var(--swiftia-green);
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-info-card .benefit-icon {
    margin-bottom: 1.2rem;
}

.contact-info-card h3 {
    color: var(--swiftia-green);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--medium-gray);
    font-size: 0.95rem;
    text-decoration: none;
    word-break: break-word;
}

.contact-info-card a:hover {
    color: var(--swiftia-green);
    text-decoration: underline;
}

/* ---- Location map ---- */
.map-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

/* ---- Contact form section (reuses .form-container/.form-group) ---- */
.contact-form-section {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    .map-container iframe {
        height: 320px;
    }
}

@media (min-width: 1600px) {
    .contact-info-grid,
    .map-container {
        max-width: 1400px;
    }
}

/* ==========================================================================
   EXTRA FLEXIBILITY / RESPONSIVENESS PASS
   Small additions layered on top of the existing breakpoints above so very
   small phones and very large / ultra-wide monitors both stay comfortable,
   without touching any color, spacing rhythm, or component already tuned.
   ========================================================================== */

/* Guard against ultra-narrow devices (older/small Android phones ~320px)
   where the hero slider text and buttons could otherwise feel cramped. */
@media (max-width: 340px) {
    .hero-slider,
    .careers-hero {
        min-height: 480px;
    }
    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
    }
    .video-button {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Landscape phones / short-viewport devices: the 100vh hero can push the
   fold content too far down when height is limited, so cap it. */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-slider {
        height: auto;
        min-height: 420px;
    }
}

/* Any flex row of controls (filters, admin buttons, quote actions) should
   never overflow horizontally on narrow screens. */
.job-filters,
.admin-buttons,
.social-links {
    max-width: 100%;
}

/* Ultra-wide monitors: keep line length and hero imagery sane beyond 1600px */
@media (min-width: 1920px) {
    .hero-slider {
        min-height: 900px;
    }
    .content-text p,
    .purpose-card p,
    .benefit-card p {
        max-width: 60ch;
        margin-left: auto;
        margin-right: auto;
    }
}
