/* =====================================================
   Gansbaai Shark Coast Bookings — Shared Stylesheet
   ===================================================== */

:root {
  --navy: #063c7e;
  --gold-lettering: #d6a41a;
  --navy-light: #064ba0;
  --amber: #D3B565;
  --amber-hover: #D3B565;
  --gold: #D3B565;
  --gold-hover: #D3B565;

  --amber-soft: rgba(232, 130, 10, 0.10);
  --white: #ffffff;
  --off-white: #f5f7fa;
  --text: #1e2d4a;
  --text-muted: #4a5568;
  --border: #dde3ed;
  --shadow-sm: 0 2px 8px rgba(13, 39, 68, 0.08);
  --shadow-md: 0 8px 30px rgba(13, 39, 68, 0.13);
  --shadow-lg: 0 20px 60px rgba(13, 39, 68, 0.20);
  --radius: 12px;
  --dur: 0.3s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== NAV ===== */
nav {
  background: white;
  padding: 0 20px;
  height: 50px !important;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease);
}

nav.scrolled {
  box-shadow: var(--shadow-md);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1.2;
}

.logo-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
  display: block;
}

.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold-lettering);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--amber);
  background: var(--amber-soft);
}

.btn-book-nav {
  background: var(--amber) !important;
  color: var(--navy) !important;
  padding: 9px 22px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease) !important;
}

.btn-book-nav:hover {
  background: var(--amber-hover) !important;
  color: var(--white) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(232, 130, 10, 0.4) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  background: none;
  border: none;
  transition: background var(--dur) var(--ease);
}

.menu-toggle:hover {
  background: var(--off-white);
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== SHARED LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-lettering);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.18;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 14px auto 0;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  padding: 26px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  background: #128c7e;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== INDEX: HERO (AUTOMATIC ASPECT RATIO LOCKED CANVASES) ===== */
header {
  padding-top: 50px;
  min-height: 200px !important;
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 500px !important;
  max-height: 100svh;
  overflow: hidden;
  background: var(--navy);
}

.hero-picture,
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.hero-img {
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  min-height: 500px;
}

.hero-layout-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  container-type: inline-size;
  container-name: heroContentContainer;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: clamp(6px, 2.2cqw, 24px);
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0;
  width: 100%;
  padding: 5px 10px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s 0.2s forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.hero-content p.hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1.9cqw, 19px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  width: 100%;
  padding: 5px 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.5s forwards;
  letter-spacing: 3.5px;
}

p.hero-desc {
  font-size: 1.9cqw;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.65s forwards;
}

.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  padding: 12px 30px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(8px, 2cqw, 20px);
  text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn-primary:hover {
  background: var(--amber-hover);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232, 130, 10, 0.45);
}

@container heroContentContainer (max-width: 700px) {}

/* ===== INDEX: HERO MID — UPDATED FRAMED TYPOGRAPHY ===== */
.hero-mid {
  position: relative;
  top: 12%;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 32px;
  max-width: 650px;
}

.hero-frame-wrapper {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.hero-content h1.hero-title-top {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(26px, 6cqw, 72px);
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  width: 100%;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-content h1.hero-title-mid {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(26px, 6cqw, 72px);
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  width: 100%;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.4s forwards;
}

.hero-content h1.hero-title-bot {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(26px, 6cqw, 72px);
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  width: 100%;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.45s forwards;
}

.hero-frame-wrapper::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  margin-top: 18px;
  opacity: 0.65;
  border-radius: 1px;
}

.hero-mid .hero-cta-group {
  width: 100%;
}

.hero-mid .btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: clamp(11px, 1.8cqw, 15px);
  padding: 12px 24px;
}

/* ===== INDEX: ACTIVITIES ===== */
.activities-section {
  background: var(--off-white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(32px);
}

.card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card.coming-soon {
  cursor: default;
  opacity: 0;
  transform: translateY(32px);
}

.card.coming-soon.revealed {
  opacity: 1;
  transform: translateY(0);
}

.card.coming-soon:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--navy);
}

.card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.06);
}

/* Modern Native Image Component Styling */
.card-img-native {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur) var(--ease);
}

/* Ensure the hover effect hooks into the native image correctly */
.card:hover .card-img-native {
  transform: scale(1.06);
}

