/* Cornejo Uncorked — custom styles beyond Tailwind */

:root {
  --navy: #0c1a2e;
  --agave: #1a7fbf;
  --teal: #2fb6a3;
  --aqua: #6fe7e1;
  --palm: #4baa4f;
  --citrus: #f4d44a;
  --orange: #f28a2e;
  --magenta: #c02a6b;
  --clay: #f7f1e8;
  --clay-deep: #e8dcc8;
  --ink: #0c1a2e;
  --font-display: "Bebas Neue", "Impact", sans-serif;
  --font-ui: "Montserrat", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.font-ui {
  font-family: var(--font-ui);
}

/* Papel picado banner — navy fill closes gaps between flag points */
.papel-band {
  height: 28px;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28'%3E%3Cpath fill='%23F28A2E' d='M0 0h24v18l-12 10L0 18z'/%3E%3Cpath fill='%231A7FBF' d='M24 0h24v18l-12 10L24 18z'/%3E%3Cpath fill='%23C02A6B' d='M48 0h24v18l-12 10L48 18z'/%3E%3Cpath fill='%232FB6A3' d='M72 0h24v18l-12 10L72 18z'/%3E%3Cpath fill='%23F4D44A' d='M96 0h24v18l-12 10L96 18z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 28px;
}

/* Fixed chrome: opaque so page never shows through header */
.site-header {
  background-color: var(--navy);
}

/* Diagonal color slash behind sections */
.slash-bg {
  position: relative;
  isolation: isolate;
}

.slash-bg::before {
  content: "";
  position: absolute;
  inset: 8% -10% -10% 40%;
  background: linear-gradient(135deg, rgba(26, 127, 191, 0.12), rgba(47, 182, 163, 0.18));
  transform: skewY(-4deg);
  z-index: -1;
  border-radius: 0;
}

/* Hero ken burns */
.hero-media {
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}
.reveal-delay-2 {
  transition-delay: 0.24s;
}
.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* Destination strip hover */
.dest-strip {
  position: relative;
  overflow: hidden;
}

.dest-strip img {
  transition: transform 0.8s ease;
}

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

.dest-strip .dest-label {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.dest-strip:hover .dest-label {
  transform: translateY(-4px);
}

/* Overlapping editorial title */
.overlap-title {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .overlap-title {
    margin-top: -4rem;
  }
}

/* Trip inquire button — ready for future form URL */
.btn-inquire {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.6rem;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.btn-inquire:hover {
  background: var(--citrus);
  transform: translateY(-2px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--citrus);
  color: var(--navy);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.9rem 1.75rem;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.btn-primary:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.6rem;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--citrus);
}

/* Mosaic grid for destinations */
.mosaic {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(140px, auto);
}

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

.mosaic .span-2 {
  grid-column: span 2;
}

.mosaic .tall {
  grid-row: span 2;
  min-height: 280px;
}

@media (min-width: 768px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(160px, 200px);
    gap: 1rem;
  }

  .mosaic .span-2 {
    grid-column: span 2;
  }

  .mosaic .tall {
    grid-row: span 2;
  }

  .mosaic .wide {
    grid-column: span 2;
  }
}

/* Mobile nav */
.nav-panel {
  transform: translateX(100%);
  transition: transform 0.35s ease;
  pointer-events: none;
  visibility: hidden;
  background-color: var(--navy);
}

.nav-panel.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

/* Asymmetric photo crop accents */
.photo-clip {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.photo-clip-alt {
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
}

/* Footer agave watermark */
.footer-agave {
  opacity: 0.08;
  pointer-events: none;
}
