/* CSS Variables for the Design System */
:root {
    --primary-bg: #F5F1E8;
    --accent-charcoal: #1C1C1C;
    --accent-gray: #6B6B6B;
    --text-on-cream: #1C1C1C;
    --text-on-charcoal: #F5F1E8;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-bg);
    color: var(--accent-charcoal);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-charcoal);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utility */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-charcoal);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-charcoal);
    color: var(--text-on-charcoal);
}

.btn-primary:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-charcoal);
    border: 2px solid var(--accent-charcoal);
}

.btn-secondary:hover {
    background-color: var(--accent-charcoal);
    color: var(--text-on-charcoal);
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: var(--primary-bg);
    padding: 1.5rem 0;
    position: fixed;
    /* Changed to fixed for better control */
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.header-hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent-charcoal);
}

.nav-links {
    display: none;
}

.mobile-nav-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-charcoal);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.nav-overlay.active {
    display: flex;
}

.nav-overlay a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.close-nav {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1544197150-b99a580bb7a8?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .subheadline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btns.centered {
    justify-content: center;
}

.hero-btns.centered .btn {
    min-width: 250px;
}

.hero-btns .btn-secondary {
    color: white;
    border-color: white;
}

.hero-btns .btn-secondary:hover {
    background-color: white;
    color: var(--accent-charcoal);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card-content {
    padding: 2rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-charcoal);
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Why Choose Us */
.why-us {
    background-color: white;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.why-item i {
    color: var(--accent-charcoal);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

/* Service Area */
.map-container {
    height: 400px;
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-charcoal);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--accent-charcoal);
    color: var(--text-on-charcoal);
}

.contact-section h2,
.contact-section h3 {
    color: var(--text-on-charcoal);
}

.contact-section .section-title::after {
    background-color: var(--text-on-charcoal);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border-radius: 4px;
    border: none;
    background: #2a2a2a;
    color: white;
}

.contact-form .btn-primary {
    background-color: var(--primary-bg);
    color: var(--accent-charcoal);
}

.contact-form .btn-primary:hover {
    background-color: white;
}

/* Footer */
footer {
    background-color: var(--primary-bg);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Watermark */
.watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 9999;
    background: rgba(245, 241, 232, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    pointer-events: none;
}

.watermark.visible {
    opacity: 0.8;
    pointer-events: auto;
}

.watermark a {
    color: var(--accent-charcoal);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    font-size: 2rem;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.whatsapp-float.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* Sticky Call Button (Mobile) */
.sticky-call {
    position: fixed;
    bottom: 90px;
    left: 20px;
    background-color: var(--accent-charcoal);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(28, 28, 28, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(28, 28, 28, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(28, 28, 28, 0);
    }
}

/* Responsiveness */
@media (max-width: 768px) {

    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 3rem 0;
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .mobile-nav-toggle {
        display: none;
    }

    .sticky-call {
        display: none;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .hero-btns.centered .btn {
        min-width: 100%;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}