/* ==========================================================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
    /* Analogous Color Scheme (Eco-Minimalism) */
    --bg-color: #E0E5EC;
    --primary-color: #588157;
    --secondary-color: #A3B18A;
    --accent-color: #3A5A40;
    --text-color: #344E41;
    --heading-color: #222222;
    --white-color: #FFFFFF;
    --light-shadow-color: rgba(255, 255, 255, 0.9);
    --dark-shadow-color: rgba(163, 177, 198, 0.6);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    /* Neumorphism Shadows */
    --neumorphic-shadow-outset: 6px 6px 12px var(--dark-shadow-color), -6px -6px 12px var(--light-shadow-color);
    --neumorphic-shadow-inset: inset 4px 4px 8px var(--dark-shadow-color), inset -4px -4px 8px var(--light-shadow-color);
    --neumorphic-shadow-hover: 10px 10px 20px var(--dark-shadow-color), -10px -10px 20px var(--light-shadow-color);

    /* Spacing & Sizing */
    --header-height: 80px;
    --border-radius: 15px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

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

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

/* ==========================================================================
   2. LAYOUT & UTILITY CLASSES
   ========================================================================== */
.main-container {
    width: 100%;
}

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

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    color: var(--heading-color);
    margin-bottom: 3.5rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

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

.has-background-light {
    background-color: #f0f2f5; /* A slightly different shade for variation */
}

/* A simple grid system */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.column {
    flex: 1;
    padding: 0 15px;
}

.column.is-two-thirds {
    flex: 0 0 66.666%;
}

.columns.is-centered {
    justify-content: center;
}

/* ==========================================================================
   3. COMPONENTS
   ========================================================================== */

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease-in-out;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--accent-color);
    transition: all 0.3s ease-in-out;
}

/* --- Global Button Styles --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--neumorphic-shadow-outset);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--neumorphic-shadow-hover);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: var(--neumorphic-shadow-inset);
}

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

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

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

/* --- Card Styles --- */
.card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neumorphic-shadow-hover);
}

.card-image {
    width: 100%;
    height: 250px; /* Fixed height for image containers */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* --- Form Styles --- */
.contact-form {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: box-shadow 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #999;
    opacity: 0;
}

.form-input:focus {
    box-shadow: inset 6px 6px 10px #cbced1, inset -6px -6px 10px white;
}

.form-label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-color);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -25px;
    left: 5px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Switch Component */
.form-group-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
    box-shadow: var(--neumorphic-shadow-inset);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
    box-shadow: var(--neumorphic-shadow-outset);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* --- Footer --- */
.footer {
    background-color: #D1D9E6; /* Slightly darker than main bg */
    padding: 4rem 0 2rem 0;
    color: var(--text-color);
}

.footer-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-shadow-color);
}

/* ==========================================================================
   4. SECTION-SPECIFIC STYLES
   ========================================================================== */

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    color: var(--white-color);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* --- Statistics Section --- */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
}

/* --- Innovation Section (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    box-shadow: var(--neumorphic-shadow-inset);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--bg-color);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
}

/* --- External Links Section --- */
.external-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.external-link-card {
    display: block;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
    transition: all 0.3s ease;
    width: 300px;
    text-align: center;
    color: var(--text-color);
}
.external-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neumorphic-shadow-hover);
    color: var(--primary-color);
}
.external-link-card span {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   5. PAGE-SPECIFIC STYLES
   ========================================================================== */

/* --- Success Page --- */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
}

.success-content h1 {
    color: var(--primary-color);
}

/* --- Privacy & Terms Pages --- */
.content-page {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
}

.content-page .container {
    max-width: 800px;
}

.content-page h1 {
    margin-bottom: 2rem;
}

.content-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

@media screen and (max-width: 992px) {
    .columns {
        flex-direction: column;
    }
    .column {
        width: 100%;
        margin-bottom: 2rem;
    }
    .column.is-two-thirds {
        flex-basis: auto;
    }
    .footer .columns {
        flex-direction: row; /* Keep footer columns side-by-side on tablet */
    }
    .footer .column {
        flex-basis: 50%;
    }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 3rem;
    }
    .nav-menu.active {
        left: 0;
    }

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

    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 21px;
    }
    
    .footer .columns {
        flex-direction: column;
        text-align: center;
    }
}