:root {
  --cream: #eadcc5;
  --dark: #111;
  --black: #080808;
  --gold: #c6a15c;

  --serif: "Cormorant Garamond", serif;
  --display: "Playfair Display", serif;
  --sans: "Inter", sans-serif;
}

/* =====================================================
   RESET
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: #151311;
  font-family: var(--sans);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* Improve keyboard accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* =====================================================
   NAVIGATION
===================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 85px;

  padding: 0 7%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  z-index: 1000;

  background: rgba(0, 0, 0, 0.65);
  color: white;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  font-family: var(--display);
  letter-spacing: 4px;
  font-size: 1.1rem;
}

nav {
  display: flex;
  gap: 35px;
}

nav a {
  position: relative;

  font-family: var(--serif);
  font-size: 1.1rem;

  transition: color 0.3s ease;
}

nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: var(--gold);

  transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--gold);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Mobile menu button */

.menu-toggle {
  display: none;

  border: 0;
  background: transparent;

  padding: 8px;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 27px;
  height: 1px;

  background: white;

  margin: 6px;
}

/* =====================================================
   HERO
===================================================== */

.gallery-hero {
  min-height: 70vh;

  display: flex;
  align-items: flex-end;

  padding: 100px 8%;

  color: white;

  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.85)),
    url("../assets/hero.jpg") center / cover no-repeat;
}

.gallery-hero > div {
  max-width: 900px;
}

.gallery-hero p {
  color: var(--gold);

  letter-spacing: 5px;

  font-size: 0.7rem;
  font-weight: 500;

  margin-bottom: 20px;
}

.gallery-hero h1 {
  font-family: var(--serif);

  font-size: clamp(5rem, 12vw, 10rem);

  font-weight: 300;

  line-height: 0.75;

  margin: 0;
}

.gallery-hero em {
  color: var(--cream);
  font-style: italic;
}

/* =====================================================
   GENERAL SECTIONS
===================================================== */

.gallery,
.blog {
  max-width: 1400px;

  margin: auto;

  padding: 130px 7%;
}

.section-heading {
  margin-bottom: 60px;
}

.section-heading span {
  display: block;

  color: #92733f;

  letter-spacing: 4px;

  font-size: 0.7rem;
  font-weight: 500;
}

.section-heading h2 {
  font-family: var(--serif);

  font-size: clamp(3.5rem, 6vw, 6rem);

  font-weight: 400;

  line-height: 0.9;

  margin-top: 20px;
}

/* =====================================================
   GALLERY
===================================================== */

.gallery {
  background: var(--cream);
}

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px;
}

.gallery-grid figure {
  position: relative;

  height: 350px;

  overflow: hidden;

  cursor: pointer;

  background: #d2c2a8;
}

.gallery-grid figure::after {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0);

  transition: background 0.4s ease;

  pointer-events: none;
}

.gallery-grid figure:hover::after {
  background: rgba(0, 0, 0, 0.08);
}

.gallery-grid img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.07);
}

/* =====================================================
   BLOG
===================================================== */

.blog {
  max-width: none;

  background: #151311;

  color: white;
}

.blog .section-heading {
  max-width: 1200px;

  margin-left: auto;
  margin-right: auto;
}

.blog .section-heading span {
  color: var(--gold);
}

.blog-grid {
  max-width: 1200px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.blog-card {
  background: #201d19;

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.blog-image {
  height: 260px;

  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 30px;
}

.blog-content time {
  display: block;

  color: var(--gold);

  font-size: 0.7rem;

  letter-spacing: 2px;
}

.blog-content h3 {
  font-family: var(--serif);

  font-size: 2rem;

  font-weight: 400;

  line-height: 1.1;

  margin: 15px 0;
}

.blog-content p {
  color: #aaa;

  line-height: 1.7;

  margin-bottom: 25px;
}

.blog-content a {
  display: inline-block;

  color: var(--gold);

  font-size: 0.7rem;

  letter-spacing: 2px;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.blog-content a:hover {
  color: white;

  transform: translateX(4px);
}

/* =====================================================
   LIGHTBOX
===================================================== */

.lightbox {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(0, 0, 0, 0.94);
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  width: auto;
  max-width: 90vw;
  max-height: 85vh;

  object-fit: contain;
}

#closeLightbox {
  position: absolute;

  top: 25px;
  right: 35px;

  border: 0;

  background: transparent;

  color: white;

  font-size: 3rem;
  line-height: 1;

  cursor: pointer;

  transition: color 0.3s ease;
}

#closeLightbox:hover {
  color: var(--gold);
}

/* =====================================================
   FOOTER
===================================================== */

footer {
  padding: 70px 20px;

  background: var(--black);

  color: white;

  text-align: center;
}

.footer-brand {
  font-family: var(--display);

  letter-spacing: 5px;

  font-size: 1.2rem;
}

footer p {
  color: #888;

  margin-top: 15px;
}

.copyright {
  font-size: 0.7rem;

  margin-top: 40px;
}

/* =====================================================
   TABLET / MOBILE
===================================================== */

@media (max-width: 900px) {
  nav {
    position: fixed;

    top: 0;
    right: -100%;

    width: 80%;
    height: 100vh;

    background: #080808;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 30px;

    transition: right 0.4s ease;
  }

  nav.open {
    right: 0;
  }

  nav a {
    font-size: 1.4rem;
  }

  .menu-toggle {
    display: block;

    position: relative;

    z-index: 1001;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    max-width: 700px;

    width: 100%;

    margin: auto;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {
  .site-nav {
    height: 75px;

    padding: 0 6%;
  }

  .brand {
    font-size: 1rem;

    letter-spacing: 3px;
  }

  .gallery,
  .blog {
    padding: 90px 7%;
  }

  .gallery-hero {
    min-height: 70vh;

    padding: 80px 7%;
  }

  .gallery-hero h1 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .gallery-grid {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .gallery-grid figure {
    height: 300px;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .section-heading h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .blog-content {
    padding: 25px;
  }

  .blog-content h3 {
    font-size: 1.8rem;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox img {
    max-width: 95vw;
    max-height: 80vh;
  }

  #closeLightbox {
    top: 15px;
    right: 20px;

    font-size: 2.5rem;
  }
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
