/* ==========================================
   NextHome Legacy Realty - Main Stylesheet
   NextHome Brand Colors: Blue & Grey
   ========================================== */

/* CSS Variables - NextHome Brand Guidelines */
:root {
    /* Primary Brand Colors */
    --primary-blue: #236A95;        /* Pantone 3015 U - Trust & Expertise */
    --primary-blue-dark: #1a5275;   /* Darker shade for hover states */
    --primary-blue-light: #3a8ab8; /* Lighter shade for accents */

    /* Grey Palette - Pantone Cool Gray 8 U */
    --grey-brand: #959499;          /* Pantone Cool Gray 8 U */
    --grey-dark: #4a4a4d;
    --grey: #6b6b6e;
    --grey-medium: #959499;
    --grey-light: #c4c4c6;
    --grey-lighter: #e8e8e9;
    --grey-lightest: #f5f5f6;

    /* Neutral Colors */
    --white: #ffffff;
    --black: #1a1a1a;

    /* Functional Colors */
    --accent: #236A95;
    --accent-light: #3a8ab8;
    --success: #38a169;

    /* Legacy mappings for compatibility */
    --navy-dark: #1a5275;
    --navy: #236A95;
    --navy-light: #3a8ab8;

    /* Typography - NextHome Brand Fonts */
    --font-primary: 'Work Sans', sans-serif;
    --font-heading: 'Libre Baskerville', serif;

    /* Shadows & Transitions */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}

a:hover {
    color: var(--navy-light);
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background-color: var(--navy);
    color: var(--white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--navy);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

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

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

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

.nav-links a {
    color: var(--grey-dark);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--navy);
    transition: var(--transition);
}

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

.nav-buttons {
    display: flex;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    color: var(--grey-dark);
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-lighter);
    display: block;
    font-size: 1.05rem;
}

.mobile-nav-links li:last-child a,
.mobile-nav-links li:nth-last-child(2) a {
    border-bottom: none;
}

.mobile-nav-links .btn {
    text-align: center;
    margin-top: 10px;
    display: block;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 1rem;
}

.mobile-nav-links .btn-outline {
    border: 2px solid var(--navy);
    color: var(--navy);
}

.mobile-nav-links .btn-primary {
    background-color: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: url('../images/hero-banner.png') center center / cover no-repeat;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 82, 117, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: var(--white);
    padding: 40px 0;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--grey-lighter);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
    background-color: var(--grey-lightest);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    font-family: var(--font-heading);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--grey);
    margin-top: 5px;
}

/* Services Section */
.services-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--grey);
}

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

.service-card {
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--grey-lighter);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--navy-light);
}

.services-grid-centered {
    justify-items: center;
}

.services-grid-centered .service-card:nth-last-child(-n+2) {
    grid-column: auto;
}

@supports (display: grid) {
    .services-grid-centered {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .services-grid-centered .service-card {
        width: calc(33.333% - 20px);
    }
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--grey-lightest);
    border-radius: 50%;
    color: var(--navy);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--navy);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--grey);
    margin-bottom: 0;
}

/* Checklist Section */
.checklist-section {
    background-color: var(--grey-lightest);
    padding: 100px 0;
}

.checklist-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.checklist-text h2 {
    margin-bottom: 20px;
}

.checklist-text > p {
    color: var(--grey);
    margin-bottom: 30px;
}

.services-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.services-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--grey-dark);
}

.services-checklist i {
    color: var(--success);
    font-size: 1.1rem;
}

.checklist-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.checklist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    background-color: var(--grey-light);
}

