/* ==========================================================================
   Waterford Chamber - Home page
   File: /assets/css/home.css
   Loaded ONLY by index.php. Every class uses the "hm-" prefix so nothing here
   can collide with styles.css or other page stylesheets.
   Colors inside dark sections use !important on purpose: styles.css sets
   global h1-h6 / p / a colors that would otherwise win.
   ========================================================================== */

.hm-page {
    --hm-ink: #10303c;
    --hm-body: #3c5864;
    --hm-muted: #4a6672;
    --hm-teal: #1f7a91;
    --hm-teal-dk: #17637a;
    --hm-teal-xdk: #124f61;
    --hm-brand: #3EA2BE;
    --hm-green: #8DB63F;
    --hm-green-dk: #4d6b14;
    --hm-sun: #F6B73C;
    --hm-cream: #FFFBF4;
    --hm-line: #e8eef0;
    background: var(--hm-cream);
    color: var(--hm-ink);
    font-family: 'Manrope', system-ui, sans-serif;
    line-height: 1.55;
    overflow-x: clip;
}
.hm-page *, .hm-page *::before, .hm-page *::after { box-sizing: border-box; }
.hm-page a { text-decoration: none; }
.hm-page img { max-width: 100%; }

.hm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons & links ---------- */
.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: inherit;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 14px;
    padding: .95rem 1.8rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.hm-btn:hover { transform: translateY(-2px); }
.hm-btn--lg { font-size: 1.06rem; padding: 1.1rem 2.1rem; border-radius: 16px; }
.hm-btn--primary { background: var(--hm-teal); color: #fff !important; box-shadow: 0 14px 28px rgba(31,122,145,.3); }
.hm-btn--primary:hover { background: var(--hm-teal-dk); }
.hm-btn--outline { background: #fff; color: var(--hm-ink) !important; border-color: #cfdde2; }
.hm-btn--outline:hover { border-color: var(--hm-teal); color: var(--hm-teal) !important; transform: none; }
.hm-btn--sun { background: var(--hm-sun); color: var(--hm-ink) !important; }
.hm-btn--sun:hover { background: #ffc95c; }
.hm-btn--ghost { background: rgba(255,255,255,.14); color: #fff !important; border-color: rgba(255,255,255,.5); }
.hm-btn--ghost:hover { background: rgba(255,255,255,.26); transform: none; }

.hm-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    color: var(--hm-teal) !important;
}
.hm-link i { font-size: .85em; transition: transform .15s ease; }
.hm-link:hover i { transform: translateX(4px); }

/* ---------- Section headings ---------- */
.hm-section { padding: 72px 0 24px; }
.hm-section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.hm-eyebrow {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hm-green-dk);
    margin: 0;
}
.hm-page h2.hm-h2 {
    margin: 12px 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hm-ink);
}

/* ---------- Hero ---------- */
.hm-hero { position: relative; background: linear-gradient(180deg, #FFF3D6 0%, var(--hm-cream) 70%); }
.hm-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
    padding-top: 64px;
    padding-bottom: 88px;
}
.hm-hero-copy { flex: 1 1 480px; min-width: 0; }
.hm-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #f0e3c4;
    border-radius: 999px;
    padding: 8px 18px 8px 14px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #6b4e0a;
    box-shadow: 0 4px 14px rgba(246,183,60,.22);
}
.hm-pill::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--hm-sun); }
.hm-page h1.hm-h1 {
    margin: 24px 0 0;
    font-size: clamp(2.7rem, 6.4vw, 4.9rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--hm-ink);
}
.hm-h1-accent { position: relative; display: inline-block; color: var(--hm-teal); }
.hm-h1-accent svg { position: absolute; left: 0; right: 0; bottom: -24px; width: 100%; height: 14px; }
.hm-page p.hm-lede {
    margin: 46px 0 0;
    max-width: 540px;
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: var(--hm-body);
}
.hm-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hm-hero-note { margin-top: 26px; font-size: .95rem; }

