/* =========================================================
   Solar do Sal — main stylesheet
   ========================================================= */

:root {
  --color-primary: #C75A20;
  --color-primary-light: #D4896A;
  --color-primary-dark: #A8481A;
  --color-text: #2C2420;
  --color-text-muted: #8C7B6B;
  --color-bg: #FDF8F3;
  --color-bg-alt: #F5EDE5;
  --color-dark: #1A2A3A;
  --color-white: #ffffff;
  --color-success: #4a8a5a;
  --color-error: #c0392b;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 4px 20px rgba(44, 36, 32, 0.08);
  --shadow-md: 0 8px 30px rgba(44, 36, 32, 0.12);
  --shadow-lg: 0 12px 40px rgba(44, 36, 32, 0.18);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --max-width: 1280px;
  --section-py: 120px;
  --nav-h: 80px;
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --nav-h: 64px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--color-primary-dark); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: inline-block;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

.section { padding: var(--section-py) 0; position: relative; }
.section--alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all .3s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(199,90,32,.35); }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--light { background: #fff; color: var(--color-text); }
.btn--light:hover { background: var(--color-primary); color: #fff; }
.btn--ghost { color: var(--color-primary); padding: 8px 0; }
.btn--ghost::after {
  content: ''; display: block; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); margin-top: 4px;
}
.btn--ghost:hover::after { transform: scaleX(1); }

/* ---------- Scroll progress + nav ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--color-primary); z-index: 1000;
  transition: width .05s linear;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center;
  z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
  background: transparent;
}
.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex; align-items: center;
  height: 56px;
  z-index: 102;
}
.nav__logo img {
  height: 100%; width: auto;
  display: block;
  transition: opacity .25s var(--ease);
}
.nav__logo .logo-light { display: none; }
.nav__links {
  display: flex; gap: 2.25rem;
  align-items: center;
}
.nav__link {
  position: relative;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--color-primary);
  transition: width .35s var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 1.5rem; }

/* Language switcher */
.lang {
  display: flex; gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang button {
  color: #fff; padding: 4px 8px;
  border-radius: 3px;
  opacity: 0.7;
  transition: opacity .2s var(--ease), background .2s var(--ease);
  text-transform: uppercase;
}
.lang button:hover { opacity: 1; }
.lang button.active {
  opacity: 1;
  background: rgba(255,255,255,.18);
}

/* Nav scrolled state */
.nav.scrolled {
  background: rgba(253, 248, 243, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(44,36,32,.08);
  height: calc(var(--nav-h) - 12px);
}
.nav.scrolled .nav__logo .logo-dark { display: none; }
.nav.scrolled .nav__logo .logo-light { display: block; }
.nav.scrolled .nav__link { color: var(--color-text); }
.nav.scrolled .lang button { color: var(--color-text); }
.nav.scrolled .lang button.active { background: rgba(199,90,32,.12); color: var(--color-primary); }
.nav.scrolled .nav__burger span { background: var(--color-text); }

/* Hamburger */
.nav__burger {
  display: none;
  width: 28px; height: 22px;
  position: relative;
  z-index: 102;
}
.nav__burger span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 2px; }
.nav__burger span:nth-child(2) { top: 10px; }
.nav__burger span:nth-child(3) { top: 18px; }
.nav__burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 80vw);
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 2.5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -10px 0 40px rgba(44,36,32,.18);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__link {
    color: var(--color-text);
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }
  .nav__link::after { display: none; }
  .nav__right { gap: 0.75rem; }
  .lang button { color: #fff; }
  .nav.scrolled.menu-open .nav__burger span { background: var(--color-text); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero--short { min-height: 50vh; }
.hero--xshort { min-height: 40vh; }

.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.08);
  animation: heroZoom 12s ease-out forwards;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.0); }
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.65) 100%);
  z-index: -1;
}
.hero__content {
  position: relative;
  max-width: 880px;
  padding: 0 24px;
  margin-top: var(--nav-h);
}
.hero__eyebrow {
  display: inline-block;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}
