
:root {
    --primary-blue: #87CEEB; /* Sky Blue */
    --deep-blue: #005f87;
    --grass-green: #4C9A2A;
    --text-dark: #333333;
    --text-light: #555555;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-height: 80px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary { background: var(--grass-green); color: white; }
.btn-primary:hover { background: #3d8020; }
.btn-secondary { background: var(--deep-blue); color: white; }
.btn-secondary:hover { background: #004663; }
.btn-outline { border: 2px solid var(--deep-blue); color: var(--deep-blue); background: transparent; }
.btn-outline:hover { background: var(--deep-blue); color: white; }

/* Header */
header {
    background-color: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
    overflow: hidden; /* For clouds */
}

/* Cloud Animation Layer */
.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.cloud-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%; /* Double width for looping */
    height: 100%;
    background: url('../assets/clouds.png') repeat-x center;
    /* Increased size by approx 75% relative to container (175%) */
    background-size: auto 175%;
    background-position: center bottom;
    animation: scrollClouds 60s linear infinite;
}

@keyframes scrollClouds {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Disable clouds on reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cloud-bg { animation: none; display: none; }
}

.header-inner {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Nav */
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-link:hover { color: var(--white); }

.lang-toggle {
    font-weight: 700;
    border: 1px solid var(--text-dark);
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-cta {
    display: flex;
    gap: 10px;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    border: none;
    background: none;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--primary-blue), var(--white));
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

.hero .subhead {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.trust-line {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 20px;
}

/* Services */
.services {
    padding: 60px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--deep-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

@media (prefers-reduced-motion: no-preference) {
    .service-card:hover { transform: translateY(-5px); }
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--grass-green);
}

.service-card h3 { margin-bottom: 10px; }

/* History */
.history {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.history-content {
    max-width: 800px;
    margin: 0 auto;
}

.history p { margin-bottom: 15px; }
.history ul { list-style: disc; margin-left: 20px; margin-bottom: 20px; }
.history li { margin-bottom: 10px; }

/* FAQ */
.faq {
    padding: 60px 0;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-question {
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: var(--deep-blue);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    padding: 10px 0;
}

.faq-answer {
    margin-top: 10px;
    color: var(--text-light);
    padding-bottom: 10px;
}

/* Contact */
.contact {
    padding: 60px 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.contact-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.hidden-honeypot { display: none; }

#form-status { margin-top: 15px; font-weight: bold; }
.success { color: green; }
.error { color: red; }

/* Footer */
footer {
    position: relative;
    background-color: #4e3629; /* Dirt brown */
    color: white;
    padding-top: 80px; 
    padding-bottom: 40px;
    margin-top: 40px;
    z-index: 100; /* Above rain */
    overflow: hidden; /* Clip grass */
}

.grass-deco {
    position: absolute;
    /* Larger height for big grass */
    height: 300px;
    /* Move to bottom */
    top: auto;
    bottom: -60px; /* Sunk slightly to anchor bottom */
    left: 0;
    width: 100%;
    background: url('../assets/grass.png') repeat-x bottom center;
    /* Tighter horizontal repeat (25%) */
    background-size: 25% 100%; 
    pointer-events: none;
    z-index: 0; /* Behind text */
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 1; /* Above grass */
}

.footer-cta {
    font-family: 'Impact', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--grass-green);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #000;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

/* Footer Credit */
.footer-credit {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-credit a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    transition: opacity 0.3s, color 0.3s;
    text-decoration: none;
}

.footer-credit a:hover, .footer-credit a:focus {
    opacity: 1;
    color: white;
    text-decoration: underline;
}

.footer-credit img {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-credit a:hover img {
    opacity: 1;
}

/* Rain Container */
#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50; /* Below header/footer */
    overflow: hidden;
}

.raindrop {
    position: absolute;
    top: -100px;
    opacity: 0.8;
    transform: scale(0.08) rotate(15deg);
}

/* Chatbot */
#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: var(--font-main);
}

.chat-toggle {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s;
}

.chat-toggle:hover { transform: scale(1.1); }

.chat-toggle img {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.chat-notification {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.chat-window {
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 80px;
    right: 0;
    transform-origin: bottom right;
    transition: 0.3s;
}

.chat-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.chat-header {
    background: var(--primary-blue);
    padding: 15px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--deep-blue);
}

.chat-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--deep-blue); }

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fafafa;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    max-width: 80%;
}

.message.bot { background: #e1f5fe; align-self: flex-start; margin-right: auto; }
.message.user { background: var(--grass-green); color: white; align-self: flex-end; margin-left: auto; text-align: right; }

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 5px;
}

.chat-input-area input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.chat-input-area button {
    background: var(--deep-blue);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.quick-reply-btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    background: white;
    border: 1px solid var(--primary-blue);
    border-radius: 15px;
    color: var(--deep-blue);
    cursor: pointer;
    text-align: left;
    font-size: 0.85rem;
}
.quick-reply-btn:hover { background: var(--primary-blue); color: black; }

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        padding: 40px;
        transition: 0.3s;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-menu.active { left: 0; }
    .hamburger { display: block; z-index: 101; }
    .hero h1 { font-size: 2rem; }
    .footer-cta { font-size: 1.8rem; }
    .nav-cta { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
}
