:root {
  --color-bg: #040404;
  --color-bg-alt: #0b0f12;
  --color-surface: #10161d;
  --color-surface-alt: #151f29;
  --color-primary: #facc15; /* gold */
  --color-primary-soft: rgba(250, 204, 21, 0.18);
  --color-accent: #16a34a; /* green */
  --color-accent-soft: rgba(22, 163, 74, 0.15);
  --color-danger: #ef4444;
  --color-text: #f9fafb;
  --color-text-soft: #9ca3af;
  --color-border: rgba(148, 163, 184, 0.25);
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.7);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;
}

/* Global reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #111827 0, #020617 45%, #000 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0 4.5rem;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #000 100%);
  padding: 5rem 0 4.5rem;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1.5rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo mark now supports an image (square, small) */
.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: #020617;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-mark .logo-img,
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Smaller text next to logo */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.98rem;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--color-text-soft);
}

/* Jamaican flag */
.flag-wrapper {
  display: none;
}

.jm-flag {
  width: 64px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.88rem;
}

.nav a {
  color: var(--color-text-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.1rem;
  transition: color var(--transition-fast);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #facc15, #22c55e);
  transition: width var(--transition-fast);
}

.nav a:hover {
  color: var(--color-text);
}

.nav a:hover::after {
  width: 100%;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 4px;
  margin: 3px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  padding: 3.75rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
  letter-spacing: 0.02em;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #d1fae5;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.hero-tagline::before {
  content: "🔥";
  font-size: 0.9rem;
}

.hero-subtitle {
  color: var(--color-text-soft);
  max-width: 32rem;
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
  font-size: 0.78rem;
}

.meta-pill {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--color-text-soft);
}

/* Hero card */
.hero-highlight {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: radial-gradient(circle at top left, #facc15 0, #22c55e 25%, #020617 70%);
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 360px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(15, 23, 42, 0.75);
  pointer-events: none;
}

.hero-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
}

.hero-list li + li {
  margin-top: 0.4rem;
}

.hero-note {
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-bottom: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  border: none;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at top left, #facc15 0, #f97316 35%, #b45309 100%);
  color: #111827;
  box-shadow: 0 14px 32px rgba(248, 250, 252, 0.15);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(248, 250, 252, 0.2);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.8);
}

.btn-fullwidth {
  width: 100%;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.8);
}

.btn-fullwidth:hover {
  background: #020617;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 2.3rem;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-soft);
  max-width: 36rem;
  margin-inline: auto;
}

/* Cards / grids */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.2rem 1.2rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-soft);
}

.card-cta {
  border: 1px solid rgba(250, 204, 21, 0.6);
  background: radial-gradient(circle at top left, #facc15 0, #0b1120 60%);
}

/* About */
.about-grid {
  display: grid;
  gap: 2.3rem;
  align-items: flex-start;
}

.about-aside {
  max-width: 320px;
}

.info-block {
  background: radial-gradient(circle at top left, #22c55e 0, #020617 65%);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
  border: 1px solid rgba(34, 197, 94, 0.8);
  box-shadow: var(--shadow-card);
}

.info-block h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.info-block ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

/* Visit / hours / map */
.visit-grid {
  display: grid;
  gap: 2.2rem;
}

.hours ul {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 1.1rem;
  font-size: 0.88rem;
}

.hours li + li {
  margin-top: 0.2rem;
}

.contact p {
  font-size: 0.9rem;
}

.contact a {
  color: #e5e7eb;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* Map placeholder and photo carousel - reduced sizes so images aren't upscaled */
.map-placeholder {
  position: relative;
  min-height: 200px;       /* default smaller height to avoid upscaling small images */
  max-width: 720px;        /* limit width so images aren't stretched too wide */
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
}

@media (min-width: 768px) {
  .map-placeholder {
    min-height: 260px;     /* larger on wider screens but still controlled */
    max-width: 680px;
  }
}

@media (min-width: 1024px) {
  .map-placeholder {
    min-height: 300px;
    max-width: 720px;
  }
}

.map-photos {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.map-photo.is-active {
  opacity: 1;
}

/* ensure image fills the placeholder but not stretched beyond its natural height excessively */
/* object-fit: cover keeps aspect and crops; constraining container size avoids upscaling */
.map-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* overlay and card sit above the images */
.map-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.25),
    rgba(2, 6, 23, 0.65)
  );
  z-index: 2;
  pointer-events: none;
}

.map-card {
  position: relative;
  z-index: 3;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.3rem 1.2rem;
  font-size: 0.86rem;
  color: var(--color-text-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 90%;
}

.map-label {
  font-weight: 600;
  color: #e5e7eb;
  margin: 0;
}

.map-hint {
  margin: 0;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
  padding: 1rem 0 1.2rem;
  margin-top: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--color-text-soft);
}

/* Responsive */
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.1fr);
  }

  .visit-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  }

  .flag-wrapper {
    display: block;
  }
}

@media (max-width: 767px) {
  .header-inner {
    padding-block: 0.55rem;
  }

  .flag-wrapper {
    display: none;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 0.8rem 1.25rem 1.1rem;
    background: rgba(15, 23, 42, 0.97);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .nav a {
    padding-block: 0.2rem;
  }

  .nav-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .hero {
    padding-top: 3.1rem;
  }

  .hero-card {
    max-width: 100%;
  }

  .section {
    padding-inline: 0.3rem;
  }
}