.hm-hero-visual { flex: 1 1 420px; min-width: 0; }
.hm-arch-stage { position: relative; width: 100%; max-width: 500px; margin: 0 auto; padding: 24px 0 36px; }
.hm-sun-disc { position: absolute; right: -36px; top: 0; width: 84%; aspect-ratio: 1/1; border-radius: 50%; background: var(--hm-sun); }
.hm-green-disc { position: absolute; right: -20px; bottom: 20px; width: 120px; height: 120px; border-radius: 50%; background: var(--hm-green); }
.hm-dots {
    position: absolute; left: -34px; bottom: 56px; width: 150px; height: 150px; opacity: .55;
    background-image: radial-gradient(var(--hm-brand) 2.4px, transparent 2.8px);
    background-size: 20px 20px;
}
.hm-arch-img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: 48% 50%;
    border: 8px solid #fff;
    border-radius: 250px 250px 36px 36px;
    box-shadow: 0 36px 70px rgba(16,48,60,.28);
}
.hm-float {
    position: absolute;
    background: #fff;
    border-radius: 20px;
    padding: 16px 22px;
    box-shadow: 0 20px 44px rgba(16,48,60,.22);
}
.hm-float--price { left: -40px; bottom: 0; }
.hm-float-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hm-green-dk); }
.hm-float-value { font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--hm-ink); }
.hm-float-value small { font-size: .95rem; font-weight: 700; color: var(--hm-muted); }
.hm-float--tag {
    right: -6px; top: 70px;
    background: var(--hm-ink);
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px 10px 14px;
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .88rem; font-weight: 800;
    box-shadow: 0 14px 30px rgba(16,48,60,.3);
}
.hm-float--tag i { color: var(--hm-sun); }