.hero__title {
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.45s forwards;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.65s forwards;
}
.hero__cta {
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.85s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 13px;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.4s forwards;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translate(-50%, 0); opacity: 0; }
  30% { opacity: 1; }
  60% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ---------- About / two-col ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split--reverse > :first-child { order: 0; }
}
.split__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split__media--landscape { aspect-ratio: 5/4; }
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.split__media:hover img { transform: scale(1.04); }
.split__media::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 70%; height: 70%;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.4;
}
.split__text p { font-size: 1.05rem; color: var(--color-text); }
.split__text p + p { margin-top: 1rem; }

/* ---------- Room cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 2rem 1.75rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card__title { margin-bottom: 0.75rem; }
.card__desc { color: var(--color-text-muted); font-size: 0.95rem; flex: 1; }
.card__features {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.85rem; color: var(--color-text-muted);
}
.card__features li { display: inline-flex; align-items: center; gap: 0.4rem; }
.card__features svg { width: 16px; height: 16px; color: var(--color-primary); }
.card__link { margin-top: auto; align-self: flex-start; }

/* ---------- Feature icons grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.feature {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius-md);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.feature:hover { background: var(--color-bg-alt); transform: translateY(-4px); }
.feature__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  background: rgba(199,90,32,.08);
  border-radius: 50%;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin: 0; }

/* ---------- Inline mini features (for pool/spa block) ---------- */
.mini-features {
  display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
.mini-features li {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.mini-features svg { width: 22px; height: 22px; color: var(--color-primary); flex: 0 0 auto; }

/* ---------- Salinas / village section ---------- */
.banner {
  position: relative;
  min-height: 75vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.banner__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.banner::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.7) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.55) 100%);
  z-index: -1;
}
.banner__content {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 24px;
  position: relative;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.banner__content .eyebrow { color: #fff; opacity: 0.95; }
.banner__content h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; }
.banner__content p { color: rgba(255,255,255,.95); font-size: 1.1rem; max-width: 680px; margin: 0 auto 1.5rem; line-height: 1.75; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.stats__item { text-align: center; }
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.stats__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* Village mini-cards */
.village-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .village-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .village-cards { grid-template-columns: 1fr; } }
.vcard {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vcard h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.vcard p { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; }
.vcard__link {
  margin-top: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.4rem;
  align-self: flex-start;
}
.vcard__link svg { width: 14px; height: 14px; }
.vcard__link:hover { color: var(--color-primary-dark); }

/* Featured family card — full width on top */
.vcard--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff 0%, var(--color-bg-alt) 100%);
  border-left: 0;
  border-top: 4px solid var(--color-primary);
  padding: 2.25rem 2rem;
  position: relative;
}
.vcard--featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px; left: 2rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
}
.vcard--featured h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.vcard--featured p { font-size: 1rem; }

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
.review {
  background: #fff;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review::before {
  content: '"';
  position: absolute;
  top: -10px; left: 18px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.18;
  font-weight: 700;
}
.review__stars {
  display: flex; gap: 2px;
  color: #f4b942;
  margin-bottom: 1rem;
}
.review__stars svg { width: 18px; height: 18px; }
.review__quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  flex: 1;
  font-style: italic;
}
.review__author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.review__source {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.review__source svg { width: 14px; height: 14px; }
.reviews-link {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.95rem;
}
.reviews-link a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(199,90,32,.3);
  padding-bottom: 2px;
  font-weight: 500;
}
.reviews-link a:hover { border-color: var(--color-primary); }

/* Seasonal events */
.seasonal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (max-width: 700px) { .seasonal { grid-template-columns: 1fr; } }
.seasonal__item {
  display: flex; gap: 1.25rem;
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}
.seasonal__month {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center; line-height: 1.1;
}
.seasonal__body h5 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  margin: 0 0 0.25rem;
}
.seasonal__body p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

/* Distances grid */
.distances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .distances { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .distances { grid-template-columns: 1fr; } }
.distance {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  gap: 0.4rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.distance:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.distance::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--color-primary);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.distance:hover::before { transform: scaleY(1); }
.distance__name {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--color-text);
}
.distance__dist {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 600;
}
.distance__desc { font-size: 0.88rem; color: var(--color-text-muted); margin: 0; line-height: 1.5; }

