* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #15110d;
  --panel: #1f1914;
  --cream: #ece3d4;
  --gold: #c9a24b;
  --gold-soft: #e0c78a;
  --muted: #9c9183;
  --line: rgba(201, 162, 75, 0.22);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
html {
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--cream);
}
.wrapper {
  overflow-x: hidden;
  position: relative;
}
.nav-container {
  height: 100px;
  padding: 0 2rem;
  max-width: 1410px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-header {
  display: flex;
  height: 80px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}
.nav-header a.logo {
  height: 100%;
}
.nav-header a.logo img {
  height: 100%;
  width: auto;
  border-radius: 5px;
}
.nav-home {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-home:hover {
  color: var(--gold);
}

/* Page intro */
.offer-intro {
  max-width: 1410px;
  margin: 1.5rem auto 0;
  padding: 2rem 2rem 0;
  text-align: center;
}
.offer-intro h1 {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.01em;
  padding-bottom: 1.25rem;
}
.offer-intro h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
}
.offer-intro p {
  margin-top: 1.25rem;
  font-family: "roboto", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  color: var(--muted);
}

.gallery-wrapper {
  max-width: 1410px;
  margin: 2.5rem auto 50px;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
div.gallery-item {
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  font-family: var(--serif);
  width: 100%;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  opacity: 0;
  animation: tile-in 0.6s ease forwards;
}
div.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 75, 0.5);
  box-shadow: 0 28px 55px -22px rgba(0, 0, 0, 0.95);
}
div.gallery-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
div.gallery-item:hover img {
  transform: scale(1.06);
}
div.gallery-item .desc {
  min-height: 40px;
  padding: 18px 15px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  border-top: 1px solid var(--line);
}
/* staggered reveal for the first rows */
@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gallery-item:nth-child(1) {
  animation-delay: 0.04s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.16s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.22s;
}
.gallery-item:nth-child(5) {
  animation-delay: 0.28s;
}
.gallery-item:nth-child(6) {
  animation-delay: 0.34s;
}
.gallery-item:nth-child(7) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(8) {
  animation-delay: 0.46s;
}

footer {
  width: 100%;
  min-height: 10vh;
  margin-top: 5rem;
  background-color: #000;
}
footer > div {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
footer > div > p {
  color: var(--muted);
  font-size: 1.5rem;
}
footer > div > img {
  margin: 25px auto;
  width: 300px;
  border-radius: 10px;
}
@media (max-width: 1400px) {
  .modal {
    display: none;
    pointer-events: none;
  }
  div.gallery-item {
    cursor: default;
  }
  div.gallery-item .desc {
    min-height: 60px;
  }
}

@media (max-width: 800px) {
  .nav-container {
    padding: 0 1rem;
  }
  .nav-home {
    font-size: 1.1rem;
  }
  .offer-intro {
    padding: 1rem 1rem 0;
  }
  .gallery-wrapper {
    padding: 0 1rem;
  }
  footer {
    margin-top: 2rem;
  }
  footer > div > img {
    width: 250px;
  }
  .nav-header a.logo img {
    width: 250px;
  }
  footer > div > p {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  footer > div > img {
    width: 200px;
  }
  .nav-header a.logo img {
    width: 200px;
  }
  footer > div > p {
    font-size: 0.8rem;
  }
  div.gallery-item {
    margin: 20px 0px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .gallery-item {
    opacity: 1;
    animation: none;
  }
}

/* Modal css */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  background: rgba(10, 8, 6, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.35s ease;
}
.modal i {
  color: var(--cream);
  font-size: 4rem;
  cursor: pointer;
  transition: color 0.3s ease;
}
.modal i:hover {
  color: var(--gold);
}
.modal .fa-angle-left {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 10%;
}
.modal .fa-angle-right {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 10%;
}
.modal.open {
  opacity: 1;
  pointer-events: all;
}
.modal p {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.02em;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.full-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 70%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transition: all 0.5s ease-in-out;
}
.full-img.open {
  transform: translate(-50%, -50%) scale(1);
}
