/* ==========================================================================
   La Grange Côté Mer — design system
   ========================================================================== */

:root {
  /* Palette — pierre bretonne, bois, océan */
  --color-cream: #faf6ef;
  --color-cream-dark: #f1ead9;
  --color-sand: #e4d7bd;
  --color-stone: #a89a80;
  --color-ink: #22302c;
  --color-ink-soft: #47554f;
  --color-ocean: #1c4550;
  --color-ocean-dark: #12303a;
  --color-ocean-light: #4d7c86;
  --color-terracotta: #bc5b34;
  --color-white: #ffffff;

  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 1240px;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 22px;
  --shadow-soft: 0 20px 45px -25px rgba(18, 30, 27, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(18, 30, 27, 0.28);

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.75rem;
  --space-l: 3rem;
  --space-xl: 5rem;
  --space-xxl: 8rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; color: var(--color-ocean-dark); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--color-ink-soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  font-weight: 600;
  margin-bottom: 0.8em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--color-terracotta); display: inline-block; }
.script {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ---- Layout ---- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-xl) 0; }
.section--tight { padding: var(--space-l) 0; }
.section--alt { background: var(--color-cream-dark); }
.section--ocean { background: var(--color-ocean-dark); color: var(--color-cream); }
.section--ocean h2, .section--ocean h3 { color: var(--color-cream); }
.section-head { max-width: 720px; margin: 0 0 var(--space-l); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: var(--space-m); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-terracotta); color: var(--color-white); }
.btn--primary:hover { background: #a44e2c; }
.btn--ocean { background: var(--color-ocean); color: var(--color-white); }
.btn--ocean:hover { background: var(--color-ocean-dark); }
.btn--ghost { background: transparent; color: var(--color-cream); border-color: rgba(250,246,239,0.5); }
.btn--ghost:hover { background: rgba(250,246,239,0.12); }
.btn--outline { background: transparent; color: var(--color-ocean); border-color: var(--color-ocean); }
.btn--outline:hover { background: var(--color-ocean); color: var(--color-white); }
.btn--sm { padding: 0.6em 1.3em; font-size: 0.85rem; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(34, 48, 44, 0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { height: 42px; width: auto; flex-shrink: 0; }
.brand-text { font-family: var(--font-serif); line-height: 1.1; }
.brand-text .name { display: block; font-size: 1.2rem; letter-spacing: 0.04em; color: var(--color-ocean-dark); text-transform: uppercase; }
.brand-text .tag { display: block; font-style: italic; font-size: 0.95rem; color: var(--color-terracotta); }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--color-ink); position: relative; padding: 0.3em 0; text-decoration: none; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--color-terracotta); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-lang { display: flex; gap: 0.4rem; margin-left: 0.5rem; }
.nav-lang a { padding: 0.25em 0.6em; border-radius: 999px; font-size: 0.78rem; font-weight: 700; border: 1px solid rgba(34,48,44,0.18); }
.nav-lang a.is-active { background: var(--color-ocean); color: var(--color-white); border-color: var(--color-ocean); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; }
@media (max-width: 980px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem;
    position: relative; z-index: 1100;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--color-ink); transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0 0 0 30%; top: 0; height: 100vh; z-index: 1000;
    background: var(--color-cream); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 2rem; gap: 1.6rem; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-soft);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-link { font-size: 1.2rem; }
  .nav-lang { margin: 1rem 0 0; }
  .nav-cta { margin: 0.5rem 0 0; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,30,27,0.15) 0%, rgba(18,30,27,0.15) 40%, rgba(15,25,23,0.82) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding-top: var(--space-xl); padding-bottom: var(--space-l); }
.hero-content .eyebrow { color: var(--color-sand); }
.hero-content .eyebrow::before { background: var(--color-sand); }
.hero h1 { color: var(--color-white); max-width: 16ch; }
.hero-content p.lede { color: rgba(255,255,255,0.88); max-width: 46ch; }
.hero-cta { display: flex; gap: 1rem; margin-top: var(--space-m); flex-wrap: wrap; }
.hero-facts { display: flex; gap: var(--space-l); margin-top: var(--space-l); flex-wrap: wrap; }
.hero-facts div strong { display: block; font-family: var(--font-serif); font-size: 1.6rem; }
.hero-facts div span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

.page-hero {
  position: relative; min-height: 52vh; display: flex; align-items: flex-end; color: var(--color-white); overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,30,27,0.25), rgba(15,25,23,0.78)); }
