/* ==========================================================================
   Bowl Voyage — Global Stylesheet
   ========================================================================== */

:root {
  /* Brand colors (from official Bowl Voyage / MF International brand doc) */
  --sky: #00abec;
  --sky-dark: #0092cb;
  --blue-deep: #006bb4;
  --green: #256b31;
  --green-light: #3a8c49;
  --lime: #c0d72f;
  --ink: #0f2429;
  --ink-soft: #35494d;
  --gray: #6b716f;
  --gray-light: #e3e2db;
  --cream: #fbfaf4;
  --white: #ffffff;
  --black: #000000;

  --font-display: "Fredoka", sans-serif;
  --font-body: "Poppins", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(15, 36, 41, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 36, 41, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 36, 41, 0.18);

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Fredoka (the display font) has a broken kerning pair that collapses
     "I" into invisibility whenever it's immediately followed by "V" (e.g.
     "PRIVATE" renders as "PRVATE"). Disabling kerning site-wide fixes it
     with no visible side effect on either font at this weight/size. */
  font-kerning: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
  color: var(--blue-deep);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--green);
  background: rgba(192, 215, 47, 0.3);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  margin-bottom: 0.9em;
}
/* On dark/photo backgrounds, the default green-on-lime pill loses contrast —
   switch automatically to a light pill instead of relying on inline overrides. */
.bg-ink .eyebrow,
.bg-gradient .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink h2, .bg-ink h3 { color: var(--lime); }
.bg-gradient {
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue-deep) 55%, var(--green) 100%);
  color: var(--white);
}
.bg-gradient h2, .bg-gradient h3 { color: var(--white); }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 48px; }
.section-head.left { margin: 0 0 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); background: #d2e654; }
.btn-secondary {
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(15, 36, 41, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-deep);
}
.brand img { height: 56px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-soft);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-deep); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--lime);
  border-radius: 4px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--blue-deep);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  min-height: 86vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,30,35,0.35) 0%, rgba(10,30,35,0.72) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); text-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.hero .lead { color: #eef7f2; max-width: 620px; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.page-hero {
  position: relative;
  color: var(--white);
  min-height: 42vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,107,180,0.55), rgba(37,107,49,0.55));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1,
.page-hero .lead {
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}

/* ---------- Badges / Passport stamp motif ---------- */
.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 3px dashed currentColor;
  padding: 10px;
  transform: rotate(-8deg);
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.15;
}
.stamp strong { font-size: 1.3rem; display: block; }
.stamp span { font-size: 0.65rem; letter-spacing: 0.08em; }
.ddd-banner {
  background: var(--ink);
  color: var(--white);
}
.ddd-banner .container {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.ddd-banner strong { color: var(--lime); }

/* ---------- Cards & Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card img { width: 100%; height: 220px; object-fit: cover; }

/* Menu / passport-style item card */
.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  position: relative;
  border: 2px solid var(--gray-light);
}
.menu-card .flag { font-size: 1.8rem; margin-right: 8px; }
.flag-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.1em;
  margin-right: 10px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(15,36,41,0.12);
  vertical-align: -0.15em;
  background-size: cover;
  background-position: center;
}
.flag-icon.fi-us { background-image: url('../images/flags/us.svg'); }
.flag-icon.fi-mx { background-image: url('../images/flags/mx.svg'); }
.flag-icon.fi-jm { background-image: url('../images/flags/jm.svg'); }
.flag-icon.fi-kr { background-image: url('../images/flags/kr.svg'); }
.flag-icon.fi-ca { background-image: url('../images/flags/ca.svg'); }
.flag-icon.fi-ar { background-image: url('../images/flags/ar.svg'); }
.flag-icon.fi-ng { background-image: url('../images/flags/ng.svg'); }
.menu-card .origin {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 4px;
}
.menu-card h3 { margin-bottom: 6px; color: var(--blue-deep); display:flex; align-items:center; }
.menu-card p { color: var(--ink-soft); margin-bottom: 0; }
.menu-card .price-tag {
  position: absolute;
  top: -14px;
  right: 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,171,236,0.1);
  color: var(--blue-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint { font-size: 0.78rem; color: var(--gray); margin-top: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--white);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  background: var(--cream);
  border: 1.5px solid var(--gray-light);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.checkbox-grid input { width: 16px; height: 16px; accent-color: var(--sky); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1.5px solid var(--gray-light);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
}
.form-msg {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.success { background: rgba(37,107,49,0.12); color: var(--green); }
.form-msg.error { background: rgba(200,60,40,0.12); color: #a63a28; }

/* ---------- Community partner cards ---------- */
.partner-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--sky);
}
.partner-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.partner-card a { color: var(--blue-deep); font-weight: 600; font-size: 0.9rem; }
.partner-card a:hover { text-decoration: underline; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-strip .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--lime);
}
.stat-strip .label { font-size: 0.9rem; opacity: 0.9; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* ---------- Calendar ---------- */
.calendar-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.calendar-head h3 {
  font-size: 1.2rem;
  color: var(--blue-deep);
}
.calendar-head button {
  background: var(--cream);
  border: 1.5px solid var(--gray-light);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--blue-deep);
  transition: background 0.15s ease;
}
.calendar-head button:hover { background: var(--gray-light); }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}
.cal-weekday {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray);
  padding: 6px 0;
}
.cal-day {
  position: relative;
  padding: 12px 0 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.cal-day.empty { visibility: hidden; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--sky); font-weight: 700; }
.cal-day.has-event {
  background: rgba(192,215,47,0.35);
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.cal-day.has-event:hover { background: rgba(192,215,47,0.6); }
.cal-day .dot {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
#cal-detail:empty { display: none; }
#cal-detail { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
#cal-upcoming { display: flex; flex-direction: column; gap: 14px; }
#cal-upcoming .empty-state {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---------- Event list ---------- */
.event-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px 26px;
  align-items: center;
}
.event-date {
  flex: none;
  width: 86px;
  height: 86px;
  border-radius: 16px;
  background: var(--sky);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}
.event-date .month { font-size: 0.78rem; text-transform: uppercase; }
.event-date .day { font-size: 1.7rem; line-height: 1; }
.event-card h3 { margin-bottom: 4px; }
.event-meta { font-size: 0.88rem; color: var(--gray); }
.event-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(192,215,47,0.3);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--blue-deep); }
.faq-item p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfe3e0;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--lime);
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--lime); }
.footer-brand img { height: 64px; margin-bottom: 14px; }
.footer-brand p { color: #a9bdba; font-size: 0.92rem; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.social-row a:hover { background: var(--sky); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8ba39f;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .event-card { flex-direction: column; align-items: flex-start; }
  .form-card { padding: 26px; }
  h1 { font-size: 2.2rem; }
}
