/* style.css */

:root {
    --primary-color: #4c2b83;
    --secondary-color: #b0a94c;
    --accent-color: #6a41a4;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #555555;
    --bg-light: #ffffff;
    --bg-grey: #f8f9fa;
    --border-color: #dee2e6;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 25px rgba(0, 0, 0, 0.08);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --header-height: 200px; /* Desktop header height */
    --mobile-header-height: 100px; /* Tablet/Mobile header height */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
    scroll-padding-top: var(--header-height); /* Default for desktop */
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    padding-top: var(--header-height); /* Default for desktop */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; letter-spacing: -1px; }
h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
}
p { margin-bottom: 1.25rem; color: var(--text-muted); }
a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); text-decoration: underline; }
ul { list-style: none; }

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Base Header Styles --- */
header {
    background: var(--bg-light);
    color: var(--text-dark);
    position: fixed; /* Fixed by default (Desktop) */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid var(--border-color);
}

.logo a {
    display: inline-block;
    line-height: 0;
}
header .logo img {
    height: 180px; /* Desktop logo height */
    width: auto;
    vertical-align: middle;
    margin: 0;
}

/* --- Base Desktop Nav Styles --- */
nav#main-nav {
    display: block;
}
nav#main-nav ul {
    display: flex;
}
nav#main-nav ul li {
    margin-left: 2rem;
}
nav#main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-family: var(--font-primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}
nav#main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
nav#main-nav a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}
nav#main-nav a:hover::after {
    width: 100%;
}

/* --- Hamburger Button Styles (Hidden on Desktop) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1010;
    margin-left: auto;
}
.menu-toggle .hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Section Styles --- */
section {
    padding: 80px 0;
    /* REMOVED: border-top: 3px solid var(--accent-color); */
}

#about, #contact { background-color: var(--bg-light); }
#services { background-color: var(--bg-grey); }

#hero {
    text-align: center;
    padding: 140px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    /* REMOVED: border-top: none; (No longer needed) */
}
#hero .content-wrapper { padding: 0 20px; }
#hero h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 0.5em;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
#hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

#about h2, #services h2, #contact h2 {
    text-align: center;
    margin-bottom: 2.5em;
}

#services .service-list {
    list-style: none;
    padding-left: 0;
    max-width: 700px;
    margin: 0 auto;
}

#services .service-list li {
    position: relative;
    margin-bottom: 20px;
    font-size: 1.05rem;
    padding: 10px 0 10px 45px;
    line-height: 1.6;
}

#services .service-list li i {
    position: absolute;
    left: 0;
    top: 13px;
    font-size: 1.4rem;
    color: var(--secondary-color);
    width: 30px;
    text-align: center;
}


.button {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: var(--shadow-light);
    text-align: center;
}

.button.primary-button {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.button.primary-button:hover {
    background-color: #9a9342;
    color: var(--text-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

#contact { padding-bottom: 100px; }

.contact-intro { font-size: 1.1rem; }

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-light);
}

.form-group {
    margin-bottom: 1.75rem;
}

#contact label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--text-dark);
}

#contact input[type="text"],
#contact input[type="tel"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact input[type="text"]:focus,
#contact input[type="tel"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(176, 169, 76, 0.2);
}

#contact textarea {
    resize: vertical;
    min-height: 120px;
}


footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 60px;
    font-size: 0.9rem;
}
footer p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}
footer a {
    color: var(--text-light);
    font-weight: bold;
}
footer a:hover {
    color: var(--secondary-color);
}

a[href^="tel:"] {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}
a[href^="tel:"]:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
footer a[href^="tel:"] {
    color: var(--text-light);
    font-weight: 700;
    text-decoration: none;
}
footer a[href^="tel:"]:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* ============================== */
/* ---      MEDIA QUERIES     --- */
/* ============================== */

