/* === BASE === */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #FAFAF8;
  color: #1F1F1F;
  line-height: 1.6;
}

/* === NAVIGATION === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  background: #FAFAF8;
  border-bottom: 1px solid #E8E8E4;
  z-index: 100;
}

.logo {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.nav nav a {
  margin-left: 28px;
  text-decoration: none;
  color: #1F1F1F;
  font-size: 14px;
  transition: color 0.2s;
}

.nav nav a:hover {
  color: #424A5F;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1F1F1F;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === HERO === */
.hero {
  display: flex;
  min-height: 80vh;
  align-items: center;
  padding: 60px 40px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 56px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.subtitle {
  color: #5C5C5C;
  margin: 0 0 12px;
  font-size: 16px;
}

/* === SECTIONS === */
.section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* === PROCESS STEPS === */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.step-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  color: #C9C9C2;
  line-height: 1;
  display: block;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 14px 0 8px;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: #5C5C5C;
  line-height: 1.6;
}

/* === GALLERY === */
@keyframes imgFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-bottom: 28px;
}

.gallery-tabs button {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 8px 2px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8C8C8C;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.gallery-tabs button:hover {
  color: #1F1F1F;
}

.gallery-tabs button.active {
  color: #1F1F1F;
  border-bottom-color: #1F1F1F;
}

.masonry {
  columns: 3;
  column-gap: 12px;
}

.masonry img {
  width: 100%;
  display: block;
  margin-bottom: 12px;
  break-inside: avoid;
  cursor: pointer;
  transition: opacity 0.2s;
}

.masonry img[hidden] {
  display: none;
}

.masonry img.img-hidden {
  opacity: 0;
  transform: translateY(14px);
}

.masonry img.img-visible {
  animation: imgFadeIn 0.5s ease forwards;
}

.masonry img:hover {
  opacity: 0.85;
}

.masonry img:focus-visible {
  outline: 3px solid #424A5F;
  outline-offset: 3px;
}

/* === BUTTONS === */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: #424A5F;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.btn:hover {
  background: #2E3445;
}

.btn.secondary {
  background: transparent;
  border: 1px solid #424A5F;
  color: #424A5F;
}

.btn.secondary:hover {
  background: #424A5F;
  color: white;
}

/* === CONTACT === */
.contact {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 220px;
}

.contact p {
  margin: 0;
  line-height: 2;
}

.contact a {
  color: #1F1F1F;
  text-decoration: none;
  border-bottom: 1px solid #E8E8E4;
  transition: border-color 0.2s;
}

.contact a:hover {
  border-color: #424A5F;
}

/* === CONTACT FORM === */
.contact-form {
  flex: 2;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #5C5C5C;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  color: #1F1F1F;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #E8E8E4;
  background: transparent;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #424A5F;
}

.contact-form input[type="file"] {
  font-size: 13px;
  padding: 6px 0;
}

.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.form-error {
  color: #A94438;
  font-size: 13px;
}

/* === FOOTER === */
footer {
  padding: 32px 40px;
  text-align: center;
  font-size: 13px;
  color: #8C8C8C;
  border-top: 1px solid #E8E8E4;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: white;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 26px;
  cursor: pointer;
  padding: 20px 14px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* === TABLET (≤ 900px) === */
@media (max-width: 900px) {
  .hero {
    gap: 36px;
    padding: 48px 32px;
    min-height: 65vh;
  }

  h1 {
    font-size: 44px;
  }

  .section {
    padding: 60px 32px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* === MOBILE (≤ 640px) === */
@media (max-width: 640px) {
  /* Nav */
  .nav {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav nav {
    display: none;
    width: 100%;
    flex-direction: column;
    border-top: 1px solid #E8E8E4;
    margin-top: 12px;
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .nav nav.open {
    display: flex;
  }

  .nav nav a {
    margin-left: 0;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid #F0F0EC;
  }

  .nav nav a:last-child {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    min-height: auto;
    padding: 36px 20px 48px;
    gap: 28px;
  }

  .hero-image img {
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 22px;
  }

  /* Sections */
  .section {
    padding: 48px 20px;
  }

  /* Process: single column */
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Gallery: 2 columns */
  .masonry {
    columns: 2;
    column-gap: 8px;
  }

  .masonry img {
    margin-bottom: 8px;
  }

  /* Buttons: full-width stack */
  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Contact */
  .contact {
    flex-direction: column;
    gap: 20px;
  }

  /* Footer */
  footer {
    padding: 24px 20px;
  }

  /* Lightbox buttons */
  .lightbox-prev,
  .lightbox-next {
    padding: 14px 10px;
    font-size: 20px;
  }
}
