/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  --color-bg: #f4fafa;
  --color-surface: #ffffff;
  --color-primary: #e86040;
  --color-primary-dark: #c44d28;
  --color-secondary: #f0c040;
  --color-teal: #2a9d8f;
  --color-teal-light: #5bc5b8;
  --color-mint: #5bc5b8;
  --color-text: #1a1a1a;
  --color-text-muted: #4a7a76;
  --color-border: #c8e8e4;
  --color-nav-bg: #2a9d8f;
  --font-heading: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Oswald', sans-serif;
  --radius: 3px;
  --shadow: 0 4px 16px rgba(42, 157, 143, 0.12);
  --shadow-hover: 0 10px 30px rgba(42, 157, 143, 0.24);
  --transition: all 0.25s ease;
  --max-width: 1200px;
  /* Stripe colors — coral / gold / mint */
  --s1: #e86040;
  --s2: #f0c040;
  --s3: #5bc5b8;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===========================
   Stripe Bar Utility
   =========================== */
.stripe-bar {
  height: 9px;
  flex-shrink: 0;
  background: linear-gradient(to bottom,
    var(--s1) 0px, var(--s1) 3px,
    var(--s2) 3px, var(--s2) 6px,
    var(--s3) 6px, var(--s3) 9px
  );
}

/* ===========================
   Navigation
   =========================== */
.navbar {
  background-color: var(--color-nav-bg);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: white;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand .brand-accent {
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.45rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   Hero Section — CSS Art (Avila Beach sticker style)
   =========================== */
.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Mint teal base with horizontal white lines */
  background-color: var(--color-mint);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 13px,
    rgba(255, 255, 255, 0.22) 13px,
    rgba(255, 255, 255, 0.22) 15px
  );
}

/* Coral diagonal lower band with its own lines — like the sticker's bottom half */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background-color: var(--color-primary);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 11px,
    rgba(255, 255, 255, 0.2) 11px,
    rgba(255, 255, 255, 0.2) 13px
  );
  clip-path: polygon(0 26%, 100% 8%, 100% 100%, 0 100%);
}

/* 3-stripe bar at very bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  z-index: 3;
  background: linear-gradient(to bottom,
    var(--s1) 0px, var(--s1) 4px,
    var(--s2) 4px, var(--s2) 8px,
    var(--s3) 8px, var(--s3) 12px
  );
}

.hero-image {
  display: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem 3.5rem;
  color: white;
}

.hero-icons {
  font-size: 1.5rem;
  letter-spacing: 0.45em;
  margin-bottom: 0.75rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

.hero-overlay h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 300;
  opacity: 0.92;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 9px;
  margin: 0.5rem auto 2rem;
  border-radius: 2px;
  background: linear-gradient(to bottom,
    var(--s1) 0px, var(--s1) 3px,
    var(--s2) 3px, var(--s2) 6px,
    var(--s3) 6px, var(--s3) 9px
  );
}

/* ===========================
   Trip Cards Grid (Homepage)
   =========================== */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.trip-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 2px solid transparent;
}

/* 3-stripe top accent */
.trip-card::before {
  content: '';
  display: block;
  height: 9px;
  flex-shrink: 0;
  background: linear-gradient(to bottom,
    var(--s1) 0px, var(--s1) 3px,
    var(--s2) 3px, var(--s2) 6px,
    var(--s3) 6px, var(--s3) 9px
  );
}

.trip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.trip-card-image {
  overflow: hidden;
  height: 215px;
}

.trip-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.trip-card-body {
  padding: 1.1rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  border-top: 1px solid var(--color-border);
}

.trip-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.trip-date {
  font-size: 0.74rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trip-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
  font-weight: 300;
  line-height: 1.55;
}

.trip-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
}

.trip-card:hover .trip-link {
  color: var(--color-primary-dark);
  letter-spacing: 0.14em;
}

/* ===========================
   Trip Page Header
   =========================== */
.trip-header {
  text-align: center;
  padding: 3rem 1.5rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  padding: 0.45rem 1.1rem;
  border: 2px solid var(--color-teal);
  border-radius: var(--radius);
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--color-teal);
  color: white;
}

.trip-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.trip-meta {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.trip-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 300;
}

.trip-header-stripe {
  width: 100px;
  height: 9px;
  margin: 1.5rem auto 2.5rem;
  border-radius: 2px;
  background: linear-gradient(to bottom,
    var(--s1) 0px, var(--s1) 3px,
    var(--s2) 3px, var(--s2) 6px,
    var(--s3) 6px, var(--s3) 9px
  );
}

/* ===========================
   Photo Grid (Trip Pages)
   =========================== */
.photo-grid-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.photo-card::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(to bottom,
    var(--s1) 0px, var(--s1) 2px,
    var(--s2) 2px, var(--s2) 4px,
    var(--s3) 4px, var(--s3) 6px
  );
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.photo-card-image {
  overflow: hidden;
  height: 228px;
}

.photo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.photo-card-caption {
  padding: 0.6rem 0.9rem 0.75rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ===========================
   Photo Section Headings
   =========================== */
.photo-section {
  margin-bottom: 3rem;
}

.photo-section-heading {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--color-border);
  background-image: linear-gradient(to right,
    var(--s1) 0px, var(--s1) 30px,
    var(--s2) 30px, var(--s2) 60px,
    var(--s3) 60px, var(--s3) 90px,
    transparent 90px
  );
  background-size: 100% 3px;
  background-position: bottom;
  background-repeat: no-repeat;
  border-bottom: none;
  padding-bottom: 0.75rem;
}

.section-date {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-primary);
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
}

/* ===========================
   Lightbox
   =========================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

.lightbox.active { display: flex; }

.lightbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(to right,
    var(--s1) 0%, var(--s1) 33%,
    var(--s2) 33%, var(--s2) 66%,
    var(--s3) 66%, var(--s3) 100%
  );
}

.lightbox-content {
  max-width: 90vw;
  max-height: 82vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

#lightbox-caption {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
}

.lightbox-prev {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
}

.lightbox-next {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
}

.lightbox-close:hover { opacity: 0.65; transform: rotate(90deg); }
.lightbox-prev:hover  { opacity: 0.65; transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover  { opacity: 0.65; transform: translateY(-50%) translateX(3px); }

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--color-teal);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 1.5rem 1rem 1.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-top: auto;
  position: relative;
}

.footer::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(to bottom,
    var(--s1) 0px, var(--s1) 3px,
    var(--s2) 3px, var(--s2) 6px,
    var(--color-mint, #4ecdc4) 6px, var(--color-mint, #4ecdc4) 9px
  );
}

.footer-stars {
  display: block;
  color: var(--color-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  margin-bottom: 0.4rem;
}

/* ===========================
   Responsive — Tablet
   =========================== */
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-nav-bg);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1.5rem; border-radius: 0; }
  .nav-toggle { display: flex; }
  .hero { height: 300px; }
  .trips-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ===========================
   Responsive — Mobile
   =========================== */
@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-card-image { height: 240px; }
  .hero { height: 240px; }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
}
