/* ====================================================
   ONOMILU DESIGN SYSTEM
==================================================== */

:root {
    --radius-sm: 4px;
    --radius-md: 6px;

    --teal-deep: #0F4A4A;
    --teal-mid: #2A626C;
    --teal-light: #35757F;
    --teal-bg: #8FA8A9;

    --bg-white: #FFFFFF;
    --text-dark: #222222;
    --text-soft: #6B6E6A;

    --border: #CCCCCC;
}

/* ====================================================
   BASE
==================================================== */

html, body {
    margin: 0;
    height: 100%;
}

body {
    font-family: 'Source Sans 3', Arial, sans-serif;
    font-size: 16px;

    display: flex;
    flex-direction: column;
    min-height: 100vh;

    background: var(--teal-bg);
    color: #222f2f;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    margin: 0;
    color: #1f2a2a;
    font-weight: 600;
}

h1 {
    color: var(--teal-deep);
}

p, li {
    line-height: 1.5;
    color: #243434;
}

a {
    color: #0F4A4A;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ====================================================
   FONTS
==================================================== */

@font-face {
    font-family: 'Roboto';
    src: url('/css/fonts/roboto/roboto-regular.ttf');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/css/fonts/roboto/roboto-bold.ttf');
    font-weight: 700;
    font-display: swap;
}

/* ====================================================
   HEADER
==================================================== */

.site-header {
    background: var(--teal-deep);
    color: #fff;
    padding: 1rem;

    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header img {
    height: 40px;
}

.site-header a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
}

/* ====================================================
   LAYOUT
==================================================== */

.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-2col {
    display: flex;
    flex: 1;
    gap: 1rem;
}

.sidebar {
    width: clamp(260px, 18vw, 300px);
    padding-top: 1rem;
}

.content {
    flex: 1;
    background: #eef4f4;          /* soft teal-neutral */
    border-radius: var(--radius-md);
    padding: 1rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ====================================================
   BREADCRUMB
==================================================== */

.breadcrumb {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 1.5%;
    color: var(--text-soft);
}

.breadcrumb a {
    color: var(--teal-deep);
    text-decoration: none;
}

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

.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

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

.hero-overlay {
    position: absolute;
    top: 2%;
    left: 2%;
    max-width: 90%;

    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.hero-overlay h1 {
    font-size: 2.5rem;
    color: var(--teal-deep);

    text-shadow:
        0 1px 0 rgba(255,255,255,0.6),
        0 2px 0 rgba(0,0,0,0.08),
        0 4px 8px rgba(0,0,0,0.15);
}

.hero-overlay p {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

/* ====================================================
   ACCORDION NAV
==================================================== */

.accordion-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* BASE */
.accordion-header,
.accordion-body a {
    display: flex;                 /* key change */
    align-items: center;           /* vertical center */
    justify-content: center;       /* keep centered text */
    
    height: 38px;                  /* controlled height */
    padding: 0 1rem;               /* remove vertical padding */
    
    margin: 0.18rem 0.6rem;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s ease;
}

/* CHILD links stay left-aligned */
.accordion-body a {
    justify-content: flex-start;
    padding-left: 1.2rem;
}

/* TOP LEVEL */
.accordion-header {
    background: var(--teal-mid);
    line-height: 1.15;
}

/* BODY */
.accordion-body {
    display: none;
    padding: 0.3rem 0;
}

.accordion-item.open .accordion-body {
    display: block;
}

/* CHILD */
.accordion-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-body a {
    background: var(--teal-light);
    font-size: 0.95em;
    margin: 0.18rem 1.2rem;
    padding: 0.28rem 0.8rem 0.28rem 1.2rem;
    text-align: left;
    opacity: 0.92;
}

/* INTERACTION */
.accordion-item .accordion-header:hover,
.accordion-item .accordion-body ul li a:hover,
.accordion-item .accordion-header.active,
.accordion-item .accordion-body ul li a.active {
    background: var(--teal-deep);
}

/* ACTIVE DEPTH */
.accordion-header.active,
.accordion-body a.active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.35);
}

/* GROUPING */
.accordion-item.open .accordion-header {
    margin-bottom: 0.05rem;
}

/* ====================================================
   CARDS / GRID
==================================================== */

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

.section-card {
    background: #fff;

    border: 2px solid rgba(15, 74, 74, 0.18);  /* thicker + softened teal */
    border-radius: var(--radius-sm);

    padding: 1rem;
    text-decoration: none;
    color: var(--text-dark);

box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 1px 2px rgba(0,0,0,0.05),
    0 3px 6px rgba(0,0,0,0.06);
    transition: all 0.15s ease;
}
.section-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 74, 74, 0.28);
    box-shadow:
        0 6px 14px rgba(0,0,0,0.10);
}

