/* ==========================================================================
   Andros Crabfest — Design System
   Palette inspired by the logo: deep ocean navy, breeze turquoise, sand, coral
   ========================================================================== */
:root {
  --navy: #0b2a4a;
  --navy-deep: #061a30;
  --breeze: #1fb6d8;
  --breeze-light: #7fd8e8;
  --sand: #f7efe0;
  --sand-warm: #f2e6cc;
  --coral: #e15a3a;
  --coral-deep: #b8391f;
  --gold: #d9a441;
  --ink: #10233b;
  --muted: #5b6b7e;
  --white: #ffffff;

  --font-display: "Pacifico", cursive;
  --font-head: "Playfair Display", "Georgia", serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  --shadow-soft: 0 20px 45px -20px rgba(11, 42, 74, 0.35);
  --shadow-lg: 0 30px 70px -25px rgba(11, 42, 74, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; }

.display-script { font-family: var(--font-display); color: var(--breeze); font-weight: 400; }

.section { padding: 6rem 0; position: relative; }
.section-sm { padding: 4rem 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--coral);
}

/* ---------- Navbar ---------- */
.navbar-crab {
  background: rgba(6, 26, 48, 0.85);
  backdrop-filter: blur(12px);
  padding: .9rem 0;
  transition: background .3s ease, padding .3s ease;
}
.navbar-crab.scrolled {
  background: rgba(6, 26, 48, 0.98);
  padding: .5rem 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.navbar-crab .navbar-brand {
  display: flex; align-items: center; gap: .75rem;
  color: #fff; font-weight: 700; font-size: 1.05rem;
  letter-spacing: .04em;
}
.navbar-crab .navbar-brand img {
  height: 52px; width: 52px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.navbar-crab .navbar-brand small {
  display: block; font-size: .68rem; letter-spacing: .3em;
  color: var(--breeze-light); font-weight: 500;
}
.navbar-crab .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500; font-size: .92rem;
  padding: .5rem 1rem !important;
  position: relative;
}
.navbar-crab .nav-link:hover,
.navbar-crab .nav-link.active { color: #fff !important; }
.navbar-crab .nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .25rem;
  height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.navbar-crab .nav-link:hover::after,
.navbar-crab .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-toggler-icon {
  filter: invert(1);
}

/* ---------- Buttons ---------- */
.btn-crab {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  border: none; color: #fff; font-weight: 600;
  padding: .85rem 1.8rem; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase; font-size: .82rem;
  box-shadow: 0 12px 28px -10px rgba(225, 90, 58, .7);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-crab:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 18px 36px -10px rgba(225, 90, 58, .8);
}
.btn-ghost {
  background: transparent; border: 2px solid rgba(255,255,255,.7);
  color: #fff; font-weight: 600;
  padding: .8rem 1.8rem; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase; font-size: .82rem;
  transition: all .25s ease;
}
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(6,26,48,.55) 0%, rgba(6,26,48,.75) 100%),
              url('/assets/hero-beach.jpg') center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0,50 C240,90 480,10 720,40 C960,70 1200,20 1440,50 L1440,90 L0,90 Z' fill='%23f7efe0'/></svg>") center/cover no-repeat;
}
.hero-inner { position: relative; z-index: 2; padding: 8rem 0 6rem; }
.hero .kicker {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: .45rem 1.1rem; border-radius: 999px;
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.02;
  margin-bottom: 1.25rem;
}
.hero h1 .script {
  display: block;
  font-family: var(--font-display);
  color: var(--breeze-light);
  font-size: .55em;
  font-weight: 400;
  margin-bottom: -.3em;
}
.hero p.lead {
  font-size: 1.15rem; max-width: 560px;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.18);
}
.hero-meta .item small {
  display: block; font-size: .72rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--breeze-light);
  margin-bottom: .3rem;
}
.hero-meta .item strong { font-size: 1.05rem; font-family: var(--font-head); }

/* ---------- Countdown ---------- */
.countdown {
  display: flex; gap: 1rem; margin-top: 2rem;
}
.countdown .box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  min-width: 84px; text-align: center;
  backdrop-filter: blur(10px);
}
.countdown .box .num {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 700; line-height: 1;
  color: #fff;
}
.countdown .box .lbl {
  font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--breeze-light);
  margin-top: .35rem;
}

