/* ==========================================================================
   Tropical - a summer party: swaying monstera and palm leaves, a flamingo, cabana stripes
   Palette: --inv-primary (hot colour), --inv-accent (sun yellow / orange), --inv-bg, --inv-text
   ========================================================================== */

.tropical {
    --tr-leaf: #2E8B57;
    --tr-leaf-deep: #1F5E3D;
    --tr-flamingo: #F28DB2;
    --tr-flamingo-deep: #D95F8E;
    --tr-sun: color-mix(in srgb, var(--inv-accent) 35%, var(--inv-bg));
    --tr-line: color-mix(in srgb, var(--inv-text) 14%, transparent);
    --tr-ink-soft: color-mix(in srgb, var(--inv-text) 74%, var(--inv-bg));
    --kit-radius: 999px;
    --kit-field-bg: #fff;
    --kit-field-border: var(--tr-line);
    font-family: var(--inv-font-body);
    font-size: 1.06rem;
    background: var(--inv-bg);
    overflow-x: clip;
}
.tropical h1, .tropical h2, .tropical h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.05; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.tropical) :is(h1, h2, h3) { margin: 0; }
.tr-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.tr-h2 { font-size: clamp(2.4rem, 6.4vw, 3.8rem); color: var(--inv-text); margin: 0 0 26px !important; }