/* ====================================================
   TEAM
==================================================== */

.team-media {
    display: flex;
    gap: 2rem;
}

.team-img-wrap {
    width: 240px;
}

.team-img-wrap img {
    width: 100%;
    border-radius: var(--radius-md);
}

.team-content {
    flex: 1;
}

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

.site-footer {
    background: var(--teal-deep);
    color: #fff;
    margin-top: 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem;
}

.footer-center img {
    height: 80px;
}

/* RIGHT SIDE */
.footer-right {
    justify-self: end;
    display: flex;
    gap: 1.2rem;
}

/* LINKS */
.footer-inner a,
.footer-inner a:visited {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.footer-inner a:hover {
    opacity: 1;
    text-decoration: underline;
}
/* ====================================================
   MOBILE
==================================================== */

@media (max-width: 800px) {
    .layout-2col {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content {
        margin: 0;
        border-radius: var(--radius-md);
    }

    .team-media {
        flex-direction: column;
    }
}

hr {
    border: none;
    height: 2px;
    background: var(--border);
    margin: 1rem 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 800px) {

    .nav-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 280px;

        background: var(--teal-bg);
        padding-top: 4rem;

        transition: left 0.25s ease;
        z-index: 1000;
    }

    .sidebar.open {
        left: 0;
    }

    .layout-2col {
        flex-direction: column;
    }
}

.nav-overlay {
    display: none;
}

@media (max-width: 800px) {
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        display: none;
        z-index: 900;
    }

    .nav-overlay.open {
        display: block;
    }
}

.nav-toggle {
    margin-left: auto;
}

.waiver-scroll {
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #ccc;
    background: #f9f9f9;
    margin-bottom: 1rem;
}

.volunteer-form {
    max-width: 640px;
    margin: 2rem auto;
}

.volunteer-form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: #222;
}

.volunteer-form input[type="text"],
.volunteer-form input[type="email"],
.volunteer-form input[type="date"] {
    width: 100%;
    padding: 0.5rem 0.6rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.volunteer-form input:focus {
    outline: none;
    border-color: #0F4A4A;
    box-shadow: 0 0 0 2px rgba(15, 74, 74, 0.15);
}

.volunteer-form input[type="text"],
.volunteer-form input[type="email"],
.volunteer-form input[type="date"] {
    width: 100%;
    padding: 0.55rem 0.6rem;
    margin-top: 0.3rem;

    background: #f3f7f7;              /* soft teal-tinted */
    border: 1px solid #cfdede;
    border-radius: 4px;

    font-size: 0.95rem;
    box-sizing: border-box;

    transition: all 0.15s ease;
}

.volunteer-form input:focus {
    background: #ffffff;
    border-color: #0F4A4A;
    box-shadow: 0 0 0 2px rgba(15,74,74,0.12);
    outline: none;
}


.volunteer-form hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #ddd;
}

.volunteer-form input[type="text"],
.volunteer-form input[type="email"],
.volunteer-form input[type="date"] {
    width: 100%;
    padding: 0.55rem 0.6rem;
    margin-top: 0.3rem;
    border: 1px solid #cfd8d8;
    border-radius: 4px;
    background: #eeeeee; 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.15s ease;
}

.volunteer-form input:focus {
    background: #ffffff;
    border-color: #0F4A4A;
    box-shadow: 0 0 0 2px rgba(15,74,74,0.15);
    outline: none;
}


