
/* =========================================================
   ANNASETU — MAIN STYLESHEET
   Connected to index.html
   Brand: Bridging Food. Ending Hunger.
   ========================================================= */


/* ==================== 1. DESIGN SYSTEM ==================== */

:root {
    --green-950: #103824;
    --green-900: #174d35;
    --green-800: #1d6242;
    --green-700: #26784e;
    --green-600: #32945e;
    --green-100: #e6f3e9;
    --green-50: #f3f9f3;

    --orange-700: #c75b20;
    --orange-600: #e87936;
    --orange-500: #f28b45;
    --orange-100: #fff0e3;

    --navy: #172b25;
    --text: #34443b;
    --text-light: #68766d;

    --white: #ffffff;
    --background: #fcfcf8;
    --surface: #ffffff;
    --border: #e6ebe4;

    --success: #237447;
    --danger: #b42318;

    --shadow-sm: 0 4px 16px rgba(22, 61, 39, 0.06);
    --shadow-md: 0 12px 35px rgba(22, 61, 39, 0.10);
    --shadow-lg: 0 24px 65px rgba(22, 61, 39, 0.14);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 38px;

    --container: 1180px;
}


/* ==================== 2. RESET AND BASE ==================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

body,
input,
select,
textarea,
button {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(232, 121, 54, 0.65);
    outline-offset: 4px;
}

::selection {
    color: var(--white);
    background: var(--green-800);
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 105px 0;
}

.eyebrow {
    color: var(--orange-700);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 2.2px;
    line-height: 1.5;
    margin-bottom: 18px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.7px;
}

h1 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    letter-spacing: -2.8px;
}

h2 {
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -1.6px;
}

h3 {
    font-size: 1.28rem;
    font-weight: 750;
}

p {
    color: var(--text-light);
}

section[id] {
    scroll-margin-top: 90px;
}


/* ==================== 3. HEADER ==================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(252, 252, 248, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(230, 235, 228, 0.8);
}

.header-container {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 138px;
    height: auto;
}

.brand-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: var(--green-100);
    border-radius: 14px;
    font-size: 23px;
}

.brand-name {
    font-size: 1.55rem;
    font-weight: 850;
    letter-spacing: -0.8px;
    color: var(--green-900);
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.navigation > a {
    color: #48574d;
    font-size: 0.87rem;
    font-weight: 650;
    transition: color 0.2s ease;
}

.navigation > a:hover {
    color: var(--orange-700);
}

.navigation .nav-cta {
    background: var(--green-900);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 100px;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.navigation .nav-cta:hover {
    background: var(--green-700);
    color: var(--white);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 4px;
    background: var(--green-900);
}


/* ==================== 4. BUTTONS ==================== */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 9px;
    min-height: 51px;
    padding: 14px 25px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.4;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--green-900);
    box-shadow: 0 8px 20px rgba(23, 77, 53, 0.14);
}

.button-primary:hover {
    color: var(--white);
    background: var(--green-700);
    box-shadow: 0 12px 25px rgba(23, 77, 53, 0.2);
}

.button-secondary {
    color: var(--green-900);
    background: var(--white);
    border-color: #dbe6da;
}

.button-secondary:hover {
    background: var(--green-50);
}

.button-light {
    color: var(--green-950);
    background: var(--white);
}

.button-light:hover {
    background: var(--orange-100);
}

.button-outline-light {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
}

.button-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.button-full {
    width: 100%;
}


/* ==================== 5. HERO ==================== */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 85px 0 105px;
    background:
        radial-gradient(
            circle at 88% 14%,
            rgba(242, 139, 69, 0.12),
            transparent 27%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(50, 148, 94, 0.08),
            transparent 30%
        ),
        var(--background);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    align-items: center;
    gap: 70px;
}

.hero-content {
    max-width: 610px;
}

.hero-content h1 span,
.section-heading h2 span,
.help-content h2 span,
.donate-content h2 span,
.volunteer-content h2 span,
.safety-content h2 span {
    color: var(--green-700);
}

.hero-description {
    margin-top: 24px;
    max-width: 530px;
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-trust-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 27px;
    max-width: 460px;
    color: var(--text-light);
    font-size: 0.84rem;
}