/* Placeholder for missing images */
.about-image img,
.checklist-image img {
    background: linear-gradient(135deg, var(--grey-lighter) 0%, var(--grey-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

img[src$=".jpg"]:not([src*="http"]):not(.logo-img):not(.footer-stamp),
img[src$=".png"]:not([src*="http"]):not(.logo-img):not(.footer-stamp) {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
    min-height: 300px;
}

/* Why Us Section */
.why-us-section {
    padding: 100px 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-us-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: 10px;
    transition: var(--transition);
}

.why-us-card:hover {
    background-color: var(--grey-lightest);
}

.why-us-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    border-radius: 50%;
    color: var(--white);
    font-size: 2.5rem;
}

.why-us-card h3 {
    margin-bottom: 15px;
}

.why-us-card p {
    color: var(--grey);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--navy);
    padding: 100px 0;
    color: var(--white);
}

.testimonials-section .section-header h2,
.testimonials-section .section-header p {
    color: var(--white);
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-track-container {
    overflow: hidden;
    flex: 1;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 45px 50px;
    background-color: var(--white);
    border-radius: 10px;
    text-align: center;
}

.testimonial-stars {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.testimonial-stars i {
    color: #f5a623;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--grey);
    font-style: italic;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--navy);
    font-family: var(--font-heading);
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background-color: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

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

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--grey-lighter);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

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

.cta-buttons .btn-primary:hover {
    background-color: var(--grey-lighter);
    border-color: var(--grey-lighter);
}

/* Footer */
.footer {
    background-color: var(--navy-dark);
    color: var(--grey-light);
    padding: 80px 0 30px;
}

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

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

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

.footer-col p {
    color: var(--grey-light);
    line-height: 1.8;
}

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

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

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

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--accent-light);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--navy);
}

.footer-bottom .footer-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom .footer-logos img {
    height: 35px;
    width: auto;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 20px;
}

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

.footer-links a:hover {
    color: var(--white);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding: 120px 0 80px;
    margin-top: 70px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--grey-lighter);
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section.alt-bg {
    background-color: var(--grey-lightest);
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-grid.feature-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.feature-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--navy);
}

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

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--grey);
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--grey-lightest);
}

.faq-question i {
    font-size: 1rem;
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--grey);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--grey-lighter);
}

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

.pricing-card.featured {
    border-color: var(--navy);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-header {
    background-color: var(--grey-lightest);
    padding: 30px;
    text-align: center;
}

.pricing-card.featured .pricing-header {
    background-color: var(--navy);
    color: var(--white);
}

.pricing-card.featured .pricing-header h3 {
    color: var(--white);
}

.pricing-header h3 {
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
}

.pricing-card.featured .pricing-price {
    color: var(--white);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul {
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-lighter);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.pricing-features li i {
    color: var(--success);
}

.pricing-features .btn {
    width: 100%;
}

/* Areas Section */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.area-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--grey-lighter);
}

.area-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--navy);
}

.area-card i {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 15px;
}

.area-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    color: var(--grey);
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-xl);
}

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

.team-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    margin-bottom: 5px;
}

.team-info p {
    color: var(--grey);
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--grey-lighter);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-section h3 {
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-details i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--grey-lightest);
    border-radius: 50%;
    color: var(--navy);
    font-size: 1.2rem;
}

.contact-details .info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-details .info p {
    color: var(--grey);
    margin-bottom: 0;
}

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

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid,
    .why-us-grid,
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .feature-grid,
    .pricing-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid-centered .service-card {
        width: calc(50% - 15px);
    }

    .feature-grid.feature-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }

    .nav-links,
    .nav-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-img {
        height: 50px;
    }

    .navbar {
        padding: 10px 0;
    }

    .mobile-menu {
        top: 75px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats-grid,
    .services-grid,
    .feature-grid,
    .why-us-grid,
    .pricing-grid,
    .areas-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .services-grid-centered .service-card {
        width: 100%;
    }

    .checklist-content,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-checklist {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom .footer-logos img {
        height: 28px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .testimonial-card {
        padding: 30px 25px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .testimonial-carousel {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 42px;
    }

    .footer-bottom .footer-logos img {
        height: 25px;
    }

    .mobile-menu {
        top: 66px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}
