:root {
  --terracotta: #c45c32;
  --terracotta-dark: #9d4423;
  --ink: #1f2428;
  --slate: #3d4a52;
  --muted: #5c6770;
  --line: #e4d9cc;
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --white: #ffffff;
  --green: #3e5c4a;
  --shadow: 0 18px 40px rgba(31, 36, 40, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }

.topbar {
  background: var(--ink);
  color: #f3ece4;
  font-size: 0.9rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.topbar a:hover { color: #f0b089; }

.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 58px;
  height: 74px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--cream);
}
.brand-name { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.15rem; line-height: 1.15; }
.brand-name span { display: block; color: var(--terracotta); font-size: 0.78rem; font-family: Outfit, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 0.95rem; color: var(--slate); font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--terracotta-dark); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--terracotta);
  color: white !important;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: 0.2s background;
}
.btn:hover { background: var(--terracotta-dark); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-outline:hover { background: var(--cream); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
}

.hero { position: relative; min-height: 78vh; overflow: hidden; color: white; }
.hero-slider, .hero-slider .slide {
  position: absolute; inset: 0;
}
.hero-slider .slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slider .slide.active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,16,12,.72) 0%, rgba(20,16,12,.35) 55%, rgba(20,16,12,.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 90px;
  max-width: 680px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: #f0b089;
  font-weight: 600;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 16px;
}
.hero p { font-size: 1.08rem; color: #f3ece4; margin-bottom: 28px; max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.slider-nav {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
}
.slider-nav button, .dots button {
  width: 12px; height: 12px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.45); cursor: pointer;
}
.dots button.active, .slider-nav button.active { background: white; }

section { padding: 76px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin: 6px 0 12px;
}
.lead { color: var(--muted); font-size: 1.05rem; }

.grid-3, .grid-4, .grid-2 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .service-card, .city-card, .info-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-card { padding: 22px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.95rem; }
.icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--cream); color: var(--terracotta-dark);
  display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 14px;
}

.band { background: var(--cream); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 10px; }
.stat strong {
  display: block;
  font-family: "Source Serif 4", serif;
  font-size: 2rem;
  color: var(--terracotta-dark);
}
.stat span { color: var(--muted); font-size: 0.92rem; }

.media-card { overflow: hidden; }
.media-card img { width: 100%; height: 220px; object-fit: cover; }
.media-card .body { padding: 16px 18px 20px; }
.media-card h3 { margin-bottom: 6px; }

.slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  background: #111;
}
.slider .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
}
.slider .slide.active { opacity: 1; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.slider .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: white;
}
.ctrl {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-size: 1.2rem;
}
.ctrl.prev { left: 14px; }
.ctrl.next { right: 14px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button { width: 10px; height: 10px; }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba figure { position: relative; border-radius: 16px; overflow: hidden; }
.ba img { width: 100%; height: 280px; object-fit: cover; }
.ba figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(0,0,0,.7); color: white; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem;
}

.cities { display: flex; flex-wrap: wrap; gap: 10px; }
.city {
  background: white;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.form {
  display: grid; gap: 14px;
  background: white; padding: 28px; border-radius: 22px; border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: 0.86rem; font-weight: 600; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 13px; border-radius: 12px;
  border: 1px solid var(--line); font: inherit; background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
.note { font-size: 0.85rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.info-card { padding: 22px; }
.info-card h3 { margin-bottom: 8px; }
.info-card p, .info-card a { color: var(--muted); }

.page-hero {
  background:
    linear-gradient(120deg, rgba(31,36,40,.78), rgba(196,92,50,.45)),
    url("../images/provins-toits.jpg") center/cover;
  color: white;
  padding: 86px 0 64px;
}
.page-hero h1 { font-family: "Source Serif 4", serif; font-size: clamp(2rem, 4vw, 3rem); }

.footer {
  background: #171b1e;
  color: #ddd4c8;
  padding: 48px 0 20px;
  margin-top: 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer h3 { color: white; margin-bottom: 12px; font-size: 1rem; }
.footer a { display: block; color: #cfc4b6; margin: 6px 0; }
.footer a:hover { color: #f0b089; }
.legal { border-top: 1px solid #2c3236; margin-top: 28px; padding-top: 16px; font-size: 0.82rem; color: #9aa0a6; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.demo-flag {
  display: inline-block;
  background: #efe4d4;
  color: #6a5340;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 8px;
}

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.split img { width: 100%; height: 420px; object-fit: cover; border-radius: 22px; }

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .form-row, .contact-grid, .ba, .split, .footer-grid, .stats {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 70vh; }
  .slider { min-height: 280px; }
}
