/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4DD0E1;
    --primary-cyan: #4DD0E1;
    --primary-dark: #1F3A5F;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* Center header contents properly */
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    gap: 30px;
}

.header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
}

/* Logo section */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Nav */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

.nav-menu a:not(.btn):hover {
    color: var(--primary-color);
}

/* Check Address Button stays on the right */
.btn-header-desktop {
    flex-shrink: 0;
    margin-left: auto;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 3px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(
        to right,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    background-clip: padding-box;
    color: var(--white) !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.badge svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.08) 0%, rgba(31, 58, 95, 0.08) 100%),
                url('herobg.png') center/cover no-repeat;
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero .container {
    max-width: 1400px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.hero-content-left {
    max-width: 700px;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--white);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

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

.feature-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card svg {
    width: 50px;
    height: 50px;
    fill: var(--primary-color);
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Force 2 feature cards per row from 769px to 1169px */
@media (min-width: 769px) and (max-width: 1169px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-header {
    max-width: 800px;
    margin-bottom: 40px;
}

.about h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.benefit-list {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.benefit-item:not(:last-child) {
    border-bottom: 1px solid var(--bg-light);
}

.benefit-item svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Services Section */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

.service-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--white);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* always 3 side-by-side */
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Force equal height testimonial cards */
.testimonial-card {
    height: 350px;   /* adjust this as needed */
    display: flex;
    flex-direction: column;
}

.testimonial-card img {
    height: 180px;   /* keep image height consistent */
    object-fit: cover;
    width: 100%;
}



/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.7;
}

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

.cta .btn-primary:hover {
    background: var(--bg-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 250px !important;;
    width: auto !important;;
    margin: 0 auto;
}

.footer-info p {
    margin: 10px 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }
    
    .header .container {
        padding: 10px 30px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .about h2,
    .section-header h2,
    .cta h2 {
        font-size: 36px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header .container {
        padding: 10px 20px;
    }
    
    .menu-toggle {
        display: flex;
        order: 3;
    }
    
    .logo {
        order: 1;
    }
    
    .btn-header-desktop {
        display: none;
    }
    
.nav-menu {
    position: fixed;
    top: -400px; /* Hides menu ABOVE the screen */
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #ffffff;
    text-align: center;
    padding: 20px 0 !important;
    gap: 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: top 0.35s ease;
    z-index: 999;
}
    
.nav-menu.active {
    top: 70px; /* Slides DOWN instead of from left */
}
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .about h2,
    .section-header h2,
    .cta h2 {
        font-size: 32px;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .community-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .community-image img {
        margin-top: 20px;
        max-width: 100%;
        height: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .yes-no-grid {
        grid-template-columns: 1fr;
    }
    
    .address-check-content h2 {
        font-size: 32px;
    }
    
    .pricing-card {
        min-height: 500px;
        height: 500px;
    }
    
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn-large {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .about h2,
    .section-header h2,
    .cta h2 {
        font-size: 24px;
    }
    
    .feature-card,
    .service-card,
    .benefit-list {
        padding: 25px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    /* Fix menu gap on very small screens */
    .nav-menu {
        transform: translateY(-10px) !important;
    }
}

/* Force hamburger menu from 769px to 1146px */
@media (min-width: 769px) and (max-width: 1146px) {
    .menu-toggle {
        display: flex !important;
    }

    .nav-menu {
        display: none !important;
    }

    .btn-header-desktop {
        display: none !important;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* About Section - Enhanced */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
    margin: 0 auto 15px;
}

.stat-card h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Pricing Card */
.pricing-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
    min-height: 700px;
    height: 700px;
}

.pricing-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.pricing-overlay {
    position: absolute;
    right: 10px;     /* move to right side */
    top: 10px;       /* keep it near the top (optional) */
    left: auto;      /* override any existing left alignment */
    bottom: auto;    /* make sure it's not stuck to bottom */
    z-index: 2;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
}


.pricing-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: auto;         /* IMPORTANT */
    max-width: none;     /* IMPORTANT */
    height: auto;
}


.pricing-label {
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 8px 0;
}

.pricing-amount .currency {
    font-size: 22px;
    font-weight: 700;
    margin-right: 2px;
    color: var(--primary-color);
    margin-top: 3px;
}

.pricing-amount .price {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.pricing-amount .cents {
    font-size: 22px;
    font-weight: 700;
    margin-left: 1px;
    color: var(--primary-color);
    margin-top: 3px;
}

.pricing-period {
    font-size: 12px;
    margin-top: 6px;
    color: var(--text-light);
    font-weight: 500;
}

/* Why Choose Us Section */
.why-choose {
    padding: 100px 0;
    background: var(--white);
}

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

.why-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--white);
}

.why-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.why-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Our Community Section */
.our-community {
    padding: 100px 0;
    background: var(--bg-light);
}

.community-content {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 50px;
}

.community-intro {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 400;
}

.community-text {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.community-text:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-dark);
}


/* Address Check CTA Section */
.address-check-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.1) 0%, rgba(31, 58, 95, 0.1) 100%);
    text-align: center;
}

.address-check-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.address-check-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Enhanced */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-about p {
    margin: 20px 0;
    opacity: 0.8;
    line-height: 1.7;
}

.footer-logo img {
    height: 60px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contact p {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-contact .btn {
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--primary-color);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive Updates */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pricing-card {
        position: relative;
        top: 0;
        min-height: 600px;
        height: 600px;
    }
    
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links ul {
        display: inline-block;
        text-align: center;
    }
    
    .footer-contact .btn {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .yes-no-grid {
        grid-template-columns: 1fr;
    }
    
    .address-check-content h2 {
        font-size: 32px;
    }
    
    .pricing-card {
        min-height: 500px;
        height: 500px;
    }
}

/* Services Section - Enhanced */
.services {
    padding: 0px 0;
    background: var(--white);
}

.services-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-icon-bg {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon-img {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}

.service-features {
    list-style: none;
    margin-top: 25px;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.service-features span {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.5;
}

.services-cta {
    text-align: center;
    margin-top: 50px;
}

.community-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.community-image img {
    margin-top: 60px;
    height: 480px;
    width: 100%;
    max-width: 520px;    /* Adjust image size */
    border-radius: 12px; /* Optional: looks cleaner */
    box-shadow: var(--shadow);
}

.community-content {
    flex: 1;
}

.address-form {
    max-width: 700px;
    margin: 0 auto;
    margin-top: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.form-row input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(77,208,225,0.4);
}

.form-success {
    margin-top: 20px;
    font-size: 18px;
    color: #0b8f45;
    font-weight: 600;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

/* Clean Testimonials Style */
.clean-testimonials {
    padding: 80px 0;
    background: #f9fbfc;
}

.testimonials-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-dark);
}

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

.testimonial-item {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border-left: 5px solid var(--primary-color);
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.testimonial-name {
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

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

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




/* FIX TESTIMONIAL GRID FROM 901px TO 1300px */
@media (min-width: 901px) and (max-width: 1300px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        justify-content: center;
    }

    .testimonial-card {
        max-width: 100% !important;
    }
}

/* OPTIONAL RESPONSIVE TESTIMONIALS (ENHANCED BREAKPOINTS) */
@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 601px) and (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 993px) and (max-width: 1300px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        justify-content: center;
    }
}


/* ============================
   TESTIMONIALS LAYOUT FIX
   ============================ */

/* Default ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ Large screens: 4 columns perfectly centered */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    justify-content: center;
}

/* 1300px and below ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ go to 3 columns */
@media (max-width: 1300px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 992px and below ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ go to 2 centered columns */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 768px and below ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ single centered column */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
/* Remove container padding that was causing off-centering */
#testimonials .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* FIX UNEVEN TESTIMONIAL CARD WIDTHS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 2rem;
    justify-content: center;
    justify-items: center;
}
.testimonial-item {
    width: 260px !important;
    max-width: 260px !important;
}


/* FIX FORM FLEX WRAP & INPUT SIZING (prevents overflow between 769px-870px) */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;             /* allow inputs to wrap instead of overflowing */
    align-items: stretch;
}

.form-row input,
.form-row select,
.form-row textarea {
    flex: 1 1 0;                 /* allow inputs to shrink/grow evenly */
    min-width: 0;                /* allows flex items to shrink below content width */
    width: 100%;
    box-sizing: border-box;
}

/* Smaller inputs (State / Zip) should not force the row wider */
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"] {
    max-width: 100%;
}

/* Specific breakpoint fix for narrow tablets where layout was breaking */
@media (min-width: 769px) and (max-width: 870px) {
    .address-form .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Make the street address span both columns */
    .address-form .form-row:nth-child(2) {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    /* For the three-field row (city/state/zip) allow wrapping to two rows if needed */
    .address-form .form-row:nth-child(3) {
        grid-template-columns: 1fr 1fr;
    }

    .address-form .form-row input,
    .address-form .form-row select {
        width: 100%;
        min-width: 0;
    }

    .address-form button {
        grid-column: 1 / -1;
        justify-self: center;
        width: 60%;
    }
}


/* Larger close icon */
.menu-toggle svg {
    width: 28px;
    height: 28px;
}




/* === MOBILE + TABLET DROPDOWN MENU === */

/* Mobile/Tablet only - Override desktop styles */
@media (max-width: 1146px) {
    /* Hide desktop button */
    .btn-header-desktop {
        display: none;
    }
    
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }
    
    /* Base dropdown style (hidden inside header) */
    .nav-menu {
        display: flex !important;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        text-align: center;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        border-top: none;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
        box-shadow: 0 15px 40px rgba(0,0,0,0);
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        backdrop-filter: blur(10px);
        transform: translateY(-1px);
    }

    /* When menu is open */
    .nav-menu.active {
        max-height: 500px !important;
        padding: 15px 0 30px !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }
    
    /* Menu list items */
    .nav-menu li {
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
        transition: all 0.3s ease;
        list-style: none;
        box-sizing: border-box;
        line-height: 1;
        opacity: 0;
        transform: translateY(-10px);
    }
    
    /* Staggered fade-in animation */
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.10s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.20s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.30s; }
    
    /* Menu link styling - Force identical sizing */
    .nav-menu li a {
        display: block;
        padding: 16px 30px !important;
        margin: 0 !important;
        font-size: 17px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        color: var(--text-dark);
        transition: all 0.3s ease;
        position: relative;
        box-sizing: border-box;
        width: 100%;
        text-align: center;
    }

    /* Remove any default anchor styles that might add extra space */
    .nav-menu a {
        text-decoration: none;
        box-sizing: border-box;
    }
    
    /* Elegant gradient separators */
    .nav-menu li:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 10%;
        width: 80%;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            var(--primary-color) 50%, 
            transparent 100%);
        opacity: 0.3;
    }

    /* Hover effect */
    .nav-menu li:hover {
        background: linear-gradient(90deg, 
            rgba(77,208,225,0.05) 0%, 
            rgba(77,208,225,0.12) 50%, 
            rgba(77,208,225,0.05) 100%);
    }

    .nav-menu li a:hover {
        color: var(--primary-color);
        transform: translateX(5px);
    }

    /* Active link indicator */
    .nav-menu li a.active::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 20px;
        background: var(--primary-color);
        border-radius: 2px;
    }

    /* Hamburger icon */
    .menu-toggle {
        position: relative;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 28px;
        height: 3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Animated hamburger to X */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}