/* ==========================================================================
   TravLuxx - Bespoke Travel Website Stylesheet
   Preserving exact draft layout & aesthetics with luxury animations
   ========================================================================== */

:root {
  --ink: #1f2928;
  --cream: #f5f0e8;
  --sand: #ded4c4;
  --rust: #a85837;
  --line: rgba(31, 41, 40, 0.2);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;

  /* Animation Easings */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.25s ease;
  --transition-medium: 0.45s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

/* Reset & Setup */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.wrap {
  width: min(1160px, calc(100% - 64px));
  margin: auto;
}

/* ==========================================================================
   Hero Section & Navigation
   ========================================================================== */
.hero {
  min-height: 780px;
  height: 100vh;
  min-height: 620px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(15, 27, 27, 0.56), rgba(15, 27, 27, 0.08)),
              url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=2200&q=85') center/cover;
}

/* Subtle cinematic background breathing */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-position: center;
  background-size: cover;
  animation: heroKenBurns 22s var(--ease-out-expo) infinite alternate;
  z-index: 0;
  will-change: transform;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.06);
  }
}

.nav {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  animation: navSlideDown 0.9s var(--ease-out-expo) 0.1s both;
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  color: inherit;
  font-family: var(--serif);
  font-size: 27px;
  text-decoration: none;
  letter-spacing: -1.6px;
  display: inline-block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand span {
  font-style: italic;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a:not(.nav-cta) {
  padding: 4px 0;
}

/* Animated underline for nav links */
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.35s var(--ease-out-expo), left 0.35s var(--ease-out-expo);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
  left: 0;
}

.nav-links a.nav-cta,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: 16px 32px;
  line-height: 1.2;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: all var(--transition-medium);
}

.nav-links a.nav-cta:hover,
.nav-cta:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.hero-content {
  padding-top: 15vh;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 10px;
  font-weight: 600;
  margin: 0 0 18px;
}

.hero h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0;
}

.hero h1 {
  font-size: clamp(58px, 7.1vw, 104px);
}

em {
  font-weight: 500;
}

.hero-copy {
  max-width: 365px;
  font-size: 16px;
  margin: 28px 0 30px;
}

/* Staggered hero text entrance */
.hero-content .eyebrow {
  animation: heroTextReveal 1s var(--ease-out-expo) 0.2s both;
}

.hero-content h1 {
  animation: heroTextReveal 1.1s var(--ease-out-expo) 0.35s both;
}

.hero-content .hero-copy {
  animation: heroTextReveal 1.1s var(--ease-out-expo) 0.5s both;
}

.hero-content .button {
  animation: heroTextReveal 1.1s var(--ease-out-expo) 0.65s both;
}

@keyframes heroTextReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons with interactive arrow glide */
.button {
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  min-width: 190px;
  padding: 14px 17px;
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), background var(--transition-fast);
}

.button span {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  transition: transform var(--transition-medium);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.button:hover span {
  transform: translateX(6px);
}

.button:active {
  transform: translateY(-1px) scale(0.99);
}

/* Scroll indicator with pulsing line */
.scroll-note {
  position: absolute;
  bottom: 34px;
  left: max(32px, calc((100% - 1160px) / 2));
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: heroTextReveal 1.2s var(--ease-out-expo) 0.85s both;
}

.scroll-note i {
  height: 1px;
  width: 55px;
  background: rgba(255, 255, 255, 0.4);
  display: block;
  position: relative;
  overflow: hidden;
}

.scroll-note i::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: linePulse 2.4s var(--ease-in-out-smooth) infinite;
}

@keyframes linePulse {
  0% {
    transform: translateX(-100%);
  }
  50%, 100% {
    transform: translateX(100%);
  }
}

/* ==========================================================================
   Intro Section (The TravLuxx Philosophy)
   ========================================================================== */
.intro {
  padding: 150px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
}

.intro h2, .section-heading h2, .promise h2, .enquiry h2 {
  font-size: clamp(42px, 5vw, 69px);
}

.intro-grid > div {
  font-size: 16px;
}

.intro-grid p:first-child {
  margin-top: 0;
}

.intro-grid p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Journeys Section & Cards
   ========================================================================== */
.journeys {
  background: var(--sand);
  padding: 120px 0 135px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 50px;
}

.section-heading > p {
  width: 310px;
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.journey-card {
  height: 480px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
  will-change: transform;
}

.journey-card:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 18, 18, 0.65), transparent 65%);
  transition: background 0.5s ease, opacity 0.5s ease;
  z-index: 1;
}

/* Subtle border highlight on card hover */
.journey-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: border-color 0.45s ease;
  pointer-events: none;
  z-index: 2;
}

.journey-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -12px rgba(10, 18, 18, 0.4);
}

.journey-card:hover:before {
  background: linear-gradient(0deg, rgba(10, 18, 18, 0.8), transparent 60%);
}

