/* =========================================================
   ALCO – Aid To Light Charity Organization
   Brand colours carried over from the Flutter app (website_colors.dart)
   ========================================================= */
:root {
    --alco-green: #006600;        /* ColorConst.greenpakstan */
    --alco-green-dark: #004d00;
    --alco-green-light: #2e8b2e;
    --alco-amber: #ffc107;        /* Colors.amber[500] – header */
    --alco-amber-dark: #ff8f00;   /* Colors.amber[800] */
    --alco-orange: #e07a10;       /* titles (slightly deepened from #ff9028 for contrast) */
    --alco-mint: #e9ffdb;         /* ColorConst.alicegreen */
    --alco-blue: #0b1cd5;         /* goal icons */
    --alco-ink: #1c1c1c;
    --alco-muted: #5b5b5b;

    --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-ui: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-card: 4px 4px 12px rgba(0, 0, 0, .12);

    --bs-link-color: var(--alco-green);
    --bs-link-hover-color: var(--alco-green-dark);
    --bs-link-color-rgb: 0, 102, 0;
    --bs-link-hover-color-rgb: 0, 77, 0;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    font-family: var(--font-body);
    color: var(--alco-ink);
    font-weight: 500;
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}

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

:focus-visible { outline: 3px solid var(--alco-amber-dark); outline-offset: 2px; }

.skip-link {
    position: absolute; top: .5rem; left: .5rem; z-index: 2000;
    background: #fff; padding: .5rem 1rem; border-radius: 8px; font-weight: 700;
}
.min-w-0 { min-width: 0; }

/* ---------- Shared headings ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-mint { background: var(--alco-mint); }

.section-title {
    color: var(--alco-green);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.2vw, 2rem);
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.title-orange {
    color: var(--alco-orange);
    font-weight: 800;
}

/* =========================================================
   Top bar
   ========================================================= */
.topbar {
    background: var(--alco-green);
    color: #fff;
    font-family: var(--font-ui);
    font-size: .875rem;
    padding: .4rem 0;
}
.topbar-link {
    color: #fff; text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
}
.topbar-link:hover { color: var(--alco-amber); }
.topbar-sep { width: 2px; height: 18px; background: rgba(255,255,255,.8); }