.page-hero .container { position: relative; z-index: 2; padding-bottom: var(--space-l); padding-top: var(--space-xl); }
.page-hero h1 { color: var(--color-white); }
.breadcrumb { font-size: 0.85rem; opacity: 0.8; margin-bottom: 1rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Cards ---- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card-body { padding: var(--space-m); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature {
  display: flex; gap: 1rem; align-items: flex-start;
}
.feature-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: var(--color-cream-dark); display: flex; align-items: center; justify-content: center;
  color: var(--color-ocean);
}
.feature h3 { margin-bottom: 0.3em; font-size: 1.1rem; }
.feature p { color: var(--color-ink-soft); margin: 0; font-size: 0.96rem; }

.amenity-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.5rem; }
.amenity-list li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.98rem; }
.amenity-list li svg { flex-shrink: 0; color: var(--color-terracotta); }
@media (max-width: 640px) { .amenity-list { grid-template-columns: 1fr; } }

/* ---- Image + text split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-l); box-shadow: var(--shadow-soft); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---- Gallery ---- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-m); }
.gallery-filters button {
  padding: 0.5em 1.2em; border-radius: 999px; border: 1px solid rgba(34,48,44,0.2);
  background: transparent; font-weight: 600; font-size: 0.88rem; cursor: pointer; color: var(--color-ink);
}
.gallery-filters button.is-active { background: var(--color-ocean); color: var(--color-white); border-color: var(--color-ocean); }
.gallery-grid { columns: 3 280px; column-gap: 1rem; }
.gallery-grid figure {
  margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius-m); overflow: hidden;
  box-shadow: var(--shadow-card); cursor: zoom-in; position: relative;
  background: var(--color-cream-dark);
  min-height: 140px;
}
.gallery-grid img {
  width: 100%; display: block; transition: transform .4s ease, opacity .4s ease;
  opacity: 0;
}
.gallery-grid img.is-loaded { opacity: 1; }
.gallery-grid figure:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .gallery-grid { columns: 1 100%; } }

.lightbox {
  position: fixed; inset: 0; background: rgba(15, 22, 20, 0.94); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius-s); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.lightbox-caption { color: var(--color-cream); text-align: center; margin-top: 1rem; font-size: 0.9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.1); color: var(--color-white); border: none;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---- Testimonials ---- */
.testimonial { background: var(--color-white); border-radius: var(--radius-l); padding: var(--space-m); box-shadow: var(--shadow-card); }
.testimonial .stars { color: var(--color-terracotta); letter-spacing: 2px; margin-bottom: 0.6rem; }
.testimonial cite { display: block; margin-top: 0.8rem; font-style: normal; font-weight: 600; color: var(--color-ocean); }

/* ---- Booking / Beds24 ---- */
.booking-panel {
  background: var(--color-white); border-radius: var(--radius-l); box-shadow: var(--shadow-soft);
  padding: var(--space-m); position: sticky; top: 100px;
}
.booking-panel h3 { margin-bottom: 0.3em; }
.beds24-frame-wrap { border-radius: var(--radius-m); overflow: hidden; border: 1px solid rgba(34,48,44,0.1); }
.beds24-frame-wrap iframe { width: 100%; border: none; display: block; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: var(--space-m); }
.trust-badges div { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--color-ink-soft); }
.trust-badges svg { color: var(--color-ocean); flex-shrink: 0; }

/* ---- Map ---- */
.map-frame { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-soft); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---- Forms ---- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--color-ink-soft); }
.field input, .field textarea, .field select {
  padding: 0.85em 1em; border-radius: var(--radius-s); border: 1px solid rgba(34,48,44,0.22);
  font-family: var(--font-sans); font-size: 1rem; background: var(--color-white); color: var(--color-ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--color-ocean-light); outline-offset: 1px; }
.form-note { font-size: 0.85rem; color: var(--color-ink-soft); margin-top: 0.6rem; }
.alert { padding: 1em 1.3em; border-radius: var(--radius-m); margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert--success { background: #e4f1e2; color: #2c5c2b; }
.alert--error { background: #fbe4de; color: #8a3320; }

/* ---- Footer ---- */
.site-footer { background: var(--color-ocean-dark); color: rgba(250,246,239,0.85); padding: var(--space-xl) 0 var(--space-m); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-l); }
.footer-grid h4 { color: var(--color-cream); font-family: var(--font-sans); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1em; }
.footer-grid a, .footer-grid p { color: rgba(250,246,239,0.75); font-size: 0.94rem; }
.footer-grid li { margin-bottom: 0.6em; }
.footer-brand .brand-text .name { color: var(--color-cream); }
.footer-bottom {
  margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid rgba(250,246,239,0.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: rgba(250,246,239,0.55);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-ocean); color: white; padding: 0.8em 1.2em; z-index: 2000;
}
.skip-link:focus { left: 1rem; top: 1rem; }
