/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;700&display=swap');

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

:root {
    --primary-red: #E42326;
    --dark-blue: #1F2837;
    --medium-blue: #5C81B7;
    --light-grey: #D1D3D4;
    --white: #ffffff;
}

body {
    font-family: 'Rubik', sans-serif;
    color: var(--dark-blue);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: var(--dark-blue);
    text-transform: uppercase;
}

h1 {
    font-size: 60px;
    line-height: 1.1;
    color: var(--dark-blue);
    /* Or Red if accent desired */
}

h2 {
    font-size: 36px;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 24px;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 16px;
    color: var(--dark-blue);
    /* Default text color per brand guide */
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark-blue);
    /* Dark Blue Background */
    z-index: 1000;
    padding: 0 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    /* Increased height */
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
    /* White text */
}

.logo img {
    height: 64px !important;
    /* Reduced by 20% (80px -> 64px) */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    color: var(--white);
    /* White links */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
    /* Hover color */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
    color: var(--white);
    /* White login text */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    /* Full screen hero */
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--dark-blue);
    text-align: center;
    padding-bottom: 100px;
    /* Space for the floating card overlap */
    margin-bottom: 100px;
    /* Space for the card to protrude */
}

/* Updated Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Lighter overlay to see image better */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 90%;
    padding: 80px 60px;
    background: var(--white);
    /* Removed box-shadow to blend with page */
    margin-bottom: -150px;
    /* Move card down to overlap next section */
    /* Center content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 60px;
    color: var(--dark-blue);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--dark-blue);
    font-weight: 400;
}

/* Update hero buttons to be dark since they are on white now */
.hero-content .btn {
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
}

.hero-content .btn:hover {
    background: var(--dark-blue);
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
}

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

.btn-dark {
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
}

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

.btn-red {
    border: 2px solid var(--primary-red);
    background: var(--primary-red);
    color: var(--white);
}

.btn-red:hover {
    background: transparent;
    color: var(--primary-red);
}


/* Sections General */
section {
    padding: 80px 40px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    background-color: var(--white);
    text-align: center;
}

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

.service-card {
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.service-card p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

/* About Intro Grid */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.about-intro-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* About/Team Section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.team-member{
    text-align: center;
}
.team-member img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    /* Shift image down to prevent head cutoff */
    margin-bottom: 25px;
    display: block;
}

