/* Love and Layovers — Mobile-First Design System */

/* ========== COLOR & SPACING TOKENS ========== */
:root {
  /* Color — warm neutral base + sunset accent */
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #1F1B16;
  --ink-soft: #5C554B;
  --accent: #E4572E;        /* sunset orange — primary CTA */
  --accent-ink: #FFFFFF;
  --sea: #17557A;           /* deep sea blue — links, secondary */
  --sand: #EFE7DA;          /* section alternating background */
  --success: #2E7D32;
  --yt-red: #FF0000;        /* YouTube red — subscribe only */

  /* Spacing & Layout */
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 8px 30px rgba(31, 27, 22, 0.08);
  --maxw: 1140px;
  --maxw-prose: 720px;
  --gap: 24px;

  /* Typography scale */
  --text-xs: 0.8rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;

  /* Z-index */
  --z-sticky: 100;
  --z-modal: 1000;
  --z-menu: 999;
}

/* ========== GLOBAL RESETS ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY — MOBILE FIRST ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
}

/* Mobile first typography scaling */
h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

a {
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

a:active {
  opacity: 0.8;
}

@media (hover: hover) {
  a:hover {
    border-bottom-color: var(--sea);
  }
}

ul, ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
}

li {
  margin-bottom: 0.75rem;
}

/* Prose column (guides, blog) */
.prose {
  max-width: var(--maxw-prose);
}

.prose ul li {
  margin-bottom: 0.75rem;
}

/* Desktop typography enhancement */
@media (min-width: 769px) {
  h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
  }

  h3 {
    font-size: 1.3rem;
  }
}

/* ========== LAYOUT ========== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 769px) {
  .wrap {
    padding: 0 24px;
  }
}

/* ========== BUTTONS — MOBILE OPTIMIZED ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:active {
  transform: translateY(2px);
}

.btn--block {
  width: 100%;
  display: flex;
}

/* Primary button (accent) */
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}

.btn--primary:active {
  background: #d1471f;
}

@media (hover: hover) {
  .btn--primary:hover {
    background: #d1471f;
    box-shadow: 0 12px 40px rgba(228, 87, 46, 0.15);
  }
}

/* Ghost button (outline) */
.btn--ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:active {
  background: var(--ink);
  color: var(--surface);
}

@media (hover: hover) {
  .btn--ghost:hover {
    background: var(--ink);
    color: var(--surface);
  }
}

/* YouTube button (red, subscribe only) */
.btn--yt {
  background: var(--yt-red);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--yt:active {
  background: #e00000;
}

.btn--yt::before {
  content: '▶';
  font-size: 0.9em;
}

@media (hover: hover) {
  .btn--yt:hover {
    background: #e00000;
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.2);
  }
}

/* Secondary button (sea blue) */
.btn--secondary {
  background: var(--sea);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--secondary:active {
  background: #0e3a52;
}

@media (hover: hover) {
  .btn--secondary:hover {
    background: #0e3a52;
  }
}

/* ========== BADGES & CHIPS ========== */
.badge, .chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--ink);
}

.badge--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.badge--success {
  background: var(--success);
  color: #fff;
}

.badge--sea {
  background: var(--sea);
  color: #fff;
}

/* ========== CARDS ========== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:active {
  box-shadow: 0 12px 40px rgba(31, 27, 22, 0.12);
}

@media (hover: hover) {
  .card:hover {
    box-shadow: 0 12px 40px rgba(31, 27, 22, 0.12);
  }
}

/* Mobile-first card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Destination card */
.card--destination {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card--destination img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media (min-width: 769px) {
  .card--destination img {
    height: 300px;
  }
}

@media (hover: hover) {
  .card--destination:hover img {
    transform: scale(1.03);
  }
}

.card--destination .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(31, 27, 22, 0.9), transparent);
  color: #fff;
}

.card--destination h3 {
  font-size: 1.4rem;
  margin: 0 0 12px 0;
  color: #fff;
}

.card--destination .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card--destination .badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

/* Video card */
.card--video {
  position: relative;
  display: flex;
  flex-direction: column;
}

.card--video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

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

.card--video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

