/* Fam Tours — Design System */
:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-accent: #e0568a;
  --color-accent-dark: #c23d72;
  --color-accent-light: #fce8f0;
  --color-border: #e8e4df;
  --color-hero: #2c3e35;

  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  --container: 1120px;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.logo-mark {
  color: var(--color-accent);
}

.logo-text {
  color: var(--color-text);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-accent);
}

/* Hero */
.hero {
  background: var(--color-hero);
  color: #fff;
  padding: 5rem 0 4.5rem;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
  margin-bottom: 0;
}

/* Section labels */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

/* Spotlight */
.spotlight {
  padding: 4rem 0;
  margin-top: -2rem;
}

.spotlight-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.spotlight-link {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transition: transform 0.25s, box-shadow 0.25s;
}

.spotlight-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

.spotlight-image {
  position: relative;
  min-height: 320px;
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.spotlight-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4em 0.85em;
  border-radius: 999px;
}

.spotlight-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-body h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}

.spotlight-tagline {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  flex: 1;
}

.spotlight-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Tour meta */
.tour-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* Tour grid */
.tours {
  padding: 4rem 0;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.tour-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.tour-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.tour-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.tour-card:hover .tour-card-image img {
  transform: scale(1.04);
}

.tour-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tour-card-tagline {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-secondary {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.btn-block {
  width: 100%;
}

/* About */
.about {
  padding: 5rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.about-content > p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.about-features {
  margin-top: 1.5rem;
}

.about-features li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.about-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.about-team {
  margin: 0;
}

.about-team-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-team-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-team-image--capy,
.about-team-image--capy img {
  cursor: url('../images/capy-cursor.png') 16 16, pointer;
}

.about-team-image--bluecuracao,
.about-team-image--bluecuracao img {
  cursor: url('../images/bluecuracao-cursor.png') 16 16, pointer;
}

.about-team-tagline {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 2.5rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(44, 62, 53, 0.92) 0%, rgba(44, 62, 53, 0.55) 55%, transparent 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.04em;
}

.about-team-sep {
  margin: 0 0.35em;
  font-style: normal;
  opacity: 0.75;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.stat {
  background: var(--color-bg);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}


/* Contact */
.contact {
  padding: 5rem 0;
}

.contact-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.contact-inner p {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.logo-footer {
  font-size: 1.15rem;
}

/* Tour detail page */
.back-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 2rem 0 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--color-accent);
}

.detail-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 280px;
  margin-bottom: 3rem;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: #fff;
}

.detail-hero-overlay .tour-meta {
  color: rgba(255, 255, 255, 0.75);
}

.detail-hero-overlay h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.detail-tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 55ch;
  margin: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.detail-section p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.highlights-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--color-text-muted);
}

.highlights-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.itinerary {
  border-left: 2px solid var(--color-border);
  margin-left: 0.5rem;
}

.itinerary-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 0 0 1.75rem 1.5rem;
  position: relative;
}

.itinerary-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35em;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 2px solid var(--color-bg);
}

.itinerary-day {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.itinerary-item h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.itinerary-item p {
  font-size: 0.9375rem;
  margin: 0;
}

/* Booking sidebar */
.booking-card {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.booking-meta {
  margin: 0 0 1.5rem;
}

.booking-meta div {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.booking-meta dt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.booking-meta dd {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.booking-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 1rem 0 0;
}

.tours-related {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.tours-related h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.not-found {
  text-align: center;
  padding: 4rem 0;
}

.not-found h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.not-found p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .spotlight-link {
    grid-template-columns: 1fr;
  }

  .spotlight-image {
    min-height: 240px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .booking-card {
    position: static;
  }

  .detail-hero {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 1.25rem;
  }

  .nav a {
    font-size: 0.875rem;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .spotlight-body {
    padding: 1.75rem;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .itinerary-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
