:root {
  --ink: #102a32;
  --deep: #0a2f3a;
  --lake: #3f91a8;
  --mist: #eef4f2;
  --white: #ffffff;
  --line: rgba(16, 42, 50, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: "DM Sans", Arial, sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -4rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--deep);
  border-radius: 0.4rem;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background-image: url("assets/san-martin-hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(4, 23, 28, 0.3) 0%, rgba(4, 23, 28, 0.08) 34%, transparent 62%),
    linear-gradient(180deg, rgba(4, 23, 28, 0.62) 0%, rgba(4, 23, 28, 0.12) 42%, rgba(4, 23, 28, 0.66) 100%);
}

.navigation {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(92%, 86rem);
  margin: 0 auto;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 13rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.85rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.25vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  position: relative;
  display: block;
  padding: 0.65rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.menu a::after {
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.menu a:hover::after,
.menu a:focus-visible::after,
.menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 0.25rem 0;
  background: var(--white);
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 52%;
  left: 50%;
  width: min(90%, 68rem);
  text-align: center;
  transform: translate(-50%, -50%);
}

.section-label {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fff8e8;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 7.2vw, 6.9rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow: 0 3px 22px rgba(0, 20, 28, 0.72);
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.intro {
  max-width: 48rem;
  margin: 1.55rem auto 0;
  color: #d9f0f4;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.035em;
  text-shadow: 0 2px 14px rgba(0, 20, 28, 0.82);
}

.content-section {
  display: grid;
  grid-template-columns: minmax(3rem, 0.28fr) minmax(0, 1fr);
  gap: 2rem;
  min-height: 55vh;
  padding: clamp(5rem, 9vw, 8rem) max(5%, calc((100% - 74rem) / 2));
  background: #f8fbfa;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 0;
}

.content-section.alternate {
  background: #dcebed;
}

.places-section {
  min-height: auto;
}

.activities-section {
  min-height: auto;
}

.accommodation-section {
  min-height: auto;
}

.tips-section {
  min-height: auto;
}

.section-content {
  min-width: 0;
}

.section-number {
  margin: 0.35rem 0 0;
  color: var(--lake);
  font-weight: 700;
}

.section-label {
  color: var(--lake);
}

.content-section h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 48rem;
  margin: 1.35rem 0 0;
  color: #496068;
  font-size: 1.08rem;
  line-height: 1.75;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.place-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(16, 42, 50, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 1rem 2.6rem rgba(16, 42, 50, 0.1);
}

.place-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #dcebed;
}

.place-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.place-card:hover .place-image img {
  transform: scale(1.035);
}

.place-copy {
  padding: 1.5rem;
}

.place-copy h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.16;
}

.place-copy p {
  margin: 0.9rem 0 0;
  color: #496068;
  font-size: 1rem;
  line-height: 1.65;
}

.season-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(16, 42, 50, 0.18);
}

.season-heading h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
}

.season-tag {
  order: 2;
  margin: 0;
  padding: 0.45rem 0.8rem;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(16, 42, 50, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.winter-season-heading {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.winter-tag {
  color: #16475a;
  background: rgba(228, 244, 249, 0.84);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.5rem;
}

.accommodation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.activity-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 42, 50, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 1rem 2.6rem rgba(16, 42, 50, 0.08);
}

.activity-photo {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #b8d4d9;
}

.activity-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.activity-card:hover .activity-photo img {
  transform: scale(1.035);
}

.activity-copy {
  padding: 1.5rem;
}

.activity-copy h4 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.18;
}

.activity-copy p {
  margin: 0.9rem 0 0;
  color: #496068;
  font-size: 1rem;
  line-height: 1.65;
}

.tips-intro {
  color: #36545d;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.tip-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 42, 50, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 0.8rem 2rem rgba(16, 42, 50, 0.07);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.tip-card:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1rem 2.4rem rgba(16, 42, 50, 0.11);
  transform: translateY(-3px);
}

.tip-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  background: #edf7f5;
  border: 1px solid rgba(63, 145, 168, 0.2);
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
}

.tip-card h3 {
  margin: 0.15rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
}

.tip-card p {
  margin: 0.65rem 0 0;
  color: #496068;
  font-size: 0.98rem;
  line-height: 1.62;
}

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

@media (max-width: 820px) {
  .navigation {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-button {
    display: block;
  }

  .menu {
    display: none;
    flex: 1 0 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(6, 35, 43, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.75rem;
    backdrop-filter: blur(12px);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 0.65rem 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 5.4rem);
  }

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

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

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

  .place-card {
    display: grid;
    grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1.15fr);
  }

  .activity-card {
    display: grid;
    grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1.15fr);
  }

  .place-image {
    height: 100%;
    aspect-ratio: auto;
  }

  .activity-photo {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 540px) {
  .brand span:last-child {
    max-width: 8.5rem;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    min-height: 50vh;
  }

  .place-card {
    display: flex;
  }

  .activity-card {
    display: flex;
  }

  .place-image {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .activity-photo {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .tip-icon {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
