/* =============================================================
   Le Chalet de La Broquerie — styles.css
   -------------------------------------------------------------
   COLOR PALETTE (derived from the residence's calm, natural
   branding — evergreen tones, warm sand and a clear sky accent):

     --color-primary      #2f6b4f  Evergreen  (headers, buttons)
     --color-primary-dark #234f3b  Deep pine  (hover, footer)
     --color-primary-lt   #dcebe2  Mist green (alt sections)
     --color-accent       #c9922e  Warm gold  (CTAs, highlights)
     --color-accent-dark  #a9781f  Deep gold  (hover)
     --color-text         #26302b  Charcoal green (body text)
     --color-muted        #5c6b63  Muted sage (secondary text)
     --color-surface      #ffffff  White      (cards)
     --color-bg           #f7faf8  Off-white  (page background)
     --color-border       #d7e2db  Soft border
   ============================================================= */

:root {
  --color-primary: #2f6b4f;
  --color-primary-dark: #234f3b;
  --color-primary-lt: #dcebe2;
  --color-accent: #c9922e;
  --color-accent-dark: #a9781f;
  --color-text: #26302b;
  --color-muted: #5c6b63;
  --color-surface: #ffffff;
  --color-bg: #f7faf8;
  --color-border: #d7e2db;

  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(35, 79, 59, 0.08);
  --shadow-md: 0 8px 28px rgba(35, 79, 59, 0.14);
  --transition: 0.3s ease;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin: 0 0 0.5em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-logo { width: auto; height: 48px; object-fit: contain; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
}
.primary-nav a:hover { color: var(--color-accent-dark); }
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.nav-lang {
  border: 1.5px solid var(--color-border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
}
.nav-lang:hover { border-color: var(--color-accent); color: var(--color-accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-bar {
  width: 26px;
  height: 3px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #2f6b4f 0%, #234f3b 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 55, 41, 0.9) 0%, rgba(23, 55, 41, 0.65) 52%, rgba(23, 55, 41, 0.2) 100%),
    url("images/lechalet.jpg") center/cover no-repeat;
}
.hero-content {
  position: relative;
  padding: 6rem 1.25rem 6.5rem;
  max-width: 780px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.8rem;
  color: #f4dfae;
  margin: 0 0 1rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero-lead { font-size: 1.15rem; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-primary-lt); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  margin: 0 0 0.5rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.section-sub { color: var(--color-muted); font-size: 1.02rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.about-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-surface);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.hl-icon { font-size: 1.3rem; }

/* ---------- Phases ---------- */
.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.phase-grid.reverse .phase-images { order: 2; }
.phase-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.phase-images img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition);
}
.phase-images img:hover { transform: scale(1.02); }

.feature-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.55rem; }
.feature-list li { position: relative; padding-left: 1.6rem; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.price-card.highlight { border-color: var(--color-accent); border-width: 2px; }
.price { font-family: var(--font-head); font-size: 1.1rem; margin: 0 0 0.75rem; color: var(--color-muted); }
.price span { font-size: 1.7rem; color: var(--color-primary-dark); font-weight: 700; }
.price-extras { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.35rem; }
.price-extras li { padding-left: 1.2rem; position: relative; }
.price-extras li::before { content: "•"; position: absolute; left: 0; color: var(--color-accent); }
.price-note { font-size: 0.95rem; color: var(--color-muted); margin: 0 0 0.5rem; }
.fine-print { font-size: 0.85rem; color: var(--color-muted); font-style: italic; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-grid img:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
}
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact-card address { font-style: normal; margin: 0 0 1.2rem; }
.contact-card address p { margin: 0.15rem 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.contact-list li { display: flex; align-items: center; gap: 0.6rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #dfeee6;
  padding: 1.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}
.footer-inner p { margin: 0; }
.back-to-top { color: #f4dfae; text-decoration: none; font-weight: 600; }
.back-to-top:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .primary-nav.open { max-height: 420px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  .primary-nav li { border-bottom: 1px solid var(--color-border); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: 0.85rem 0; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }

  .about-grid,
  .phase-grid,
  .phase-grid.reverse,
  .contact-grid { grid-template-columns: 1fr; }
  .phase-grid.reverse .phase-images { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 4.5rem 1.25rem 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
