/* General Settings */
body, html {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background-color: #ffffff; /* changed from #020617 to white */
    color: #333;
    scroll-behavior: smooth; /* Smooth scrolling behavior */
}

/* Navbar structure */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e4e4e4;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 80px;
    box-sizing: border-box;
}

.logo-and-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.logo-image {
    height: 80px;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    margin-left: 10px;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
    padding: 0;
    color: #0B2545;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
    vertical-align: baseline;
}

/* Navigation */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    font-size: 16px;
    color: #0B2545;
}

.nav-menu a:hover {
    color: #1a73e8;
}


/* Base setup for the hero section */
.hero {
    background-image: url('./public/images/hero-background-small.jpg'); /* Default to a smaller image */
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Default setting for better performance on mobile */
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 6rem 1.5rem 5rem;
}

/* Medium devices (tablets) */
@media (min-width: 768px) {
    .hero {
        background-image: url('./public/images/hero-background.jpg');
        padding: 40px 20px; /* Increased padding to better center content */
    }
}

/* Larger devices (desktops) */
@media (min-width: 1024px) {
    .hero {
        background-image: url('./public/images/hero-background.jpg'); /* Highest quality image for desktop */
        background-attachment: fixed; /* Fixed background can be used on desktop without performance issues */
    }
}

/* Adjustments for specific medium screen sizes (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        background-image: url('./public/images/hero-background.jpg'); /* Highest quality image for desktop */
        background-attachment: fixed; /* Fixed background can be used on desktop without performance issues */
    }
}

.hero h1 {
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
    font-size: clamp(2.2rem, 3vw + 1.5rem, 3rem);
    font-weight: 700;
    max-width: 720px;
    margin: 0 auto 1rem;
}

.read-more-button {
    background-color: rgba(0, 123, 255, 0.4); /* Blue background with 40% transparency */
    color: #fff; /* White text color for contrast */
    padding: 10px 20px;
    text-decoration: none;
    border: 2px solid #007bff; /* Solid blue border to maintain visibility */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}

.read-more-button:hover {
    background-color: #007bff; /* Changes to solid blue on hover for better visibility */
    color: #fff; /* Keeps text color white on hover */
}

/* Hero Subtitle */
.hero-subtitle {
    max-width: 720px;
    margin: 0.5rem auto 1.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5f5;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
    padding: 0 20px;
}

/* Hero Actions Container */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-actions .btn {
    min-width: 180px;
}

/* Base Button Styles */
.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-shadow: none;
    display: inline-block;
}

/* Primary Button */
.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

/* Secondary Button */
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        right: 0;
        top: 110px;
        background: #fff;
        width: 200px;
        border-left: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .hero {
        height: 380px; /* slightly taller on small screens */
        padding: 4rem 1.25rem 3.5rem;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .services-strip {
        padding: 3.5rem 1.25rem 3.75rem;
    }

    .service-item {
        padding: 1.2rem 1.1rem;
    }

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

    .read-more-button {
        padding: 8px 16px; /* Adjusts padding for smaller buttons */
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 420px;
        padding: 5rem 1rem 4rem;
        /* Ensure hero content doesn't overlap with header */
        margin-top: 0;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.2;
        padding: 0 10px;
        margin: 0 auto 1.25rem;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        line-height: 1.6;
        margin: 0 auto 2rem;
        padding: 0 15px;
        max-width: 100%;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
        margin: 0 auto 1.75rem;
        padding: 0;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .hero-pills {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .hero-pills li {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Specific iPhone sizing (375px-414px) */
@media (min-width: 375px) and (max-width: 480px) {
    .hero {
        padding: 5.5rem 1.25rem 4.5rem;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.1rem);
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 3vw, 1.05rem);
        margin-bottom: 2.25rem;
    }
}

/* About Section */
#about {
    padding: 2px; /* Reduced padding for less outer spacing */
    background-color: #0d1416;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Optional, depending on your design preference */
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px; /* Reduced gap for tighter spacing between image and text */
    flex-wrap: wrap;
    width: 80%; /* Control the overall width for better spacing */
    max-width: 1000px; /* Reduced max width for a more compact layout */
    margin: auto; /* Ensures centering within the section */
}

.about-image {
    flex: 0 0 300px; /* Flex-basis of 300px, does not grow or shrink */
    width: 400px;
    height: auto;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.1); /* Zoom effect */
}

.about-text {
    flex: 1; /* Allows text to fill remaining space */
    padding: 0 16px; /* Sufficient padding inside the text container */
    text-align: center; /* Aligns text to the center, adjust based on preference */
}

.about-text h2 + h2 {
    margin-top: 2rem;
}

