/*
Theme Name: Flatsome Child – H Club
Theme URI: https://www.facebook.com/hclubhalong
Author: H Club Ha Long
Author URI: https://www.facebook.com/hclubhalong
Description: Child theme for Flatsome, customized for H Club Ha Long. Adds H Club booking (shortcode + email), Events and Bookings post types, JSON-LD NightClub and Event, VI/EN toggle and 18+ age gate. Page layouts are built in UX Builder, not in child templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Template: flatsome
Text Domain: flatsome-child
Tags: dark, custom-menu, featured-images, translation-ready
*/

/*
 * H Club child styles. Flatsome and UX Builder control page layout.
 * These rules only cover the H Club pieces: age gate, VI/EN switch,
 * and the booking form rendered by the [hclub_booking_form] shortcode.
 * Everything booking-related is scoped under .hclub-booking so it
 * never overrides Flatsome's own styles.
 */

:root {
  --hclub-bg: #0b0a08;
  --hclub-bg2: #14110d;
  --hclub-bg3: #1d1912;
  --hclub-gold: #f0b24d;
  --hclub-gold-soft: #ffd98a;
  --hclub-gold-dim: rgba(240, 178, 77, .28);
  --hclub-text: #f5efe4;
  --hclub-muted: #b8ad98;
  --hclub-line: rgba(240, 178, 77, .22);
  --hclub-danger: #e5484d;
}

/* ---------- VI/EN language switch ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--hclub-line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; border: 0; color: var(--hclub-muted);
  font-family: "Bebas Neue", sans-serif; font-size: 1rem; letter-spacing: .08em;
  padding: 6px 12px; cursor: pointer;
}
.lang-switch button.active { background: var(--hclub-gold); color: #111; }

/* ---------- Age gate (18+) ---------- */
#age-gate {
  position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 4, 3, .96); padding: 20px;
}
#age-gate[hidden] { display: none; }
#age-gate .age-box { max-width: 520px; text-align: center; border: 1px solid var(--hclub-gold-dim); border-radius: 16px; padding: 36px 28px; background: var(--hclub-bg2); }
#age-gate .age-box .big { font-family: "Bebas Neue", sans-serif; font-size: 3.4rem; line-height: 1; color: var(--hclub-gold); }
#age-gate .age-box h2 { color: var(--hclub-text); font-family: "Bebas Neue", sans-serif; font-weight: 400; letter-spacing: .04em; }
#age-gate .age-box .muted { color: var(--hclub-muted); }
#age-gate .age-denied { color: var(--hclub-danger); margin-top: 14px; }
#age-gate .btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Booking form ([hclub_booking_form]) ---------- */
.hclub-booking { color: var(--hclub-text); }
.hclub-booking .kicker {
  color: var(--hclub-gold);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem; letter-spacing: .28em; text-transform: uppercase; margin-bottom: .4em;
}
.hclub-booking .lead { color: var(--hclub-muted); font-size: 1.08rem; max-width: 720px; }
.hclub-booking .muted { color: var(--hclub-muted); }
.hclub-booking .small { font-size: .88rem; }
.hclub-booking .btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: "Bebas Neue", sans-serif; font-size: 1.15rem; letter-spacing: .12em;
  padding: 12px 24px; border-radius: 999px; text-align: center; text-decoration: none;
}
.hclub-booking .btn-gold { background: var(--hclub-gold); color: #111; }
.hclub-booking .btn-gold:hover { background: var(--hclub-gold-soft); color: #111; }
.hclub-booking .btn-ghost { background: transparent; color: var(--hclub-gold); border: 1px solid var(--hclub-gold); }
.hclub-booking .btn-ghost:hover { background: rgba(240, 178, 77, .12); color: var(--hclub-gold-soft); }
.hclub-booking .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hclub-booking .booking-box { background: var(--hclub-bg2); border: 1px solid var(--hclub-line); border-radius: 16px; padding: 28px; }
.hclub-booking .booking-steps { display: flex; gap: 8px; margin-bottom: 22px; }
.hclub-booking .step-chip { flex: 1; text-align: center; padding: 10px; border-radius: 999px; border: 1px solid var(--hclub-line); color: var(--hclub-muted); font-family: "Bebas Neue", sans-serif; letter-spacing: .1em; }
.hclub-booking .step-chip.active { background: var(--hclub-gold); color: #111; border-color: var(--hclub-gold); }
.hclub-booking .form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hclub-booking .form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hclub-booking .field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.hclub-booking .field input, .hclub-booking .field select, .hclub-booking .field textarea {
  width: 100%; background: var(--hclub-bg3); border: 1px solid var(--hclub-line); color: var(--hclub-text);
  border-radius: 10px; padding: 12px 14px; font-size: 1rem; font-family: inherit;
}
.hclub-booking .field input:focus, .hclub-booking .field select:focus, .hclub-booking .field textarea:focus { outline: 2px solid var(--hclub-gold); border-color: var(--hclub-gold); }
.hclub-booking .field .hint { font-size: .85rem; color: var(--hclub-muted); margin-top: 4px; }
.hclub-booking .field .error { color: var(--hclub-danger); font-size: .88rem; margin-top: 4px; display: none; }
.hclub-booking .field.invalid .error { display: block; }
.hclub-booking .field.invalid input, .hclub-booking .field.invalid select { border-color: var(--hclub-danger); }
.hclub-booking .show-preview { background: var(--hclub-bg3); border: 1px solid var(--hclub-line); border-radius: 10px; padding: 14px 18px; margin: 16px 0; }
.hclub-booking .show-preview strong { color: var(--hclub-gold-soft); }
.hclub-booking .confirm-box { border: 1px solid var(--hclub-gold); border-radius: 12px; padding: 24px; background: rgba(240,178,77,.06); }
.hclub-booking .confirm-ref { font-family: "Bebas Neue", sans-serif; font-size: 2rem; letter-spacing: .12em; color: var(--hclub-gold); }
.hclub-booking .email-preview { background: #111; border: 1px solid var(--hclub-line); border-radius: 10px; padding: 18px; margin-top: 16px; font-size: .95rem; }
.hclub-booking .email-preview h4 { margin-top: 0; color: var(--hclub-text); }

@media (max-width: 960px) {
  .hclub-booking .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hclub-booking .form-grid, .hclub-booking .form-grid-2 { grid-template-columns: 1fr; }
  .hclub-booking .booking-box { padding: 18px 14px; }
}