.checkbox-group input[type="checkbox"] {
    accent-color: #0F4A4A;
}





.checkbox-group {
    margin-top: 0.4rem;
}

.checkbox-group label {
    display: inline-block;
    font-weight: normal;
    margin-right: 1rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.3rem;
}

#guardian-wrap {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#guardian-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #b00;
}



@media (min-width: 700px) {
    .form-row {
        display: flex;
        gap: 1rem;
    }

    .form-row > div {
        flex: 1;
    }
}




#guardian-wrap {
    display: none;
    transition: all 0.2s ease;
}



/* layout */
.donate-wrap {
    text-align: center;
    padding: 2rem 1rem;
    width:60%;
    margin:auto;
}

.donate-note {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #333;
}

/* button */
.btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 420px;

    padding: 1rem 1.5rem;

    font-size: 1.3rem;
    font-weight: 600;

    color: #fff;
    background: #2f6f73;

    border: none;
    border-radius: 40px;

    cursor: pointer;

    transition: background 0.15s ease, transform 0.05s ease;
}

.btn-donate:hover {
    background: #3f8589;
}

.btn-donate:active {
    transform: scale(0.98);
}

.btn-01 {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 420px;

    padding: 1rem 1.5rem;

    font-size: 1.3rem;
    font-weight: 600;

    color: #fff;
    background: #2f6f73;

    border: none;
    border-radius: 40px;

    cursor: pointer;

    transition: background 0.15s ease, transform 0.05s ease;
}

.btn-01:hover {
    background: #3f8589;
}

.btn-01:active {
    transform: scale(0.98);
}


.print-btn {
    display: inline-block;
    padding: 0.45rem 1.2rem;

    background: #2f6f73;        /* match your nav button teal */
    color: #fff;

    border: none;
    border-radius: 999px;       /* pill shape */

    font-size: 0.95rem;
    text-align: center;

    cursor: pointer;
    transition: background 0.15s ease;

}

.print-btn:hover {
    background: #275f62;
}

.print-btn:active {
    background: #1f4f52;
}

.print-btn:focus {
    outline: none;
}

.btn-center {
    text-align: center;
    margin-top: 1rem;
}


/* =========================
   DATA DISPLAY
========================= */



.event-details {
    display: grid;
    grid-template-columns: 180px 1fr;

    background: none;
    border: none;
    padding: 0;

    line-height: 1.4;
    gap: 0.25rem 1rem;
}

.event-details dt {
    font-weight: 500;
    font-size: 0.95rem;
    color: #4f6666;   /* darker, still muted */
    text-align: right;
    padding: 0.2rem 0 0.2rem 0.5rem;
}

.event-details dd {
    margin: 0;
    padding: 0.2rem 0;

    color: #222;
    font-weight: 500;
}

/* =========================
   SIGNATURE
========================= */

.signature {
    display: block;
    width: 50%;
    margin: 0.1rem auto;

    font-style: italic;
    font-weight: 500;
    font-size: 1.1rem;
    color: #0F4A4A;

    text-align: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1px;
}

/* =========================
   PAGE CONTAINER
========================= */

