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

:root {
  --color-bg: #f8f6f3;
  --color-bg-alt: #eee9e2;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --color-accent: #c4703f;
  --color-accent-hover: #a85a2f;
  --color-white: #ffffff;
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'DM Serif Display', serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  transition: var(--transition);
  color: var(--color-white);
}

.nav--scrolled {
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  color: var(--color-text);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* ===== Sections ===== */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section__title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero ===== */
.section--hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/hero.jpg') center / cover no-repeat;
  text-align: center;
  padding: 0;
  color: var(--color-white);
}

.hero__content {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero__subtitle {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1.5px solid var(--color-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: var(--transition);
}

.hero__cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: bounce 2s ease infinite;
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Gallery ===== */
.section--gallery {
  min-height: auto;
  padding: 8rem 0;
  display: block;
}

.gallery__filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter__btn {
  background: none;
  border: 1.5px solid transparent;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--color-text-light);
  transition: var(--transition);
  border-radius: 100px;
}

.filter__btn:hover {
  color: var(--color-text);
}

.filter__btn--active {
  border-color: var(--color-text);
  color: var(--color-text);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* ===== Gallery Card ===== */
.gallery__card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery__card.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery__card-img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.gallery__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__card:hover .gallery__card-img {
  transform: scale(1.05);
}

.gallery__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--color-white);
}

.gallery__card:hover .gallery__card-overlay {
  opacity: 1;
}

.gallery__card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.gallery__card-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.gallery__card-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.badge--print {
  background: rgba(196, 112, 63, 0.9);
  color: var(--color-white);
}

.badge--size {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 201;
  transition: transform 0.3s ease;
}

.lightbox__close:hover {
  transform: rotate(90deg);
}

.lightbox__content {
  display: flex;
  gap: 3rem;
  max-width: 1100px;
  max-height: 85vh;
  padding: 2rem;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.lightbox--open .lightbox__content {
  transform: scale(1);
}

.lightbox__img {
  max-height: 75vh;
  max-width: 55%;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox__info {
  color: var(--color-white);
  min-width: 250px;
  max-width: 350px;
}

.lightbox__info-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.lightbox__info-type {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.lightbox__info-section {
  margin-bottom: 1.5rem;
}

.lightbox__info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.lightbox__info-prices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lightbox__info-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox__info-price-row:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox__info-price-row.selected {
  border-color: var(--color-accent);
  background: rgba(196, 112, 63, 0.15);
}

.lightbox__info-size {
  font-weight: 500;
  font-size: 0.95rem;
}

.lightbox__info-amount {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.lightbox__info-unavailable {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-size: 0.9rem;
}

.lightbox__info-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  font-family: var(--font-body);
}

.lightbox__info-cta:hover {
  background: var(--color-white);
  color: var(--color-text);
}

/* ===== Contact ===== */
.section--contact {
  min-height: auto;
  padding: 8rem 0;
  background: var(--color-bg-alt);
  display: block;
}

.contact__intro {
  text-align: center;
  max-width: 500px;
  margin: -1.5rem auto 3rem;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.contact__form {
  max-width: 640px;
  margin: 0 auto;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.form__input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid transparent;
  background: var(--color-white);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color 0.3s ease;
  outline: none;
}

.form__input:focus {
  border-color: var(--color-accent);
}

.form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.form__submit:hover {
  background: var(--color-accent);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem 0 1.5rem;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav__links {
    gap: 1.5rem;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .lightbox__content {
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
    overflow-y: auto;
  }

  .lightbox__img {
    max-width: 100%;
    max-height: 45vh;
  }

  .lightbox__info {
    min-width: unset;
    max-width: unset;
  }

  .section__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}