/* ---------- Section: About ---------- */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; }
.about-img-wrap .badge-float {
  position: absolute; bottom: -30px; right: -20px;
  background: var(--coral); color: #fff;
  padding: 1.25rem 1.5rem; border-radius: 20px;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-head);
}
.about-img-wrap .badge-float .n { font-size: 2rem; font-weight: 700; line-height: 1; display: block; }
.about-img-wrap .badge-float .t { font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; opacity: .9; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: #fff; border-radius: 20px; padding: 2rem 1.5rem;
  border: 1px solid rgba(11,42,74,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card .icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--breeze), var(--breeze-light));
  color: #fff; font-size: 1.5rem; margin-bottom: 1rem;
}
.feature-card:nth-child(2) .icon { background: linear-gradient(135deg, var(--coral), var(--gold)); }
.feature-card:nth-child(3) .icon { background: linear-gradient(135deg, var(--navy), var(--breeze)); }
.feature-card:nth-child(4) .icon { background: linear-gradient(135deg, var(--gold), var(--coral)); }
.feature-card h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Schedule ---------- */
.schedule-bg { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); color: #fff; }
.schedule-bg h2 { color: #fff; }
.schedule-bg .eyebrow { color: var(--breeze-light); }
.schedule-bg .eyebrow::before { background: var(--breeze-light); }
.tab-days { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }
.tab-days .day {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  color: #fff; padding: .75rem 1.5rem; border-radius: 999px;
  font-weight: 500; cursor: pointer; transition: all .25s ease;
  font-size: .9rem;
}
.tab-days .day.active,
.tab-days .day:hover {
  background: var(--coral); border-color: var(--coral);
}
.schedule-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1.5rem; align-items: center;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  margin-bottom: .8rem;
  transition: all .25s ease;
}
.schedule-item:hover { background: rgba(255,255,255,.08); transform: translateX(4px); }
.schedule-item .time {
  font-family: var(--font-head); font-size: 1.1rem; color: var(--breeze-light);
  font-weight: 700;
}
.schedule-item h5 { color: #fff; margin: 0 0 .2rem; font-size: 1.1rem; }
.schedule-item .desc { color: rgba(255,255,255,.65); font-size: .88rem; margin: 0; }
.schedule-item .tag {
  background: var(--coral); color: #fff;
  padding: .3rem .8rem; border-radius: 999px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Beach Party ---------- */
.beach-party {
  background: linear-gradient(120deg, #eaf7fb, #f7efe0);
  position: relative; overflow: hidden;
}
.beach-card {
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.beach-card .img-side { position: relative; min-height: 420px; background-size: cover; background-position: center; }
.beach-card .img-side::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,26,48,.6));
}
.beach-card .img-side .tag {
  position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2;
  background: var(--coral); color: #fff;
  padding: .5rem 1rem; border-radius: 999px;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.beach-card .body { padding: 3rem; }
.beach-card ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.beach-card ul li { padding: .5rem 0; color: var(--muted); display: flex; align-items: center; gap: .6rem; }
.beach-card ul li::before {
  content: "✓"; color: var(--breeze); font-weight: 700; font-size: 1.1rem;
}

/* ---------- Tickets ---------- */
.ticket-card {
  background: #fff; border-radius: 24px; padding: 2.5rem 2rem;
  border: 2px solid rgba(11,42,74,.08);
  position: relative; text-align: center;
  transition: all .3s ease;
  height: 100%;
}
.ticket-card:hover { transform: translateY(-8px); border-color: var(--coral); box-shadow: var(--shadow-lg); }
.ticket-card.featured {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #fff; border-color: var(--coral);
  transform: scale(1.03);
}
.ticket-card.featured h3, .ticket-card.featured .price { color: #fff; }
.ticket-card.featured ul li { color: rgba(255,255,255,.78); }
.ticket-card .ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: #fff;
  padding: .35rem 1rem; border-radius: 999px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.ticket-card h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: .5rem; }
.ticket-card .price { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--coral); }
.ticket-card .price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.ticket-card ul { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.ticket-card ul li { padding: .5rem 0; font-size: .93rem; color: var(--muted); display: flex; gap: .5rem; }
.ticket-card ul li::before { content: "✓"; color: var(--breeze); font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-grid a {
  overflow: hidden; border-radius: 18px; position: relative; display: block;
  background: #ccc;
}
.gallery-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,42,74,.5));
  opacity: 0; transition: opacity .3s ease;
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* ---------- Sponsors ---------- */
.sponsor-strip {
  display: flex; gap: 3rem; align-items: center; justify-content: center;
  flex-wrap: wrap;
  opacity: .7;
}
.sponsor-strip .logo {
  font-family: var(--font-head); font-size: 1.3rem; color: var(--navy);
  padding: .5rem 1rem; border: 2px dashed rgba(11,42,74,.2);
  border-radius: 8px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--coral), var(--coral-deep));
  color: #fff; border-radius: 32px;
  padding: 4rem 3rem;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-banner::after {
  content: ""; position: absolute; left: -60px; bottom: -100px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-banner p { color: rgba(255,255,255,.9); }
.cta-banner .btn-crab {
  background: #fff; color: var(--coral-deep);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.3);
}
.cta-banner .btn-crab:hover { color: var(--navy); }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep); color: rgba(255,255,255,.7);
  padding: 5rem 0 2rem;
}
footer h5 { color: #fff; margin-bottom: 1.25rem; font-size: 1rem; letter-spacing: .05em; font-family: var(--font-body); font-weight: 600; }
footer a { color: rgba(255,255,255,.7); text-decoration: none; display: block; padding: .3rem 0; font-size: .92rem; }
footer a:hover { color: var(--breeze-light); }
footer .brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
footer .brand img { height: 56px; width: 56px; border-radius: 50%; background: #fff; padding: 3px; }
footer .brand strong { color: #fff; font-family: var(--font-head); font-size: 1.15rem; }
footer .socials { display: flex; gap: .6rem; margin-top: 1rem; }
footer .socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
footer .socials a:hover { background: var(--coral); color: #fff; }
footer .copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; margin-top: 3rem; font-size: .85rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-item { grid-template-columns: 100px 1fr; }
  .schedule-item .tag { grid-column: span 2; justify-self: start; }
  .ticket-card.featured { transform: none; }
  .beach-card .body { padding: 2rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
}
@media (max-width: 576px) {
  .section { padding: 4rem 0; }
  .hero-inner { padding: 6rem 0 4rem; }
  .countdown .box { min-width: 68px; padding: .75rem .5rem; }
  .countdown .box .num { font-size: 1.5rem; }
  .about-img-wrap .badge-float { right: 0; bottom: -20px; padding: 1rem; }
}