.cs-badge {
  position: absolute;
  inset: 0;
  background: rgba(13, 39, 68, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-badge span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--amber);
  padding: 6px 16px;
  border-radius: 20px;
}

.card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
}

.card-body p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 22px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-lettering);
  text-decoration: none;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}

.card:hover .card-cta {
  gap: 10px;
  color: var(--gold-hover);
}

.card.coming-soon .card-cta {
  color: var(--text-muted);
}

/* ===== INDEX: TRUST ===== */
.trust-section {
  background: var(--navy);
  padding: 54px 0;
}

.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.trust-section h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
}

.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 44px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.925rem;
}

.trust-icon {
  width: 38px;
  height: 38px;
  background: white;
  border: 1px solid black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== INDEX: MAP ===== */
.map-section {
  background: var(--off-white);
  padding: 72px 0 0;
}

.map-section .section-header {
  margin-bottom: 32px;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}

/* ===== STANDARD MEDIA QUERIES ===== */
@media screen and (max-width: 1015px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 16px 20px;
    z-index: 999;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }

  .nav-links.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
  }

  .btn-book-nav {
    margin-top: 6px;
    text-align: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-body {
    padding: 20px 18px;
  }

  section {
    padding: 52px 0;
  }
}

@media screen and (max-width: 900px) {
  .booking-wrap {
    grid-template-columns: 1fr;
    padding: 36px 16px 60px !important;
    gap: 24px;
  }

  .sidebar {
    order: -1;
  }
}

/* ===== TABLET / LARGE PHONE STACKING ===== */
@media screen and (max-width: 760px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  a.email-form {
    font-size: 13px !important;
  }
}

/* ===== UNIFIED LAYOUT GATEWAY INTERACTION TRIGGER ===== */
@media screen and (max-width: 500px) {
  .hero {
    aspect-ratio: unset;
    width: 100%;
    height: 100svh !important;
    min-height: 200px;
  }

  .hero-picture,
  .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100svh;
  }

  /* Position content starting at sea surface (~38svh from top of hero) */
  .hero-content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
    padding-top: 32svh;
    background: none;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
  }

  /* Remove blue background entirely — ocean provides the backdrop */
  .hero-mid {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    padding: 0;
    backdrop-filter: none;
    background: none !important;
    border-radius: 0;
    align-items: stretch !important;
    margin-top: 4px;
  }

  /* No left border on mobile, stretch full width to match button */
  .hero-frame-wrapper {
    padding-left: 0;
    margin-bottom: 12px;
    border-left: none;
    width: 100%;
  }

  /* Full-width gold line, same as text and button */
  .hero-frame-wrapper::after {
    width: 100%;
    margin-top: 12px;
  }

  /* Rebuild mobile hero typography for clean centered alignment */
  .hero-content h1.hero-title-top,
  .hero-content h1.hero-title-mid,
  .hero-content h1.hero-title-bot {
    width: 100% !important;
    text-align: center !important;
    text-align-last: center !important;
    letter-spacing: 0.22em !important;
    line-height: 0.95 !important;
    /*font-size: clamp(52px, 12vw, 74px) !important;*/
    display: block;
  }

  .hero-content h1.hero-title-top {
    font-size: 15cqw;
  }

  .hero-content h1.hero-title-mid {
    font-size: 11cqw;
  }

  .hero-content h1.hero-title-bot {
    font-size: 13cqw;
  }



  .hero-content h1.hero-title-top,
  .hero-content h1.hero-title-mid {
    color: var(--white);
  }

  .hero-content h1.hero-title-bot {
    color: var(--gold);
    margin-top: 6px;
  }

  .hero-cta-group {
    justify-content: center;
    width: 100%;
  }

  .hero-mid .btn-primary {
    font-size: 13px;
    padding: 10px 20px;
    width: 100%;
  }

  /* Hide description on mobile — keeps cage & shark unobstructed */
  p.hero-desc {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 16px;
  }

  .notice-banner {
    flex-direction: column;
    gap: 8px;
  }

  .logo-main {
    font-size: 1rem;
  }

  .booking-wrap {
    padding: 24px 12px 48px !important;
  }

  .form-body {
    padding: 20px 14px;
  }

  .form-card-header {
    padding: 18px 14px;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .field input,
  .field select,
  .field textarea {
    min-width: 0;
  }
}