.hero-trust-note > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--orange-700);
    background: var(--orange-100);
    border-radius: 50%;
    font-size: 1.1rem;
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 465px;
    border-radius: 190px 190px 32px 32px;
    background: var(--green-100);
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-floating-card {
    position: absolute;
    bottom: 32px;
    left: -45px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - 10px);
    padding: 19px 24px;
    background: var(--white);
    border: 1px solid rgba(230, 235, 228, 0.8);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.floating-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--orange-100);
    border-radius: 14px;
    font-size: 25px;
}

.hero-floating-card strong {
    display: block;
    color: var(--green-950);
    font-size: 0.95rem;
}

.hero-floating-card p {
    margin-top: 3px;
    font-size: 0.8rem;
}


/* ==================== 6. MISSION STRIP ==================== */

.mission-strip {
    background: var(--green-950);
    padding: 30px 0;
}

.mission-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.mission-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.mission-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.11);
    font-size: 24px;
}

.mission-item h2 {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 0;
}

.mission-item p {
    margin-top: 4px;
    color: #c4d9ca;
    font-size: 0.8rem;
}


/* ==================== 7. SECTION HEADINGS ==================== */

.section-heading {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-heading > p:last-child {
    max-width: 640px;
    margin: 19px auto 0;
    font-size: 1rem;
    line-height: 1.85;
}


/* ==================== 8. HOW IT WORKS ==================== */

.how-section {
    background: var(--background);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.feature-card {
    padding: 30px 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-7px);
    border-color: #c9ddca;
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 59px;
    height: 59px;
    margin-bottom: 24px;
    background: var(--green-50);
    border: 1px solid #e0eee0;
    border-radius: 18px;
    font-size: 27px;
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--orange-100);
    border-color: #ffe3ce;
}

.feature-card h3 {
    font-size: 1.08rem;
    letter-spacing: -0.3px;
}

.feature-card p {
    margin-top: 13px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--green-800);
    font-size: 0.9rem;
    font-weight: 750;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--orange-700);
}


/* ==================== 9. FORMS ==================== */

.form-card {
    padding: 34px;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-card h3 {
    font-size: 1.45rem;
    letter-spacing: -0.6px;
}

.form-description {
    margin-top: 8px;
    margin-bottom: 27px;
    font-size: 0.91rem;
    line-height: 1.7;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 19px;
}

.form-group label {
    color: #35483c;
    font-size: 0.86rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 15px;
    color: var(--navy);
    background: #fdfefb;
    border: 1px solid #dfe7dc;
    border-radius: 11px;
    outline: none;
    font-size: 0.92rem;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input,
.form-group select {
    min-height: 49px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aa69b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-600);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(50, 148, 94, 0.1);
}

.form-group input[type="checkbox"] {
    width: 19px;
    height: 19px;
    min-height: 19px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--green-800);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 11px;
    margin-top: 7px;
    margin-bottom: 22px;
}

.checkbox-group label {
    font-weight: 500;
    font-size: 0.82rem;
    line-height: 1.65;
}

.form-disclaimer {
    margin-top: 15px;
    color: #7c897f;
    font-size: 0.76rem;
    line-height: 1.7;
}

.form-status {
    margin-top: 15px;
    font-size: 0.88rem;
    font-weight: 650;
}

.form-status:empty {
    display: none;
}

.form-status[data-type="success"] {
    color: var(--success);
}

.form-status[data-type="error"] {
    color: var(--danger);
}

.form-status[data-type="pending"] {
    color: var(--text-light);
}

.map-area-search {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-top: 20px;
}

.map-area-search .form-group {
    flex: 1;
    margin-bottom: 0;
}

.map-area-search small {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 0.78rem;
}

@media (max-width: 600px) {
    .map-area-search {
        align-items: stretch;
        flex-direction: column;
    }
}

form[aria-busy="true"] button[type="submit"],
button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.7;
}


/* ==================== 10. FOOD ASSISTANCE ==================== */

.help-section {
    background:
        radial-gradient(
            circle at 5% 20%,
            rgba(50, 148, 94, 0.07),
            transparent 32%
        ),
        var(--green-50);
}

.help-container {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    align-items: start;
    gap: 85px;
}

.help-content {
    padding-top: 38px;
}

.help-content h2 {
    max-width: 520px;
}

.help-content > p:not(.eyebrow):not(.privacy-note) {
    margin-top: 24px;
    line-height: 1.9;
}

.check-list,
.safety-list {
    display: grid;
    gap: 15px;
    margin-top: 28px;
    list-style: none;
}

.check-list li,
.safety-list li {
    position: relative;
    padding-left: 32px;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.75;
}