/* --- Tablet & Mobile Styles (Hamburger Active: 992px and below) --- */
@media (max-width: 992px) {
    body {
        padding-top: var(--mobile-header-height);
    }
    html {
        scroll-padding-top: var(--mobile-header-height);
    }

    header {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        height: var(--mobile-header-height);
        padding: 0 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        box-shadow: var(--shadow-light);
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
    }

    .logo {
        margin-bottom: 0;
        text-align: left;
        flex-shrink: 0;
    }
    header .logo img {
        height: 90px; /* Logo Height for Tablet/Mobile */
        margin: 0;
        vertical-align: middle;
    }

    .menu-toggle {
        display: block;
        z-index: 1010;
    }

    nav#main-nav {
        display: block;
        position: absolute;
        top: var(--mobile-header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-light);
        z-index: 1005;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-out, visibility 0s 0.4s, opacity 0.3s ease-out;
    }

    nav#main-nav.is-open {
        max-height: 100vh;
        visibility: visible;
        opacity: 1;
        transition: max-height 0.4s ease-in, visibility 0s 0s, opacity 0.3s ease-in;
        overflow-y: auto;
    }

    nav#main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    nav#main-nav ul li {
        margin-left: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    nav#main-nav ul li:last-child {
        border-bottom: none;
    }
    nav#main-nav a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
        color: var(--primary-color);
        font-weight: 600;
        position: static;
        padding-bottom: 1rem;
    }
    nav#main-nav a::after {
        display: none;
    }
    nav#main-nav a:hover {
        background-color: var(--bg-grey);
        color: var(--secondary-color);
    }

    h1 { font-size: 2.5rem; }
    #hero h1 { font-size: 3rem; }
    h2 { font-size: 1.8rem; letter-spacing: -0.25px; }
    .content-wrapper { max-width: 90%; }

} /* End @media (max-width: 992px) */


/* --- Further Mobile Adjustments (Below Tablet) --- */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    #hero { padding: 100px 0; min-height: auto; }
    #hero h1 { font-size: 2.5rem; }
    #hero .subtitle { font-size: 1.1rem; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    #contact label { font-size: 0.85rem; }
    #contact input[type="text"],
    #contact input[type="tel"],
    #contact input[type="email"],
    #contact textarea { padding: 12px; }
    .button { padding: 12px 30px; font-size: 0.95rem; }
    #services .service-list li { padding-left: 40px; font-size: 1rem; }
    #services .service-list li i { font-size: 1.3rem; top: 14px; width: 25px; }

} /* End @media (max-width: 768px) */


/* --- Reset Mobile Nav styles for Desktop --- */
@media (min-width: 993px) {
    body {
        padding-top: var(--header-height);
    }
    html {
        scroll-padding-top: var(--header-height);
    }
    header {
        position: fixed;
        height: var(--header-height);
        padding: 0 2rem;
        flex-direction: row;
        justify-content: space-between;
        box-shadow: var(--shadow-light);
    }
     header .logo img {
        height: 180px; /* Desktop logo size */
    }

    nav#main-nav {
        display: block;
        position: static;
        width: auto;
        background-color: transparent;
        border-top: none;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        visibility: visible;
        opacity: 1;
    }
    nav#main-nav ul {
        flex-direction: row;
    }
    nav#main-nav ul li {
        margin-left: 2rem;
        width: auto;
        border-bottom: none;
        text-align: left;
    }
    nav#main-nav a {
        display: inline-block;
        padding: 0;
        padding-bottom: 5px;
        color: var(--text-dark);
        background-color: transparent;
        position: relative;
    }
    nav#main-nav a::after {
        display: block;
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--secondary-color);
        transition: width 0.3s ease;
    }
     nav#main-nav a:hover::after {
        width: 100%;
    }

    .menu-toggle {
        display: none;
    }

} /* End @media (min-width: 993px) */


/* --- Smallest Mobile Adjustments --- */
@media (max-width: 480px) {
    header { height: 80px; }
    body { padding-top: 80px; }
    html { scroll-padding-top: 80px; }
    header .logo img { height: 60px; }

     nav#main-nav {
        top: 80px; /* Match new header height */
     }

    h1 { font-size: 1.8rem; }
    #hero { padding: 80px 0; }
    #hero h1 { font-size: 2rem; }
    #hero .subtitle { font-size: 1rem; }
    h2 { font-size: 1.4rem; letter-spacing: 0; }

    section { padding: 40px 0; }

    #services .service-list li {
        padding-left: 35px;
    }
    #services .service-list li i {
         font-size: 1.2rem;
         top: 13px;
         width: 20px;
    }

    .button { padding: 10px 25px; font-size: 0.9rem; }
    footer { padding: 2rem 1rem; font-size: 0.85rem; }
}

/* style.css */

/* ... all your existing styles ... */


/* --- Form Status Message Styling --- */
.form-status-message {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px; /* Added some bottom margin */
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    display: none; /* Initially hidden, shown by JS */
}

.form-status-message.success {
    color: #155724; /* Dark green text */
    background-color: #d4edda; /* Light green background */
    border: 1px solid #c3e6cb; /* Green border */
    display: block; /* Show when success class is added */
}

.form-status-message.error {
    color: #721c24; /* Dark red text */
    background-color: #f8d7da; /* Light red background */
    border: 1px solid #f5c6cb; /* Red border */
    display: block; /* Show when error class is added */
}


/* --- Smallest Mobile Adjustments --- */
@media (max-width: 480px) {
    /* ... your existing styles for this breakpoint ... */
}