:root {
    --primary: #2D4236;
    --secondary: #D9E3CC;
    --tertiary: #004D40; /* Updated from orange to dark green */
    --neutral: #F9FBF7;
    --white: #ffffff;
    --card-bg: #C6FACB;
    --text-dark: #00ab47;
    --text-muted: #2d6b41;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.03);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
    background-color: #042104;
    background-image: url('green leaves.svg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body {
    font-family: var(--font-sans);
    background-color: transparent; /* Allow HTML background to show through */
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
    overflow-wrap: break-word;
}

h1 { font-size: clamp(2.2rem, 8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 4vw, 2rem); }

p {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

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

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}



.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Global Elements --- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--tertiary);
    color: white;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 77, 64, 0.15);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 77, 64, 0.3);
    background-color: #00695C;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--tertiary);
    color: var(--tertiary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--tertiary);
    color: white;
}

/* --- Common Layout --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }
    .section-header {
        margin-bottom: 3rem;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
}

.section-padding {
    padding: clamp(4rem, 10vw, 10rem) 0;
    position: relative;
}

/* --- Sticky Navbar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: var(--transition);
    background: white;
}

nav.scrolled {
    background: rgba(217, 227, 204, 0.8);
    backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

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

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary); /* Default to primary for light backgrounds */
    position: relative;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--tertiary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--tertiary);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* Page Specific Header Colors if needed */
.header-dark .logo, .header-dark .nav-links a {
    color: var(--white);
}

/* --- Hero Section --- */
#home {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--secondary);
    color: var(--primary);
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Safe area for fixed navbar */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 100%;
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-wrapper img {
    width: 100%;
    max-width: 450px;
    height: auto;
}

.hero-content h1 {
    font-size: 3.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s forwards 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s forwards 0.8s;
    color: var(--text-muted);
    max-width: 600px;
}

.hero-cta {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s forwards 1.1s;
    display: flex;
    gap: 1.5rem;
}




/* --- Wavy Dividers --- */
.divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

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

.divider-top .shape-fill {
    fill: var(--neutral);
}

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

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

.divider-bottom .shape-fill {
    fill: var(--neutral);
}

/* --- Cards --- */
.card {
    background: var(--card-bg);
    padding: 4rem 3rem;
    border-radius: 32px;
    border: 1px solid var(--secondary);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.9);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--white);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--tertiary);
    color: var(--white);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--tertiary);
    border-radius: 40px;
    z-index: 0;
}

.about-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.about-badge span {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1;
}

.about-badge label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* --- FAQ Accordion --- */
.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(217, 227, 204, 0.5);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.open {
    border-color: var(--tertiary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--primary);
    text-align: left;
}

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary);
}

.faq-item.open .faq-icon {
    background: var(--tertiary);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    padding: 0 2rem;
}

.faq-item.open .faq-answer {
    max-height: 1000px;
    padding-bottom: 2rem;
    transition: max-height 0.5s ease-in;
}

/* --- Resources --- */
.resource-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-10px);
    border-color: var(--tertiary);
    box-shadow: var(--shadow-hover);
}

.resource-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.resource-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.resource-link {
    margin-top: auto;
    color: var(--tertiary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 2rem;
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 40px;
    border-radius: 100px 100px 0 0;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-column h4 {
    color: var(--secondary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--tertiary);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.deco-svg {
    display: none !important;
}

/* --- Emergency Section --- */
.emergency-section {
    background: var(--card-bg);
    border-radius: 60px;
    padding: 4rem 5rem;
    margin-bottom: 0;
    border: 1px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.emergency-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 6rem;
}

.emergency-illustration img {
    width: 100%;
    border-radius: 40px;
    box-shadow: var(--shadow-soft);
}

.emergency-info h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.emergency-note {
    background: var(--white); /* Keep white for internal note contrast if desired, or change to neutral */
    padding: 2.5rem;
    border-radius: 30px;
    border-left: 6px solid var(--tertiary);
    box-shadow: var(--shadow-soft);
}

.emergency-note p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.emergency-note strong {
    color: var(--primary);
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.helpline-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(217, 227, 204, 0.3);
}

.helpline-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--tertiary);
}

.helpline-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.helpline-details p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.helpline-details strong {
    color: var(--primary);
    font-weight: 600;
}

.helpline-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--tertiary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid, .emergency-header { gap: 3rem; grid-template-columns: 1fr; text-align: center; }
    .hero-logo-wrapper { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.2rem; }
    nav { position: relative; padding: 1rem 0; background: var(--white); }
    #home { padding-top: 2rem; }
    .nav-content { flex-direction: column; gap: 1rem; }
    .nav-links { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
    .nav-links a { font-size: 0.85rem; }
    .hero-grid, .about-grid { gap: 2rem; }
    .about-image-wrapper { margin-bottom: 3rem; }
    .about-image-wrapper::before { display: none; }
    .about-image { box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 30px; }
    .about-badge { position: relative; right: 0; bottom: 0; margin: -30px auto 0; padding: 1rem 1.5rem; border-radius: 20px; width: fit-content; }
    .about-badge span { font-size: 1.5rem; }
    .hero-cta { flex-direction: column; width: 100%; gap: 1rem; }
    .hero-cta .btn { width: 100%; box-sizing: border-box; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
    .emergency-section { padding: 2.5rem 1.5rem; border-radius: 30px; }
    .emergency-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .long-heading { white-space: normal; line-height: 1.3; }
}