.check-list li::before,
.safety-list li::before {
    content: "✓";
    position: absolute;
    top: 1px;
    left: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--green-800);
    background: #dcefe0;
    font-size: 0.8rem;
    font-weight: 800;
}

.privacy-note {
    margin-top: 30px;
    padding: 17px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-left: 3px solid var(--orange-500);
    border-radius: 0 10px 10px 0;
    font-size: 0.82rem;
    line-height: 1.8;
}


/* ==================== 11. DONATION SECTION ==================== */

.donate-section {
    background: var(--white);
}

.donate-container {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 75px;
}

.donate-content {
    padding: 30px 0;
}

.donate-content h2 {
    max-width: 540px;
    color: var(--white);
}

.donate-content h2 span {
    color: #bde7c8;
}

.donate-content > p:not(.eyebrow) {
    margin-top: 23px;
    color: #d4e6d8;
    line-height: 1.9;
}

.donate-content .eyebrow {
    color: #ffd0a9;
}

.donate-container {
    position: relative;
    padding: 54px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(242, 139, 69, 0.18),
            transparent 30%
        ),
        linear-gradient(135deg, #103824, #1d6242);
}

.donate-visual {
    overflow: hidden;
    height: 365px;
    border-radius: 23px;
    border: 5px solid rgba(255, 255, 255, 0.12);
}

.donate-visual img {
    height: 100%;
    object-fit: cover;
}

.donation-points {
    display: grid;
    gap: 16px;
    margin: 27px 0 32px;
}

.donation-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.donation-point > span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--green-950);
    background: #c7ebcd;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 900;
}

.donation-point p {
    color: #e0eee2;
    font-size: 0.9rem;
    line-height: 1.7;
}

.donation-form-container {
    display: flex;
    justify-content: center;
    margin-top: 65px;
}

.donation-card {
    width: min(100%, 600px);
}


/* ==================== 12. FOOD RESCUE ==================== */

.food-rescue-section {
    background: #f6f8f2;
}

.rescue-layout {
    display: grid;
    grid-template-columns: 0.95fr 1fr;
    align-items: center;
    gap: 65px;
}

