/* Au Clos des Secrets — Gers
   Deep petrol green ground, terracotta accent, Cormorant Garamond + Karla. */

:root {
  --bg: #0e1a17;
  --surface: #162622;
  --surface-2: #1b2e29;
  --text: #f3efe6;
  --muted: #a8b5ad;
  --accent: #d9663b;
  --accent-text: #0e1a17;
  --hairline: #2a3b35;
  --max: 1200px;
  --gutter: 24px;
  --pad: 24px;
  --bar-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 768px) {
  :root { --pad: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Karla", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: var(--accent-text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: "Karla", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 18px;
}

.muted { color: var(--muted); }

/* Placeholders the owner will replace */
.ph {
  color: var(--muted);
  border-bottom: 1px dotted var(--accent);
  padding-bottom: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  font-family: "Karla", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { background: #b9502b; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(243, 239, 230, 0.45);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(243, 239, 230, 0.08); }

/* ---------- Sticky reservation bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { display: block; font-family: "Karla", sans-serif; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.bar-fields {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}
.bar-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bar-field label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.bar-field input,
.bar-field select {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  font-family: "Karla", sans-serif;
  font-size: 14px;
  padding: 3px 0 4px;
  min-height: 26px;
  width: 100%;
  border-radius: 0;
}
.bar-field input:focus,
.bar-field select:focus { border-bottom-color: var(--accent); outline: none; }
.bar-field select option { background: var(--surface); color: var(--text); }

.bar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.lang {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.lang a { text-decoration: none; color: var(--muted); padding: 6px 2px; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--text); border-bottom: 1px solid var(--accent); }
.lang .sep { opacity: 0.4; }

.topbar .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }

@media (min-width: 900px) {
  .bar-fields { display: flex; }
  .lang { display: flex; }
  .topbar .btn { min-height: 44px; padding: 0 24px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(14, 26, 23, 0.94) 0%, rgba(14, 26, 23, 0.72) 38%, rgba(14, 26, 23, 0.28) 70%, rgba(14, 26, 23, 0.42) 100%),
    linear-gradient(to right, rgba(14, 26, 23, 0.72) 0%, rgba(14, 26, 23, 0.1) 65%);
}
.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--pad) 56px;
}
.hero h1 {
  font-size: 40px;
  line-height: 0.98;
  margin: 0 0 18px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.5;
  max-width: 34ch;
  color: var(--text);
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions .btn { width: 100%; }
.hero-pill {
  position: absolute;
  top: 20px;
  right: var(--pad);
  z-index: 2;
  background: rgba(243, 239, 230, 0.94);
  color: #0e1a17;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .hero { min-height: 88vh; }
  .hero-inner { padding: 160px var(--pad) 72px; }
  .hero h1 { font-size: 72px; line-height: 0.95; }
  .hero-sub { font-size: 20px; }
  .hero-actions .btn { width: auto; }
  .hero-pill { top: 28px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 72px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 112px 0; } }

.section-head { position: relative; }
.section-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 96px;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  opacity: 0.55;
  display: block;
  margin-bottom: 8px;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 768px) {
  .section-num {
    position: absolute;
    font-size: 180px;
    left: -0.34em;
    top: -0.42em;
    margin: 0;
    opacity: 0.45;
    z-index: 0;
  }
  .section-head h2 { position: relative; z-index: 1; }
}

h2 { font-size: 32px; line-height: 1.05; margin: 0 0 20px; }
@media (min-width: 768px) { h2 { font-size: 44px; } }

.grid12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .grid12 {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    row-gap: 40px;
    align-items: center;
  }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: 3 / span 8; }
  .col-12 { grid-column: span 12; }
}

.figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure-tall img { aspect-ratio: 4 / 5; }
.figure-wide img { aspect-ratio: 16 / 10; }

/* ---------- Grounds band ---------- */
.band {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: transform 400ms var(--ease), border-color 400ms var(--ease);
  will-change: transform;
}
.card:hover { transform: translateY(-4px); border-color: #3d534b; }
.card-media { overflow: hidden; }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 24px; line-height: 1.1; margin: 0; }
@media (min-width: 768px) { .card h3 { font-size: 28px; } }
.card-cap {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.card-desc { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.card:hover .card-link { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Gîte gallery ---------- */
.gite-gallery {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}
.gite-gallery-head h3 {
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 10px;
}
@media (min-width: 768px) { .gite-gallery-head h3 { font-size: 32px; } }
.gite-gallery-head p { max-width: 62ch; font-size: 15px; }
.gite-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .gite-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
  .gite-shot-wide { grid-column: span 3; }
}
.gite-shot {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--hairline);
}
.gite-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.gite-shot-wide img { aspect-ratio: 16 / 9; }
.gite-shot:hover img { transform: scale(1.02); }

/* ---------- House & grounds gallery ---------- */
.house-gallery { padding-top: 0; }

/* ---------- Pool gallery ---------- */
.pool-gallery { padding-top: 0; }
.pool-gallery-title { font-size: 26px; line-height: 1.1; margin: 0 0 10px; }
@media (min-width: 768px) { .pool-gallery-title { font-size: 32px; } }
.pool-gallery .gite-gallery-head p { max-width: 62ch; font-size: 15px; }
.pool-grid { margin-top: 24px; }

/* ---------- Rates ---------- */
.rates {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}
.rates-head h3 {
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 10px;
}
@media (min-width: 768px) { .rates-head h3 { font-size: 32px; } }
.rates-head p { max-width: 62ch; font-size: 15px; }
.rates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}
@media (min-width: 768px) {
  .rates-grid { grid-template-columns: 1fr 1fr; gap: var(--gutter); }
}
.rate-block {
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: 24px 22px 26px;
}
.rate-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.rate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rate-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.rate-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rate-val {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rate-list sup { font-size: 0.6em; }
.rate-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Pool ---------- */
.pool {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.pool-media { position: absolute; inset: 0; z-index: -2; }
.pool-media img { width: 100%; height: 100%; object-fit: cover; }
.pool::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(14, 26, 23, 0.92) 0%, rgba(14, 26, 23, 0.78) 45%, rgba(14, 26, 23, 0.25) 100%);
}
.pool-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--pad);
}
.pool-text { max-width: 560px; }
.pool h2 { margin-bottom: 18px; }
.pool-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 239, 230, 0.22);
  font-size: 15px;
  color: var(--muted);
}
@media (min-width: 768px) { .pool-inner { padding: 120px var(--pad); } }

