/* =========================================================================
   Gardens by the Bay — landing page (faithful clone of
   gardensbythebay.com.sg homepage layout, adapted for this site).

   Palette matches the real GBTB brand identity: deep aubergine PURPLE as
   the primary (buttons / dark sections), a bright MAGENTA accent (the logo
   mark), charcoal text and clean white / cool off-white backgrounds.

   Auto-loads for the static page whose slug is "gardens-by-the-bay"
   (see templates/Pages/dynamic.php). Component prefix: .gbtb-

   The site header/footer come from the default layout, so this file only
   styles the page body sections. The "Featured Tours" carousel is rendered
   by the shared ProductsBlock cell and is re-skinned to the GBTB palette at
   the end of this file.
   ========================================================================= */

.gbtb {
    --gbtb-purple: #6b1e74;       /* primary — CTAs, buttons, links        */
    --gbtb-purple-dark: #501658;  /* hover / pressed                       */
    --gbtb-plum: #3a0f40;         /* deep aubergine — dark sections        */
    --gbtb-plum-2: #4d1555;
    --gbtb-magenta: #e6007e;      /* bright accent (the leaf/figure mark)  */
    --gbtb-cream: #f6f4f7;        /* cool off-white section background      */
    --gbtb-ink: #2e2a30;          /* charcoal headings / text              */
    --gbtb-muted: #5f5a63;
    color: var(--gbtb-ink);
}
.gbtb * { box-sizing: border-box; }
.gbtb img { max-width: 100%; display: block; }

/* Shared section rhythm ---------------------------------------------------- */
.gbtb-section { padding: 72px 0; }
.gbtb-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gbtb-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gbtb-magenta);
    margin-bottom: 14px;
}
.gbtb-h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--gbtb-ink);
    margin: 0 0 18px;
}
.gbtb-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--gbtb-muted);
    margin: 0;
}
.gbtb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gbtb-purple);
    text-decoration: none;
    transition: gap .15s ease, color .15s ease;
}
.gbtb-link:hover { color: var(--gbtb-magenta); gap: 12px; }
.gbtb-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gbtb-purple);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 4px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(107, 30, 116, 0.32);
    transition: background .15s ease, transform .15s ease;
}
.gbtb-btn:hover { background: var(--gbtb-purple-dark); color: #fff; transform: translateY(-2px); }
.gbtb-btn.is-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: none;
}
.gbtb-btn.is-ghost:hover { background: rgba(255,255,255,0.15); }

/* =========================================================================
   Hero
   ========================================================================= */
.gbtb-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(26,10,30,0.10) 0%, rgba(26,10,30,0.10) 40%, rgba(26,10,30,0.82) 100%),
        url('/uploads/media/de9931c7-d764-4b80-b335-65996ba79b6a.jpg') center/cover no-repeat;
}
.gbtb-hero-inner { position: relative; z-index: 2; padding-bottom: 72px; max-width: 720px; }
.gbtb-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.gbtb-hero-tag i { color: var(--gbtb-magenta); }
.gbtb-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.gbtb-hero p {
    font-size: 1.15rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.94);
    max-width: 560px;
    margin: 0 0 28px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}
.gbtb-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================================
   Intro / award recognition
   ========================================================================= */
.gbtb-intro { background: #fff; text-align: center; }
.gbtb-intro .gbtb-container { max-width: 860px; }
.gbtb-award {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gbtb-cream);
    border: 1px solid #ece7ee;
    border-radius: 999px;
    padding: 8px 20px 8px 10px;
    margin-bottom: 24px;
}
.gbtb-award-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gbtb-magenta);
    color: #fff;
    font-size: 1.1rem;
}
.gbtb-award-text { text-align: left; line-height: 1.2; }
.gbtb-award-text strong { display: block; font-size: 0.98rem; color: var(--gbtb-ink); }
.gbtb-award-text span { font-size: 0.78rem; color: var(--gbtb-muted); }

/* =========================================================================
   Attractions grid
   ========================================================================= */