/* ---------- Help cards ---------- */
.hm-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.hm-help-card {
    display: flex; flex-direction: column;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    color: var(--hm-ink);
    box-shadow: 0 10px 30px rgba(16,48,60,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hm-help-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(16,48,60,.16); }
.hm-help-top { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hm-help-top::before { content: ''; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.26); }
.hm-help-top::after { content: ''; position: absolute; left: -30px; bottom: -60px; width: 150px; height: 150px; border-radius: 50%; background: rgba(16,48,60,.1); }
.hm-help-top--sun { background: var(--hm-sun); }
.hm-help-top--brand { background: var(--hm-brand); }
.hm-help-top--green { background: var(--hm-green); }
.hm-help-icon {
    position: relative; z-index: 1;
    width: 78px; height: 78px; border-radius: 50%;
    background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 24px rgba(16,48,60,.18);
}
.hm-help-top--sun .hm-help-icon { color: var(--hm-ink); }
.hm-help-top--brand .hm-help-icon { color: var(--hm-teal); }
.hm-help-top--green .hm-help-icon { color: var(--hm-green-dk); }
.hm-help-body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hm-page h3.hm-help-title { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; color: var(--hm-ink); }
.hm-page .hm-help-body p { margin: 0; font-size: 1rem; color: var(--hm-muted); }
.hm-help-body .hm-link { margin-top: auto; padding-top: 10px; }

/* ---------- Open for business band ---------- */
.hm-band {
    position: relative;
    margin-top: 72px;
    background: linear-gradient(135deg, var(--hm-teal-xdk) 0%, var(--hm-teal) 100%);
    color: #fff;
}
.hm-band-wave { display: block; width: 100%; height: 70px; }
.hm-band-wave--top { margin-top: -1px; }
.hm-band-wave--bottom { margin-bottom: -1px; }
.hm-band-orb { position: absolute; right: -120px; top: 140px; width: 420px; height: 420px; border-radius: 50%; background: rgba(246,183,60,.14); pointer-events: none; }
.hm-band-inner { position: relative; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 24px; padding-bottom: 56px; }
.hm-band-photo { flex: 1 1 420px; min-width: 0; position: relative; }
.hm-band-photo::before { content: ''; position: absolute; left: -18px; top: -18px; width: 100%; height: 100%; border-radius: 32px; border: 3px solid var(--hm-sun); }
.hm-band-photo img { position: relative; display: block; width: 100%; aspect-ratio: 4/3.3; object-fit: cover; border-radius: 32px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.hm-band-copy { flex: 1 1 460px; min-width: 0; }
.hm-band .hm-eyebrow { color: var(--hm-sun) !important; }
.hm-page .hm-band h2.hm-h2 { color: #fff !important; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.05; }
.hm-page .hm-band p.hm-band-lede { margin: 20px 0 0; font-size: 1.12rem; color: #e1f1f5 !important; }
.hm-band-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.hm-band-item { display: flex; gap: 16px; align-items: flex-start; }
.hm-band-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: rgba(255,255,255,.14); color: var(--hm-sun); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.hm-page .hm-band-item h3 { margin: 0; font-size: 1.12rem; font-weight: 800; color: #fff !important; }
.hm-page .hm-band-item p { margin: 2px 0 0; font-size: .95rem; color: #cfe6ec !important; }
.hm-band-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Events (only rendered when events exist) ---------- */
.hm-events-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.hm-calendar-card { background: #fff; border-radius: 1.25rem; padding: 1.5rem; border: 1px solid var(--hm-line); box-shadow: 0 10px 30px rgba(16,48,60,.06); }
.hm-page h3.hm-calendar-title { margin: 0 0 1rem; font-size: 1.2rem; font-weight: 800; color: var(--hm-ink); }
.hm-events-foot { text-align: center; margin-top: 1.5rem; }

/* ---------- Why join (bento) ---------- */
.hm-bento { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.hm-bento-main {
    flex: 1.35 1 460px; min-width: 0; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--hm-teal-dk) 0%, var(--hm-teal) 60%, #2c8ba3 100%);
    color: #fff;
    border-radius: 32px;
    padding: clamp(30px, 4vw, 48px);
}
.hm-bento-main::after { content: ''; position: absolute; right: -70px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; background: rgba(246,183,60,.28); pointer-events: none; }
.hm-bento-main > * { position: relative; z-index: 1; }
.hm-page .hm-bento-main h2.hm-bento-title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: #fff !important; }
.hm-perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.hm-perks li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; color: #eaf6f9 !important; }
.hm-perks strong { color: #fff !important; font-weight: 800; }
.hm-perk-check { width: 28px; height: 28px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; background: var(--hm-sun); color: var(--hm-ink); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.hm-bento-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hm-page .hm-bento-main p.hm-bento-fine { margin: 18px 0 0; font-size: .9rem; color: #cfe6ec !important; }
.hm-bento-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hm-tile {
    flex: 1;
    display: flex; flex-direction: column; gap: 10px;
    border-radius: 28px; padding: 30px;
    color: var(--hm-ink);
    box-shadow: 0 10px 30px rgba(16,48,60,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hm-tile:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(16,48,60,.16); }
.hm-tile--sun { background: #FFF0CC; }
.hm-tile--brand { background: #E6F4F8; }
.hm-tile-icon { width: 54px; height: 54px; border-radius: 16px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.hm-tile--sun .hm-tile-icon { color: #8a5a00; }
.hm-tile--brand .hm-tile-icon { color: var(--hm-teal); }
.hm-page h3.hm-tile-title { margin: 6px 0 0; font-size: 1.4rem; font-weight: 800; color: var(--hm-ink); }
.hm-page .hm-tile p { margin: 0; font-size: .95rem; color: var(--hm-body); }
.hm-tile .hm-link { margin-top: auto; padding-top: 6px; }
.hm-tile--sun .hm-link { color: #6b4e0a !important; }

/* ---------- Sponsor slot ---------- */
.hm-sponsor { text-align: center; padding-top: 56px; }

/* ---------- Final CTA ---------- */
.hm-cta-wrap { padding-top: 56px; padding-bottom: 88px; }
.hm-cta { position: relative; overflow: hidden; background: var(--hm-ink); border-radius: 40px; padding: clamp(40px, 7vw, 84px); text-align: center; }
.hm-cta .hm-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hm-cta .hm-orb--sun { left: -90px; bottom: -130px; width: 380px; height: 380px; background: var(--hm-sun); opacity: .9; }
.hm-cta .hm-orb--brand { right: -110px; top: -110px; width: 340px; height: 340px; background: var(--hm-brand); opacity: .9; }
.hm-cta .hm-orb--green { right: 12%; bottom: -60px; width: 130px; height: 130px; background: var(--hm-green); }
.hm-cta-inner { position: relative; }
.hm-page .hm-cta h2 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: #fff !important; }
.hm-page .hm-cta p { margin: 18px auto 0; max-width: 560px; font-size: 1.2rem; color: #e1f1f5 !important; }
.hm-cta .hm-actions { justify-content: center; margin-top: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hm-events-layout { grid-template-columns: 1fr; }
    .hm-band-inner { gap: 48px; }
}
@media (max-width: 640px) {
    .hm-wrap { padding: 0 18px; }
    .hm-hero-inner { padding-top: 40px; padding-bottom: 64px; gap: 40px; }
    .hm-section { padding-top: 56px; }
    .hm-float--price { left: 0; }
    .hm-float--tag { right: 0; }
    .hm-sun-disc { right: -10px; }
    .hm-dots { left: -10px; }
    .hm-green-disc { right: -6px; }
    .hm-band-photo::before { left: -8px; top: -8px; }
    .hm-band-wave { height: 40px; }
    .hm-actions .hm-btn { width: 100%; }
    .hm-bento-actions .hm-btn { width: 100%; }
    .hm-cta { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-btn, .hm-help-card, .hm-tile, .hm-link i { transition: none; }
    .hm-btn:hover, .hm-help-card:hover, .hm-tile:hover { transform: none; }
}