/* External link inline */
.ext-links {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-size: 0.9rem;
}
.ext-links a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(199,90,32,.3);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.ext-links a:hover { border-color: var(--color-primary); }
.ext-links svg { width: 14px; height: 14px; }

/* Wider feature image */
.feature-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}
.feature-img img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  display: block;
  transition: transform 1.4s var(--ease);
}
.feature-img:hover img { transform: scale(1.03); }
@media (max-width: 700px) {
  .feature-img img { aspect-ratio: 4/3; }
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--color-primary);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 1.5rem; }
.cta-strip p { color: rgba(255,255,255,.85); max-width: 540px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.7);
  padding: 5rem 0 2rem;
  font-size: 0.92rem;
}
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.footer__logo { height: 64px; width: auto; margin-bottom: 1.25rem; }
.footer h5 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 500;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}
.footer__links li { margin-bottom: 0.6rem; }
.footer__contact li { display: flex; gap: 0.7rem; margin-bottom: 0.7rem; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--color-primary-light); }
.footer__social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  transition: all .3s var(--ease);
}
.footer__social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem;
}

/* ---------- Back-to-top ---------- */
.to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px) scale(.9);
  pointer-events: none;
  transition: all .3s var(--ease);
  z-index: 50;
  box-shadow: 0 6px 20px rgba(199,90,32,.35);
}
.to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { transform: translateY(-3px) scale(1.08); background: var(--color-primary-dark); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 2rem; max-width: 560px; }
.field {
  position: relative;
}
.field input, .field textarea {
  width: 100%;
  padding: 1.2rem 0 0.6rem;
  font: inherit;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 2px solid #d8cfc4;
  outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; }
.field label {
  position: absolute;
  left: 0; top: 1.2rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: transform .25s var(--ease), color .25s var(--ease), font-size .25s var(--ease);
  transform-origin: 0 0;
}
.field input:focus, .field textarea:focus {
  border-bottom-color: var(--color-primary);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.1rem) scale(0.78);
  color: var(--color-primary);
}
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--color-error); }
.field.invalid { animation: shake .4s var(--ease); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.field__error {
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: 0.4rem;
  display: none;
}
.field.invalid .field__error { display: block; }

.checkbox {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-size: 0.85rem; color: var(--color-text-muted);
  cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--color-primary); }

.form__success, .form__error {
  display: none;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.form__success { background: rgba(74,138,90,.1); color: var(--color-success); border: 1px solid rgba(74,138,90,.3); }
.form__error { background: rgba(192,57,43,.08); color: var(--color-error); border: 1px solid rgba(192,57,43,.3); }
.form.sent .form__success { display: block; }
.form.sent .form__body { display: none; }
.form.errored .form__error { display: block; }

/* ---------- Contact details ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }
.contact-info { font-size: 0.98rem; }
.contact-info h3 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.contact-info h3:first-of-type { margin-top: 0; }
.contact-info ul li {
  display: flex; gap: 0.85rem; margin-bottom: 1rem;
  align-items: flex-start;
}
.contact-info svg { width: 22px; height: 22px; color: var(--color-primary); flex: 0 0 auto; margin-top: 2px; }
.contact-info a { color: var(--color-text); }
.contact-info a:hover { color: var(--color-primary); }

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/7;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Gallery ---------- */
.filter-tabs {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-tabs button {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color .25s var(--ease);
}
.filter-tabs button::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  height: 2px; width: 100%;
  background: var(--color-primary);
  transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--ease);
}
.filter-tabs button.active, .filter-tabs button:hover { color: var(--color-primary); }
.filter-tabs button.active::after { transform: scaleX(1); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 220px;
  gap: 12px;
  grid-auto-flow: dense;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-bg-alt);
}
.gallery__item.tall { grid-row: span 2; }
.gallery__item.wide { grid-column: span 2; }
@media (max-width: 600px) {
  .gallery__item.wide { grid-column: span 1; }
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45) 100%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item.hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox__img {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity .3s var(--ease);
}
.lightbox__btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn--prev { left: 24px; }
.lightbox__btn--next { right: 24px; }
.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__counter {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}
.carousel__track {
  display: flex;
  height: 100%;
  transition: transform .6s var(--ease);
}
.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}
.carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.carousel__btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.85);
  color: var(--color-text);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s var(--ease), background .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.carousel:hover .carousel__btn { opacity: 1; }
