/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Commissioner:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
    --pri: #F5F8F5; /* Primary - Light text/elements */
    --sec: #5D8A66; /* Secondary - Buttons, accents, borders */
    --acc: #3D6A46; /* Accent - Hover states, highlights */
    --dark: #2A4A30; /* Dark - Main background */
    --font-heading: 'Fraunces', serif;
    --font-body: 'Commissioner', sans-serif;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--pri);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--sec);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pri);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 80px 0;
}

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

/* --- Components --- */
.btn {
    display: inline-block;
    background-color: var(--sec);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    border: 2px solid var(--sec);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--acc);
    border-color: var(--acc);
    color: #fff;
}

.card {
    background-color: transparent;
    border-radius: 12px;
    padding: 30px;
    box-shadow: inset 0 0 0 2px var(--sec);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 2px var(--pri);
}

/* --- Header --- */
.main-header {
    padding: 20px 0;
    background-color: rgba(42, 74, 48, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pri);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--pri);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sec);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--pri);
    font-size: 2rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* --- Mobile Burger Menu Overlay --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(42, 74, 48, 0.98);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-overlay.mobile-nav-open {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--pri);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}
.mobile-nav-close:hover {
    color: var(--sec);
    transform: scale(1.1);
}
.mobile-nav-panel {
    text-align: center;
}
.mobile-nav-panel ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-nav-panel a {
    color: var(--pri);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 12px 24px;
    display: block;
}
.mobile-nav-panel a:hover {
    color: var(--sec);
}
.mobile-nav-panel .btn {
    margin-top: 24px;
}

/* --- Hero Section --- */
.hero-slider {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

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

.service-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.service-card-content h3 {
    color: #fff;
    margin: 0;
}

/* --- Testimonials Section --- */
.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--sec);
}

/* --- Process Steps Section --- */
.process-steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--sec);
}

.step-number {
    background-color: var(--sec);
    color: #fff;
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    background-color: rgba(0,0,0,0.2);
}

.cta-section .container {
    max-width: 700px;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 30px;
}

/* --- Footer --- */
.main-footer {
    background: linear-gradient(to top, var(--dark), #3D6A46);
    color: var(--pri);
    padding-top: 100px; /* Space for the wave */
    position: relative;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.footer-wave .shape-fill {
    fill: var(--dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-col a {
    color: var(--pri);
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(245, 248, 245, 0.2);
}

/* --- About Page --- */
.page-header { background-color: rgba(0,0,0,0.2); padding: 50px 0; text-align: center; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image img { border-radius: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.gallery-grid img { border-radius: 8px; }

/* --- Success Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}
.modal-overlay.modal-open {
    display: flex;
}
.modal-content.modal-content {
    max-width: 420px;
    text-align: center;
    background-color: var(--dark);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--sec), var(--acc));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    font-weight: bold;
}
.modal-content h2 { margin-bottom: 12px; }
.modal-content p { margin-bottom: 24px; opacity: 0.95; }
.modal-close-btn { min-width: 120px; }
.modal-overlay .card:hover { transform: none; box-shadow: inset 0 0 0 2px var(--sec); }

/* --- Contact Page --- */
.contact-centered { max-width: 900px; }
.contact-form-container { margin-bottom: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--sec);
    background-color: var(--dark);
    color: var(--pri);
    font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--pri); }
.contact-info { display: grid; grid-template-columns: 1fr; gap: 30px; }

/* --- FAQ Page --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sec); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px; font-size: 1.2rem; font-family: var(--font-heading); color: var(--pri); cursor: pointer; position: relative; }
.faq-question::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; transition: transform 0.3s ease; }
.faq-item.open .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer p { padding: 0 20px 20px; }
.faq-item.open .faq-answer { max-height: 200px; }

/* --- Legal Pages --- */
.legal-page .container { max-width: 800px; }
.legal-page h1, .legal-page h2 { margin-top: 2rem; margin-bottom: 1rem; }
.legal-page ul { list-style: disc; margin-left: 20px; }

/* --- Cookie Banner --- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background-color: #2A4A30; color: var(--pri); padding: 20px; display: flex; justify-content: space-between; align-items: center; z-index: 2000; gap: 20px; border-top: 2px solid var(--sec); }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--pri); text-decoration: underline; }
.cookie-banner div { display: flex; gap: 10px; }
.btn-secondary { background-color: var(--sec); }
.btn-tertiary { background-color: transparent; border: 2px solid var(--sec); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    .main-nav { display: none; /* JS needed to toggle */ }
    .btn-header { display: none; }
    .mobile-nav-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cookie-banner { flex-direction: column; text-align: center; }
    .process-step { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}