/* =====================================================
   THANKSGIVING COMMUNITY MEAL — homepage feature section
   Ported from llto/thanksgiving.html. Every rule is scoped
   to .tg / .tg-* so nothing leaks into style.css.
   ===================================================== */
.tg {
    --tg-maroon: #6b0f24;
    --tg-maroon-dark: #4a0818;
    --tg-peach: #f8c9a0;
    --tg-peach-soft: #fde6d2;
    --tg-paper: #fef4e2;
    --tg-navy: #1b2340;
    --tg-muted: #6e5a5d;
    --tg-ease: cubic-bezier(.2, .7, .2, 1);

    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: normal;
    color: var(--tg-navy);
    background:
        radial-gradient(ellipse at 50% 40%, #fffaf0 0%, rgba(255, 250, 240, 0) 60%),
        var(--tg-paper);
    -webkit-font-smoothing: antialiased;
}

/* neutralise global h*/p rules from style.css */
.tg h1, .tg h2, .tg h3, .tg p { margin: 0; line-height: inherit; }
.tg :focus-visible { outline: 3px solid #e2934f; outline-offset: 3px; }
.tg .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tg-hero {
    flex: 1;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    /* top padding clears the fixed site header (84px) */
    padding: calc(84px + clamp(1.75rem, 4vw, 3rem)) 1.25rem clamp(6rem, 12vw, 8.5rem);
    text-align: center;
}

/* ---------- Corner art ---------- */
.tg-corner { position: absolute; pointer-events: none; z-index: 0; }
.tg-corner img { width: 100%; }
.tg-corner.tl { top: 84px; left: 0; width: clamp(150px, 22vw, 320px); transform-origin: top left;
    -webkit-mask-image: radial-gradient(circle at 0 0, #000 45%, transparent 72%); mask-image: radial-gradient(circle at 0 0, #000 45%, transparent 72%); }
.tg-corner.tr { top: 84px; right: 0; width: clamp(150px, 22vw, 320px); transform-origin: top right;
    -webkit-mask-image: radial-gradient(circle at 100% 0, #000 45%, transparent 72%); mask-image: radial-gradient(circle at 100% 0, #000 45%, transparent 72%); }
.tg-corner.bl { bottom: clamp(1.2rem, 2.5vw, 2rem); left: 0; width: clamp(150px, 20vw, 290px);
    -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 98%), linear-gradient(to top, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 72%, transparent 98%), linear-gradient(to top, #000 70%, transparent 100%);
    mask-composite: intersect; }
.tg-corner.br { bottom: clamp(1.2rem, 2.5vw, 2rem); right: 0; width: clamp(140px, 19vw, 280px); transform-origin: bottom right;
    -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 45%, transparent 72%); mask-image: radial-gradient(circle at 100% 100%, #000 45%, transparent 72%); }
.tg-corner.br img { transform: scale(-1, -1); }
.tg-sway { animation: tg-sway 7s ease-in-out infinite; }
.tg-corner.tr.tg-sway { animation-delay: -2s; }
.tg-corner.br.tg-sway { animation-delay: -4s; }

.tg-content { position: relative; z-index: 2; max-width: 900px; width: 100%; }

/* ---------- Partner logo (Himalayan Flavor only) ---------- */
.tg-partner {
    display: inline-flex; flex-direction: column; align-items: center; gap: .35rem;
    margin: 0 0 1.4rem; text-decoration: none;
}
.tg-partner img { height: clamp(44px, 5.4vw, 60px); width: auto; transition: transform .3s var(--tg-ease); }
.tg-partner:hover img { transform: scale(1.04); }

/* ---------- Headline ---------- */
.tg-kicker {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500;
    font-size: clamp(1.35rem, 3vw, 2rem); color: var(--tg-maroon);
}
.tg .tg-kicker { margin: 0 0 1.1rem; }
.tg-kicker::before, .tg-kicker::after {
    content: ""; height: 1px; width: clamp(28px, 6vw, 70px);
    background: linear-gradient(90deg, transparent, rgba(107, 15, 36, .55));
}
.tg-kicker::after { transform: scaleX(-1); }

.tg .tg-title {
    font-family: "Poppins", sans-serif; font-weight: 800;
    font-size: clamp(2.1rem, 6.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.025em;
    text-transform: uppercase; color: var(--tg-navy); margin: 0 0 1.6rem;
}

.tg .tg-ribbon {
    display: inline-block; position: relative; line-height: 1.5;
    font-family: "Poppins", sans-serif; font-style: italic; font-weight: 400;
    font-size: clamp(1rem, 2.3vw, 1.35rem); color: #fff;
    padding: .7rem 2.2rem; margin: 0 0 2.5rem;
    background: var(--tg-maroon);
    clip-path: polygon(1.5% 8%, 6% 0, 50% 4%, 94% 0, 98.5% 10%, 100% 50%, 98% 92%, 93% 100%, 50% 95%, 5% 100%, 1% 90%, 0 50%);
}
.tg-ribbon .tg-heart { color: var(--tg-peach); display: inline-block; animation: tg-beat 1.8s ease-in-out infinite; }

/* ---------- Event details ---------- */
.tg-details {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(4px);
    border: 1px solid rgba(107, 15, 36, .12); border-radius: 20px;
    box-shadow: 0 24px 50px -30px rgba(74, 8, 24, .45);
    margin: 0 auto 2.5rem; max-width: 900px; text-align: left;
}
.tg-detail { display: flex; align-items: center; gap: .9rem; padding: 1.3rem 1.4rem; }
.tg-detail + .tg-detail { border-left: 1px solid rgba(107, 15, 36, .12); }
.tg-icon {
    flex: none; width: 52px; height: 52px; border-radius: 14px;
    background: var(--tg-peach-soft); display: grid; place-items: center;
    transition: transform .35s var(--tg-ease), background .35s;
}
.tg-detail:hover .tg-icon { transform: translateY(-4px) rotate(-4deg); background: var(--tg-peach); }
.tg-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--tg-maroon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tg-detail small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tg-muted); margin-bottom: .1rem; }
.tg-detail strong { display: block; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.08rem; color: var(--tg-maroon-dark); line-height: 1.3; white-space: nowrap; }
.tg-detail .tg-sub { display: block; font-size: .85rem; color: var(--tg-muted); }

/* ---------- CTA ---------- */
.tg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: "Poppins", sans-serif; font-weight: 600; text-decoration: none;
    border-radius: 999px; background: var(--tg-maroon); color: var(--tg-peach-soft);
    padding: 1.1rem 2.6rem; font-size: 1.08rem; position: relative;
    transition: transform .25s var(--tg-ease), box-shadow .25s var(--tg-ease), background .25s;
    box-shadow: 0 18px 40px -18px rgba(74, 8, 24, .55);
}
.tg-btn:hover { transform: translateY(-2px); background: var(--tg-maroon-dark); color: var(--tg-peach-soft); }
.tg-btn svg { width: 18px; height: 18px; flex: none; }
.tg-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: tg-pulse 2.6s infinite; }
.tg .tg-note { margin: 1rem 0 0; font-size: .85rem; color: var(--tg-muted); }

/* ---------- Pickup locations ---------- */
.tg-locations { margin: 2.75rem auto 0; max-width: 1000px; }
.tg .tg-locations-title {
    font-family: "Poppins", sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: var(--tg-maroon); margin: 0 0 1rem; line-height: 1.5;
}
.tg-loc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tg-loc {
    background: rgba(255, 255, 255, .88); backdrop-filter: blur(4px);
    border: 1px solid rgba(107, 15, 36, .12); border-radius: 16px;
    padding: 1.15rem 1.25rem; text-align: left;
    transition: transform .3s var(--tg-ease), box-shadow .3s var(--tg-ease), border-color .3s;
}
.tg-loc:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(74, 8, 24, .5); border-color: rgba(107, 15, 36, .3); }
.tg-loc-brand { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tg-muted); }
.tg .tg-loc h3 { font-family: "Poppins", sans-serif; font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--tg-maroon-dark); margin: 0 0 .5rem; }
.tg .tg-loc p { margin: 0 0 .35rem; font-size: .9rem; line-height: 1.45; display: flex; gap: .5rem; align-items: flex-start; }
.tg-loc svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; fill: none; stroke: var(--tg-maroon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tg-loc a { color: var(--tg-navy); text-decoration: none; }
.tg-loc a:hover { color: var(--tg-maroon); text-decoration: underline; }

/* ---------- Falling leaves ---------- */
.tg-falling { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.tg-falling i {
    position: absolute; top: -30px; width: 16px; height: 16px; border-radius: 0 70% 0 70%;
    opacity: .7; animation: tg-fall linear infinite;
}
.tg-falling i:nth-child(1) { left: 18%; background: #e2934f; animation-duration: 16s; }
.tg-falling i:nth-child(2) { left: 36%; background: #c0532d; animation-duration: 20s; animation-delay: 5s; width: 12px; height: 12px; }
.tg-falling i:nth-child(3) { left: 62%; background: #f0b44c; animation-duration: 18s; animation-delay: 9s; }
.tg-falling i:nth-child(4) { left: 82%; background: #c0532d; animation-duration: 22s; animation-delay: 2s; width: 13px; height: 13px; }
.tg-falling i:nth-child(5) { left: 50%; background: #e2934f; animation-duration: 24s; animation-delay: 13s; width: 11px; height: 11px; }

/* ---------- Wave ---------- */
.tg-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; pointer-events: none; }
.tg-wave svg { width: 100%; height: clamp(50px, 7vw, 90px); display: block; }

/* ---------- Motion ---------- */
.tg-fade { opacity: 0; transform: translateY(18px); animation: tg-rise .9s var(--tg-ease) forwards; }
.tg-d1 { animation-delay: .1s; } .tg-d2 { animation-delay: .25s; } .tg-d3 { animation-delay: .4s; }
.tg-d4 { animation-delay: .55s; } .tg-d5 { animation-delay: .7s; } .tg-d6 { animation-delay: .85s; }
@keyframes tg-rise { to { opacity: 1; transform: none; } }
@keyframes tg-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2.5deg); } }
@keyframes tg-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes tg-pulse {
    0% { box-shadow: 0 0 0 0 rgba(107, 15, 36, .45); }
    70% { box-shadow: 0 0 0 16px rgba(107, 15, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(107, 15, 36, 0); }
}
@keyframes tg-fall {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(30px, 25vh) rotate(110deg); }
    50%  { transform: translate(-25px, 50vh) rotate(210deg); }
    75%  { transform: translate(25px, 75vh) rotate(300deg); }
    100% { transform: translate(-10px, 105vh) rotate(400deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    /* site header shrinks to ~64px below 1024px */
    .tg-hero { padding-top: calc(64px + clamp(1.75rem, 4vw, 3rem)); }
    .tg-corner.tl, .tg-corner.tr { top: 64px; }
}
@media (max-width: 960px) {
    .tg-detail strong { white-space: normal; }
}
@media (max-width: 760px) {
    .tg-loc-row { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .tg-details { grid-template-columns: 1fr; max-width: 420px; }
    .tg-detail + .tg-detail { border-left: 0; border-top: 1px solid rgba(107, 15, 36, .12); }
    .tg-corner { opacity: .55; }
    .tg-corner.bl, .tg-corner.br { width: 120px; }
    .tg-corner.tl, .tg-corner.tr { width: 130px; }
}
@media (max-width: 520px) {
    .tg-kicker::before, .tg-kicker::after { display: none; }
    .tg .tg-ribbon { padding: .65rem 1.4rem; }
    .tg-btn { padding: .95rem 1.5rem; font-size: .98rem; line-height: 1.3; text-align: center; }
}

/* Fit the whole feature into one screen on laptops/desktops */
@media (min-width: 761px) {
    .tg-hero { padding-top: calc(84px + 3vh); padding-bottom: 7.5vh; }
    .tg-partner { margin-bottom: 1.6vh; }
    .tg-partner img { height: clamp(38px, 5.6vh, 58px); }
    .tg .tg-kicker { font-size: clamp(1.05rem, 3.2vh, 1.9rem); margin-bottom: .6vh; }
    .tg .tg-title { font-size: clamp(1.9rem, min(4.8vw, 7vh), 4.2rem); margin-bottom: 2vh; }
    .tg .tg-ribbon { font-size: clamp(.92rem, 2.3vh, 1.3rem); padding: .9vh 2.1rem; margin-bottom: 2.6vh; }
    .tg-details { margin-bottom: 2.6vh; }
    .tg-detail { padding: 1.5vh 1.3rem; }
    .tg-icon { width: clamp(38px, 5.6vh, 50px); height: clamp(38px, 5.6vh, 50px); }
    .tg-btn { padding: 1.6vh 2.5rem; font-size: clamp(.95rem, 2.1vh, 1.08rem); }
    .tg .tg-note { margin-top: .9vh; font-size: .8rem; }
    .tg-locations { margin-top: 2.8vh; }
    .tg .tg-locations-title { margin-bottom: 1.2vh; }
    .tg-loc { padding: 1.4vh 1.2rem; }
    .tg .tg-loc h3 { font-size: clamp(.95rem, 2.1vh, 1.1rem); margin-bottom: .6vh; }
    .tg .tg-loc p { font-size: clamp(.8rem, 1.8vh, .9rem); margin-bottom: .4vh; }
    .tg-wave svg { height: 6.5vh; }
        .tg-corner.tl, .tg-corner.tr { width: clamp(140px, 26vh, 320px); }
    .tg-corner.bl { width: clamp(140px, 30vh, 290px); }
    .tg-corner.br { width: clamp(130px, 26vh, 280px); }
}

@media (prefers-reduced-motion: reduce) {
    .tg *, .tg *::before, .tg *::after { animation: none !important; transition: none !important; }
    .tg-fade { opacity: 1; transform: none; }
    .tg-falling { display: none; }
}
