/* ========================================
   Latitudes Media — Hub Homepage
   ======================================== */

/* --- Custom Properties --- */
:root {
  /* Dark mode (default) */
  --bg-primary: #0B1426;
  --bg-secondary: #101d33;
  --bg-card: #13243d;
  --bg-card-hover: #192d4a;
  --text-primary: #f0ece4;
  --text-secondary: #a8a29e;
  --accent: #C8A96E;
  --accent-hover: #d4b97e;
  --accent-dim: rgba(200, 169, 110, 0.15);
  --border: rgba(200, 169, 110, 0.12);
  --shadow: rgba(0, 0, 0, 0.4);
  --overlay: rgba(11, 20, 38, 0.55);
  --badge-bg: rgba(200, 169, 110, 0.18);
  --badge-text: #C8A96E;
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(200, 169, 110, 0.25);
}

[data-theme="light"] {
  --bg-primary: #faf8f5;
  --bg-secondary: #f0ece4;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f4ee;
  --text-primary: #1a1a2e;
  --text-secondary: #5c5c6e;
  --accent: #9e7c3c;
  --accent-hover: #b8923f;
  --accent-dim: rgba(158, 124, 60, 0.1);
  --border: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.08);
  --overlay: rgba(250, 248, 245, 0.55);
  --badge-bg: rgba(158, 124, 60, 0.12);
  --badge-text: #7d6230;
  --input-bg: rgba(0, 0, 0, 0.03);
  --input-border: rgba(158, 124, 60, 0.3);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.gold-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: 24px 0;
}

/* --- Header / Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background-color: var(--accent-dim);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 20, 38, 0.4) 0%,
    rgba(11, 20, 38, 0.7) 60%,
    rgba(11, 20, 38, 0.95) 100%
  );
  z-index: 1;
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(250, 248, 245, 0.3) 0%,
    rgba(250, 248, 245, 0.6) 60%,
    rgba(250, 248, 245, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 800px;
}

.hero-tagline {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-tagline em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent);
  color: #0B1426;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.hero-scroll span {
  width: 1px;
  height: 40px;
  background: var(--accent);
  opacity: 0.5;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Destinations Section --- */
.destinations {
  padding: 120px 0;
  background-color: var(--bg-primary);
}

.destinations-header {
  text-align: center;
  margin-bottom: 64px;
}

.destinations-header .section-subtitle {
  margin: 0 auto;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Destination card */
.dest-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow);
  border-color: var(--accent);
}

.dest-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.dest-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.dest-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  background: var(--badge-bg);
  backdrop-filter: blur(8px);
  color: var(--badge-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(200, 169, 110, 0.2);
}

.dest-card-badge.live {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.2);
}

[data-theme="light"] .dest-card-badge.live {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.2);
}

.dest-card-body {
  padding: 24px;
}

.dest-card-destination {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.dest-card-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.dest-card-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.dest-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: gap 0.3s ease;
}

.dest-card:hover .dest-card-link {
  gap: 10px;
}

.dest-card-link svg {
  width: 14px;
  height: 14px;
}

.dest-card.coming-soon {
  opacity: 0.75;
}

.dest-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
  cursor: default;
}

.dest-card.coming-soon:hover .dest-card-img img {
  transform: none;
}

/* --- About Section --- */
.about {
  padding: 120px 0;
  background-color: var(--bg-secondary);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-subtitle {
  margin-bottom: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-visual {
  position: relative;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  opacity: 0.3;
  z-index: -1;
}

/* --- Circle Section (Newsletter) --- */
.circle {
  padding: 120px 0;
  background-color: var(--bg-primary);
  text-align: center;
}

.circle-inner {
  max-width: 640px;
  margin: 0 auto;
}

.circle-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.circle-icon svg {
  width: 28px;
  height: 28px;
}

.circle .section-subtitle {
  margin: 0 auto 40px;
}

.circle-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.circle-form input {
  flex: 1;
  padding: 14px 20px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.circle-form input::placeholder {
  color: var(--text-secondary);
}

.circle-form input:focus {
  border-color: var(--accent);
  background: rgba(200, 169, 110, 0.05);
}

.circle-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: #0B1426;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.circle-form button:hover {
  background: var(--accent-hover);
}

.circle-note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--accent-dim);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col .coming {
  font-size: 0.65rem;
  color: var(--badge-text);
  background: var(--badge-bg);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .destinations-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .about-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .circle-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-tagline {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }
}

/* --- Animations (reduced motion respected) --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
  }

  .hero-scroll {
    animation: none;
  }
}