.carousel__btn:hover { background: #fff; }
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }
.carousel__dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.carousel__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .25s var(--ease), width .25s var(--ease);
}
.carousel__dots button.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .carousel__btn { opacity: 1; width: 36px; height: 36px; }
}

/* ---------- Skip link / a11y ---------- */
.skip {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 1rem 1.5rem;
  z-index: 1000;
  transition: top .25s var(--ease);
}
.skip:focus { top: 0; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* ---------- Body scroll lock ---------- */
html.menu-locked, html.lightbox-open { overflow: hidden; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 768px) {
  /* Hero — keep 100vh but trim CTA padding so it fits with subtitle */
  .hero__content { padding: 0 20px; }
  .hero__subtitle { margin-bottom: 2rem; }

  /* Lang switcher — tighter, but still 44px+ tap target */
  .lang { gap: 0.2rem; }
  .lang button { padding: 10px 8px; font-size: 0.78rem; min-height: 40px; }

  /* Banner (Salinas) — tighter padding, smaller stats spacing */
  .banner { min-height: auto; }
  .banner__content { padding: 4rem 20px; }
  .banner__content p { font-size: 1rem; }
  .stats {
    margin-top: 2.5rem;
    padding-top: 2rem;
    gap: 1.5rem 1rem;
  }
  .stats__num { font-size: 2rem; }
  .stats__label { font-size: 0.7rem; letter-spacing: 0.12em; }

  /* Review cards — quieter quote mark */
  .review { padding: 1.75rem 1.5rem; }
  .review::before { font-size: 4rem; top: -4px; left: 14px; }
  .review__quote { font-size: 1rem; }

  /* Featured village card — pull badge in to align with reduced container padding */
  .vcard--featured { padding: 2rem 1.5rem; margin-top: 0.5rem; }
  .vcard--featured::before { left: 1.5rem; }
  .vcard--featured h4 { font-size: 1.3rem; }

  /* Distance cards — tighter gap */
  .distances { gap: 0.75rem; }
  .distance { padding: 1.25rem; }

  /* Section heads — less breathing on narrow screens */
  .section-head { margin-bottom: 2.5rem; }

  /* Split decoration ring — hide on mobile (clipped, no visual benefit) */
  .split__media::after { display: none; }

  /* Back-to-top — sit closer to bottom-right safe area */
  .to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
  .to-top svg { width: 20px; height: 20px; }

  /* Lightbox controls — smaller buttons + closer to edges */
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__btn--prev { left: 12px; }
  .lightbox__btn--next { right: 12px; }
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }

  /* Filter tabs — wrap centered with breathing space */
  .filter-tabs { gap: 0.5rem 1.25rem; margin-bottom: 2rem; }
  .filter-tabs button { font-size: 0.85rem; }

  /* Footer logo — slightly smaller on mobile */
  .footer__logo { height: 56px; }
  .footer { padding: 4rem 0 1.5rem; }
  .footer__bottom { margin-top: 3rem; flex-direction: column; align-items: flex-start; }

  /* Section — alternating banner / strip — give CTA strip a touch more vertical breathing */
  .cta-strip { padding: 4rem 0; }
}

/* Very small screens — force single-row spacing where needed */
@media (max-width: 380px) {
  .nav__inner { gap: 0.75rem; padding: 0 16px; }
  .lang button { padding: 8px 6px; font-size: 0.72rem; }
  .hero__title { font-size: 2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Landscape phones — let hero shrink so users can see content under it */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 560px; }
  .hero--short { min-height: 360px; }
  .hero--xshort { min-height: 280px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .hero__bg { animation: none; transform: scale(1); }
}