@media (hover: hover) {
  .card--video:hover .card--video-play {
    background: var(--yt-red);
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.card--video-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card--video-duration {
  position: absolute;
  bottom: 70px;
  right: 12px;
  background: rgba(31, 27, 22, 0.9);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.card--video h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.card--video p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin: 0.5rem 0;
  flex: 1;
}

.card--video .btn {
  margin-top: auto;
  width: 100%;
  margin-top: 12px;
}

/* Newsletter card */
.card--newsletter {
  background: var(--sand);
  border: none;
  box-shadow: none;
}

.card--newsletter-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card--newsletter h3 {
  font-size: 1.1rem;
  margin: 0;
}

.card--newsletter p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin: 0;
}

.card--newsletter input {
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  width: 100%;
}

.card--newsletter input::placeholder {
  color: var(--ink-soft);
}

/* ========== SECTIONS & SPACING ========== */
.section {
  padding: 40px 0;
}

@media (min-width: 769px) {
  .section {
    padding: 60px 0;
  }
}

.section--alt {
  background: var(--sand);
}

.section--tight {
  padding: 30px 0;
}

/* ========== HEADER & NAV — MOBILE OPTIMIZED ========== */
header {
  background: rgba(250, 247, 242, 0.95);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

/* Mobile hamburger menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  z-index: var(--z-menu);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

/* Mobile nav menu */
.nav-menu {
  display: none;
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  overflow-y: auto;
  z-index: calc(var(--z-menu) - 1);
  padding-top: 16px;
  padding-bottom: 80px;
}

.nav-menu.active {
  display: block;
}

.nav-menu a {
  display: block;
  padding: 16px 24px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--sand);
}

.nav-menu a:active {
  background: var(--sand);
}

/* Desktop nav */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex !important;
    background: transparent;
    padding: 0;
    flex-direction: row;
    gap: 24px;
    bottom: auto;
    overflow: visible;
  }

  .nav-menu a {
    padding: 0;
    border: none;
    display: inline;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
  }

  @media (hover: hover) {
    .nav-menu a:hover {
      border-bottom-color: var(--accent);
    }
  }

  .logo {
    font-size: 1.3rem;
    margin-right: auto;
  }
}

/* ========== FOOTER — MOBILE OPTIMIZED ========== */
footer {
  background: var(--ink);
  color: #fff;
  padding: 40px 16px 30px;
  margin-top: 60px;
  text-align: center;
}

@media (min-width: 769px) {
  footer {
    padding: 40px 24px 30px;
  }
}

footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

footer a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

footer a:active {
  opacity: 0.8;
}

@media (hover: hover) {
  footer a:hover {
    border-bottom-color: var(--accent);
  }
}

footer p {
  margin-bottom: 0.5rem;
}

.footer-copy {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: var(--text-sm);
}

@media (min-width: 640px) {
  .footer-links {
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
  }
}

.footer-links a {
  text-decoration: none;
}

/* ========== STICKY MOBILE ACTION BAR ========== */
.sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  display: flex;
  gap: 12px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.sticky-action-bar .btn {
  flex: 1;
  min-height: 44px;
  font-size: 0.9rem;
  padding: 10px 12px;
  margin: 0;
}

body.has-sticky-bar {
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .sticky-action-bar {
    display: none;
  }

  body.has-sticky-bar {
    padding-bottom: 0;
  }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb li {
  list-style: none;
  margin: 0;
  display: inline;
}

.breadcrumb li::after {
  content: '·';
  margin-left: 8px;
  color: var(--ink-soft);
}

.breadcrumb li:last-child::after {
  content: '';
  margin-left: 0;
}

.breadcrumb a {
  color: var(--sea);
}

/* ========== TABLE OF CONTENTS (STICKY) ========== */
.toc {
  position: relative;
  padding: 20px;
  background: var(--sand);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 30px 0;
}

@media (min-width: 1024px) {
  .toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin: 0;
  }
}

.toc h3 {
  font-size: 0.9rem;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin: 0.5rem 0;
}

.toc a {
  color: var(--sea);
  font-size: var(--text-sm);
}

.toc a.active {
  font-weight: 600;
  color: var(--accent);
}

/* ========== ACCORDION (FAQ) ========== */
.accordion {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-trigger {
  width: 100%;
  padding: 18px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.accordion-trigger:active {
  background: var(--sand);
}

@media (hover: hover) {
  .accordion-trigger:hover {
    background: var(--sand);
  }
}

.accordion-trigger::after {
  content: '›';
  font-size: 1.5rem;
  transform: rotate(0deg);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.accordion-item.open .accordion-trigger::after {
  transform: rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
  max-height: 2000px;
}

.accordion-content p {
  padding: 0 16px 18px 16px;
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 40px 0;
  text-align: center;
}

@media (min-width: 769px) {
  .hero {
    padding: 60px 0;
  }
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

@media (min-width: 769px) {
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .hero-buttons .btn {
    flex: 0 1 auto;
  }
}

/* Split hero */
.hero--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  text-align: center;
}

@media (min-width: 769px) {
  .hero--split {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
  }
}

.hero--split-content h1 {
  text-align: center;
}

@media (min-width: 769px) {
  .hero--split-content h1 {
    text-align: left;
  }
}

.hero--split-content p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 769px) {
  .hero--split-content p {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ========== IMAGES & LAZY LOADING ========== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading='lazy'] {
  background: var(--sand);
}

/* Responsive images */
img[srcset] {
  width: 100%;
  height: auto;
}

/* ========== FORMS ========== */
input, textarea, select {
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
  font-family: inherit;
  line-height: 1.5;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(228, 87, 46, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== UTILITY ========== */
.text-center {
  text-align: center;
}

.text-soft {
  color: var(--ink-soft);
}

.text-small {
  font-size: var(--text-sm);
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.my-2 { margin-top: 2rem; margin-bottom: 2rem; }

.pt-2 { padding-top: 2rem; }
.pb-2 { padding-bottom: 2rem; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========== PRINT ========== */
@media print {
  header, footer, .sticky-action-bar, .toc, .nav-menu {
    display: none;
  }

  body {
    background: white;
  }
}
