:root {
  color-scheme: light;
  --ink: #10231c;
  --muted: #5b6c62;
  --paper: #ffffff;
  --mist: #eff8f4;
  --leaf: #1f6f4a;
  --deep: #123628;
  --mangrove: #0d2920;
  --sun: #f5bd43;
  --clay: #cf6c37;
  --water: #2a8ea0;
  --line: rgba(31, 111, 74, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--mist);
  overflow-x: hidden;
}
a { color: inherit; }
img, video { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
p { color: var(--muted); line-height: 1.65; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  background: rgba(239, 248, 244, 0.92);
  backdrop-filter: blur(16px);
}
.brand img { display: block; width: 176px; height: auto; }
nav { display: flex; justify-content: flex-end; gap: 18px; font-size: 14px; font-weight: 850; }
nav a, .nav-cta { text-decoration: none; }
nav a:hover { color: var(--leaf); }
.menu-toggle { display: none; }

.primary-button, .secondary-button, .ai-button, .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}
.primary-button { color: white; background: var(--leaf); }
.secondary-button { color: var(--mangrove); background: var(--sun); }
.ai-button, .nav-cta { color: white; background: var(--clay); }

main > section, .site-footer {
  padding: 76px max(22px, calc((100vw - 1180px) / 2));
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background: var(--mangrove);
}
.hero-video, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-video { object-fit: cover; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 41, 32, 0.94), rgba(13, 41, 32, 0.42) 58%, rgba(13, 41, 32, 0.08)),
    linear-gradient(0deg, rgba(13, 41, 32, 0.82), transparent 58%);
}
.hero-content {
  position: relative;
  min-width: 0;
  width: min(100%, 850px);
  max-width: 850px;
  padding-bottom: 52px;
}
.eyebrow {
  margin: 0;
  color: var(--sun);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 8px 0 0; letter-spacing: 0; }
h1 { font-size: clamp(44px, 6vw, 82px); line-height: 0.96; max-width: 880px; }
h2 { font-size: clamp(30px, 4.3vw, 54px); line-height: 1.04; }
h3 { font-size: 23px; line-height: 1.15; }
.hero-content p:not(.eyebrow) {
  max-width: 690px;
  color: #f5f0dc;
  font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.quick-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  padding-bottom: 22px;
  background: #173126;
}
.quick-strip span {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 9px 13px;
  color: #f5e7c3;
  font-weight: 850;
}

.intro, .booking-section, .heritage-section, .contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: start;
  background: var(--paper);
}
.intro > p { margin-top: 10px; font-size: 18px; }
.tours-section, .packages-section { background: var(--mist); }
.ai-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  background: #eef6f8;
}
.section-heading { max-width: 820px; margin-bottom: 26px; }

.tour-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.tour-filter button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  background: white;
  font-weight: 850;
}
.tour-filter button.active {
  color: white;
  background: var(--leaf);
}
.tour-grid, .package-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tour-card, .package-layout article, .ai-panel, .booking-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(17, 48, 36, 0.07);
}
.tour-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
}
.tour-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.tour-card div { display: grid; gap: 12px; padding: 18px; }
.tour-card p { margin: 0; }
.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tour-meta span, .package-layout span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  background: var(--water);
  font-size: 12px;
  font-weight: 950;
}
.tour-card a { color: var(--leaf); font-weight: 950; text-decoration: none; }

.ai-copy {
  align-self: center;
  max-width: 760px;
}
.ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}
.ai-prompts button {
  border: 1px solid rgba(42, 142, 160, 0.25);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--deep);
  background: white;
  font-weight: 850;
}
.ai-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
}
.ai-panel img {
  width: min(260px, 100%);
  border-radius: 8px;
  background: white;
}
.ai-panel p { margin-bottom: 0; }

.package-layout article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}
.package-layout p { margin: 0; }

.booking-section { background: #fff8e6; }
.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}
label { display: grid; gap: 8px; color: var(--ink); font-weight: 850; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  color: var(--ink);
  background: white;
}
.full { grid-column: 1 / -1; }
.form-status { margin: 0; font-weight: 850; }

.heritage-section {
  align-items: center;
  background: var(--deep);
  color: white;
}
.heritage-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}
.heritage-section p { color: #d9eadf; }

.gallery-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 12px;
  background: #f7fbf4;
}
.gallery-section img {
  width: 100%;
  height: 360px;
  border-radius: 8px;
  object-fit: cover;
}

.contact-section {
  align-items: center;
  background: #f6fbff;
}
.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.floating-ai {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 4px solid var(--sun);
  border-radius: 50%;
  color: white;
  background: var(--clay);
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(22, 44, 35, 0.28);
}
.floating-ai span { font-size: 13px; font-weight: 950; }
.floating-ai strong { margin-top: -14px; font-size: 26px; line-height: 1; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: white;
  background: #10231c;
}
.site-footer img { width: 160px; filter: brightness(1.08); }
.site-footer p { color: #d7e5dc; }
.site-footer a { color: var(--sun); font-weight: 900; text-decoration: none; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; }
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    color: var(--ink);
    background: white;
    font-weight: 900;
  }
  .site-header nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .site-header nav.open { display: flex; }
  .nav-cta { display: none; }
  .intro, .booking-section, .heritage-section, .contact-section, .ai-section {
    grid-template-columns: 1fr;
  }
  .tour-grid, .package-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  main > section, .site-footer { padding: 48px 20px; }
  .hero-content {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }
  h1 {
    width: min(100%, 10.5ch);
    max-width: 10.5ch;
    min-width: 0;
    font-size: 32px;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }
  .brand img { width: 140px; }
  .hero { min-height: 78vh; }
  .hero-content p:not(.eyebrow) {
    width: min(100%, 34ch);
    max-width: 34ch;
    font-size: 16px;
  }
  .hero-actions {
    width: min(100%, 350px);
    max-width: 350px;
  }
  .quick-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-right: 80px;
  }
  .quick-strip span { flex: 0 0 auto; }
  .tour-grid, .package-layout, .booking-form, .contact-actions, .gallery-section {
    grid-template-columns: 1fr;
  }
  .primary-button, .secondary-button, .ai-button { width: 100%; }
  .gallery-section img { height: 260px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .floating-ai { right: 14px; bottom: 14px; width: 72px; height: 72px; }
}
