/* Antigua & Barbuda — palette from the national flag */
:root {
  --red: #ce1126;
  --black: #111111;
  --gold: #fcd116;
  --blue: #0072c6;
  --sea: #0aa5b8;
  --sand: #fbf6ec;
  --ink: #1b1b1b;
  --muted: #5b5b5b;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

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

h1, h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  color: #fff;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.05) 60%);
}
.hero-text {
  position: relative;
  z-index: 1;
  padding: 0 6vw 10vh;
  max-width: 900px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  margin: .3em 0;
}
.hero h1 span { font-style: italic; color: var(--gold); }
.tagline { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 1.6rem; }
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .2s, background .2s;
}
.btn:hover { background: #a90d1f; transform: translateY(-2px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1rem;
  background: var(--black);
  border-bottom: 4px solid var(--gold);
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: .05em;
}
.nav a:hover { color: var(--gold); }

/* Quick facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 6vw;
  gap: 1rem;
  text-align: center;
}
.facts strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--blue);
}
.facts span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 6vw;
}
.section.alt {
  max-width: none;
  background: linear-gradient(160deg, #e6f7f9, #d3eef5);
}
.section.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
}
.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: .6rem;
  background: var(--red);
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 1rem 0 2.5rem;
}

/* Image grids */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-beaches {
  grid-template-columns: 1fr 1.4fr;
  grid-template-rows: 1fr 1fr;
}
.grid-beaches .tall { grid-row: span 2; }
.grid-3 .wide { grid-column: span 2; }

figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  min-height: 240px;
}
figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
figure:hover img { transform: scale(1.05); }
figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem .9rem;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
}
.grid-2 figure, .grid-3 figure { aspect-ratio: 4 / 3; }
.grid-3 .wide { aspect-ratio: 8 / 3; }

/* Heritage */
.heritage {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
}
.heritage img {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.motto {
  font-family: "DM Serif Display", Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--red);
  margin: 1rem 0;
}

/* Footer */
.footer {
  background: var(--black);
  color: #ccc;
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: .9rem;
}
/* Flag drawn in pure CSS */
.flag {
  position: relative;
  width: 90px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--red);
  overflow: hidden;
}
.flag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--black) 0 40%, var(--blue) 40% 70%, #fff 70%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.flag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  width: 26px;
  height: 26px;
  transform: translateX(-50%);
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Responsive */
@media (max-width: 800px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-beaches { grid-template-columns: 1fr; grid-template-rows: auto; }
  .grid-beaches .tall { grid-row: auto; aspect-ratio: 3 / 4; }
  .grid-beaches figure { aspect-ratio: 4 / 3; }
  .grid-3 .wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .heritage { grid-template-columns: 1fr; text-align: center; }
  .heritage img { max-width: 240px; margin: 0 auto; }
  .heritage h2::after { margin-left: auto; margin-right: auto; }
}
