:root {
  color-scheme: light;
  --ink: #1f2c28;
  --ink-soft: #53615a;
  --paper: #fbf8ef;
  --paper-strong: #fffdf8;
  --mist: #e5ece5;
  --forest: #173d33;
  --forest-light: #245849;
  --gold: #c28b39;
  --gold-deep: #926421;
  --rose: #8b4d4d;
  --blue: #4d6c80;
  --line: rgba(31, 44, 40, 0.14);
  --shadow: 0 22px 60px rgba(18, 32, 28, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: rgba(194, 139, 57, 0.28);
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fffdf8;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 239, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 32px rgba(24, 38, 34, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.12);
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.95rem;
  color: currentColor;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.header-action,
.button,
.search-button,
.text-button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.header-action {
  padding: 10px 15px;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.12);
}

.site-header.is-scrolled .header-action {
  border-color: var(--line);
  background: var(--forest);
  color: #fffdf8;
}

.hero {
  position: relative;
  min-height: 76svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffdf8;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/pilgrimage-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 32, 28, 0.78) 0%, rgba(18, 32, 28, 0.56) 42%, rgba(18, 32, 28, 0.18) 100%),
    linear-gradient(0deg, rgba(18, 32, 28, 0.68) 0%, rgba(18, 32, 28, 0.08) 44%, rgba(18, 32, 28, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 122px 0 58px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4c46b;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  font-weight: 700;
}

h1 {
  font-size: 6.7rem;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-title {
  max-width: 820px;
  font-size: 5.15rem;
}

h2 {
  font-size: 3.65rem;
}

h3 {
  font-size: 1.48rem;
}

.hero-copy {
  max-width: 650px;
  margin: 18px 0 30px;
  font-size: 1.25rem;
  line-height: 1.55;
  color: rgba(255, 253, 248, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-width: 180px;
  padding: 14px 19px;
  border-radius: 999px;
  font-weight: 800;
}

.button-primary {
  background: #fffdf8;
  color: var(--forest);
}

.button-secondary {
  border: 1px solid rgba(255, 253, 248, 0.55);
  background: rgba(255, 253, 248, 0.12);
  color: #fffdf8;
}

.booking-band {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: clamp(-34px, -3vw, -20px) auto 0;
  padding: 16px;
  background: var(--paper-strong);
  border: 1px solid rgba(31, 44, 40, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.booking-form {
  display: grid;
  grid-template-columns: 1.3fr 1.15fr 1fr 0.72fr auto;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
}

label span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
  font-weight: 650;
}

textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(194, 139, 57, 0.14);
}

.search-button {
  border-radius: var(--radius);
  padding: 0 19px;
  background: var(--forest);
  color: #fffdf8;
  font-weight: 850;
}

.search-button:hover,
.button-primary:hover {
  background: var(--forest-light);
  color: #fffdf8;
}

.booking-result {
  margin: 12px 4px 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  color: var(--forest);
}

.intro-copy {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trip-card {
  display: grid;
  grid-template-rows: minmax(210px, 0.86fr) 1fr;
  min-height: 545px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 14px 44px rgba(24, 38, 34, 0.1);
}

.trip-card.is-hidden {
  display: none;
}

.trip-image {
  min-height: 210px;
  background-size: cover;
  background-position: center;
}

.trip-image.assisi {
  background-image:
    linear-gradient(rgba(23, 61, 51, 0.02), rgba(23, 61, 51, 0.22)),
    url("assets/pilgrimage-hero.png");
  background-position: 60% 48%;
}

.trip-image.lourdes {
  background-image:
    linear-gradient(rgba(23, 61, 51, 0.04), rgba(23, 61, 51, 0.18)),
    url("assets/lourdes-retreat.png");
  background-position: center 48%;
}

.trip-image.camino {
  background-image:
    linear-gradient(rgba(23, 61, 51, 0.02), rgba(23, 61, 51, 0.12)),
    url("assets/camino-parish-week.png");
  background-position: center 54%;
}

.trip-body {
  display: grid;
  gap: 15px;
  padding: 24px;
}

.trip-kicker {
  margin: 0;
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trip-body p:not(.trip-kicker) {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.trip-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: var(--mist);
  font-size: 0.83rem;
  font-weight: 800;
}

.text-button {
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 0;
  background: transparent;
  color: var(--forest);
  font-weight: 900;
}

.retreats-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.retreat-list {
  display: grid;
  gap: 14px;
}

.retreat-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.retreat-item:last-child {
  border-bottom: 1px solid var(--line);
}

.item-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #fffdf8;
  color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--line);
}

.retreat-item p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.calendar-section {
  width: 100%;
  max-width: none;
  background: var(--forest);
  color: #fffdf8;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
}

.calendar-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.calendar-panel .section-heading h2 {
  color: #fffdf8;
}

.departure-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 253, 248, 0.22);
}

.departure-list article {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.22);
}

.departure-list time {
  color: #f4c46b;
  font-weight: 850;
}

.departure-list h3 {
  font-size: 1.36rem;
}

.departure-list p {
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.72);
  line-height: 1.55;
}

.host-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.host-grid > div {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.host-grid strong {
  color: var(--forest);
  font-size: 1.08rem;
}

.host-grid p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.site-footer .brand {
  color: var(--forest);
}

.site-footer p {
  margin: 0;
}

.site-footer a:last-child {
  color: var(--forest);
  font-weight: 800;
}

.booking-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.booking-dialog::backdrop {
  background: rgba(18, 32, 28, 0.62);
  backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--paper-strong);
}

.dialog-card h2 {
  font-size: 2.35rem;
  color: var(--forest);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 920px) {
  h1 {
    font-size: 5.35rem;
  }

  .hero-title {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 3rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .booking-form,
  .intro-section,
  .retreats-section,
  .calendar-panel {
    grid-template-columns: 1fr;
  }

  .trip-grid,
  .host-grid {
    grid-template-columns: 1fr;
  }

  .trip-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
    gap: 12px;
  }

  .header-action {
    width: 46px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .header-action svg {
    color: currentColor;
  }

  .site-header:not(.is-scrolled) .header-action svg {
    color: #fffdf8;
  }

  .site-header.is-scrolled .header-action svg {
    color: #fffdf8;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand {
    font-size: 1.12rem;
  }

  .hero {
    min-height: 77svh;
  }

  .hero-content {
    width: min(100% - 32px, 760px);
    padding-top: 100px;
    padding-bottom: 38px;
  }

  h1 {
    font-size: 3.85rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.38rem;
  }

  h3 {
    font-size: 1.34rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .section {
    padding: 68px 0;
  }

  .button,
  .search-button {
    width: 100%;
  }

  .booking-band {
    margin-top: -18px;
  }

  .departure-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    display: grid;
    justify-items: start;
  }
}
