/* Global Styles */
:root {
    --primary: #141414;
    --secondary: #6c757d;
    --accent: #6c757d;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #6c757d;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: grid;
    grid-template-columns: auto 2fr auto;
    align-items: center;
    padding: 20px 0;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 5px;
}

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

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

.desktop-nav ul li {
    margin: 0 20px;
}

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.desktop-nav ul li a:hover {
    color: var(--primary);
}

/* Phone Section */
.header-phone {
    text-align: center;
    padding: 0 5px;
    justify-self: end;
    line-height: 0.7;
}

.header-phone a {
    font-weight: bold;
    text-decoration: none;
    color: var(--dark);
    display: block;
}

.header-phone a:first-child {
    font-size: 1.1rem;
}

.header-phone a[href^="tel:"]:not(.phone-icon) {
    font-size: 1.5rem;
    /* desktop number size */
}

/* Desktop default: hide icon */
.header-phone .phone-icon {
    display: none !important;
}

/* Mobile Elements (Hidden on Desktop) */
.burger-menu,
.mobile-nav {
    display: none;
}

/* Overlay for mobile drawer dimming */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 999;
    /* below .mobile-nav (1000) */
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Burger base + animation to X */
.burger-menu {
    background: transparent;
    border: 0;
    padding: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform .2s ease;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    margin: 3px 0;
    transition: transform .25s ease, opacity .2s ease, background-color .2s ease;
    border-radius: 2px;
    display: block;
}

.burger-menu.open .burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger-menu.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.open .burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Styles */
@media (max-width: 968px) {
    .header-container {
        grid-template-columns: auto 1fr auto;
        padding: 15px 0;
        gap: 15px;
        align-items: center;
    }

    .header-phone {
        justify-self: end;
        /* right side */
        align-self: center;
        /* vertical centering in the grid cell */
        display: flex;
        align-items: center;
        line-height: 1;
    }

    /* Hide desktop nav on mobile */
    .desktop-nav {
        display: none;
    }

    /* Show burger menu */
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 1001;
    }

    /* Center logo on mobile */
    .logo {
        justify-self: center;
    }

    /* Mobile navigation drawer */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: saturate(180%) blur(8px);
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 80px 30px 30px;
        overflow-y: auto;
        display: block;
    }

    .mobile-nav.active {
        left: 0;
    }

    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        list-style: none;
        padding-top: 10px;
    }

    .mobile-nav ul li {
        margin: 0 0 20px 0;
        width: 100%;
    }

    .mobile-nav ul li a {
        font-size: 1.15rem;
        padding: 14px 0;
        display: block;
        width: 100%;
        text-decoration: none;
        color: var(--dark);
        font-weight: 600;
    }

    /* Phone visibility rules on mobile */
    .header-phone a:not(.phone-icon) {
        display: none !important;
    }

    .header-phone .phone-icon {
        display: flex !important;
        width: 40px;
        height: 50px;
        background: none;
        align-items: center;
        justify-content: center;
        color: #141414;
        text-decoration: none;
        font-size: 1.8rem;
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 20px 24px;
    /* row / column gap */
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

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

@media (max-width: 640px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Footer Styling */
footer {
    background-color: #141414;
    color: #6c757d;
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: white;
}

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

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

.footer-col p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #6c757d;
}

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

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

.footer-col ul li a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #6c757d;
}

.footer-contact p,
.footer-hours p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 0.95rem;
}

.footer-col p i {
    margin-right: 8px;
    vertical-align: middle;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive: Footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

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

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

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .footer-contact p,
    .footer-hours p {
        justify-content: center;
    }
}

/* Google Review Button Style */
.google-review-btn {
    display: inline-block;
    background-color: #6c757d;
    /* Google's blue color */
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-bottom: 20px;
    /* Adds some space below */
    text-align: center;
}

.google-review-btn:hover {
    background-color: #6c757d;
    /* Darker blue on hover */
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .google-review-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}