/* ==========================================================
   Harbourlight Community Services — CanadaWebs nonprofit template
   WCAG 2.1 AA contrast-checked palette. Deep teal + sunrise orange.
   Verified ratios:
     white on --teal #0F5E5B ........ 7.57:1
     white on --teal-deep #0A4341 ... 11.10:1
     white on --sun #C05621 ......... 4.57:1
     --sun-text #9C4218 on cream .... 6.12:1  (raw #C05621 on cream is
                                              4.27:1 — never used as text)
     --teal on cream ................ 7.08:1
     --teal-deep on cream ........... 10.37:1
     --ink #22302E on cream ......... 12.83:1
     --ink-soft #445551 on cream .... 7.37:1
     --sun-pale #F5CBA5 on teal ..... 5.04:1  (on teal-deep 7.38:1)
   ========================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --teal: #0F5E5B;
    --teal-deep: #0A4341;
    --teal-soft: #E4EFEC;
    --sun: #C05621;          /* fills only — white text on top */
    --sun-deep: #9C4218;
    --sun-text: #9C4218;     /* orange used AS text on light backgrounds */
    --sun-pale: #F5CBA5;     /* orange used as text/accent on dark teal */
    --cream: #FAF7F0;
    --cream-2: #F2ECDF;
    --ink: #22302E;
    --ink-soft: #445551;
    --line: #E3DDCE;
    --white: #ffffff;
    --radius: 16px;
    --radius-lg: 26px;
    --shadow: 0 2px 8px rgba(10, 67, 65, 0.06), 0 12px 30px rgba(10, 67, 65, 0.08);
    --shadow-lg: 0 10px 30px rgba(10, 67, 65, 0.10), 0 30px 60px rgba(10, 67, 65, 0.10);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, .brand-text { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; color: var(--teal-deep); }

