/* =========================================================
   Recovery of Hawaiʻi — main stylesheet
   ========================================================= */

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

:root {
    --green: #164f3b;
    --dark-green: #0d382a;
    --gold: #d4af37;
    --turquoise: #1d7476;      /* darkened from #2a9d9f for readable contrast */
    --white: #ffffff;
    --off-white: #f7f7f2;
    --black: #151515;
    --gray: #555555;
    --focus: #1d7476;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Logo watermark */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(650px, 85vw);
    height: min(650px, 85vw);
    background: url("../images/logo.png") no-repeat center / contain;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

main { flex: 1; }

img { max-width: 100%; }

a { color: var(--green); }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    background: var(--gold);
    color: var(--black);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 800;
    z-index: 2000;
    text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* =========================================================
   NAVIGATION
   ========================================================= */

header {
    background: rgba(255, 255, 255, 0.97);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e7e7e7;
}

.nav {
    max-width: 1200px;
    margin: auto;
    min-height: 100px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.brand {
    text-decoration: none;
    color: var(--green);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

.brand span { color: #84690f; } /* deeper gold so the logo text stays readable on white */

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

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

.nav-links a[aria-current="page"] {
    color: var(--green);
    border-bottom-color: var(--gold);
}

.nav-links .donate-nav {
    background: var(--gold);
    padding: 11px 18px;
    border-radius: 50px;
    border-bottom: none;
}

.nav-links .donate-nav[aria-current="page"] {
    color: var(--black);
    box-shadow: 0 0 0 2px var(--green);
}

.menu-toggle {
    display: none;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 78vh;
    background: linear-gradient(100deg, rgba(8, 44, 32, .96), rgba(13, 77, 58, .86));
    color: var(--white);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 90px 24px;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .98;
    margin-bottom: 25px;
}

.hero p {
    max-width: 660px;
    font-size: 19px;
    color: #e8f1ed;
    margin-bottom: 35px;
}

/* Smaller banner for inner pages */
.page-hero {
    background: linear-gradient(100deg, rgba(8, 44, 32, .96), rgba(13, 77, 58, .86));
    color: var(--white);
    padding: 80px 24px 70px;
}

.page-hero .container > * { max-width: 760px; }

.page-hero h1 {
    font-size: clamp(36px, 5.5vw, 60px);
    line-height: 1.05;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    color: #e8f1ed;
}

/* =========================================================
   BUTTONS
   ========================================================= */

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

.button {
    display: inline-block;
    padding: 15px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

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

.primary {
    background: var(--gold);
    color: var(--black);
}

.secondary {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.outline {
    border: 2px solid var(--green);
    color: var(--green);
    background: transparent;
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

section { padding: 90px 24px; }

.container {
    max-width: 1200px;
    margin: auto;
}

.narrow { max-width: 850px; }

.center { text-align: center; }

.center .intro { margin-left: auto; margin-right: auto; }

.section-label {
    color: var(--turquoise);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 10px;
}

h2 {
    color: var(--green);
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.08;
    margin-bottom: 20px;
}

h3 { color: var(--green); }

.intro {
    max-width: 760px;
    color: var(--gray);
    font-size: 18px;
}

.intro + .intro { margin-top: 18px; }

.alt-bg { background: var(--off-white); }

.prose p,
.prose ul {
    margin-bottom: 16px;
    color: #333333;
}

.prose ul { padding-left: 22px; }

.prose h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 12px;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.about-card {
    min-height: 400px;
    border-radius: 18px;
    padding: 45px;
    color: var(--white);
    background: linear-gradient(145deg, var(--green), var(--dark-green));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.about-card .big {
    font-size: 52px;
    color: var(--gold);
    font-weight: 900;
}

.about-card p { font-size: 20px; }

.text-link {
    display: inline-block;
    margin-top: 22px;
    font-weight: 800;
    color: var(--green);
}

/* =========================================================
   CARDS (services)
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 45px;
}

.card {
    background: var(--white);
    padding: 34px;
    border-radius: 14px;
    border-top: 5px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.card-number {
    color: var(--turquoise);
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 23px;
}

.card p { color: var(--gray); }

/* =========================================================
   CTA BAND (availability / donate)
   ========================================================= */

.cta-band {
    background: var(--green);
    color: var(--white);
}

.cta-band h2 { color: var(--white); }

.cta-band .section-label { color: var(--gold); }

.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-band p {
    max-width: 680px;
    color: #e1eee8;
    font-size: 18px;
}

/* =========================================================
   COMMUNITY SLIDESHOW
   ========================================================= */

.coming-soon {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 30px;
    border: 2px dashed #c9d6d0;
    border-radius: 18px;
    background: var(--white);
}

.coming-soon p {
    color: var(--gray);
    font-size: 18px;
}

.slideshow {
    position: relative;
    max-width: 950px;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: var(--dark-green);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.community-slide {
    display: none;
    width: 100%;
    height: 100%;
    margin: 0;
}

.community-slide.active { display: block; }

.community-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    z-index: 5;
}

.slide-arrow:hover {
    background: var(--gold);
    color: var(--black);
}

.prev { left: 20px; }
.next { right: 20px; }

.slide-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.dot {
    width: 14px;
    height: 14px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #bbbbbb;
    cursor: pointer;
}

.dot.active { background: var(--gold); }

.slide-pause {
    margin-left: 14px;
    background: none;
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 50px;
    padding: 4px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================
   FAQ
   ========================================================= */

details {
    max-width: 850px;
    margin: 15px auto;
    background: var(--white);
    padding: 20px 24px;
    border-radius: 9px;
    border: 1px solid #e6e6e6;
}

summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--green);
}

details p {
    padding-top: 15px;
    color: var(--gray);
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
}

.contact-info p { margin-bottom: 14px; }

.contact-info a {
    color: var(--green);
    font-weight: bold;
}

form {
    display: grid;
    gap: 6px;
}

label {
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
}

.optional {
    font-weight: 400;
    color: var(--gray);
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #b5b5b5;
    border-radius: 7px;
    font: inherit;
    background: var(--white);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Honeypot field: hidden from people, visible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.privacy-note {
    color: var(--gray);
    font-size: 13px;
    margin: 10px 0;
}

.form-status {
    font-weight: 700;
    min-height: 1.6em;
}

.form-status.error { color: #a12020; }

/* =========================================================
   DONATE
   ========================================================= */

.donate-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 50px;
    align-items: start;
}

.donate-box {
    background: var(--white);
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
    border-top: 6px solid var(--gold);
}

.donate-box h2 { font-size: 30px; }

.frequency {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--off-white);
    padding: 6px;
    border-radius: 50px;
    margin: 10px 0 24px;
}

.frequency button {
    border: none;
    background: transparent;
    padding: 12px;
    border-radius: 50px;
    font: inherit;
    font-weight: 800;
    color: var(--green);
    cursor: pointer;
}

.frequency button[aria-pressed="true"] {
    background: var(--green);
    color: var(--white);
}

.amount-group h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.amount {
    display: block;
    text-align: center;
    padding: 18px 10px;
    border: 2px solid var(--green);
    border-radius: 10px;
    color: var(--green);
    text-decoration: none;
    font-weight: 900;
    font-size: 22px;
    transition: background .15s ease, color .15s ease;
}

.amount:hover {
    background: var(--green);
    color: var(--white);
}

.amount.custom {
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When JS is running, show only the selected frequency */
.js .amount-group[hidden] { display: none; }
.amount-group + .amount-group { margin-top: 26px; }
.js .amount-group + .amount-group { margin-top: 0; }

.secure-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--gray);
}

.tax-note {
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--off-white);
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
}

.impact-list {
    list-style: none;
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.impact-list li {
    padding: 18px 20px;
    background: var(--white);
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.impact-list strong {
    display: block;
    color: var(--green);
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 35px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.crisis-bar {
    background: #e9f2ee;
    color: var(--black);
    padding: 14px 24px;
    text-align: center;
    font-size: 15px;
    border-top: 1px solid #d3e2db;
}

.crisis-bar a {
    color: var(--dark-green);
    font-weight: 800;
}

footer {
    background: #0c211a;
    color: #d8e2de;
    padding: 50px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

footer strong { color: var(--white); }

footer a { color: var(--gold); }

.footer-links {
    list-style: none;
    display: grid;
    gap: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #23423a;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 960px) {
    .menu-toggle { display: block; }

    .js .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid #e7e7e7;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
        padding: 10px 24px 20px;
    }

    .js .nav-links.open { display: flex; }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 17px;
        border-bottom: 1px solid #eeeeee;
    }

    .nav-links .donate-nav {
        margin-top: 14px;
        text-align: center;
    }

    /* Without JavaScript the menu simply wraps under the logo */
    html:not(.js) .nav { flex-wrap: wrap; padding-bottom: 12px; }
    html:not(.js) .nav-links { flex-wrap: wrap; gap: 4px 18px; }
    html:not(.js) .menu-toggle { display: none; }
}

@media (max-width: 850px) {
    .nav { min-height: 80px; }

    .brand img {
        width: 60px;
        height: 60px;
    }

    section { padding: 65px 20px; }

    .about-grid,
    .contact-grid,
    .donate-grid,
    .cards,
    .ways-grid {
        grid-template-columns: 1fr;
    }

    .about-card { min-height: 280px; }

    .cta-box { display: block; }

    .cta-box .button { margin-top: 25px; }

    .hero { min-height: 70vh; }

    .slideshow { height: 420px; }

    .slide-arrow {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .donate-box { padding: 26px; }
}

.center-buttons { justify-content: center; }

.donate-box .intro { font-size: 17px; margin-bottom: 18px; }
.donate-contact { margin-top: 22px; }