/* On mobile the scrim becomes a solid block below the photo */
@media (max-width: 767px) {
  .pool { display: block; }
  .pool-media { position: relative; inset: auto; }
  .pool-media img { aspect-ratio: 4 / 3; }
  .pool::after { display: none; }
  .pool-inner { background: var(--surface); padding: 40px var(--pad) 48px; }
}

/* ---------- Booking ---------- */
.booking { scroll-margin-top: 80px; }
.booking-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .booking-form { grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
  .booking-form .field-submit { grid-column: span 4; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  min-height: 48px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--text);
  font-family: "Karla", sans-serif;
  font-size: 16px;
  padding: 0 14px;
}
.field select option { background: var(--surface); color: var(--text); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 102, 59, 0.28);
}
.field-submit .btn { width: 100%; }
@media (min-width: 768px) { .field-submit .btn { width: auto; } }

/* Consent / period checkbox */
.field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.field-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field-check label {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  cursor: pointer;
}

.booking-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 18px;
}
.form-status {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.form-status[hidden] { display: none; }

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--muted);
}
.contact-lines a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hairline); padding-bottom: 2px; }
.contact-lines a:hover { border-bottom-color: var(--accent); }
@media (min-width: 768px) {
  .contact-lines { flex-direction: row; gap: 32px; }
}

/* ---------- Around ---------- */
.nearby {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nearby li {
  font-size: 15px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.nearby li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Contact ---------- */
.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  transition: border-color 400ms var(--ease), background-color 400ms var(--ease);
}
.contact-row:hover { border-color: var(--accent); }
.contact-row .ico {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--accent);
}
.contact-row .ico svg { width: 20px; height: 20px; display: block; }
.contact-row .lbl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  line-height: 1.3;
}
.contact-row .val { display: block; font-size: 15px; line-height: 1.3; }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; }
.legal h1 { font-size: 40px; line-height: 1.02; margin: 0 0 28px; }
@media (min-width: 768px) { .legal h1 { font-size: 56px; } }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p { font-size: 16px; line-height: 1.65; color: var(--text); }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.legal-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 88px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.footer-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 4px;
}
.footer-lang { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-lang a { text-decoration: none; color: var(--muted); }
.footer-lang a[aria-current="true"] { color: var(--text); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { text-decoration: none; color: var(--muted); }
.footer-legal a:hover, .footer-lang a:hover { color: var(--text); }
@media (min-width: 900px) {
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: center;
    text-align: left;
  }
  .footer-grid > :nth-child(1) { grid-column: span 5; }
  .footer-grid > :nth-child(2) { grid-column: span 4; justify-content: center; }
  .footer-grid > :nth-child(3) { grid-column: span 3; justify-content: flex-end; }
}

/* Attribution — free tier, must stay readable */
.attribution {
  position: static;
  text-align: center;
  padding: 0 0 28px;
  font-size: 12px;
  font-family: "Karla", sans-serif;
  color: var(--muted);
  opacity: 1;
  background: var(--bg);
}
.attribution a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.attribution a:hover { color: var(--text); }

/* ---------- Motion (JS-added class only) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js .reveal:nth-child(2) { transition-delay: 70ms; }
.js .reveal:nth-child(3) { transition-delay: 140ms; }
.js .reveal:nth-child(4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
  .gite-shot:hover img { transform: none; }
}