.skip-link {
    position: absolute; top: -100%; left: 16px; z-index: 999;
    background: var(--teal); color: #fff; padding: 12px 22px;
    border-radius: 0 0 10px 10px; font-weight: 700;
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--sun); outline-offset: 2px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px; border-radius: 50px; font-family: inherit;
    font-size: 1rem; font-weight: 800; border: none; cursor: pointer;
    transition: var(--transition); white-space: nowrap; letter-spacing: 0.01em;
}
.btn-sm { padding: 10px 22px; font-size: 0.95rem; }
.btn-lg { padding: 17px 38px; font-size: 1.08rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(15, 94, 91, 0.25); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15, 94, 91, 0.32); }
.btn-accent { background: var(--sun); color: #fff; box-shadow: 0 6px 18px rgba(192, 86, 33, 0.3); }
.btn-accent:hover { background: var(--sun-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(192, 86, 33, 0.35); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 2px solid rgba(255,255,255,0.65); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.26); border-color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ===== Utility bar ===== */
.utilitybar { background: var(--teal-deep); color: rgba(255,255,255,0.92); font-size: 0.9rem; }
.utility-inner { display: flex; align-items: center; gap: 24px; padding: 9px 24px; flex-wrap: wrap; }
.utility-item { display: inline-flex; align-items: center; gap: 7px; }
.utility-item svg { width: 15px; height: 15px; color: var(--sun-pale); }
.utility-charity { margin-left: auto; font-size: 0.82rem; color: rgba(255,255,255,0.78); }

/* ===== Header / nav ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 247, 240, 0.93);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--teal); color: var(--sun-pale); border-radius: 50%;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { font-size: 1.45rem; font-weight: 700; color: var(--teal-deep); line-height: 1.1; }
.brand-text em { display: block; font-style: italic; color: var(--sun-text); font-weight: 600; font-size: 0.85rem; }

.navmenu { display: flex; align-items: center; gap: 28px; }
.navmenu > a { font-weight: 700; color: var(--ink); transition: var(--transition); }
.navmenu > a:hover { color: var(--teal); }
.navmenu .btn-accent { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 120; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--teal-deep); border-radius: 3px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay { position: fixed; inset: 0; background: rgba(10, 67, 65, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 90; }
.nav-overlay.active { opacity: 1; pointer-events: auto; }

/* ===== Shared section bits ===== */
.eyebrow {
    display: inline-block; font-weight: 800; font-size: 0.82rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun-text);
    margin-bottom: 14px;
}
.eyebrow-light { color: var(--sun-pale); }
.eyebrow-cream { color: var(--cream); }
.section-head { margin-bottom: 46px; max-width: 680px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .events-intro h2, .contact-info h2, .wishlist-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; }

/* ===== Photo placeholders (gradient tiles) ===== */
.photo {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(135deg, var(--teal), var(--teal-deep));
    box-shadow: var(--shadow);
    min-height: 220px;
}
.photo::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 45%),
                      radial-gradient(circle, rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 20px 20px;
    opacity: 0.7;
}
.photo-tag {
    position: absolute; z-index: 2; left: 16px; bottom: 16px;
    background: rgba(250, 247, 240, 0.94); color: var(--teal-deep);
    font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: 0.85rem;
    padding: 7px 15px; border-radius: 50px;
}
.photo-a { background: linear-gradient(140deg, #177570, #0A4341); }
.photo-b { background: linear-gradient(140deg, #C05621, #7E3714); }
.photo-c { background: linear-gradient(140deg, #3F7F6A, #205243); }
.photo-d { background: linear-gradient(140deg, #4A86A0, #2F5D6E); }
.photo-e { background: linear-gradient(140deg, #8A9B6A, #56683B); }
.photo-f { background: linear-gradient(140deg, #A9805A, #7A583A); }
.photo-map { background: linear-gradient(140deg, #6F8F84, #3A5A50); min-height: 200px; }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--teal-deep); }
.hero-bg { position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(160deg, #126A66 0%, #0A4341 60%, #093B39 100%);
}
.hero-beam {
    position: absolute; inset: 0;
    background: radial-gradient(820px 480px at 82% -12%, rgba(245, 203, 165, 0.4), transparent 62%),
                radial-gradient(520px 320px at 90% 8%, rgba(192, 86, 33, 0.28), transparent 60%);
}
.hero-waves {
    position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
    background:
        radial-gradient(130px 120px at 12% 100%, rgba(255,255,255,0.05) 60%, transparent 61%),
        radial-gradient(170px 150px at 42% 100%, rgba(255,255,255,0.06) 60%, transparent 61%),
        radial-gradient(150px 130px at 75% 100%, rgba(255,255,255,0.05) 60%, transparent 61%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000);
    mask-image: linear-gradient(180deg, transparent, #000);
}
.hero-inner { position: relative; z-index: 1; padding: 92px 24px 100px; max-width: 800px; }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 6vw, 4.4rem); font-weight: 700; margin-bottom: 22px; letter-spacing: -0.01em; }
.hero h1 .script { color: var(--sun-pale); font-style: italic; font-weight: 500; }
.hero-sub { font-size: 1.25rem; color: rgba(255,255,255,0.9); margin-bottom: 34px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 30px; }
.hero-stats strong { display: block; font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 700; color: var(--sun-pale); }
.hero-stats span { font-size: 0.92rem; color: rgba(255,255,255,0.85); }

/* ===== Programs ===== */
.programs { padding: 100px 0; background: var(--white); }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.program-card { padding: 34px 30px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); transition: var(--transition); }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.program-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: var(--teal-soft); color: var(--teal); border-radius: 16px; margin-bottom: 20px; }
.program-icon svg { width: 30px; height: 30px; }
.program-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.program-card p { color: var(--ink-soft); font-size: 1rem; }

/* ===== Wish list callout ===== */
.wishlist { padding: 76px 0; background: var(--sun); color: #fff; }
.wishlist-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.wishlist-copy h2 { color: #fff; }
.wishlist-copy p { color: #fff; font-weight: 600; max-width: 460px; }
.wishlist-items { display: flex; flex-wrap: wrap; gap: 12px; }
.wishlist-items li {
    background: var(--cream); color: var(--ink); font-weight: 800; font-size: 1rem;
    padding: 12px 22px; border-radius: 50px; box-shadow: 0 4px 12px rgba(122, 50, 10, 0.25);
}

/* ===== Events ===== */
.events { padding: 100px 0; background: var(--cream); }
.events-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.events-intro { position: sticky; top: 110px; }
.events-intro .btn { margin-top: 14px; }
.event-list { display: flex; flex-direction: column; gap: 14px; }
.event { display: flex; align-items: flex-start; gap: 22px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: var(--transition); }
.event:hover { box-shadow: var(--shadow); transform: translateX(4px); border-color: var(--teal-soft); }
.event-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--teal); color: #fff; border-radius: 12px; padding: 8px 0; }
.event-mon { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; color: var(--sun-pale); }
.event-day { display: block; font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 700; line-height: 1; }
.event-info { flex: 1; }
.event-info h3 { font-size: 1.18rem; margin-bottom: 2px; }
.event-meta { font-size: 0.88rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal); margin-bottom: 4px; }
.event-info p { font-size: 0.95rem; color: var(--ink-soft); }

/* ===== News ===== */
.news { padding: 100px 0; background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-photo { min-height: 180px; border-radius: 0; box-shadow: none; }
.news-body { padding: 24px 26px 28px; }
.news-meta { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sun-text); }
.news-body h3 { font-size: 1.25rem; margin: 8px 0 8px; }
.news-body p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 14px; }
.news-link { font-weight: 800; color: var(--teal); }
.news-link:hover { color: var(--sun-text); }
.news-cta { text-align: center; margin-top: 44px; }

/* ===== Get involved ===== */
.involved { padding: 100px 0; background: var(--teal-deep); }
.involved .section-head h2 { color: #fff; }
.involved .section-lead { color: rgba(255,255,255,0.85); }
.involved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.involved-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg); padding: 36px 32px; transition: var(--transition); }
.involved-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.involved-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: var(--sun); color: #fff; border-radius: 16px; margin-bottom: 20px; }
.involved-icon svg { width: 30px; height: 30px; }
.involved-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.involved-card p { color: rgba(255,255,255,0.88); font-size: 0.98rem; margin-bottom: 18px; }
.involved-link { font-weight: 800; color: var(--sun-pale); }
.involved-link:hover { color: #fff; }

/* ===== Contact ===== */
.contact { padding: 100px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-lead { color: var(--ink-soft); margin-bottom: 26px; }
.contact-details { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-details li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.contact-details svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; margin-top: 4px; }
.contact-details a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.contact-details a:hover { color: var(--sun-text); }
.map-placeholder { min-height: 200px; }
.contact-form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; color: var(--teal-deep); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--white); transition: var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 94, 91, 0.15); }
.field textarea { resize: vertical; }

/* ===== Footer ===== */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,0.75); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text em { color: var(--sun-pale); }
.brand-footer .brand-mark { background: rgba(255,255,255,0.1); }
.footer-brand p { margin-top: 16px; max-width: 340px; font-size: 0.95rem; color: rgba(255,255,255,0.72); }
.footer-charity { font-size: 0.85rem !important; color: rgba(255,255,255,0.65) !important; }
.footer-col h4 { color: #fff; font-family: 'Nunito Sans', sans-serif; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; margin-bottom: 10px; color: rgba(255,255,255,0.72); transition: var(--transition); }
.footer-col a:hover { color: var(--sun-pale); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom p { font-size: 0.86rem; color: rgba(255,255,255,0.68); }
.demo-tag strong { color: rgba(255,255,255,0.9); }
.demo-tag a { color: var(--sun-pale); font-weight: 700; }

/* ===== Interior pages (news articles) ===== */
.article-hero { background: var(--teal-deep); color: #fff; padding: 60px 0 54px; }
.article-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 760px; }
.crumbs { font-size: 0.9rem; color: rgba(255,255,255,0.78); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,0.92); font-weight: 700; }
.crumbs a:hover { color: var(--sun-pale); }
.crumbs [aria-current="page"] { color: rgba(255,255,255,0.72); }
.article { padding: 70px 0 90px; background: var(--cream); }
.article-container { max-width: 800px; }
.article-photo { min-height: 280px; margin-bottom: 36px; }
.article-body p { color: var(--ink); margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 26px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body h2 { font-size: 1.5rem; margin: 30px 0 12px; }
.article-body h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.article-body strong { color: var(--teal-deep); }
.article-body a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--sun-text); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .program-grid, .involved-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .wishlist-inner { grid-template-columns: 1fr; gap: 30px; }
    .events-grid { grid-template-columns: 1fr; gap: 32px; }
    .events-intro { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .utility-hours, .utility-charity { display: none; }
}
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .navmenu {
        position: fixed; top: 0; right: -100%; width: 290px; height: 100vh;
        background: var(--cream); flex-direction: column; align-items: flex-start;
        padding: 92px 32px 32px; gap: 22px; z-index: 110; transition: var(--transition);
        box-shadow: -10px 0 40px rgba(10, 67, 65, 0.15);
    }
    .navmenu.active { right: 0; }
    .navmenu > a { font-size: 1.15rem; }
    .navmenu .btn-accent { width: 100%; }
    .program-grid, .involved-grid, .news-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-stats { gap: 26px; }
}
@media (max-width: 440px) {
    body { font-size: 17px; }
    .hero-stats li { flex: 1 0 40%; }
    .footer-grid { grid-template-columns: 1fr; }
}
