@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-dark: #222222;
  --color-white: #ffffff;
  --color-primary: #2CA7C6;
  --color-secondary: #84DCC6;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

/* Typography */
.text-h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
}

.text-h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
}

.text-lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 300;
  opacity: 0.9;
}

/* Section Dividers */
.section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  width: 100%;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid currentColor;
  opacity: 0.2;
}

.section-divider::before {
  margin-right: 2rem;
}

.section-divider::after {
  margin-left: 2rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  background-color: var(--color-white);
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.header.scrolled .logo, 
.header.scrolled .nav-link {
  color: var(--color-dark);
}

.header.scrolled .btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Explore Page Specific Header */
.explore-header .logo,
.explore-header .nav-link,
.explore-header .btn-primary {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Remove drop shadow when scrolled (if it has solid background) */
.header.scrolled:not([style*="background-color: transparent"]) .logo,
.header.scrolled:not([style*="background-color: transparent"]) .nav-link,
.header.scrolled:not([style*="background-color: transparent"]) .btn-primary {
  filter: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  /* Since the logo might be dark, we invert it to white when the header is transparent */
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

.header.scrolled .logo-icon {
  /* Return to original color when header becomes white */
  filter: none;
}

.logo span {
  color: var(--color-secondary);
}

.header.scrolled .logo span {
  color: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-white);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.header.scrolled .nav-link::after {
  background-color: var(--color-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 0.5rem;
}

.header.scrolled .menu-toggle {
  color: var(--color-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(44, 167, 198, 0.2);
}

.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}

.fixed-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-dark);
  z-index: -1;
  overflow: hidden;
}

.fixed-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fixed-bg-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.4) 0%, rgba(44, 167, 198, 0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg, .page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150vh;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  will-change: transform;
  transition: transform 100ms ease-out;
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--color-white);
  max-width: 800px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header-content .text-lead {
  margin: 1.5rem 0 3rem;
}

.hero-content .text-lead {
  margin: 1.5rem 0 3rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Value Props */
.values {
  background-color: var(--color-white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.value-card {
  padding: 3rem 2rem;
  background: #f9f9f9;
  border-radius: 1rem;
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  background: var(--color-white);
}

.value-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--color-dark);
}

.value-card h3 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 4rem;
}

.values-image-container {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.values-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Locations */
.locations {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.locations-header {
  text-align: center;
  margin-bottom: 5rem;
}

.locations-header h2 {
  margin-bottom: 1rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
}

.location-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  group: hover;
}

.location-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.location-card:hover .location-img {
  transform: scale(1.05);
}

.location-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}

.location-overlay h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.location-overlay p {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1.5rem;
}

.cta-content p {
  margin-bottom: 3rem;
  font-size: 1.25rem;
  opacity: 0.9;
}

.cta-section .btn-primary {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.cta-section .btn-primary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* Footer */
.footer {
  background-color: #111;
  color: var(--color-white);
  padding: 6rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-about p {
  color: #999;
  margin-top: 1.5rem;
  max-width: 400px;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #999;
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
}

/* Places Horizontal Wipe */
.places-scroll-section {
  position: relative;
  /* Height will be set dynamically via JS or can be set fixed if we know count */
  height: 600vh;
}

.places-sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.place-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 0 100%); /* Hidden by default (wiped to the right) */
  will-change: clip-path;
}

.place-slide:first-child {
  clip-path: inset(0 0 0 0); /* First slide is fully visible */
}

.place-fullscreen-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 110vh;
  object-fit: cover;
  will-change: transform;
}

.place-text-card {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 10px;
  background-color: var(--color-white);
  padding: 2rem;
  width: calc(100% - 20px);
  max-width: 450px;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}

.place-text-card .place-region {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.place-text-card h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.place-text-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.place-text-card .place-link {
  color: var(--color-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.place-text-card .place-link:hover {
  color: var(--color-primary);
}

.place-text-card .place-link svg {
  transition: transform 0.3s ease;
}

.place-text-card .place-link:hover svg {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  
  .nav.menu-open .nav-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    padding: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav.menu-open .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .nav.menu-open .nav-link {
    color: var(--color-white);
  }

  .menu-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation utilities */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
