/* ==========================================================================
   La Mansardina — design system v2
   Full-bleed photography, warm neutrals, deep pine accent.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Unbounded:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #17201d;
  --ink-soft: #5c655f;
  --paper: #ffffff;
  --paper-soft: #f5f2ea;
  --paper-line: rgba(23, 32, 29, 0.09);
  --pine: #0e4f47;
  --pine-deep: #0a3a34;
  --gold: #c68a2e;
  --clay: #b1543a;
  --shadow-sm: 0 6px 18px -10px rgba(23, 32, 29, 0.28);
  --shadow-md: 0 18px 45px -18px rgba(23, 32, 29, 0.35);
  --radius: 16px;
  --radius-sm: 10px;

  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 72rem;
  --gap: clamp(1.25rem, 3vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 46ch; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.nav-on-hero {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.nav-on-hero.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--paper-line);
}
.site-header.nav-on-hero .wordmark,
.site-header.nav-on-hero .nav-links a { color: #fff; }
.site-header.nav-on-hero.is-scrolled .wordmark,
.site-header.nav-on-hero.is-scrolled .nav-links a { color: var(--ink); }
.site-header.nav-on-hero .nav-cta { background: #fff; color: var(--pine-deep) !important; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.wordmark span { color: var(--clay); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--pine-deep) !important;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: #b57a24; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: inherit;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-header.nav-on-hero .nav-toggle { color: #fff; border-color: rgba(255,255,255,0.5); }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 22rem; padding-bottom: 1rem; }
  .nav-links li { width: 100%; padding: 0.65rem 0; border-bottom: 1px solid var(--paper-line); }
  .nav-links li:last-child { border-bottom: none; padding-top: 0.9rem; }
  .nav-links a { color: var(--ink) !important; }
  .nav-cta { display: inline-block; }
}

/* ---------- full-bleed hero (home) ---------- */

.hero-full {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,20,18,0.05) 0%, rgba(14,20,18,0.15) 45%, rgba(11,16,15,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.25rem clamp(1.5rem, 5vw, 3.5rem);
  margin: 8rem auto clamp(2.5rem, 6vw, 4.5rem);
  max-width: 40rem;
  text-align: center;
  background: rgba(9, 14, 13, 0.62);
  backdrop-filter: blur(3px);
  border-radius: 20px;
}
.hero-eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.9rem;
  color: rgba(255,255,255,0.85);
}
.hero-full h1 {
  color: #fff;
  font-family: 'Unbounded', var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.hero-full p.lede { color: rgba(255,255,255,0.88); margin-left: auto; margin-right: auto; }

.hero-cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.6rem;
}
.hero-cta-row .btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
}

/* ---------- home photo showcase ---------- */

.home-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.home-gallery .photo-frame { aspect-ratio: auto; height: 100%; }
.home-gallery-feature { grid-column: span 2; grid-row: span 2; }
@media (max-width: 780px) {
  .home-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
}
@media (max-width: 480px) {
  .home-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .home-gallery .photo-frame { aspect-ratio: 4 / 3; height: auto; }
  .home-gallery-feature { grid-column: span 1; grid-row: span 1; }
}

.hero-facts {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: 2.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-fact {
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}
.hero-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.hero-fact span { color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- simple page hero (inner pages) ---------- */

.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--paper-soft);
}
.hero .hero-eyebrow { color: var(--pine); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-grid .hero-cta-row,
.hero-grid .hero-facts { justify-content: flex-start; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-solid { background: var(--pine-deep); color: #fff; }
.btn-solid:hover { background: var(--pine); transform: translateY(-2px); }
.btn-outline { border-color: currentColor; }
.btn-outline:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ---------- photo frames ---------- */

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
}
.photo-frame.wide { aspect-ratio: 16 / 10; }
.photo-frame.square { aspect-ratio: 1 / 1; }
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-frame:hover img { transform: scale(1.045); }

/* ---------- generic sections ---------- */

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper-soft); }

.section-head { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--ink-soft); }

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
@media (max-width: 780px) { .cols-2 { grid-template-columns: 1fr; } }

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 780px) { .cols-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.section-alt .card { background: var(--paper); }

/* ---------- amenities ---------- */

.amenity-essentials {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.5rem;
}
@media (max-width: 560px) { .amenity-essentials { grid-template-columns: 1fr; } }
.amenity-essentials li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-sm);
}
.amenity-essentials strong { font-family: var(--font-display); font-size: 1rem; }
.amenity-essentials .amenity-note {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

.amenity-more {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.amenity-more-toggle {
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  background: none;
  border: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.amenity-more-toggle::after {
  content: "+";
  color: var(--pine);
  font-size: 1.3rem;
  line-height: 1;
}
.amenity-more-toggle[aria-expanded="true"]::after { content: "\2013"; }

.amenity-more-panel {
  display: none;
  padding: 0 1.5rem 1.5rem;
}
.amenity-more-panel.is-open { display: block; }

.amenity-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}
@media (max-width: 780px) { .amenity-categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .amenity-categories { grid-template-columns: 1fr; } }
.amenity-categories h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: none;
  margin: 0 0 0.5rem;
  color: var(--pine-deep);
}
.amenity-categories ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.amenity-categories li { padding: 0.25rem 0; color: var(--ink-soft); }

/* ---------- booking ---------- */

.booking {
  background: linear-gradient(155deg, var(--pine-deep), var(--pine));
  color: #fff;
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.25rem);
  box-shadow: var(--shadow-md);
}
.booking h2, .booking h3 { color: #fff; }
.booking p { color: rgba(255,255,255,0.85); }

.booking-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.75rem;
}
@media (max-width: 780px) { .booking-options { grid-template-columns: 1fr; } }

.booking-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.booking-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.booking-card p { font-size: 0.93rem; margin-bottom: 1.2rem; color: rgba(255,255,255,0.8); }
.booking-card .btn-solid { background: #fff; color: var(--pine-deep); }
.booking-card .btn-solid:hover { background: var(--gold); color: #fff; }
.booking-card .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }

.booking-btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.booking-alt {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  text-align: left;
}
.booking-alt p { color: rgba(255,255,255,0.85); margin: 0 0 1rem; }
.booking-alt-row { display: flex; gap: 0.9rem; justify-content: flex-start; flex-wrap: wrap; }
.booking-alt .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.booking-alt .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- reviews ---------- */

.review-score {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.review-score-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--pine-deep);
}
.review-score-item span { color: var(--ink-soft); font-size: 0.9rem; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 860px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.review-source {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--pine-deep);
}
.review-card p { margin: 0; font-size: 0.98rem; color: var(--ink); }

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 780px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid .photo-frame { cursor: zoom-in; }

/* ---------- lightbox ---------- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 14, 13, 0.92);
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--paper-line);
}
.contact-item span:first-child { color: var(--ink-soft); }
.contact-item a { text-decoration: underline; font-weight: 600; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--paper-line);
  padding: 2.25rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-contacts a { font-weight: 600; text-decoration: none; }
.footer-contacts a:hover { text-decoration: underline; }
.footer-contacts .footer-email {
  color: var(--pine-deep);
}

/* ---------- language switcher ---------- */

.lang-switch {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--paper-line);
}
.lang-btn {
  border: none;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}
.lang-btn:hover { opacity: 0.8; }
.lang-btn.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--pine) inset;
}
@media (max-width: 560px) {
  .lang-switch { bottom: 0.85rem; right: 0.85rem; }
}
