/* ==========================================================
   La Combe Joseph — Chambres d'hôtes near Pont du Gard
   Mediterranean / Provence colour palette
   ========================================================== */

/* ---- Palette ------------------------------------------- */
:root {
  --stone:      #2C3E50;
  --olive:      #5B8C5A;
  --terracotta: #C0634A;
  --cream:      #FAFAF8;
  --dark:       #2D2926;
  --stone-light:#E8E6E3;
  --olive-dark: #3D6B3C;
  --terracotta-light: #D4836E;
  --white:      #FFFFFF;
  --sand:       #F0EDE6;
  --blue-sea:   #3A7CA5;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--olive-dark); text-decoration: none; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}

/* ---- Layout container ---------------------------------- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Navigation ---------------------------------------- */
.nav {
  background: linear-gradient(135deg, var(--stone) 0%, #1a2a3a 100%);
  border-bottom: 3px solid var(--terracotta);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  padding: 0.85rem 0;
  white-space: nowrap;
}

.nav-brand:hover { color: var(--terracotta-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--white);
  cursor: pointer;
  padding: 0.85rem 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links li a {
  display: block;
  padding: 0.85rem 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
  background-color: var(--terracotta);
  color: var(--white);
}

/* ---- Language selector ---------------------------------- */
.lang-selector {
    padding: 0.6rem 0.5rem;
}
.lang-selector select {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.lang-selector select option {
    background: #2C3E50;
    color: white;
}

/* ---- Hero ---------------------------------------------- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: var(--stone);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 2rem 1.5rem;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 0.4rem;
}

.hero .subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--stone-light);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ---- Page header (non-hero pages) ---------------------- */
.page-header {
  background: linear-gradient(135deg, var(--stone) 0%, #1a2a3a 100%);
  padding: 2.5rem 0;
  text-align: center;
  border-bottom: 3px solid var(--terracotta);
}

.page-header h1 {
  font-size: 2rem;
  color: var(--white);
}

/* ---- Main content -------------------------------------- */
.main {
  padding: 3rem 0;
}

.main p {
  margin-bottom: 1rem;
}

/* ---- Section blocks ------------------------------------ */
.section {
  margin-bottom: 3rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section h2 {
  font-size: 1.6rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--stone);
}

.section h3 {
  font-size: 1.2rem;
  color: var(--olive-dark);
  margin-bottom: 0.5rem;
}

/* ---- Welcome text (home page) -------------------------- */
.welcome {
  background-color: var(--white);
  border-radius: 6px;
  padding: 2.5rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.welcome p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.welcome p:last-child {
  margin-bottom: 0;
}

/* ---- Cards (rooms, activities, images) ----------------- */
.card {
  background-color: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 2rem;
}

.card-body {
  padding: 1.5rem 2rem;
}

.card-body h2 {
  font-size: 1.4rem;
  color: var(--terracotta);
  margin-bottom: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--stone-light);
}

.card-body p {
  margin-bottom: 0.8rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.card img {
  width: 100%;
  object-fit: cover;
}

/* ---- Image gallery row --------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  padding: 0.5rem;
}

.gallery-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border: 6px solid var(--terracotta);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 0 0 2px var(--terracotta-light);
  outline: 3px solid var(--terracotta-light);
  outline-offset: 3px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 0 0 2px var(--terracotta-light);
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery-3 {
    grid-template-columns: 1fr;
  }
}

/* ---- Two-column layout (image + text) ------------------ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.two-col img {
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
}

/* ---- Pricing table ------------------------------------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.pricing-table th,
.pricing-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--stone-light);
}

.pricing-table th {
  background-color: var(--terracotta);
  color: var(--white);
  font-weight: 600;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover td {
  background-color: var(--cream);
}

/* ---- Info card (contact) ------------------------------- */
.info-card {
  background-color: var(--white);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 2rem;
}

.info-card h2 {
  font-size: 1.4rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--stone-light);
}

.info-item {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.info-label {
  font-weight: 600;
  color: var(--olive-dark);
  min-width: 7rem;
}

/* ---- Activity cards ------------------------------------ */
.activity {
  background-color: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 2rem;
}

.activity-content {
  padding: 1.5rem 2rem;
}

.activity-content h2 {
  font-size: 1.3rem;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.activity-content p {
  margin-bottom: 0.6rem;
}

.activity-content p:last-child {
  margin-bottom: 0;
}

.activity img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

/* Layout with image on side */
.activity-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}

.activity-row img {
  height: 100%;
  max-height: none;
  object-fit: cover;
}

/* ---- Intro text block ---------------------------------- */
.intro-text {
  background-color: var(--white);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  font-style: italic;
  color: var(--olive-dark);
  line-height: 1.8;
}

.intro-text p {
  margin-bottom: 0.6rem;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* ---- Note / highlight box ------------------------------ */
.note {
  background-color: var(--stone-light);
  border-left: 4px solid var(--terracotta);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

/* ---- Footer -------------------------------------------- */
.footer {
  background-color: var(--dark);
  color: var(--stone-light);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.footer a {
  color: var(--terracotta-light);
}

.footer a:hover {
  color: var(--white);
}

.footer-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ---- Legal page ---------------------------------------- */
.legal {
  background-color: var(--white);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.legal h2 {
  font-size: 1.3rem;
  color: var(--terracotta);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  margin-bottom: 0.6rem;
}

.legal blockquote {
  margin: 0.5rem 0 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--sand);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 4px 4px 0;
  line-height: 1.8;
  color: var(--dark);
}

/* ---- Responsive ---------------------------------------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(58, 50, 38, 0.1);
  }

  .hero { min-height: 300px; }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  .welcome {
    margin-top: 0;
    padding: 1.5rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .activity-row {
    grid-template-columns: 1fr;
  }

  .activity-row img {
    max-height: 220px;
  }

  .info-item {
    flex-direction: column;
    gap: 0.2rem;
  }

  .info-label {
    min-width: auto;
  }

  .pricing-table {
    font-size: 0.9rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.6rem 0.8rem;
  }

  .card-body,
  .activity-content,
  .info-card,
  .legal {
    padding: 1.2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .container,
  .container-wide {
    padding: 0 1rem;
  }
}
