/* RESET & VARIABLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --forest:   #062403;
    --green:    #149708;
    --mint:     #e8f5e9;
    --red:      #b91c1c;
    --red-bg:   #fef2f2;
    --white:    #ffffff;
    --ink:      #1a1a1a;
    --muted:    #5a6b5a;
    --border:   #d4e2d4;
    --shadow:   0 4px 20px rgba(6,36,3,0.10);
    --shadow-lg: 0 8px 40px rgba(6,36,3,0.15);
    --radius:   12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: #f7faf7;
    min-height: 100vh;
}

/* TYPOGRAPHY UTILITIES */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 8px;
}

.section-sub {
    font-size: 15px;
    color: var(--muted);
    max-width: 500px;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(6,36,3,0.06);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--forest);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--green);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: var(--mint);
    color: var(--forest);
}

.nav-links .cta-link a {
    background: var(--forest);
    color: var(--white);
    padding: 8px 18px;
}

.nav-links .cta-link a:hover {
    background: var(--green);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    background: var(--forest);
    color: var(--white);
    padding: 80px 12vw 90px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(20,151,8,0.18) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    opacity: 0.9;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(20,151,8,0.25);
    border: 1px solid rgba(20,151,8,0.4);
    color: #86efac;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero-badge::before {
    content: '●';
    font-size: 8px;
    color: #4ade80;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    max-width: 680px;
}

.hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    max-width: 620px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.search-bar input {
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    flex: 1;
    color: var(--ink);
    background: transparent;
}

.search-bar button {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.search-bar button:hover {
    background: #0e7a06;
}

/* SERVICES SECTION */
.services {
    padding: 72px 8vw;
    background: var(--white);
}

.services-header {
    text-align: center;
    margin-bottom: 48px;
}

.services-header .section-sub {
    margin: 0 auto;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.card p {
    font-size: 14px;
    font-weight: 600;
    color: var(--forest);
    line-height: 1.3;
}

.card a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    background: var(--forest);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    white-space: nowrap;
}

.card a:hover {
    background: var(--green);
}

/* SUPPORT SECTION */
.support {
    background: var(--forest);
    padding: 72px 8vw;
}

.support-header {
    text-align: center;
    margin-bottom: 48px;
}

.support-header .section-label {
    color: #86efac;
}

.support-header .section-title {
    color: var(--white);
}

.support-header .section-sub {
    color: rgba(255,255,255,0.6);
    margin: 0 auto;
}

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

.support-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.25s, transform 0.25s;
}

.support-card:hover {
    background: rgba(255,255,255,0.11);
    transform: translateY(-4px);
}

.support-icon {
    font-size: 32px;
    line-height: 1;
}

.support-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.support-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #86efac;
    margin-top: 4px;
}

.support-link:hover {
    color: #4ade80;
}

/* EMERGENCY + LEGAL HUB */
.others {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 72px 8vw;
}

.emergency {
    background: var(--red-bg);
    border: 2px solid #fecaca;
    border-radius: var(--radius);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    width: fit-content;
}

.emergency h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--red);
}

.emergency p {
    font-size: 14px;
    color: #7f1d1d;
    line-height: 1.6;
}

.emergency-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-danger {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-danger:hover {
    background: #991b1b;
    transform: translateY(-1px);
}

.btn-outline-danger {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-outline-danger:hover {
    background: #fee2e2;
    transform: translateY(-1px);
}

.learn {
    background: var(--forest);
    border-radius: var(--radius);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.learn::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    pointer-events: none;
}

.learn-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(20,151,8,0.25);
    border: 1px solid rgba(20,151,8,0.4);
    color: #86efac;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    width: fit-content;
}

.learn h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--white);
}

.learn p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    width: fit-content;
}

.btn-primary:hover {
    background: #0e7a06;
    transform: translateY(-1px);
}

/* FLOATING WIDGETS */
.emergency-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.emergency-illustration {
    width: 130px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}

.emergency-fab {
    background: var(--red);
    color: white;
    padding: 16px 24px;
    border-radius: 999px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.emergency-fab:hover {
    background: #991b1b;
    opacity: 1;
   
    transform: translateY(-2px);
}

.chat-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.chat-illustration {
    width: 120px;
    height: auto;
    opacity: 0.9;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chat-illustration:hover {
    transform: translateY(-2px);
 }

/* FOOTER */
.footer {
    background: #020f01;
    color: rgba(255,255,255,0.65);
    padding: 56px 8vw 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
    font-size: 22px;
    color: var(--white);
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 280px;
}

.footer-hotline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    background: rgba(20,151,8,0.15);
    border: 1px solid rgba(20,151,8,0.3);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    width: fit-content;
}

.footer-hotline span:first-child {
    font-size: 20px;
}

.footer-hotline strong {
    color: #86efac;
    font-size: 16px;
}

.footer-hotline small {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #86efac;
}

.footer-bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
}

.socials {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.social-btn:hover {
    background: rgba(20,151,8,0.3);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 60px 6vw;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-top: 20px;
    }

    .services,
    .support,
    .others {
        padding: 56px 5vw;
    }

    .others {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .emergency-widget {
        bottom: 16px;
        right: 16px;
    }

    .emergency-fab {
        padding: 14px 18px;
        font-size: 12px;
    }

    .emergency-illustration {
        width: 70px;
    }

    .chat-widget {
        bottom: 16px;
        left: 16px;
    }

    .chat-fab {
        padding: 12px 16px;
        font-size: 16px;
    }

    .chat-illustration {
        width: 70px;
    }
}

@media (max-width: 560px) {
    .search-bar {
        flex-direction: column;
        border-radius: var(--radius-sm);
    }

    .search-bar input {
        width: 100%;
    }

    .search-bar button {
        width: 100%;
        border-radius: 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}