/* ---------- Artwork ---------- */
.tr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tr-leaf { fill: var(--tr-leaf); }
.tr-rib { fill: none; stroke: var(--tr-leaf-deep); stroke-width: 4; }
.tr-slit { fill: none; stroke: var(--inv-bg); stroke-width: 9; stroke-linecap: round; }
.tr-hole { fill: var(--inv-bg); }
.tr-stem { fill: none; stroke: var(--tr-leaf-deep); stroke-width: 5; stroke-linecap: round; }
.tr-frond { fill: none; stroke: var(--tr-leaf); stroke-width: 7; stroke-linecap: round; }
.tr-fl-body { fill: var(--tr-flamingo); }
.tr-fl-neck { fill: none; stroke: var(--tr-flamingo); stroke-width: 12; stroke-linecap: round; }
.tr-fl-wing { fill: var(--tr-flamingo-deep); }
.tr-fl-leg { fill: none; stroke: var(--tr-flamingo-deep); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.tr-fl-beak, .tr-fl-eye { fill: #2a2a2a; }

.tr-sway { position: absolute; pointer-events: none; overflow: visible; animation: tr-sway 6s ease-in-out infinite alternate; }
@keyframes tr-sway { from { rotate: -3deg; } to { rotate: 4deg; } }
@media (prefers-reduced-motion: reduce) { .tr-sway, .tr-flamingo { animation: none; } }

/* ---------- Navigation ---------- */
.tr-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 18px clamp(16px, 4vw, 44px); display: flex; justify-content: flex-end; }
.tr-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.tr-nav a { text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--inv-text); padding: 8px 14px; border-radius: 999px; }
.tr-nav a:hover, .tr-nav a.is-current { background: var(--inv-primary); color: #fff; }
.tr-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-size: 1.6rem; color: var(--inv-primary); margin-right: auto; padding-left: 0; }
.tr-nav .kit-nav-brand:hover { background: none; color: var(--inv-primary); }
.tr-nav.is-stuck { align-items: center; padding: 6px clamp(16px, 4vw, 44px); background: color-mix(in srgb, var(--inv-bg) 92%, transparent); box-shadow: 0 2px 0 var(--inv-accent); }
.tropical .kit-to-top { border-radius: 50%; background: var(--inv-primary); color: #fff; border: 0; }
@media (max-width: 899px) {
    .tr-nav { padding: 10px 12px; }
    .tr-nav .kit-nav-toggle { color: var(--inv-primary); font-size: 1.4rem; margin-left: auto; }
    .tr-nav .kit-nav-links { display: none; }
    .tr-nav.is-open .kit-nav-links {
        display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 56px; left: 12px; right: 12px;
        padding: 14px; background: #fff; border-radius: 24px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .3);
    }
}

/* ---------- Hero ---------- */
.tr-hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 100px clamp(20px, 5vw, 60px) 70px; background: radial-gradient(circle at 78% 30%, var(--tr-sun) 0%, transparent 45%), var(--inv-bg); }
.tr-leaf-a { width: clamp(150px, 18vw, 240px); left: -110px; top: 34%; transform-origin: 30% 90%; transform: rotate(150deg); }
.tr-leaf-b { width: clamp(180px, 22vw, 300px); left: -50px; bottom: -40px; transform-origin: 0 100%; animation-duration: 7s; }
.tr-leaf-c { width: clamp(160px, 20vw, 280px); right: -70px; bottom: -60px; transform: rotate(-30deg); animation-duration: 8s; }
.tr-leaf-d { width: clamp(150px, 18vw, 240px); right: -110px; top: 90px; transform: scaleX(-1) rotate(160deg); animation-duration: 6.5s; }
.tr-hero-grid { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; max-width: 1140px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .tr-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 60px; } }
.tr-hero-text { text-align: center; }
@media (min-width: 900px) { .tr-hero-text { text-align: left; } }
.tr-sticker { display: inline-block; margin: 0 0 18px; padding: 10px 22px; border-radius: 999px; background: var(--inv-accent); color: var(--inv-text); font-weight: 700; transform: rotate(-3deg); }
.tropical .tr-title { font-size: clamp(3.6rem, 12vw, 7.4rem); color: var(--inv-primary); line-height: .95; margin: 0 0 20px; }
.tr-subtitle { font-size: 1.18rem; color: var(--tr-ink-soft); max-width: 28em; margin: 0 0 26px; }
@media (max-width: 899px) { .tr-subtitle { margin-left: auto; margin-right: auto; } }
.tr-hero-when { display: inline-grid; gap: 2px; margin: 0; padding: 14px 24px; border-radius: 20px; background: #fff; box-shadow: 6px 6px 0 var(--inv-primary); }
.tr-hero-when span { color: var(--tr-ink-soft); }
.tr-hero-visual { position: relative; width: min(420px, 76vw); margin: 0 auto; }
.tr-hero-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 200px 200px 30px 30px; overflow: hidden; border: 8px solid #fff; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .5); }
.tr-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.tr-flamingo { position: absolute; width: 38%; left: -26%; bottom: -8%; overflow: visible; transform-origin: 50% 100%; animation: tr-bob 3.5s ease-in-out infinite; }
@keyframes tr-bob { 50% { transform: rotate(-3deg); } }

/* ---------- Sections ---------- */
.tr-section { max-width: 1060px; margin: 0 auto; padding: clamp(70px, 10vw, 110px) 22px; text-align: center; }
.tr-prose { max-width: 640px; margin: 0 auto; font-size: 1.2rem; line-height: 1.8; }
.tr-prose p { margin: 0 0 1em; }

/* Celebrant */
.tr-celebrant-grid { display: grid; gap: 40px; align-items: center; justify-items: center; }
@media (min-width: 760px) { .tr-celebrant-grid { grid-template-columns: auto 1fr; text-align: left; justify-items: start; } }
.tr-portrait { position: relative; margin: 0; width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%; overflow: visible; display: grid; place-items: center; background: var(--tr-sun); }
.tr-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 8px solid #fff; }
.tr-initial { font-family: var(--inv-font-heading); font-size: 6rem; color: var(--inv-primary); }
.tr-age-badge { position: absolute; right: -6%; bottom: 4%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--inv-primary); color: #fff; display: grid; place-content: center; text-align: center; font-weight: 700; font-size: .8rem; transform: rotate(10deg); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.tr-age-badge strong { font-family: var(--inv-font-heading); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.tr-celebrant-text > p:not(.tr-kicker) { font-size: 1.12rem; line-height: 1.75; color: var(--tr-ink-soft); margin: 0 0 .6em; }

/* Theme: cabana stripes */
.tr-cabana { position: relative; }
.tr-awning { display: block; height: 70px; background: repeating-linear-gradient(90deg, var(--inv-primary) 0 44px, #fff 44px 88px); -webkit-mask: radial-gradient(circle at 22px 100%, transparent 21px, #000 22px) 0 0 / 44px 100% repeat-x; mask: radial-gradient(circle at 22px 100%, transparent 21px, #000 22px) 0 0 / 44px 100% repeat-x; }
.tr-cabana-inner { max-width: 760px; margin: 0 auto; padding: 50px 22px 80px; text-align: center; }
.tr-cabana-inner p:not(.tr-kicker) { font-size: 1.15rem; line-height: 1.8; }

/* Events: a beach-bar menu board */
.tr-menu { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 56px) clamp(22px, 6vw, 56px); background: var(--inv-text); color: var(--inv-bg); border-radius: 28px; text-align: left; box-shadow: 10px 10px 0 var(--inv-accent); }
.tr-menu-title { font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--inv-accent); text-align: center; margin-bottom: 30px !important; }
.tr-menu-item { padding: 18px 0; border-top: 1px dashed color-mix(in srgb, var(--inv-bg) 30%, transparent); }
.tr-menu-line { display: flex; align-items: baseline; gap: 12px; }
.tr-menu-line h3 { font-size: 1.55rem; color: var(--inv-bg); }
.tr-menu-dots { flex: 1; border-bottom: 3px dotted color-mix(in srgb, var(--inv-bg) 40%, transparent); transform: translateY(-6px); }
.tr-menu-time { font-family: var(--inv-font-heading); font-size: 1.6rem; color: var(--inv-accent); }
.tr-menu-notes { margin: 6px 0 0; font-style: italic; color: color-mix(in srgb, var(--inv-bg) 82%, transparent); }
.tr-menu-where { margin: 6px 0 0; font-size: .92rem; color: color-mix(in srgb, var(--inv-bg) 65%, transparent); }
.tropical .tr-menu .kit-event-actions { justify-content: flex-start; margin-top: 12px; }
.tropical .kit-button { border-radius: 999px; border: 2px solid var(--inv-accent); color: var(--inv-accent); background: transparent; font-weight: 700; }
.tropical .kit-button:hover { background: var(--inv-accent); color: var(--inv-text); }

/* Countdown: juicy fruit tiles */
.tr-countdown .kit-countdown { gap: clamp(8px, 3vw, 18px); }
.tr-countdown .kit-countdown-unit { min-width: clamp(72px, 19vw, 118px); padding: 18px 8px 12px; border-radius: 26px; background: var(--inv-primary); color: #fff; transform: rotate(-3deg); }
.tr-countdown .kit-countdown-unit:nth-child(2) { background: var(--inv-accent); color: var(--inv-text); transform: rotate(2deg); }
.tr-countdown .kit-countdown-unit:nth-child(3) { background: var(--tr-leaf); transform: rotate(-2deg); }
.tr-countdown .kit-countdown-unit:nth-child(4) { background: var(--tr-flamingo-deep); transform: rotate(3deg); }
.tr-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-size: clamp(2rem, 7vw, 3.4rem); color: inherit; }
.tr-countdown .kit-countdown-label { color: inherit; font-weight: 700; opacity: .9; }

/* Gallery */
.tr-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 760px) { .tr-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.tr-gallery-grid a { aspect-ratio: 3 / 4; border-radius: 24px; border: 6px solid var(--inv-accent); }
.tr-gallery-grid a:nth-child(3n + 2) { border-color: var(--inv-primary); }
.tr-gallery-grid a:nth-child(3n) { border-color: var(--tr-leaf); }

/* RSVP */
.tr-rsvp-card { position: relative; max-width: 680px; margin: 0 auto; padding: clamp(40px, 6vw, 56px) clamp(20px, 6vw, 50px); background: #fff; border-radius: 36px; box-shadow: 0 30px 70px -45px rgba(0, 0, 0, .5); overflow: hidden; }
.tr-rsvp-leaf { position: absolute; width: 200px; right: -70px; top: -60px; transform: rotate(-140deg); opacity: .9; pointer-events: none; }
.tr-rsvp-card > :not(.tr-rsvp-leaf) { position: relative; }
.tropical .inv-rsvp { text-align: left; }
.tropical .inv-rsvp__intro { text-align: center; color: var(--tr-ink-soft); }
.tropical .inv-rsvp__deadline { text-align: center; font-weight: 700; color: var(--inv-primary); }
.tropical .inv-rsvp__choice label { font-weight: 700; }
.tropical .inv-rsvp__field > label, .tropical .inv-rsvp__field legend { font-weight: 700; }
.tropical .inv-rsvp__events label { font-weight: 400; }
.tropical .inv-rsvp__field textarea { border-radius: 22px; }
.tropical .inv-rsvp__submit { font-family: var(--inv-font-heading); font-size: 1.3rem; padding: 14px 30px; box-shadow: 5px 5px 0 var(--inv-accent); }

/* Info */
.tr-info-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); text-align: left; }
.tr-info-item { padding: 28px; border-radius: 26px; background: var(--tr-sun); }
.tr-info-item:nth-child(2) { background: color-mix(in srgb, var(--tr-leaf) 18%, var(--inv-bg)); }
.tr-info-item:nth-child(3) { background: color-mix(in srgb, var(--tr-flamingo) 30%, var(--inv-bg)); }
.tr-info-item h3 { font-size: 1.5rem; margin-bottom: 10px; }
.tr-info-item p { margin: 0 0 .6em; line-height: 1.7; }
.tr-faq { max-width: 680px; margin: 50px auto 0; text-align: left; }
.tr-faq > .tr-kicker { text-align: center; margin-bottom: 14px; }
.tr-faq details { background: #fff; border-radius: 22px; padding: 14px 20px; margin-bottom: 10px; box-shadow: 4px 4px 0 var(--inv-accent); }
.tr-faq summary { cursor: pointer; list-style: none; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.tr-faq summary::-webkit-details-marker { display: none; }
.tr-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--inv-primary); transition: transform .3s; }
.tr-faq details[open] summary::after { transform: rotate(45deg); }
.tr-faq details p { margin: 10px 0 0; color: var(--tr-ink-soft); }