#about h2 {
    font-size: 30px; /* Slightly smaller font size */
    color: #9a3c3c;
    margin: 10px 0; /* Reduced top and bottom margins */
}

#about p {
    font-size: 18px; /* Slightly smaller font size for paragraph */
    color: #fff;
    line-height: 1.5; /* Tighter line height for better text presentation */
}

.about-text p {
    color: #e8e8e8;
    line-height: 1.7;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .about-container {
        gap: 40px; /* Reduce gap for tighter spaces */
    }

    .about-image {
        background-image: url('./public/images/who-we-are-small.jpg');
        flex: 1 0 auto; /* Flex-grow is 1, flex-shrink is 0, flex-basis is auto */
        width: 100%; /* Set width to 100% to initially take the full container width */
        max-width: 220px; /* Set a max-width to limit how large the image can grow */
        height: auto; /* Maintain aspect ratio */
        margin: 20px auto; /* Increased vertical margin for better separation, centered horizontally */
        margin-bottom: 0; /* Reduce the space below the image */
        border: 1px solid white; /* Adds a white border around the image */
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); /* Optional: adds a shadow for more depth */
        box-sizing: border-box; /* Ensures the border width is included in the width calculation */
    }

    .about-text {
        flex: 1 0 100%; /* Full width on small screens */
        padding-top: 0; /* Reduce the space above the text */
    }

    #about h2 {
        font-size: 24px; /* Slightly smaller font size for small screens */
    }

    #about p {
        font-size: 16px; /* Slightly smaller font size for better readability */
    }
}

@media (max-width: 480px) {
    .about-container {
        gap: 20px; /* Further reduce gap for very small screens */
    }

    #about h2 {
        font-size: 20px; /* Further reduce for very small screens */
    }

    #about p {
        font-size: 14px; /* Adjust font size for very small screens */
    }
}

/* Service Header */
.services-header {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center-align the content */
    justify-content: center; /* Center content vertically in the container */
    text-align: center; /* Center-align text */
    background-image: url('./public/images/service-header.jpg'); /* Path to the background image */
    background-size: cover; /* Ensure the background covers the entire section */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* No repeating of the background */
    background-attachment: fixed; /* Fixed background for better visual effect */
    padding: 40px; /* Provide ample padding for spacing */
    margin: 20px auto; /* Center the container with automatic margin */
    width: 80%; /* Control width to match about-container */
    max-width: 1000px; /* Max width to prevent overly wide paragraphs */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth, similar to about-container */
    border-radius: 8px; /* Optional: Adds rounded corners if that matches your design */
}

.services-header h2 {
    font-size: 2.5rem; /* Larger font size for headings */
    color: #9a3c3c; /* Dark color for readability */
    margin-bottom: 20px; /* Space between the heading and paragraph */
}

.services-header p {
    font-size: 1rem; /* Appropriate font size for readability */
    color: #fff; /* Subdued text color for the paragraph */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9); /* Black shadow for better contrast */
    line-height: 1.6; /* Enhanced line height for better readability */
}

.services-section {
    border-bottom: 1px solid #ccc; /* Adds a bottom border to each section */
    padding: 20px; /* Optional padding */
}

@media (max-width: 768px) {
    .services-header h2, .services-header p {
        max-width: 90%; /* Allows text to adjust to screen size */
        padding: 0 10px;
    }

    .services-header h2 {
        font-size: 24px;
    }

    .services-header p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .services-header {
        padding: 10px;
    }

    .services-header h2, .services-header p {
        max-width: 100%;
        padding: 0 5px;
    }

    .services-header h2 {
        font-size: 20px;
    }

    .services-header p {
        font-size: 14px;
    }
}


/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four items in a row */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.feature-item {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05); /* Slight scale on hover for interactivity */
}

.feature-item img {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .features {
        grid-template-columns: repeat(2, 1fr); /* Two items in a row on smaller screens */
    }
}

@media (max-width: 576px) {
    .features {
        grid-template-columns: 1fr; /* Stack items on very small screens */
    }
}

/* Responsive Adjustments for About */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image, .about-text {
        width: 100%;
        flex: none;
    }
}

/* --- Old subscription block (kept for compatibility, overridden later) --- */
.subscription-section {
    padding: 2px; /* Reduced padding for less outer spacing */
    background-color: #0d1416;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subscribe-container h2 {
    color: #ffff;
    margin-bottom: 10px;
    text-align: center;
}

.subscribe-container p {
    color: #fff;
}

.subscribe-container form {
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
}

.subscribe-container input[type="email"] {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
}