.rescue-image {
    overflow: hidden;
    height: 480px;
    background: var(--green-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.rescue-image img {
    height: 100%;
    object-fit: cover;
}

.rescue-content h3 {
    font-size: 1.65rem;
    margin-bottom: 28px;
}

.steps-list {
    display: grid;
    gap: 25px;
    list-style: none;
    counter-reset: rescue-step;
}

.steps-list li {
    position: relative;
    padding-left: 57px;
    counter-increment: rescue-step;
}

.steps-list li::before {
    content: counter(rescue-step, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    border-radius: 13px;
    background: var(--green-100);
    color: var(--green-900);
    font-size: 0.83rem;
    font-weight: 850;
}

.steps-list strong {
    display: block;
    color: var(--navy);
    font-size: 0.98rem;
}

.steps-list p {
    margin-top: 5px;
    font-size: 0.87rem;
    line-height: 1.8;
}

.rescue-content > .button {
    margin-top: 31px;
}

.provider-card {
    width: min(100%, 700px);
    margin: 65px auto 0;
}


/* ==================== 13. VOLUNTEERS ==================== */

.volunteer-section {
    background: var(--white);
}

.volunteer-container {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    align-items: start;
    gap: 80px;
}

.volunteer-content {
    padding-top: 30px;
}

.volunteer-content > p:not(.eyebrow) {
    margin-top: 23px;
    line-height: 1.9;
}

.volunteer-roles {
    display: grid;
    gap: 23px;
    margin-top: 35px;
}

.volunteer-role {
    display: flex;
    align-items: flex-start;
    gap: 17px;
}

.volunteer-role > span {
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    flex-shrink: 0;
    border-radius: 15px;
    background: var(--green-50);
    border: 1px solid #e0eee0;
    font-size: 24px;
}

.volunteer-role h3 {
    font-size: 1rem;
}

.volunteer-role p {
    margin-top: 5px;
    font-size: 0.87rem;
    line-height: 1.75;
}


/* ==================== 14. FOOD SAFETY ==================== */

.safety-section {
    background: #fff8f0;
}

.safety-container {
    display: grid;
    grid-template-columns: 85px 1fr;
    align-items: start;
    gap: 35px;
    max-width: 1000px;
}

.safety-icon {
    display: grid;
    place-items: center;
    width: 75px;
    height: 75px;
    border-radius: 23px;
    background: var(--orange-100);
    border: 1px solid #ffdfc4;
    font-size: 36px;
}

.safety-content h2 {
    max-width: 720px;
}

.safety-content > p:not(.eyebrow):not(.safety-disclaimer) {
    margin-top: 20px;
    line-height: 1.9;
}

.safety-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
}

.safety-list li::before {
    color: var(--orange-700);
    background: #ffe7d2;
}

.safety-disclaimer {
    margin-top: 30px;
    padding: 19px 22px;
    border: 1px solid #f6dfc8;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 13px;
    font-size: 0.85rem;
    line-height: 1.8;
}


/* ==================== 15. FINAL CALL TO ACTION ==================== */

.cta-section {
    padding: 95px 0;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(242, 139, 69, 0.18),
            transparent 35%
        ),
        var(--green-950);
}

.cta-container {
    max-width: 820px;
}

.cta-section .eyebrow {
    color: #ffd0a9;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section h2 span {
    color: #bde7c8;
}

.cta-section .container > p:not(.eyebrow) {
    max-width: 650px;
    margin: 22px auto 0;
    color: #d4e6d8;
    line-height: 1.9;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}


/* ==================== 16. FOOTER ==================== */

.site-footer {
    padding: 70px 0 0;
    background: #0c2a1b;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr 1.1fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-brand .brand-name {
    color: var(--white);
}

.footer-brand .brand-icon {
    background: rgba(255, 255, 255, 0.12);
}

.footer-brand > p {
    max-width: 290px;
    margin-top: 18px;
    color: #b7ccbd;
    font-size: 0.86rem;
    line-height: 1.9;
}

.footer-brand .footer-tagline {
    color: #f5c69e;
    font-weight: 700;
}

.footer-links,
.footer-contact {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
}

.footer-links h2,
.footer-contact h2 {
    margin-bottom: 9px;
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 0;
}

.footer-links a {
    color: #b7ccbd;
    font-size: 0.84rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffd0a9;
}

.footer-contact p {
    color: #b7ccbd;
    font-size: 0.84rem;
    line-height: 1.85;
}

.footer-contact .text-link {
    color: #f5c69e;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p,
.footer-bottom a {
    color: #a8c1af;
    font-size: 0.8rem;
}

.footer-bottom .footer-mission {
    color: #f5c69e;
    font-weight: 650;
}

.back-to-top {
    white-space: nowrap;
    transition: color 0.2s ease;
}

.back-to-top:hover {
    color: var(--white);
}


/* ==================== 17. RESPONSIVE: LAPTOPS ==================== */

@media (max-width: 1100px) {
    .navigation {
        gap: 15px;
    }

    .navigation > a {
        font-size: 0.8rem;
    }

    .hero-container {
        gap: 45px;
    }

    .hero-image-wrapper {
        height: 420px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-container,
    .volunteer-container {
        gap: 45px;
    }

    .donate-container {
        gap: 40px;
        padding: 40px;
    }

    .footer-main {
        gap: 30px;
    }
}


/* ==================== 18. RESPONSIVE: TABLETS ==================== */

@media (max-width: 850px) {
    .container {
        width: min(100% - 36px, var(--container));
    }

    .section {
        padding: 78px 0;
    }

    .header-container {
        min-height: 74px;
    }

    .brand-logo {
        width: 126px;
    }

    .menu-toggle {
        display: flex;
    }

    .navigation {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 12px 22px 22px;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    /* The JavaScript will toggle the .active class. */
    .navigation.active {
        display: flex;
    }

    .navigation > a {
        display: block;
        padding: 13px 8px;
        font-size: 0.95rem;
    }

    .navigation .nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    .hero-section {
        padding: 65px 0 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-content {
        max-width: 680px;
    }

    .hero-visual {
        width: min(100%, 620px);
        margin-inline: auto;
    }

    .hero-image-wrapper {
        height: 430px;
        border-radius: 150px 150px 28px 28px;
    }

    .hero-floating-card {
        left: 15px;
        bottom: 22px;
    }

    .mission-container {
        gap: 18px;
    }

    .mission-item {
        justify-content: flex-start;
        gap: 10px;
    }

    .mission-icon {
        width: 43px;
        height: 43px;
        font-size: 21px;
    }

    .mission-item p {
        font-size: 0.73rem;
    }

    .help-container,
    .donate-container,
    .rescue-layout,
    .volunteer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .help-content,
    .volunteer-content {
        padding-top: 0;
    }

    .donate-container {
        padding: 35px;
    }

    .donate-content {
        padding: 0;
    }

    .donate-visual {
        height: 350px;
    }

    .rescue-image {
        height: 380px;
    }

    .safety-container {
        grid-template-columns: 65px 1fr;
        gap: 22px;
    }

    .safety-icon {
        width: 62px;
        height: 62px;
        font-size: 30px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }
}


/* ==================== 19. RESPONSIVE: MOBILE ==================== */

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .section {
        padding: 65px 0;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .brand-icon {
        width: 39px;
        height: 39px;
        border-radius: 12px;
        font-size: 21px;
    }

    h1 {
        font-size: clamp(2.55rem, 12vw, 3.6rem);
        letter-spacing: -1.8px;
    }

    h2 {
        font-size: clamp(1.95rem, 8vw, 2.65rem);
        letter-spacing: -1px;
    }

    .hero-section {
        padding: 54px 0 65px;
    }

    .hero-container {
        gap: 42px;
    }

    .hero-description {
        margin-top: 19px;
        font-size: 0.97rem;
        line-height: 1.85;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 27px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-trust-note {
        align-items: flex-start;
        font-size: 0.79rem;
    }

    .hero-image-wrapper {
        height: 330px;
        border-radius: 115px 115px 24px 24px;
    }

    .hero-floating-card {
        left: 8px;
        bottom: 14px;
        gap: 10px;
        padding: 13px 15px;
        border-radius: 14px;
    }

    .floating-card-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .hero-floating-card strong {
        font-size: 0.84rem;
    }

    .hero-floating-card p {
        font-size: 0.74rem;
    }

    .mission-strip {
        padding: 27px 0;
    }

    .mission-container {
        grid-template-columns: 1fr;
        gap: 21px;
    }

    .mission-item {
        justify-content: flex-start;
        gap: 14px;
    }

    .mission-item h2 {
        font-size: 0.97rem;
    }

    .mission-item p {
        font-size: 0.8rem;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .section-heading > p:last-child {
        margin-top: 16px;
        font-size: 0.92rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 25px;
    }

    .feature-icon {
        margin-bottom: 18px;
    }

    .form-card {
        padding: 23px 19px;
        border-radius: 21px;
    }

    .form-card h3 {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .help-container,
    .volunteer-container {
        gap: 34px;
    }

    .check-list {
        gap: 13px;
    }

    .privacy-note {
        padding: 15px;
    }

    .donate-container {
        width: calc(100% - 24px);
        padding: 27px 21px;
        border-radius: 25px;
    }

    .donate-visual {
        height: 260px;
        border-width: 3px;
    }

    .donation-form-container {
        margin-top: 40px;
    }

    .donation-points {
        gap: 14px;
    }

    .rescue-image {
        height: 290px;
    }

    .rescue-layout {
        gap: 33px;
    }

    .rescue-content h3 {
        font-size: 1.4rem;
    }

    .steps-list {
        gap: 23px;
    }

    .steps-list li {
        padding-left: 49px;
    }

    .steps-list li::before {
        width: 37px;
        height: 37px;
    }

    .provider-card {
        margin-top: 42px;
    }

    .volunteer-roles {
        gap: 21px;
    }

    .volunteer-role > span {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .safety-container {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .safety-list {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .safety-disclaimer {
        padding: 16px;
    }

    .cta-section {
        padding: 68px 0;
    }

    .cta-section .container > p:not(.eyebrow) {
        font-size: 0.92rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .button {
        width: 100%;
    }

    .site-footer {
        padding-top: 52px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-bottom: 38px;
    }

    .footer-brand > p {
        max-width: 360px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}


/* ==================== 20. REDUCED MOTION ==================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==================== 21. LIVE FOOD MAP ==================== */

.food-map-section {
    background:
        radial-gradient(circle at 95% 0, rgba(232, 121, 54, 0.06), transparent 28%),
        var(--green-50);
}

.food-map-controls {
    margin-bottom: 30px;
    padding: 28px;
}

.map-location-actions,
.food-list-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.map-location-actions > div {
    flex: 1;
}

.map-location-actions .button {
    flex: 0 0 auto;
}

.map-location-actions h3,
.food-list-heading h3 {
    color: var(--green-950);
}

.map-location-actions p {
    margin-top: 5px;
    font-size: 0.87rem;
}

.button-text {
    min-height: 44px;
    padding: 9px 13px;
    border: 0;
    border-radius: 100px;
    background: transparent;
    color: var(--green-900);
    font-weight: 700;
}

.button-text:hover {
    background: var(--green-50);
}

.map-manual-location {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 0.7fr) auto auto;
    align-items: end;
    gap: 14px;
    margin-top: 24px;
}

.map-manual-location .form-group,
.map-filters .form-group {
    margin-bottom: 0;
}

.map-location-note {
    margin-top: 12px;
    font-size: 0.8rem;
}

.map-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.map-filters label,
.map-manual-location label {
    font-size: 0.8rem;
}

.map-data-note {
    margin-top: 23px;
    padding: 14px 17px;
    border: 1px solid #f1dfc8;
    border-radius: 12px;
    background: #fffaf3;
    color: var(--text);
    font-size: 0.84rem;
}

.food-map-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 22px;
}

.food-list-panel,
.food-map-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.food-list-heading {
    margin-bottom: 13px;
}

.map-view-toggle {
    display: none;
    padding: 3px;
    border-radius: 100px;
    background: var(--green-50);
}

.map-view-toggle button {
    min-width: 58px;
    padding: 7px 12px;
    border: 0;
    border-radius: 100px;
    background: transparent;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
}

.map-view-toggle button.is-active {
    background: var(--green-900);
    color: var(--white);
}

.food-list-results {
    display: grid;
    gap: 12px;
    max-height: 610px;
    overflow: auto;
}

.food-listing-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.food-listing-card h4 {
    color: var(--navy);
    font-size: 1rem;
}

.food-listing-card p {
    margin-top: 6px;
    font-size: 0.83rem;
}

.food-listing-card .food-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 12px;
    color: var(--green-900);
    font-size: 0.77rem;
    font-weight: 700;
}

.food-listing-card button {
    margin-top: 12px;
    padding: 7px 12px;
    border: 1px solid var(--green-800);
    border-radius: 100px;
    background: var(--white);
    color: var(--green-900);
    font-size: 0.78rem;
    font-weight: 700;
}

.food-listing-card button:hover {
    background: var(--green-50);
}

.food-listing-empty {
    padding: 18px;
    border-radius: 12px;
    background: var(--green-50);
    color: var(--text-light);
    font-size: 0.88rem;
}

#food-map-canvas {
    width: 100%;
    height: 510px;
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(230, 243, 233, 0.8), rgba(255, 240, 227, 0.65));
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 13px;
    color: var(--text-light);
    font-size: 0.77rem;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.map-legend-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(23, 43, 37, 0.35);
}

.map-dot-food {
    background: var(--orange-600);
}

.map-dot-user {
    background: #2678d4;
}

.map-attribution {
    margin-top: 8px;
    font-size: 0.7rem;
}

.map-attribution a {
    text-decoration: underline;
}

.map-pin-action {
    width: 100%;
    margin-top: 14px;
}

.request-location-share {
    display: grid;
    justify-items: start;
    gap: 8px;
    margin: -5px 0 20px;
}

.request-location-share p {
    font-size: 0.8rem;
}

.request-location-share .button {
    min-height: 44px;
}

.leaflet-container {
    font: inherit;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

.leaflet-popup-content {
    line-height: 1.55;
}

.leaflet-popup-content strong {
    color: var(--green-950);
}

.leaflet-popup-content p {
    margin: 5px 0 0;
    font-size: 0.8rem;
}

@media (max-width: 850px) {
    .map-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .food-map-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-view-toggle {
        display: inline-flex;
    }

    .food-map-layout[data-view="list"] .food-map-panel {
        display: none;
    }

    .food-map-layout[data-view="map"] .food-list-panel {
        display: none;
    }

    #food-map-canvas {
        height: min(62vh, 500px);
        min-height: 340px;
    }
}

@media (max-width: 560px) {
    .food-map-controls {
        padding: 21px 17px;
    }

    .map-location-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .map-manual-location {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-manual-location .button {
        width: 100%;
        padding-inline: 12px;
        font-size: 0.82rem;
    }

    .map-filters {
        gap: 12px;
    }

    .food-list-panel,
    .food-map-panel {
        padding: 14px;
    }

    #food-map-canvas {
        min-height: 300px;
    }
}
