/* General Styling */
:root {
    --primary-color: #FF8C00; /* Dark Orange */
    --secondary-color: #32CD32; /* Lime Green */
    --accent-color: #FFD700; /* Gold/Yellow */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-light: #f9f9f9;
    --background-dark: #222;
    --border-color: #ddd;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
    /* Smaller header heights */
    --header-height-desktop: 72px;
    --header-height-mobile: 56px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #e8e7e7;
    /* Keep content below fixed header */
    padding-top: var(--header-height-desktop);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: black;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px; /* Rounded corners */
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-align: center;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Header & Navigation */
.main-header {
    background-color: #fff;
    padding: 4px 0; /* reduce header padding */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow-light);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.main-header.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: var(--header-height-desktop); /* auto-shrinks with smaller var */
    display: block;
    max-width: none; /* Override any potential max-width from a reset */
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end; /* Push links to the right */
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
}

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

.nav-list a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.nav-list a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001; /* Above nav-list on mobile */
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    min-height: 500px;
    background: url('hero-800x400.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    margin-top: 0;              /* was negative */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Light overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 0;             /* was var(--header-height-desktop) */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content .tagline {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: #fff;
    font-weight: 400;
}

/* Fade-in animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0; /* Hidden by default */
}

.animate-fade-in.delay-1 { animation-delay: 0.5s; }
.animate-fade-in.delay-2 { animation-delay: 1s; }


/* Common Section Styling */
.common-section {
    padding: 50px 0;
}

.common-section.bg-light {
    background-color: var(--background-light);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #555;
}

/* About Section */
.about-section p {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: color var(--transition-speed);
}

.service-item:hover .service-icon {
    color: var(--primary-color);
}

.service-item h3 {
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 1rem;
    color: #666;
}

/* Contact Section */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-info p i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

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

/* Contact Form Section */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Rounded corners */
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
    outline: none;
}

.contact-form button {
    width: 100%;
    max-width: 300px; /* Limit button width */
    display: block;
    margin: 0 auto;
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.main-footer p {
    margin-bottom: 0.5rem;
}

.main-footer a {
    color: var(--accent-color);
}

.main-footer a:hover {
    color: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content .tagline {
        font-size: 1.5rem;
    }
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }
    .common-section {
        padding: 60px 0;
    }

    .main-header {
        padding: 4px 0; /* tighter mobile header */
    }

    .logo img {
        height: var(--header-height-mobile);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100vw;                 /* fully off-screen by its own width */
        width: 100vw;                  /* take entire viewport width */
        max-width: none;               /* remove 300px cap */
        height: 100vh;                 /* full viewport height */
        background-color: var(--background-dark);
        padding-top: calc(var(--header-height-mobile) + 30px); /* Space for logo/hamburger */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right var(--transition-speed);
        z-index: 999;                  /* below hamburger so it can close */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .main-nav.active {
        right: 0;                      /* slide fully into view */
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .nav-list a {
        color: var(--light-text-color);
        font-size: 1.3rem;
        padding: 10px 0;
        width: 80%; /* Make links wider in mobile menu */
        text-align: center;
    }
    .nav-list a.btn {
        margin-top: 1rem;
        width: 80%; /* Make button wider in mobile menu */
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Adjustments for fixed header when nav is open */
    .main-header.nav-open {
        background-color: var(--background-dark); /* Darken header when nav is open */
        box-shadow: none; /* Remove shadow */
    }
    .main-header.nav-open .logo img {
        filter: brightness(0) invert(1); /* Invert logo color for dark background */
    }
    .main-header.nav-open .hamburger .bar {
        background-color: var(--light-text-color); /* White bars */
    }

    .hero-section {
        margin-top: 0;          /* was negative on mobile */
        /* height: 80vh; keep as-is if desired */
    }
    .hero-content {
        padding-top: 0;         /* was calc(var(--header-height-mobile) + 20px) */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero-content .tagline {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .service-item {
        padding: 20px;
    }
    .service-icon {
        font-size: 3rem;
    }
    .contact-form {
        padding: 25px;
    }
}