:root {
  --green: #3a5a40;
  --light-green: #a3b18a;
  --wood: #8b5e3c;
  --cream: #f4f1ee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--cream);
  color: #333;
  scroll-behavior: smooth;
}

/* ================== HEADER ================== */
header {
  position: relative;
  height: 100vh;
  background: url('images/forest-view.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* soft shade */
  z-index: 1;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  line-height: 1.2;
  z-index: 2;
  color: #fff;
}

header p {
  font-size: 1.1rem;
  margin-top: 10px;
  z-index: 2;
  color: #f0f0f0;
}

header a {
  z-index: 2;
  margin-top: 25px;
  padding: 12px 30px;
  background: var(--green);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 600;
}

header a:hover {
  background: var(--light-green);
  color: #222;
}

/* ================== PARALLAX SECTIONS ================== */
.parallax {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 60vh;
  overflow: hidden;
}

.parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35); /* same overlay as header */
  z-index: 1;
}

.parallax.pine {
  background-image: url('images/cottage-best-view-with-snowcapped-mountains.jpg');
}

.parallax.lake {
  background-image: url('images/cottage-best-view-with-snowcapped-mountains.jpg');
}

.parallax.mountain {
  background-image: url('images/cottage-best-view-with-snowcapped-mountains.jpg');
}

/* Ensures content inside parallax stays above overlay */
.parallax * {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* ================== SECTION STYLING ================== */
section {
  padding: 70px 10%;
}

h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

h2::after {
  content: '';
  width: 80px;
  height: 3px;
  background: var(--light-green);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ABOUT */
.about {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: #444;
  line-height: 1.8;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.30);
}

/* BOOKING FORM */
.booking {
  background: linear-gradient(to right, rgba(163,177,138,0.25), rgba(58,90,64,0.15));
  border-radius: 10px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.booking label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.booking input, 
.booking select, 
.booking textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.booking button {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.booking button:hover {
  background: var(--wood);
}

/* ================== CONTACT ================== */
.contact {
  text-align: center;
  line-height: 1.8;
  background: url('images/roof-scene-road.jpg') center/cover no-repeat;
  padding: 80px 10%;
  color: white;
  position: relative;
  overflow: hidden;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35); /* overlay for readability */
  z-index: 0;
}

.contact div {
  position: relative;
  z-index: 1;
}

/* ================== FOOTER ================== */
footer {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
  header {
    height: 90vh;
    background-attachment: scroll;
  }

  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1rem;
  }

  section {
    padding: 50px 6%;
  }

  .gallery img {
    height: 200px;
  }

  .booking {
    padding: 25px;
  }

  .parallax {
    background-attachment: scroll;
  }
}
