:root {
  --bg: #fbfdfb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #3a3a3a;
  --muted: #667074;
  --primary: #ffd27f;
  --primary-dark: #f2c160;
  --secondary: #eaf4ff;
  --secondary-strong: #d7eafb;
  --sage: #dcefe8;
  --sage-strong: #cfe6dd;
  --accent: #8ca8c5;
  --border: rgba(58, 58, 58, 0.08);
  --shadow: 0 16px 38px rgba(96, 130, 158, 0.08);
  --radius: 22px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(220, 239, 232, 0.75), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(234, 244, 255, 0.95), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #f6fbf8 100%);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--secondary);
  color: #fff;
  border-radius: 0.75rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 860px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(251, 253, 251, 0.9);
  border-bottom: 1px solid rgba(58, 58, 58, 0.06);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-nav a,
.text-link,
.site-footer a {
  color: #6e8daf;
  text-decoration: none;
}

.top-nav .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--primary);
  color: #4a4133;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(255, 210, 127, 0.24);
}

.top-nav a:hover,
.text-link:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.top-nav .header-cta:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.hero,
.section,
.quick-answer {
  padding: 5.5rem 0;
}

.hero {
  padding-top: 5.75rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-copy,
.hero-card,
.answer-box,
.comparison-card,
.info-card,
.tour-card,
.widget-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card {
  border-radius: 32px;
  padding: 2rem;
}

.hero-card-image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 540px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(24, 28, 34, 0.1) 0%, rgba(24, 28, 34, 0.72) 72%, rgba(24, 28, 34, 0.88) 100%),
    url("./images/sagrada-hero.webp") center/cover no-repeat;
}

.hero-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
  pointer-events: none;
}

.hero-card-image > * {
  position: relative;
  z-index: 1;
}

.hero-card-image .card-kicker,
.hero-card-image .price-line,
.hero-card-image .price-line span {
  color: rgba(255, 255, 255, 0.92);
}

.hero-card-image h2 {
  max-width: 12ch;
  margin-bottom: 1rem;
}

.hero-card-image .button-primary {
  width: 100%;
  margin-top: 0.5rem;
}

.hero-card-summary {
  max-width: 28ch;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow,
.card-kicker,
.comparison-tag {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f9f99;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.14;
}

h1 {
  font-size: clamp(2.3rem, 7vw, 4.7rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

p {
  margin: 0 0 1rem;
}

.hero-intro {
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions,
.tour-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: #4a4133;
  box-shadow: 0 12px 28px rgba(255, 210, 127, 0.32);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: rgba(140, 168, 197, 0.18);
  background: var(--secondary);
  color: #5f84ae;
}

.button-full {
  width: 100%;
}

.hero-points,
.check-list,
.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-points li,
.check-list li,
.bullet-list li {
  margin-bottom: 0.6rem;
}

.price-line,
.tour-meta {
  color: var(--muted);
  font-weight: 600;
}

.tour-price {
  margin-bottom: 0.25rem;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.tour-label {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.price-line span {
  margin-left: 0.5rem;
}

.quick-answer {
  padding-top: 0;
}

#worth-it.section {
  padding-top: 2.75rem;
}

.answer-box {
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(220, 239, 232, 0.8);
}

.section-alt {
  background: linear-gradient(180deg, rgba(234, 244, 255, 0.78), rgba(220, 239, 232, 0.55));
}

.two-column-copy,
.comparison-grid,
.info-grid,
.facts-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x proximity;
}

.gallery-card {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  min-height: 260px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.comparison-card,
.info-card,
.tour-card,
.widget-card {
  border-radius: 28px;
  padding: 1.65rem;
}

.tour-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.table-wrap {
  margin-top: 1.75rem;
  overflow-x: auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--surface-strong);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
}

.section-intro {
  max-width: 72ch;
}

.tour-grid,
.availability-stack,
.faq-list {
  display: grid;
  gap: 1rem;
}

.facts-grid {
  margin-top: 1.5rem;
}

.tour-widget-inline {
  margin-top: 1.25rem;
}

.tour-widget-inline,
.tour-actions {
  margin-top: auto;
}

.tour-card.featured {
  border: 1px solid rgba(255, 210, 127, 0.6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 231, 0.92));
}

.tour-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.tour-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 210, 127, 0.34);
  color: #7b6744;
  font-size: 0.85rem;
  font-weight: 700;
}

.fine-print {
  color: var(--muted);
  font-size: 0.95rem;
}

.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.faq-list details {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  padding: 1.15rem 1.25rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding-right: 1.5rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] {
  box-shadow: var(--shadow);
}

.faq-list details p {
  margin-top: 0.85rem;
}

.site-footer {
  padding: 4rem 0 6rem;
  border-top: 1px solid rgba(58, 58, 58, 0.06);
}

.footer-grid {
  align-items: start;
}

.footer-grid nav {
  display: grid;
  gap: 0.75rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.sticky-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 15;
  display: inline-flex;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #4a4133;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(255, 210, 127, 0.34);
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .gallery-scroll {
    grid-auto-columns: 42%;
  }

  .two-column-copy,
  .comparison-grid,
  .info-grid,
  .facts-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-grid {
    align-items: stretch;
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: start;
  }

  .tour-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-scroll {
    grid-auto-columns: 29%;
  }

  .sticky-cta {
    display: none;
  }
}