.subscribe-container .g-recaptcha {
    margin: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscription-section button {
    padding: 5px 10px;
    background-color: #007BFF;
    color: white;
    font-size: 16px;
    font-weight: bolder;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 10px auto;
    transition: background-color 0.3s;
}

.subscription-section button:hover {
    background-color: #0056b3;
}

/* FIXED: this media query now has @ */
@media (max-width: 480px) {
    .subscribe-container form {
        width: 90%;
    }

    .subscribe-container input[type="email"] {
        width: 100%;
    }

    .subscription-section button {
        width: 100%;
    }

    .subscribe-container h2 {
        font-size: 24px;
    }

    .subscribe-container p {
        font-size: 20px;
    }
}

/* Footer (simple) */
.footer {
    background: #0B2545;
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
}

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

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    text-decoration: none;
}

.social-icons a i {
    font-family: 'FontAwesome', 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    display: inline-block;
}

.social-icons a:hover {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

/* Hero Pills */
.hero-pills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.hero-pills li {
    font-size: 0.9rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

/* Slightly larger font on wider screens */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Services Strip */
.services-strip {
    padding: 4rem 1.5rem 4.5rem;
    background-color: #020617;
    box-shadow: 0 -40px 60px rgba(0, 0, 0, 0.3);
}

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

.services-strip h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #f9fafb;
}

.services-strip p {
    color: #cbd5f5;
}

.services-strip-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.service-item {
    background: #020617;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 1.4rem 1.3rem;
    color: #e5e7eb;
}

.service-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5f5;
    margin-bottom: 0.9rem;
}

