/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-bg: #faf7f2;
  --color-ink: #1f2a24;
  --color-ink-soft: #4a5650;
  --color-cream: #f3ecdf;
  --color-gold: #b08d57;
  --color-gold-dark: #8c6d3f;
  --color-green: #3c4a3e;
  --color-line: #e3dccb;
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; font-optical-sizing: auto; letter-spacing: -0.01em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 110px 0; position: relative; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 500;
  margin-bottom: 14px;
}

.center { text-align: center; }
.section-intro { max-width: 560px; margin: 18px auto 0; color: var(--color-ink-soft); }

h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 10px; }
.gites h2, .services h2, .gallery-section h2, .region h2 { margin-bottom: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--color-green); color: #fff; }
.btn-dark:hover { background: #2c3730; box-shadow: 0 10px 24px rgba(60,74,62,0.3); }
.btn-light { background: #fff; color: var(--color-ink); }
.btn-light:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.btn-outline { border-color: var(--color-ink); color: var(--color-ink); background: transparent; }
.btn-outline:hover { background: var(--color-ink); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--color-ink); }
.btn-small { padding: 10px 20px; font-size: 13px; }
.btn-full { width: 100%; }

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-green));
  z-index: 999; transition: width .1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  transition: color .4s;
  letter-spacing: 0.01em;
}
.site-header.scrolled .logo { color: var(--color-ink); }
.logo span { color: var(--color-gold); font-weight: 500; font-style: italic; }
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 14px; color: #fff; opacity: .9; position: relative; transition: opacity .3s, color .4s;
}
.site-header.scrolled .main-nav a { color: var(--color-ink); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: currentColor; transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.header-cta { background: var(--color-gold); color: #fff; }
.header-cta:hover { background: var(--color-gold-dark); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 110; }
.burger span { width: 24px; height: 2px; background: #fff; transition: .3s; }
.site-header.scrolled .burger span { background: var(--color-ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 8s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,20,16,0.35) 0%, rgba(15,20,16,0.45) 50%, rgba(15,20,16,0.75) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 0 24px; margin: 0 auto; text-align: center; width: 100%; }
.hero-kicker { letter-spacing: 0.2em; text-transform: uppercase; font-size: 13px; opacity: .85; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 18px; }
.hero-sub { font-size: 1.1rem; opacity: .92; max-width: 540px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.7); border-radius: 20px;
  z-index: 2; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; background: #fff; border-radius: 4px; animation: scrollCue 1.8s infinite; }
@keyframes scrollCue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.hero .reveal { transition-delay: .15s; }
.hero h1.reveal { transition-delay: .3s; }
.hero-sub.reveal { transition-delay: .45s; }
.hero-actions.reveal { transition-delay: .6s; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); width: 100%; height: 520px; object-fit: cover; }
.media-badge {
  position: absolute; bottom: -24px; right: -24px; background: var(--color-green); color: #fff;
  padding: 22px 26px; border-radius: var(--radius); text-align: center; box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
.media-badge strong { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.media-badge span { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; opacity: .85; }

.split-text p { color: var(--color-ink-soft); margin-bottom: 16px; }
.stat-row { display: flex; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--color-green); }
.stat span { font-size: 13px; color: var(--color-ink-soft); }

/* ---------- Gites ---------- */
.gites { background: var(--color-cream); }
.gite-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 56px; }
.gite-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(31,42,36,0.06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gite-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(31,42,36,0.14); }
.gite-media { position: relative; height: 260px; overflow: hidden; }
.gite-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gite-card:hover .gite-media img { transform: scale(1.08); }
.gite-tag {
  position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.92); color: var(--color-green);
  font-size: 12px; padding: 6px 14px; border-radius: 999px; letter-spacing: 0.03em;
}
.gite-body { padding: 28px; }
.gite-body h3 { font-size: 1.5rem; margin-bottom: 12px; }
.gite-meta { display: flex; gap: 18px; list-style: none; margin-bottom: 14px; flex-wrap: wrap; }
.gite-meta li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-ink-soft); }
.gite-meta svg { width: 16px; height: 16px; fill: var(--color-gold-dark); }
.gite-body p { color: var(--color-ink-soft); margin-bottom: 22px; font-size: 14.5px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.service-card {
  padding: 36px 28px; border: 1px solid var(--color-line); border-radius: var(--radius);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s;
  background: #fff;
}
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 20px 40px rgba(31,42,36,0.08); }
.service-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--color-cream);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; fill: var(--color-gold-dark); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--color-ink-soft); font-size: 14.5px; }

/* ---------- Gallery ---------- */
.gallery-section { padding-bottom: 130px; }
.gallery-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: var(--container); margin: 56px auto 0; padding: 0 24px;
}
.gallery-item {
  flex: 1 1 220px; max-width: 260px; aspect-ratio: 1 / 1;
  border: none; padding: 0; cursor: pointer; overflow: hidden; border-radius: 10px; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: rgba(31,42,36,0.15); opacity: 0; transition: opacity .4s;
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,20,16,0.92); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease);
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 8px; transform: scale(.95); transition: transform .35s var(--ease); }
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 30px; background: none; border: none; color: #fff;
  font-size: 36px; cursor: pointer; line-height: 1;
}

/* ---------- Region ---------- */
.region { background: var(--color-cream); }
.region-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-top: 56px; }
.region-card {
  background: #fff; padding: 32px 26px; border-radius: var(--radius); position: relative;
  flex: 1 1 300px; max-width: 360px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.region-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(31,42,36,0.08); }
.region-time {
  display: inline-block; font-size: 12px; font-weight: 500; color: var(--color-gold-dark);
  background: var(--color-cream); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; letter-spacing: 0.03em;
}
.region-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.region-card p { color: var(--color-ink-soft); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-info p { color: var(--color-ink-soft); margin-bottom: 22px; }
.contact-details { list-style: none; margin-bottom: 30px; }
.contact-details li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14.5px; }
.contact-details svg { width: 20px; height: 20px; fill: var(--color-gold-dark); flex-shrink: 0; }

.contact-form { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(31,42,36,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--color-ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: 8px;
  font-family: var(--font-body); font-size: 14.5px; background: var(--color-bg);
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(176,141,87,0.15);
}
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--color-green); text-align: center; min-height: 18px; }
.form-note--error { color: #b03c3c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-green); color: #fff; padding: 60px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .logo { color: #fff; font-size: 20px; margin-bottom: 8px; display: block; }
.footer-brand p { opacity: .75; font-size: 14px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a, .footer-social a { opacity: .8; font-size: 14px; transition: opacity .3s; }
.footer-links a:hover, .footer-social a:hover { opacity: 1; }
.footer-social { display: flex; gap: 18px; }
.footer-bottom { padding-top: 22px; text-align: center; font-size: 13px; opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media img { height: 360px; }
  .gite-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .region-card { flex-basis: 45%; max-width: 47%; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }

  .main-nav.open {
    display: flex; flex-direction: column; position: fixed; top: 0; right: 0; height: 100vh; width: 78%;
    max-width: 320px; background: var(--color-bg); padding: 100px 32px 32px; gap: 26px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15); z-index: 105;
  }
  .main-nav.open a { color: var(--color-ink); font-size: 17px; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .region-card { flex-basis: 100%; max-width: 100%; }
  .stat-row { gap: 24px; }
  .gallery-item { flex-basis: 130px; max-width: 47%; }
  .media-badge { right: 12px; bottom: -18px; padding: 16px 18px; }
  .contact-form { padding: 26px; }
}

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