.journey-card:hover::after {
  border-color: rgba(255, 255, 255, 0.22);
}

.journey-card > div {
  position: absolute;
  z-index: 3;
  bottom: 27px;
  left: 26px;
  transition: transform 0.5s var(--ease-out-expo);
}

.journey-card:hover > div {
  transform: translateY(-5px);
}

.journey-card p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  transition: letter-spacing 0.4s ease, color 0.4s ease;
}

.journey-card:hover p {
  letter-spacing: 0.16em;
  color: #ede7dc;
}

.journey-card h3 {
  font-size: 35px;
}

.coast {
  background-image: url('https://images.unsplash.com/photo-1533104816931-20fa691ff6ca?auto=format&fit=crop&w=900&q=85');
}

.wild {
  background-image: url('https://images.unsplash.com/photo-1516426122078-c23e76319801?auto=format&fit=crop&w=900&q=85');
}

.city {
  background-image: url('https://images.unsplash.com/photo-1470214304380-aadaedcfff1b?auto=format&fit=crop&w=900&q=85');
}

/* ==========================================================================
   Promise Section (Monogram & Philosophy)
   ========================================================================== */
.promise {
  padding: 130px 0;
  display: grid;
  grid-template-columns: 180px 1fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.monogram {
  font-family: var(--serif);
  font-size: 56px;
  font-style: italic;
  border: 1px solid var(--ink);
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: default;
  transition: transform 0.6s var(--ease-out-expo), border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.monogram:hover {
  transform: rotate(8deg) scale(1.08);
  border-color: var(--rust);
  color: var(--rust);
  box-shadow: 0 12px 30px rgba(168, 88, 55, 0.18);
  background: rgba(168, 88, 55, 0.04);
}

.promise > p {
  margin: 0;
}

/* ==========================================================================
   Enquiry Section & Form
   ========================================================================== */
.enquiry {
  background: var(--ink);
  color: var(--cream);
  padding: 120px 0;
  position: relative;
}

.enquiry-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}

.enquiry-copy > p:last-child {
  max-width: 350px;
  margin-top: 30px;
}

.travel-form {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.phone-input-group {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 14px;
  align-items: end;
}

.phone-code-select {
  padding-right: 18px !important;
  cursor: pointer;
}

.travel-form label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c9c7bf;
  transition: color var(--transition-fast);
}

.travel-form label:focus-within {
  color: #fff;
}

.travel-form input,
.travel-form select,
.travel-form textarea {
  display: block;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.37);
  border-radius: 0;
  width: 100%;
  padding: 7px 0 10px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), padding-left var(--transition-fast);
}

.travel-form input:focus,
.travel-form select:focus,
.travel-form textarea:focus {
  border-bottom-color: var(--rust);
  box-shadow: 0 1px 0 var(--rust);
  padding-left: 4px;
}

.travel-form input[type="date"] {
  color-scheme: dark;
  cursor: pointer;
}

.travel-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.travel-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: invert(1);
}

.travel-form select {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath fill='none' stroke='%23f5f0e8' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right center no-repeat;
  cursor: pointer;
}

.travel-form option {
  color: var(--ink);
  background: var(--cream);
}

.travel-form textarea {
  resize: vertical;
}

.travel-form input::placeholder,
.travel-form textarea::placeholder {
  color: #aaa8a1;
  transition: opacity var(--transition-fast);
}

.travel-form input:focus::placeholder,
.travel-form textarea:focus::placeholder {
  opacity: 0.5;
}

.button-dark {
  margin-top: 8px;
  background: var(--rust);
  color: #fff;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), background-color var(--transition-fast);
}

.button-dark:hover {
  background: #ba633f;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(168, 88, 55, 0.38);
}

.button-dark:hover span {
  transform: translateX(6px);
}

.button-dark:active {
  transform: translateY(-1px) scale(0.99);
}

.form-message {
  font-size: 13px;
  margin: 0;
  min-height: 20px;
  color: #e8d6ba;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.footer p {
  margin: 0;
  color: #68706d;
}

/* ==========================================================================
   Scroll-Driven Reveal Classes
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
  will-change: opacity, transform;
}

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

/* ==========================================================================
   Mobile Responsive Rules (Preserving original draft breakpoints)
   ========================================================================== */
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .nav {
    height: 76px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 17vh;
  }

  .intro,
  .journeys,
  .enquiry {
    padding: 80px 0;
  }

  .intro-grid,
  .enquiry-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    width: auto;
    margin-top: 27px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .journey-card {
    height: 365px;
  }

  .promise {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 80px 0;
  }

  .monogram {
    width: 78px;
    height: 78px;
    font-size: 42px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer {
    padding: 35px 0;
    min-height: 0;
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer p:nth-child(2) {
    width: 100%;
  }
}

/* ==========================================================================
   Accessibility: Reduced Motion Preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero::before {
    animation: none;
  }

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