.page-content {
    background: #f8fbfb;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* =========================
   TEAM COMPONENTS
========================= */

.team-card {
    background: #ffffff;
    border: 1px solid #e6eeee;
    border-radius: 6px;
    padding: 1rem;
}

.team-content {
    padding-left: 1rem;
}

.team-bio {
    line-height: 1.55;
    color: #243434;
}

/* =========================
   TYPOGRAPHY
========================= */

.section-intro {
    color: #4f6666;
}

h1 {
    font-weight: 600;
}

.btn-primary {
    display: inline-block;
    padding: 0.5rem 1.4rem;

    background: #2f6f73;
    color: #fff;

    border: none;
    border-radius: 999px;

    font-size: 0.95rem;
    cursor: pointer;

    transition: background 0.15s ease;
}

.btn-primary:hover {
    background: #275f62;
}

.btn-primary:active {
    background: #1f4f52;
}

.btn-center {
    text-align: center;
    margin-top: 1.5rem;
}


.hero-overlay {
    position: absolute;
    top: 2%;
    left: 2%;
    max-width: 90%;

    display: flex;
    align-items: flex-start;   /* change from baseline */
    gap: 1rem;
}



/* Base image style */
.img-float {
    max-width: 40%;          /* adjust as needed */
    height: auto;
    border-radius: 5px;     /* corner radius */
    margin: 0 16px 12px 0;   /* default spacing (like hspace/vspace) */
    display: block;
}

/* Float left */
.img-left {
    float: left;
    margin: 0 16px 12px 0;   /* right + bottom spacing */
}

/* Float right */
.img-right {
    float: right;
    margin: 0 0 12px 16px;   /* left + bottom spacing */
}

/* Optional size presets */
.img-sm { max-width: 25%; }
.img-md { max-width: 40%; }
.img-lg { max-width: 60%; }

/* Clear after wrapped content (use on parent if needed) */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.page-content {
    padding-top: 0px;   /* or 0 if you want it tight */
}



/* ====================================================
   IMAGE SYSTEM (CLEAN)
==================================================== */

/* Base */
.img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Float behavior */
.img-left {
    float: left;
    margin: 0 16px 12px 0;
}

.img-right {
    float: right;
    margin: 0 0 12px 16px;
}

/* Size scale */
.img-sm   { max-width: 25%; }
.img-md   { max-width: 40%; }
.img-lg   { max-width: 60%; }
.img-xl   { max-width: 80%; }
.img-full { max-width: 100%; }

/* One-off override (use sparingly) */
.img-66 { max-width: 66%; }

/* Clear helper */
.clear { clear: both; }

/* Optional clearfix (only if needed on containers) */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* Layout tweak */
.page-content {
    padding-top: 0;
}

/* Mobile behavior */
@media (max-width: 700px) {
    .img-left,
    .img-right {
        float: none;
        margin: 0 0 12px 0;
        max-width: 100%;
    }
}

.img-grid {
    display: grid;
    gap: 12px;
}

.img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    cursor: pointer;
}

/* Layout modifiers */
.img-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.img-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Responsive fallback */
@media (max-width: 900px) {
    .img-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .img-grid.cols-3,
    .img-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Modal */
#img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
}

#img-modal.active {
    display: block;
}

#img-modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: auto;
}

#img-modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.toggle {
    display:inline-block;
    width:16px;
    cursor:pointer;
    color:#666;
    text-align:center;
}

.node-title:hover {
    text-decoration: underline;
}

/*.section-card {
    display:block;
    text-decoration:none;
    color:inherit;
    border:1px solid #ddd;
    padding:10px;
    margin-bottom:10px;
}*/

.card-inner {
    display:flex;
    align-items:flex-start;
    gap:10px;
}

.card-text {
    width:80%;
}

.card-image {
    width:20%;
    text-align:right;
}

.card-image img {
    max-width:100%;
    height:auto;
    display:block;
}

.contact-textarea {
    width: 100%;
    max-width: 420px;
    min-height: 160px;

    padding: 1rem;

    font-size: 1rem;
    font-family: inherit;

    border: 2px solid #ccc;
    border-radius: 12px;

    resize: vertical;
    box-sizing: border-box;

    margin-bottom: 1rem;
}

.contact-textarea:focus {
    outline: none;
    border-color: #2f6f73;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* or center if preferred */
}

.contact-form .btn-01 {
    margin-top: 1rem;
}

.hero {
    position: relative;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;              /* critical: constrain right edge */
    padding: 1.5rem;       /* gives breathing room on mobile */
    box-sizing: border-box;
}

.home-title h1 {
    margin: 0;
}

.home-phrase p {
    margin: 0;
    max-width: 420px;      /* prevents runaway width */
    line-height: 1.3;
}

@media (max-width: 600px) {

    .hero-overlay {
        padding: 1rem;
    }

    .home-title h1 {
        font-size: 1.8rem;
    }

    .home-phrase p {
        font-size: 1rem;
        max-width: 100%;   /* allow full width but still constrained by padding */
    }
}