/* Contact */
.tr-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.tr-contact-person { min-width: 230px; padding: 24px 30px; border-radius: 26px; background: #fff; box-shadow: 6px 6px 0 var(--inv-primary); }
.tr-contact-name { font-family: var(--inv-font-heading); font-size: 1.6rem; margin: 0 0 6px; }
.tr-contact-person a { color: var(--inv-primary); font-weight: 700; text-decoration: none; }

/* Footer */
.tr-footer { position: relative; overflow: hidden; text-align: center; padding: 90px 22px 70px; background: var(--inv-primary); color: #fff; }
.tr-footer-leaf { width: 260px; left: -60px; bottom: -80px; opacity: .35; --tr-leaf: #fff; }
.tr-footer > p { position: relative; }
.tr-footer-title { font-family: var(--inv-font-heading); font-size: clamp(2.8rem, 9vw, 4.8rem); margin: 0 0 12px; }
.tr-footer-message { font-size: 1.2rem; margin: 0 0 8px; }
.tr-hashtag { font-weight: 700; color: var(--inv-accent); margin: 0 0 14px; }
.tr-footer .tr-kicker { color: #fff; opacity: .85; }
@media (max-width: 899px) { .tr-leaf-a, .tr-leaf-d { display: none; } .tr-flamingo { left: -14%; width: 32%; } }