.service-link {
    display: inline-block;
    font-size: 0.9rem;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.service-link:hover {
    text-decoration: underline;
}

/* Two/three columns on wider screens */
@media (min-width: 768px) {
    .services-strip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Final CTA Section */
.cta-final {
    background-color: #0b1220;
    padding: 4rem 1.5rem;
    text-align: center;
    color: #e5e7eb;
    margin-top: 0;
}

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

.cta-final h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.cta-final p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #cbd5f5;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Alternative footer (used on other pages) */
.site-footer {
    background-color: #020617;
    color: #e5e7eb;
    padding: 3rem 1.5rem 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5f5;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

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

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a,
.footer-contact a {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5f5;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid rgba(51, 65, 85, 0.7);
    padding-top: 0.75rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-social {
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 18px;
    text-decoration: none;
    border: 2px solid;
    color: #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Platform-specific tints */
.social-facebook {
    border-color: #38bdf8;
}

.social-twitter {
    border-color: #38bdf8;
}

.social-linkedin {
    border-color: #0ea5e9;
}

.social-youtube {
    border-color: #f97373;
}

.social-instagram {
    border-color: #fbbf24;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 2fr 1.2fr 1.6fr;
    }
}

/* New subscription section (overrides old one on homepage) */
.subscription-section {
    background-color: #020617;
    padding: 4rem 1.5rem 4.5rem;
    color: #e5e7eb;
    margin-bottom: 0;
}

.subscribe-container {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-copy h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #f9fafb;
}

.subscribe-copy p {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5f5;
    margin-bottom: 1.75rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.subscribe-fields {
    width: 100%;
    max-width: 420px;
}

.subscribe-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #64748b;
    font-size: 0.95rem;
    outline: none;
}

.subscribe-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

.subscribe-extra {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
}

/* Let reCAPTCHA sit nicely centered */
.subscribe-extra .g-recaptcha {
    transform: scale(1);
    transform-origin: center;
}

.subscribe-button {
    padding: 0.8rem 1.8rem;
    border-radius: 0.75rem;
    border: none;
    background-color: #2563eb;
    color: #f9fafb;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.subscribe-button:hover {
    background-color: #1d4ed8;
}

@media (min-width: 768px) {
    .subscription-section {
        padding: 4.5rem 1.5rem;
    }
}

/* === VisualZero Header Polish (Shared CSS) === */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    /* Prevent layout shift during page load */
    min-height: 110px;
    display: flex;
    align-items: stretch;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    height: 110px;
    width: 100%;
}

.logo-and-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    /* Reserve space to prevent layout shift */
    min-height: 88px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin: 0;
    padding: 0;
    /* Reserve space to prevent layout shift */
    min-height: 88px;
}

.logo-image {
    height: 88px;
    width: auto;
    /* Reserve space before image loads to prevent layout shift */
    min-width: 88px;
    aspect-ratio: 1;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    line-height: 1;
    margin: 0;
    padding: 0;
    font-size: 30px;
    font-weight: 700;
    color: #0B2545;
    /* Prevent font loading shift */
    font-family: 'Roboto', sans-serif;
    visibility: visible;
    /* Reserve space for text */
    min-width: 200px;
}

/* Desktop menu */
.nav-menu {
    margin: 0;
    padding: 0;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    font-size: 20px;
    color: #14324b;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-menu a:hover {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

/* Mobile header adjustments */
/* Ensure mobile menu toggle stays on top */
.menu-toggle {
    position: relative;
    z-index: 9999 !important;
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Ensure mobile nav drawer is above hero content */
nav ul {
    position: relative;
    z-index: 9998;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 110px;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
        z-index: 9998;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-bottom: 1px solid #ddd;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 0.75rem;
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
        width: 100%;
    }
}

/* Desktop menu - ensure nav is visible and horizontal */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
    }

    .nav-menu.is-open {
        display: flex;
    }
}

/* How we work */
.how-we-work {
    padding: 64px 16px;
}

.how-we-work-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.how-we-work h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.how-we-work-intro {
    max-width: 720px;
    color: #4b5563;
    margin-bottom: 24px;
}

.how-we-work-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.how-step {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    font-size: 0.95rem;
    color: #4b5563;
}

/* VaultRent highlight */
.vaultrent-highlight {
    padding: 64px 16px;
    background: #111827;
    color: #f9fafb;
}

.vaultrent-inner {
    max-width: 900px;
    margin: 0 auto;
}

.vaultrent-inner h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.vaultrent-inner p {
    margin-bottom: 12px;
    font-size: 0.98rem;
}

.vaultrent-link {
    margin-top: 8px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .how-we-work-steps {
        grid-template-columns: 1fr;
    }
}

/* Services page enhancements */
.service-item ul li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.services-strip-container > p {
    margin-bottom: 2rem;
}

.how-we-work {
    background-color: #f5f7fa;
    padding: 4rem 1.5rem;
}

.how-step {
    margin-bottom: 2rem;
}

.how-step:last-child {
    margin-bottom: 0;
}

.how-we-work-intro {
    margin-bottom: 2rem;
}

/* Services hero overlay */
.hero.services-hero {
    position: relative;
}

.hero.services-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero.services-hero * {
    position: relative;
    z-index: 2;
}

/* Contact Page Layout */
.contact-section {
    background-color: #f5f7fa;
    padding: 4rem 1.5rem;
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-form-column,
.contact-info-column {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.contact-intro {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

/* Form fields */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #111827;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.contact-field textarea {
    resize: vertical;
}

.contact-consent {
    margin-top: 0.5rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.45;
}

.consent-label input[type="checkbox"] {
    margin-top: 0.2rem;
}

/* Submit button */
.contact-submit {
    margin-top: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 0.75rem;
    border: none;
    background-color: #2563eb;
    color: #f9fafb;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.contact-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Right column blocks */
.contact-block {
    margin-bottom: 1.5rem;
}

.contact-block h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: #111827;
}

.contact-block ul {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

.contact-block ul li {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.contact-info-column a {
    color: #2563eb;
    text-decoration: none;
}

.contact-info-column a:hover {
    text-decoration: underline;
}

.contact-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Contact hero tweaks */
.hero.contact-hero {
    height: 320px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-form-column,
    .contact-info-column {
        padding: 1.5rem 1.25rem;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero.contact-hero {
        height: auto;
        padding: 3.5rem 1.5rem;
    }
}

/* FAQ section (Contact page) */
.faq-section {
    background-color: #f9fafb;
    padding: 4rem 1.5rem;
}

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

.faq-inner h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.faq-intro {
    max-width: 640px;
    margin-bottom: 2rem;
    color: #4b5563;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #111827;
}

.faq-item p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Location Page */
.location-section {
    padding: 4rem 1.5rem;
    background-color: #f8fafc;
}

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

.location-intro {
    max-width: 700px;
    margin-bottom: 2rem;
    color: #4b5563;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.location-item {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.location-item p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

.location-item ul {
    margin: 0 0 1rem 1.1rem;
    padding: 0;
}

.location-item ul li {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #4b5563;
}

.location-link {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.95rem;
    color: #2563eb;
    text-decoration: none;
}

.location-link:hover {
    text-decoration: underline;
}

/* Service areas */
.location-service-areas {
    padding: 4rem 1.5rem;
    background-color: #ffffff;
}

.location-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.location-service-item {
    background: #f9fafb;
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.location-service-item p {
    font-size: 0.95rem;
    color: #4b5563;
}

.location-service-item ul {
    margin: 0.5rem 0 0 1.1rem;
    padding: 0;
}

.location-service-item ul li {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #4b5563;
}

/* Responsive */
@media (max-width: 900px) {
    .location-grid,
    .location-service-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Toronto Skyline for Location Hero */
.location-hero {
    position: relative;
    overflow: hidden;
}

.location-hero .toronto-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 1;
}

.location-hero h1,
.location-hero p {
    position: relative;
    z-index: 2;
}
