:root {
  color-scheme: light;
  --navy-950: #061f32;
  --navy-900: #082f4a;
  --navy-800: #0b3c5b;
  --navy-700: #145171;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --gold: #c99c45;
  --gold-light: #f0d08d;
  --green: #4e9c69;
  --burgundy: #a64d55;
  --ink: #142533;
  --muted: #64727d;
  --line: rgba(8, 47, 74, 0.14);
  --shadow: 0 20px 50px rgba(6, 31, 50, 0.09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
select,
a {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: white;
  color: var(--navy-950);
}

.skip-link:focus {
  transform: none;
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 35%, rgba(201, 156, 69, 0.2), transparent 23%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 56%, #0c4262);
  color: white;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(240, 208, 141, 0.33);
  border-radius: 50%;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -115px;
  top: 95px;
}

.hero::after {
  width: 360px;
  height: 360px;
  right: -35px;
  top: 175px;
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gold);
  color: rgba(255, 255, 255, 0.87);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 106px 96px;
}

.eyebrow,
.kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--gold-light);
}

.eyebrow span {
  width: 42px;
  height: 1px;
  background: var(--gold-light);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 9vw, 126px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.78;
}

.hero-title-main,
.hero-title-brand,
.hero h1 em {
  display: block;
}

.hero-title-brand {
  margin-top: 0.38em;
  color: rgba(255, 255, 255, 0.92);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.34em;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero h1 em {
  margin-top: 0.12em;
  color: var(--gold-light);
  font-weight: 400;
}

.hero-content > p {
  max-width: 620px;
  margin: 44px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button-primary,
.button-gold {
  background: var(--gold-light);
  color: var(--navy-950);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button-dark {
  background: var(--navy-900);
  color: white;
}

.country-note {
  display: flex;
  gap: 26px;
  margin-top: 42px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-note span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.flag {
  display: inline-block;
  width: 25px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.flag-fr {
  background: linear-gradient(90deg, #17448b 0 33.33%, #fff 33.33% 66.66%, #df2838 66.66%);
}

.flag-it {
  background: linear-gradient(90deg, #128653 0 33.33%, #fff 33.33% 66.66%, #d52b37 66.66%);
}

.hero-ornament {
  position: absolute;
  z-index: 1;
  right: -36px;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  color: rgba(255, 255, 255, 0.045);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(70px, 8vw, 118px);
  line-height: 0.66;
}

.calendar-section {
  padding: 98px 0 110px;
  background:
    linear-gradient(rgba(8, 47, 74, 0.025) 1px, transparent 1px),
    var(--cream);
  background-size: 100% 44px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.contact-section h2 {
  margin: 7px 0 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.result-count {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
}

.filters {
  position: sticky;
  z-index: 10;
  top: 12px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin: 36px 0 54px;
  padding: 18px;
  border: 1px solid rgba(8, 47, 74, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.93);
  box-shadow: 0 14px 40px rgba(6, 31, 50, 0.08);
  backdrop-filter: blur(12px);
}

.country-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.country-filter legend,
.select-field > span {
  display: block;
  margin: 0 0 7px 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f2efe7;
}

.segment {
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.segment.is-active {
  background: white;
  color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(6, 31, 50, 0.08);
}

.select-field select {
  width: 100%;
  min-height: 54px;
  appearance: none;
  padding: 0 42px 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background:
    linear-gradient(45deg, transparent 50%, var(--navy-700) 50%) calc(100% - 19px) 23px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--navy-700) 50%, transparent 50%) calc(100% - 13px) 23px / 6px 6px no-repeat,
    white;
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 700;
}

.clear-filters {
  min-height: 54px;
  padding: 0 5px;
  border: 0;
  border-bottom: 1px solid var(--navy-900);
  background: transparent;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.segment:focus-visible,
.select-field select:focus-visible,
.clear-filters:focus-visible,
.button:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible,
.text-link:focus-visible {
  outline: 3px solid #f2c25d;
  outline-offset: 3px;
}

.calendar-groups {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.month-group {
  scroll-margin-top: 130px;
}

.month-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.month-heading h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.month-heading span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.country-group + .country-group {
  margin-top: 38px;
}

.country-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.program-card {
  position: relative;
  display: flex;
  min-height: 255px;
  flex-direction: column;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(8, 47, 74, 0.09);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.program-card::after {
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(201, 156, 69, 0.26);
  border-radius: 50%;
  content: "";
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(6, 31, 50, 0.13);
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
}

.status-available {
  background: rgba(78, 156, 105, 0.12);
  color: #327148;
}

.status-available::before {
  background: var(--green);
}

.status-last {
  background: rgba(201, 156, 69, 0.16);
  color: #866219;
}

.status-last::before {
  background: var(--gold);
}

.status-one {
  background: rgba(166, 77, 85, 0.11);
  color: #913b44;
}

.status-one::before {
  background: var(--burgundy);
}

.status-coming {
  background: rgba(20, 81, 113, 0.1);
  color: var(--navy-700);
}

.status-coming::before {
  background: var(--navy-700);
}

.card-month {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-card h4 {
  position: relative;
  z-index: 1;
  margin: 29px 0 8px;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.dates {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--navy-700);
  font-size: 14px;
  font-weight: 700;
}

.card-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.whatsapp-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.whatsapp-link:hover {
  color: var(--navy-700);
}

.card-actions-portfolio {
  gap: 10px;
}

.portfolio-link,
.card-whatsapp-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.portfolio-link {
  flex: 1;
  gap: 7px;
  padding: 0 14px;
  background: var(--navy-900);
  color: white;
}

.portfolio-link:hover {
  background: var(--navy-700);
}

.card-whatsapp-link {
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--navy-900);
}

.card-whatsapp-link:hover {
  border-color: var(--gold);
}

.arrow {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: white;
}

.empty-state {
  padding: 60px 20px;
  border: 1px dashed rgba(8, 47, 74, 0.25);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state > span {
  color: var(--gold);
  font-size: 32px;
}

.empty-state h3 {
  margin: 13px 0 7px;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--muted);
}

.contact-section {
  padding: 86px 0 26px;
  background: var(--navy-950);
  color: white;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 80px;
}

.kicker-light {
  color: var(--gold-light);
}

.contact-section h2 {
  max-width: 730px;
  color: white;
}

.contact-section p {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.text-link {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  text-decoration: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-block: 90px 80px;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .country-filter {
    grid-column: 1 / -1;
  }

  .clear-filters {
    justify-self: start;
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 670px;
  }

  .nav {
    min-height: 78px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .nav-link {
    font-size: 12px;
  }

  .hero-content {
    padding-block: 82px 76px;
  }

  .hero h1 {
    font-size: clamp(66px, 23vw, 92px);
    line-height: 0.84;
  }

  .hero-content > p {
    margin-top: 36px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-ornament {
    display: none;
  }

  .calendar-section {
    padding-block: 72px 82px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .filters {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    margin: 30px 0 44px;
    padding: 14px;
  }

  .country-filter {
    grid-column: auto;
  }

  .clear-filters {
    min-height: 44px;
  }

  .calendar-groups {
    gap: 52px;
  }

  .month-heading h3 {
    font-size: 30px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 238px;
  }

  .contact-section {
    padding-top: 70px;
  }

  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