/* Name: Lighter font weight but big */
.team-member h3 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Title: Mid size but bold */
.team-member p.role {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

/* Description: Light and normal font */
.team-member p.bio {
    font-size: 16px;
    font-weight: 300;
    color: var(--dark-blue);
    line-height: 1.6;
}

/* About Page Specifics */
.about-hero {
    height: 60vh;
    background-image: url('images/hero-about.jpg');
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-intro .hero-content h2 {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Contact Section */
.contact-form-section {
    background-color: var(--dark-blue);
    color: var(--white);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

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

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 1px solid var(--white);
    background: transparent;
    font-size: 16px;
    font-family: inherit;
    color: var(--white);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--primary-red);
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    padding: 60px 40px;
    color: var(--white);
    border-top: none;
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col p {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 14px;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    font-size: 12px;
    color: var(--white);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility */
.text-center {
    text-align: center;
}

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

.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Services Page Overhaul */

/* Services Intro */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.services-intro p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--dark-blue);
}

.services-intro img {
    width: 100vw;
    height: 400px;
    object-fit: cover;
    display: block;
    margin-top: 60px;
    margin-bottom: 20px;

    /* Force full width breakout */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;

    /* Reset previous centering hack */
    position: relative;
    left: auto;
    transform: none;
}

/* Services Grid Breakdown */
.services-breakdown-section {
    padding-bottom: 20px;
    /* Reduced padding */
}

.section-header h2 {
    text-align: center;
    font-size: 42px;
    /* Bigger */
    font-weight: 300;
    /* Lighter */
    margin-bottom: 40px;
    color: var(--dark-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.services-breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 in a row */
    gap: 30px;
    /* Reduced gap to fit 4 */
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .services-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-breakdown {
        grid-template-columns: 1fr;
    }
}

.service-item {
    text-align: center;
    /* Or left based on preference, centered usually looks good for icons */
    padding: 20px;
}

/* .service-icon-placeholder {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
} */

.service-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.service-item h3 {
    font-size: 16px;
    /* Smaller title */
    margin-bottom: 15px;
    color: var(--dark-blue);
    font-weight: 600;
    text-transform: uppercase;
}

.service-item p {
    font-size: 15px;
    color: var(--dark-blue);
    line-height: 1.5;
}

/* Clients Section */
.clients-section {
    text-align: center;
    padding: 120px 0;
    /* Increased padding */
    background-color: #fff;
    /* Changed back to white or keep simple */
    margin-top: 0;
}

.clients-section h2 {
    font-size: 42px;
    /* Bigger to match other sections */
    font-weight: 300;
    /* Lighter */
    margin-bottom: 60px;
    color: var(--dark-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 80px;
    /* Adjusted gap */
}

.clients-grid img {
    height: 60px;
    /* Fixed height for consistency */
    width: auto;
    object-fit: contain;
    max-width: 150px;
    /* Prevent overly wide logos */
    filter: grayscale(100%);
    /* Make them consistent in color */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.clients-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo-placeholder {
    font-size: 24px;
    color: #888;
    font-weight: bold;
    opacity: 0.7;
    /* Placeholder style mimicking logos */
}

/* Testimonials Slider */
.testimonials-section {
    background-color: var(--light-blue);
    /* Lighter overlay: rgba(230, 240, 255, 0.95) instead of 0.9 */
    background: linear-gradient(rgba(240, 248, 255, 0.95), rgba(240, 248, 255, 0.95)), url('images/hero-about.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 42px;
    /* Bigger */
    font-weight: 300;
    /* Lighter weight */
    margin-bottom: 60px;
    color: var(--dark-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 50px;
    /* Space for arrows */
}

.testimonial-slide {
    display: none;
    /* Hidden by default */
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.testimonial-text {
    font-size: 22px;
    line-height: 1.6;
    color: var(--dark-blue);
    margin-bottom: 30px;
    font-style: italic;
    /* Often used for quotes */
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 16px;
}

.testimonial-role {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 30px;
    color: var(--dark-blue);
    user-select: none;
    padding: 10px;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-dots {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.slider-dot.active {
    background-color: var(--dark-blue);
}

/* Contact Page - New 2-Column Layout */
.contact-locations-section {
    padding: 80px 0;
    background-color: #fff;
}

.locations-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}


/* Why Choose Us Section */
.why-choose-us-section {
    padding: 100px 0;
    background-color: var(--white);
    text-align: left;
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    /* Match container generally */
    margin: 0 auto;
}

.why-choose-us-content h2 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--dark-blue);
    letter-spacing: 0.1em;
}

.why-choose-us-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-blue);
    margin-bottom: 0;
}

.why-choose-us-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    /* Keep sharp or round based on preference, sharp matches site vibe mostly */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-height: 500px;
}

@media (max-width: 900px) {
    .why-choose-us-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


.location-card {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    /* Light grey background for contrast */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.location-card h2 {
    font-size: 28px;
    color: var(--dark-blue);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.location-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.location-card a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
}

.location-card a:hover {
    text-decoration: underline;
}

/* Mobile Navigation & Footer Updates */

/* Hamburger Menu default state (hidden on desktop) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Mobile Media Query */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    /* Mobile Typography Overrides */
    h1,
    .hero-content h1 {
        font-size: 34px !important;
    }

    h2,
    .why-choose-us-content h2,
    .section-header h2,
    .about-intro .hero-content h2,
    .clients-section h2,
    .testimonials-section h2,
    .location-card h2 {
        font-size: 30px !important;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Generic Hero Layout Fix (Home & What We Do) */
    .hero {
        height: auto !important;
        min-height: auto;
        margin-bottom: 0 !important;
        padding-bottom: 40px;
        align-items: flex-end;
        margin-top: 50px;
    }

    .hero-content {
        margin: 15px;
        /* Reduced margin to make box bigger */
        width: auto;
        background: var(--white);
        padding: 40px 25px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 2;
    }

    /* Specific Fixes for "What We Do" Section (.about-intro) */
    .about-intro {
        background-color: transparent !important;
        /* Remove grey background */
        padding: 0 !important;
        /* Remove section padding */
    }

    .about-intro .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .about-intro .hero {
        border-radius: 0;
        width: 100%;
        margin: 0;
    }

    /* About Page Mobile Stacking */
    .about-intro-grid {
        display: flex;
        flex-direction: column-reverse;
        /* Image first, then text */
        gap: 40px;
    }

    /* Reduce space before first image */
    .page-title {
        padding-top: 150px !important;
        margin-bottom: 30px !important;
    }

    .team-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 40px;
        text-align: center;
        /* Center team section */
    }

    .team-member img {
        margin-left: auto;
        margin-right: auto;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 100px;
        /* Below navbar */
        background-color: var(--dark-blue);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        padding-top: 50px;
    }

    .nav-links a {
        opacity: 0;
        margin-bottom: 30px;
        font-size: 18px;
    }

    .hamburger {
        display: block;
    }

    /* Active State for Navigation */
    .nav-active {
        transform: translateX(0%);
    }

    /* Animate Links */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .nav-active a {
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    /* Toggle Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Footer Adjustments */
    .footer-content {
        text-align: center;
    }

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

    .footer-socials {
        justify-content: center;
        width: 100%;
    }

    .about-main {
        padding: 40px 40px;
    }
}