.social-icons { display: flex; align-items: center; gap: .9rem; padding: 0; }
.social-icons a {
    color: #fff; font-size: 1.05rem; line-height: 1;
    display: inline-flex; transition: color .15s, transform .15s;
}
.social-icons a:hover { color: var(--alco-amber); transform: translateY(-1px); }

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header {
    background: var(--alco-amber);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.brand {
    display: flex; flex-direction: column; align-items: center;
    padding: 0; margin-right: 1rem;
}
.brand img { width: 110px; height: auto; }
.brand-tagline {
    font-size: .68rem; font-style: italic; font-weight: 700;
    color: var(--alco-ink); letter-spacing: .01em; margin-top: 2px;
}
.site-header .nav-link {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    padding: .5rem .75rem !important;
    position: relative;
}
.site-header .nav-link:hover { color: var(--alco-green); }
.site-header .nav-link.active { color: var(--alco-green); }
.site-header .nav-link.active::after {
    content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem;
    height: 3px; border-radius: 3px; background: var(--alco-green);
}
.btn-donate {
    background: var(--alco-green); color: #fff;
    font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem;
    border-radius: 10px; padding: .7rem 1.6rem;
    border: 2px solid var(--alco-green);
}
.btn-donate:hover, .btn-donate:focus-visible { background: var(--alco-green-dark); border-color: var(--alco-green-dark); color: #fff; }
.btn-donate.active { background: #fff; color: var(--alco-green); }

.navbar-toggler { color: var(--alco-green); font-size: 2rem; padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0, 102, 0, .35); }

@media (max-width: 991.98px) {
    .brand img { width: 72px; }
    .brand-tagline { font-size: .6rem; }
}

/* Mobile drawer */
.mobile-drawer { background: var(--alco-green); color: #fff; }
.mobile-drawer .drawer-logo { width: 90px; }
.drawer-nav a {
    display: flex; align-items: center; gap: 1rem;
    padding: .85rem .5rem; color: #fff; text-decoration: none;
    font-family: var(--font-ui); font-size: 1.15rem; font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.drawer-nav a.active, .drawer-nav a:hover { color: var(--alco-amber); }
.drawer-nav i { font-size: 1.3rem; width: 1.5rem; }
.drawer-heading { font-weight: 700; color: var(--alco-amber); margin-bottom: .4rem; }
.drawer-work a { color: rgba(255,255,255,.9); text-decoration: none; display: block; padding: .3rem 0; }
.drawer-work a:hover { color: #fff; text-decoration: underline; }
.drawer-contact a { display: block; color: #fff; text-decoration: none; font-size: .95rem; padding: .2rem 0; word-break: break-all; }

/* =========================================================
   Home hero slider
   ========================================================= */
.hero { background: #000; }
.hero .carousel-item { height: clamp(440px, 85vh, 820px); position: relative; }
.hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.hero-caption {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end;
    padding-bottom: clamp(3.5rem, 12vh, 7rem);
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%);
}
.hero-caption p {
    color: #fff;
    font-weight: 600;
    font-size: clamp(1.1rem, 2.4vw, 1.75rem);
    line-height: 1.45;
    max-width: 44rem;
    text-shadow: 0 2px 6px rgba(0,0,0,.4);
    margin-bottom: 1.5rem;
}
.btn-hero-primary {
    background: var(--alco-amber); color: #000; font-family: var(--font-ui); font-weight: 700;
    border-radius: 10px; padding: .75rem 1.6rem; border: 0;
}
.btn-hero-primary:hover { background: #ffd24d; color: #000; }
.btn-hero-ghost {
    color: #fff; border: 2px solid #fff; font-family: var(--font-ui); font-weight: 600;
    border-radius: 10px; padding: .65rem 1.4rem;
}
.btn-hero-ghost:hover { background: #fff; color: var(--alco-green); }
.hero .carousel-indicators { margin-bottom: 1.25rem; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; }

/* =========================================================
   About intro
   ========================================================= */
.about-block h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.about-img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius-lg); margin-bottom: 1.25rem;
}
.about-block p { max-width: 68ch; }

/* =========================================================
   Mission department cards
   ========================================================= */
.mission-card {
    height: 100%;
    display: flex; flex-direction: column;
}
.mission-img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius-lg); margin-bottom: 1rem;
}
.mission-title { font-size: 1rem; line-height: 1.35; margin-bottom: .6rem; }
.mission-text { font-size: .9rem; margin-bottom: 1rem; }
.mission-text p { margin-bottom: .6rem; }

.btn-pill-green {
    background: var(--alco-green); color: #fff;
    border-radius: 999px; padding: .55rem 1.6rem;
    font-style: italic; font-weight: 600;
}
.btn-pill-green:hover, .btn-pill-green:focus-visible { background: var(--alco-green-dark); color: #fff; }

/* =========================================================
   Goals
   ========================================================= */
.goal-card {
    height: 100%;
    background: #f5f5f5;
    border-radius: 17px;
    box-shadow: var(--shadow-card);
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
}
.goal-icon {
    width: 128px; height: 128px; border-radius: 50%;
    background: #e3e6fb;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.goal-icon img { width: 76px; height: 76px; }
.goal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.goal-card p { font-size: .95rem; margin: 0; text-align: left; }

/* =========================================================
   Join / volunteers band
   ========================================================= */
.join-band {
    background: var(--alco-green);
    color: #fff;
    text-align: center;
    padding: clamp(3rem, 7vw, 5rem) 0;
    margin-top: clamp(1rem, 3vw, 2rem);
}
.join-title {
    font-weight: 700; text-transform: uppercase;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    max-width: 24ch; margin: 0 auto .5rem; line-height: 1.25;
}
.join-sub {
    color: var(--alco-amber-dark);
    font-weight: 700; text-transform: uppercase;
    font-size: clamp(1.2rem, 2.8vw, 1.9rem);
    margin-bottom: 1.75rem;
}
.btn-join {
    border: 3px solid #fff; color: #fff;
    border-radius: 19px;
    font-weight: 800; font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    padding: .8rem clamp(3rem, 12vw, 8rem);
}
.btn-join:hover, .btn-join:focus-visible { background: #fff; color: var(--alco-green); border-color: #fff; }

/* Big social row */
.social-icons-xl { gap: clamp(1rem, 4vw, 2.5rem); flex-wrap: wrap; }
.social-icons-xl a { color: rgba(0,0,0,.55); font-size: clamp(2rem, 5vw, 2.75rem); }
.social-icons-xl a:hover { color: var(--alco-green); }

/* =========================================================
   Partners
   ========================================================= */
.partner { text-align: center; margin: 0; }
.partner-logo {
    display: flex; align-items: center; justify-content: center;
    height: 120px; background: #fff; border-radius: var(--radius-lg);
    padding: 1rem; margin-bottom: .75rem;
}
.partner-logo img { max-height: 88px; width: auto; object-fit: contain; }
.partner figcaption {
    color: var(--alco-amber-dark); font-weight: 600; font-size: .95rem; line-height: 1.35;
}

/* =========================================================
   Inner page headers
   ========================================================= */
.page-banner {
    background: var(--alco-green);
    color: #fff;
    padding: clamp(2rem, 5vw, 3.25rem) 0;
}
.page-banner h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.75rem); margin: 0; }
.page-banner .lead { font-size: clamp(1rem, 1.8vw, 1.15rem); font-weight: 500; opacity: .92; margin-top: .5rem; max-width: 60ch; }
.page-banner .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); font-size: .875rem; }
.page-banner .breadcrumb a { color: var(--alco-amber); text-decoration: none; }
.page-banner .breadcrumb-item.active { color: rgba(255,255,255,.8); }

.photo-hero {
    position: relative;
    min-height: clamp(280px, 55vh, 520px);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
}
.photo-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.photo-hero-tall { min-height: clamp(320px, 80vh, 780px); }
.photo-hero-inner { position: relative; z-index: 1; padding: 3rem 1rem; }
.photo-hero h1 { font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.3rem); margin-bottom: 1rem; }
.photo-hero p { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 50rem; margin: 0 auto 1rem; }

/* =========================================================
   Department pages
   ========================================================= */
.intro-text .container { max-width: 58rem; }
.intro-text p { font-size: clamp(1rem, 1.6vw, 1.15rem); text-align: center; }

.feature-row { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.feature-row + .feature-row { border-top: 1px solid #e6e6e6; }
.feature-title {
    color: var(--alco-orange); font-weight: 800;
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    text-transform: uppercase; line-height: 1.3;
    margin-bottom: 1rem;
}
.feature-text { max-width: 70ch; }
.feature-text p { margin-bottom: 1rem; }

.media-img { width: 100%; border-radius: var(--radius-lg); display: block; }
@media (min-width: 992px) {
    .feature-row .col-lg-5 { position: sticky; top: 130px; }
}

.media-carousel { border-radius: var(--radius-lg); overflow: hidden; background: #eee; }
.media-carousel .carousel-item img { aspect-ratio: 4 / 3; object-fit: cover; }

.quote-figure { position: relative; margin: 0; }
.quote-figure figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .65); color: #fff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 1rem 1.25rem; text-align: center;
    font-weight: 700; font-size: .95rem; line-height: 1.45; text-transform: uppercase;
}

.donate-cta {
    background: var(--alco-mint);
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.donate-cta p {
    font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    max-width: 48rem; margin: 0 auto 1.5rem; line-height: 1.45;
}
.btn-donate-lg {
    background: var(--alco-green); color: #fff;
    border-radius: 19px; font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 600;
    padding: .7rem clamp(3rem, 10vw, 5.5rem);
}
.btn-donate-lg:hover, .btn-donate-lg:focus-visible { background: var(--alco-green-dark); color: #fff; }

/* =========================================================
   Contact
   ========================================================= */
.form-label { font-family: var(--font-ui); font-size: 1rem; font-weight: 600; }
.form-control:focus { border-color: var(--alco-green); box-shadow: 0 0 0 .25rem rgba(0, 102, 0, .2); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-send {
    background: #2e9e3a; color: #fff; font-family: var(--font-ui);
    border-radius: 8px; padding: .85rem 2.5rem; font-size: 1.15rem;
    min-width: 220px;
}
.btn-send:hover, .btn-send:focus-visible { background: var(--alco-green); color: #fff; }
.btn-send:disabled { background: #6c9f70; color: #fff; }

.contact-hello { font-style: italic; font-weight: 700; font-size: clamp(1.4rem, 2.5vw, 1.6rem); margin-bottom: 1.25rem; }
.contact-list li + li { margin-top: .5rem; }
.contact-list a, .contact-list li > div {
    display: flex; align-items: center; gap: 1rem;
    color: var(--alco-ink); text-decoration: none;
    padding: .75rem; border-radius: var(--radius-md);
    font-weight: 700; font-size: clamp(.95rem, 1.6vw, 1.1rem);
    word-break: break-word;
}
.contact-list a:hover { background: var(--alco-mint); }
.contact-list small { display: block; font-weight: 500; font-size: .78rem; color: var(--alco-muted); }
.contact-icon {
    flex: 0 0 52px; height: 52px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--alco-mint); color: var(--alco-green); font-size: 1.4rem;
}
.contact-icon.wa { background: #25d366; color: #fff; }

/* =========================================================
   Donate
   ========================================================= */
.give-card {
    height: 100%;
    border: 2px solid var(--alco-mint);
    border-top: 6px solid var(--alco-green);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    background: #fff;
}
.give-card h3 {
    color: var(--alco-amber-dark); font-weight: 700; font-size: 1.25rem;
    text-transform: uppercase; margin-bottom: 1rem;
    display: flex; align-items: center; gap: .6rem;
}
.give-card h3 i { color: var(--alco-green); }
.give-card dl { margin: 0; }
.give-row { padding: .6rem 0; border-bottom: 1px dashed #d8d8d8; }
.give-row:last-child { border-bottom: 0; }
.give-row dt { font-size: .8rem; font-weight: 600; color: var(--alco-muted); }
.give-row dd { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.give-value { font-weight: 700; font-size: 1.05rem; word-break: break-word; }
.btn-copy {
    border: 0; background: var(--alco-mint); color: var(--alco-green);
    width: 34px; height: 34px; border-radius: 8px; flex: 0 0 34px;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-copy:hover { background: var(--alco-green); color: #fff; }
.give-note { margin: 1rem 0 0; font-size: .9rem; background: #fff8e6; border-radius: 10px; padding: .75rem 1rem; }
.donate-thanks { text-align: center; font-weight: 600; font-size: 1.15rem; margin: 2.5rem 0 1rem; }
.btn-whatsapp { background: #25d366; color: #fff; font-weight: 700; border-radius: 12px; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--alco-green);
    color: #fff;
    padding-top: clamp(2.5rem, 6vw, 3.5rem);
}
.footer-title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .2rem 0; font-size: .9rem; font-weight: 600; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--alco-amber); text-decoration: underline; }
.footer-links i { margin-right: .35rem; }

.footer-brand-row { margin-top: 2rem; }
.footer-brand-row .social-icons-lg { gap: 1.5rem; margin-bottom: 1rem; }
.social-icons-lg a { font-size: 1.6rem; }
.footer-email { color: #fff; font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 1rem; word-break: break-all; }
.footer-email:hover { color: var(--alco-amber); }
.footer-logo { display: flex; flex-direction: column; align-items: center; width: 120px; color: #fff; text-decoration: none; }
.footer-logo img { width: 100px; }
.footer-logo span { font-size: .6rem; font-style: italic; font-weight: 300; }

@media (min-width: 992px) {
    .footer-find { border-left: 1px solid rgba(255,255,255,.7); padding-left: 2.5rem; }
}
@media (max-width: 991.98px) {
    .footer-find { border-top: 1px solid rgba(255,255,255,.3); padding-top: 1.5rem; }
}
.footer-bottom {
    text-align: center; font-family: var(--font-ui); font-weight: 300;
    padding: 1.5rem 1rem; margin-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,.25);
    font-size: .95rem;
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 1030;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    transition: transform .15s;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* Back to top button (added by main.js) */
.back-to-top {
    position: fixed; right: 1.2rem; bottom: 5rem; z-index: 1030;
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--alco-amber); color: #000; font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
    .topbar { font-size: .78rem; }
    .social-icons { gap: .7rem; }
    .goal-icon { width: 104px; height: 104px; }
    .goal-icon img { width: 62px; height: 62px; }
    .btn-send { width: 100%; }
}