.gbtb-attractions { background: var(--gbtb-cream); }
.gbtb-attractions-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}
.gbtb-attractions-head .gbtb-h2 { margin-bottom: 0; }
.gbtb-attr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 18px;
}
/* First card spans two rows to echo the GBTB feature-tile mosaic */
.gbtb-attr-card:first-child { grid-row: span 2; }
.gbtb-attr-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
    background: var(--gbtb-plum);
}
.gbtb-attr-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(26,10,30,0) 30%, rgba(26,10,30,0.85) 100%);
    transition: background .2s ease;
}
.gbtb-attr-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
    transition: transform .4s ease;
}
.gbtb-attr-card:hover::after { transform: scale(1.08); }
.gbtb-attr-card:hover::before { background: linear-gradient(180deg, rgba(26,10,30,0.1) 20%, rgba(26,10,30,0.92) 100%); }
/* Jewel-tone placeholders (swap for real attraction photos) */
.gbtb-attr-card.is-cloud::after   { background-image: linear-gradient(135deg, #2a8f8f, #0f4a4a); }
.gbtb-attr-card.is-floral::after  { background-image: linear-gradient(135deg, #8e3fa0, #3d0f43); }
.gbtb-attr-card.is-dome::after    { background-image: linear-gradient(135deg, #d46a9c, #7a2b50); }
.gbtb-attr-card.is-super::after   { background-image: linear-gradient(135deg, #4a4fa8, #1c1f57); }
.gbtb-attr-card.is-active::after  { background-image: linear-gradient(135deg, #e0578f, #8a1e56); }
.gbtb-attr-body { position: relative; z-index: 2; padding: 22px 24px; }
.gbtb-attr-icon { font-size: 1.3rem; margin-bottom: 10px; color: rgba(255,255,255,0.9); }
.gbtb-attr-body h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; color: #fff; }
.gbtb-attr-body p { font-size: 0.9rem; margin: 0; color: rgba(255,255,255,0.85); }
.gbtb-attr-card:first-child .gbtb-attr-body h3 { font-size: 1.6rem; }

/* =========================================================================
   Feature rows (Sustainability / year-round blooms)
   .is-forest = dark (aubergine) variant of a feature row.
   ========================================================================= */
.gbtb-feature { background: #fff; }
.gbtb-feature .gbtb-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.gbtb-feature.is-reverse .gbtb-feature-media { order: 2; }
.gbtb-feature-media {
    border-radius: 22px;
    min-height: 360px;
    background:
        linear-gradient(180deg, rgba(58,15,64,0.05), rgba(58,15,64,0.35)),
        url('/img/hero-bg.jpg') center/cover no-repeat;
    box-shadow: 0 24px 50px rgba(58, 15, 64, 0.18);
}
.gbtb-feature.is-forest { background: var(--gbtb-plum); }
.gbtb-feature.is-forest .gbtb-h2 { color: #fff; }
.gbtb-feature.is-forest .gbtb-lead { color: rgba(255,255,255,0.85); }
.gbtb-feature.is-forest .gbtb-link { color: var(--gbtb-magenta); }
.gbtb-feature.is-forest .gbtb-link:hover { color: #fff; }
.gbtb-feature-cta { margin-top: 22px; }

/* =========================================================================
   Stats band
   ========================================================================= */
.gbtb-stats {
    background: linear-gradient(135deg, var(--gbtb-plum), var(--gbtb-plum-2));
    color: #fff;
    text-align: center;
}
.gbtb-stats .gbtb-h2 { color: #fff; }
.gbtb-stats-lead { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto 48px; }
.gbtb-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gbtb-stat i {
    font-size: 1.9rem;
    color: var(--gbtb-magenta);
    margin-bottom: 14px;
}
.gbtb-stat-num { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.gbtb-stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.78); line-height: 1.4; }

/* =========================================================================
   Events strip (static)
   ========================================================================= */
.gbtb-events { background: var(--gbtb-cream); }
.gbtb-events-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.gbtb-events-track::-webkit-scrollbar { display: none; }
.gbtb-event {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(58, 15, 64, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.gbtb-event:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(58, 15, 64, 0.14); color: inherit; }
.gbtb-event-img {
    height: 170px;
    background-size: cover;
    background-position: center;
    position: relative;
}
/* Event thumbnail placeholders (swap for real event photos) */
.gbtb-event-img.is-lily     { background-image: linear-gradient(135deg, #a3457e, #5b2350); }
.gbtb-event-img.is-disney   { background-image: linear-gradient(135deg, #2e8fbf, #164c66); }
.gbtb-event-img.is-rhapsody { background-image: linear-gradient(135deg, #4a4fa8, #1c1f57); }
.gbtb-event-img.is-borealis { background-image: linear-gradient(135deg, #6a3fa0, #241046); }
.gbtb-event-img span {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gbtb-magenta);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.gbtb-event-body { padding: 16px 18px 20px; }
.gbtb-event-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--gbtb-ink); margin: 0 0 8px; }
.gbtb-event-meta { font-size: 0.85rem; color: var(--gbtb-muted); display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.gbtb-event-meta i { color: var(--gbtb-purple); width: 14px; }

/* =========================================================================
   Visit (location & hours)
   ========================================================================= */
.gbtb-visit { background: #fff; }
.gbtb-visit .gbtb-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.gbtb-visit-map {
    border-radius: 22px;
    min-height: 320px;
    background:
        linear-gradient(180deg, rgba(58,15,64,0.05), rgba(58,15,64,0.3)),
        url('/img/hero-bg.jpg') center/cover no-repeat;
    box-shadow: 0 24px 50px rgba(58, 15, 64, 0.15);
}
.gbtb-visit-list { list-style: none; margin: 22px 0 26px; padding: 0; }
.gbtb-visit-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee7ef;
    font-size: 0.98rem;
}
.gbtb-visit-list li i {
    color: var(--gbtb-purple);
    font-size: 1.1rem;
    margin-top: 2px;
    width: 20px;
    text-align: center;
}
.gbtb-visit-list strong { color: var(--gbtb-ink); display: block; }
.gbtb-visit-list span { color: var(--gbtb-muted); font-size: 0.9rem; }

/* =========================================================================
   App promo
   ========================================================================= */
.gbtb-app { background: var(--gbtb-cream); }
.gbtb-app .gbtb-container {
    background: linear-gradient(135deg, var(--gbtb-purple), var(--gbtb-plum));
    border-radius: 26px;
    padding: 48px 56px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    max-width: 1100px;
}
.gbtb-app h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 0 0 14px; color: #fff; }
.gbtb-app p { color: rgba(255,255,255,0.85); margin: 0 0 24px; line-height: 1.6; }
.gbtb-app-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.gbtb-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 12px;
    transition: transform .15s ease, background .15s ease;
}
.gbtb-store:hover { transform: translateY(-2px); background: rgba(0,0,0,0.55); color: #fff; }
.gbtb-store i { font-size: 1.8rem; }
.gbtb-store span { display: block; line-height: 1.15; }
.gbtb-store small { font-size: 0.7rem; opacity: 0.75; }
.gbtb-store strong { font-size: 1rem; font-weight: 700; }
.gbtb-app-visual {
    justify-self: center;
    font-size: 7rem;
    color: rgba(255,255,255,0.9);
    text-align: center;
}

/* =========================================================================
   Featured Tours carousel (shared ProductsBlock cell) — re-skin to the
   GBTB palette. The cell's own components/products-block.css loads AFTER
   this file, so these rules are scoped under .gbtb to win on specificity
   (0,3,0 vs the component's 0,2,0) rather than source order.
   ========================================================================= */
.gbtb .th2-products-block { background: var(--gbtb-cream); }
.gbtb .th2-products-block .th2-section-title { color: var(--gbtb-ink); }
.gbtb .th2-products-block .th2-section-link { color: var(--gbtb-purple); }
.gbtb .th2-products-block .th2-section-link:hover { color: var(--gbtb-magenta); }
.gbtb .th2-products-block .th2-card-badge { background: var(--gbtb-magenta); }
.gbtb .th2-products-block .th2-card-btn {
    border-color: var(--gbtb-purple);
    color: var(--gbtb-purple);
}
.gbtb .th2-products-block .th2-card-btn:hover {
    background: var(--gbtb-purple);
    border-color: var(--gbtb-purple);
    color: #fff;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 991.98px) {
    .gbtb-section { padding: 52px 0; }
    .gbtb-attr-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
    .gbtb-attr-card:first-child { grid-row: span 2; }
    .gbtb-feature .gbtb-container,
    .gbtb-visit .gbtb-container { grid-template-columns: 1fr; gap: 32px; }
    .gbtb-feature.is-reverse .gbtb-feature-media { order: 0; }
    .gbtb-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
    .gbtb-app .gbtb-container { grid-template-columns: 1fr; padding: 40px 32px; }
    .gbtb-app-visual { display: none; }
}
@media (max-width: 575.98px) {
    .gbtb-hero { min-height: 78vh; }
    .gbtb-attractions-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .gbtb-attr-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .gbtb-attr-card:first-child { grid-row: span 1; }
    .gbtb-stats-grid { grid-template-columns: 1fr; }
    .gbtb-hero-cta { flex-direction: column; align-items: stretch; }
    .gbtb-hero-cta .gbtb-btn { justify-content: center; }
}
