
:root {
  --green: #183c32;
  --green-light: #315b49;
  --cream: #f6f4ed;
  --white: #ffffff;
  --text: #26342d;
  --muted: #747b73;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

button {
  font: inherit;
}

/* HERO */

.hero {
  min-height: 100vh;
  position: relative;
  color: white;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.12)),
    url('https://images.unsplash.com/photo-1445019980597-93fa8acb246c?w=2000')
    center/cover no-repeat;
}

.navbar {
  padding: 28px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo span {
  color: #d4b27a;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  transition: color .3s;
}

.nav-links a:hover {
  color: #d4b27a;
}

.nav-book {
  border: 1px solid white;
  padding: 11px 22px;
}

.menu-toggle {
  display: none;
  color: white;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.hero-content {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 650px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #b38a50;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(55px, 8vw, 100px);
  line-height: 1.05;
  margin-bottom: 25px;
}

.hero h1 span {
  color: #d4b27a;
}

.hero-content > p:not(.eyebrow) {
  font-size: 17px;
  margin-bottom: 35px;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 15px 27px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: .3s;
}

.btn:hover {
  background: var(--green-light);
  transform: translateY(-3px);
}

.hero .btn {
  background: #d4b27a;
  color: #183c32;
}

.hero-bottom {
  position: absolute;
  bottom: 30px;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 2px;
}

/* GENERAL SECTIONS */

.section {
  padding: 110px 9%;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 55px;
}

.section-heading h2,
.about h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--green);
}

.section-heading > p:last-child {
  color: var(--muted);
  max-width: 500px;
}

/* ROOMS */

.room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.room-card {
  background: white;
  overflow: hidden;
}

.room-card img {
  height: 350px;
  transition: transform .5s;
}

.room-card:hover img {
  transform: scale(1.04);
}

.room-info {
  padding: 25px;
}

.room-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  margin-bottom: 8px;
}

.room-info p {
  color: var(--muted);
}

/* GALLERY */

.gallery {
  background: var(--green);
  color: white;
}

.gallery .section-heading h2 {
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 230px 230px;
  gap: 15px;
}

.gallery-grid img {
  height: 100%;
  transition: transform .4s;
}

.gallery-grid img:hover {
  transform: scale(1.025);
}

.gallery-grid img:nth-child(1) {
  grid-column: span 2;
}

.gallery-grid img:nth-child(4) {
  grid-column: span 2;
}

/* EVENTS */

.events {
  background: #ebe8df;
}

.event-slider {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: white;
  min-height: 400px;
}

.event-image img {
  height: 100%;
  min-height: 400px;
}

.event-content {
  padding: 60px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 35px;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 20px;
}

.event-content > p:not(.eyebrow) {
  color: var(--muted);
}

.slider-controls {
  display: flex;
  gap: 12px;
  margin-top: 35px;
}

.slider-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
  transition: .3s;
}

.slider-controls button:hover {
  background: var(--green);
  color: white;
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.about-image img {
  height: 550px;
}

.about-content > p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 20px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
}

/* CONTACT */

.contact {
  background: #ebe8df;
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  margin-bottom: 25px;
}

.contact-info p {
  margin-bottom: 25px;
  color: var(--muted);
}

.contact-info strong {
  color: var(--green);
}

.contact-info a:not(.btn) {
  text-decoration: underline;
}

.contact-info .btn {
  margin-top: 10px;
}

.map iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

/* FOOTER */

footer {
  background: var(--green);
  color: white;
  padding: 50px 9%;
  text-align: center;
}

footer p {
  font-size: 13px;
  margin-top: 12px;
  color: #c5cec7;
}

/* MOBILE */

@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    padding: 22px 6%;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--green);
    padding: 25px;
    flex-direction: column;
    gap: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-content {
    left: 7%;
    right: 7%;
  }

  .section {
    padding: 75px 6%;
  }

  .room-grid,
  .about,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px;
  }

  .event-slider {
    grid-template-columns: 1fr;
  }

  .event-image img {
    min-height: 270px;
    height: 270px;
  }

  .event-content {
    padding: 35px 25px;
  }

  .about-image img {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 54px;
  }

  .hero-bottom {
    font-size: 8px;
  }

  .room-card img {
    height: 260px;
  }

  .gallery-grid {
    grid-template-rows: 140px 140px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* GALLERY LIGHTBOX */

.gallery-grid img {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: grab;
  transform: scale(1);
  transition: transform 0.1s;
  user-select: none;
}

.lightbox img:active {
  cursor: grabbing;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.lightbox-hint {
  position: absolute;
  bottom: 25px;
  color: white;
  font-size: 13px;
  opacity: .7;
}

@media (max-width: 600px) {
  .lightbox img {
    max-width: 95%;
    max-height: 80%;
  }
}
