*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  display: none;
}

::selection {
  background: rgba(184, 92, 56, 0.2);
  color: #1F2325;
}

.topbar-inner {
  height: 36px;
}

#navbar {
  top: 36px;
}

#navbar.scrolled-past {
  top: 0;
}

.nav-inner {
  height: 64px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2C3338;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #B85C38;
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  background-color: #B85C38;
  padding: 10px 24px;
  border-radius: 2px;
  transition: background-color 0.2s;
  display: inline-block;
}

.nav-cta:hover {
  background-color: #9A4A2C;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(229, 221, 210, 0.8);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.footer-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #D4916A;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: #F2EDE6;
}

.section-label-spacing {
  letter-spacing: 0.2em;
}

.hero-section {
  min-height: 92vh;
}

.hero-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hamburger {
  gap: 7px;
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1F2325;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

#menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle.active .bar:nth-child(3) {
  width: 24px;
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background-color: white;
  border-top: 1px solid #E5DDD2;
}

.mobile-menu.open {
  max-height: 500px;
  border-bottom: 1px solid #E5DDD2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.mobile-nav-link {
  display: block;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #2C3338;
  border-bottom: 1px solid #F2EDE6;
  transition: color 0.2s, background-color 0.2s;
}

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

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: #B85C38;
  background-color: #FAF8F4;
}

.mobile-nav-cta {
  color: white;
  background-color: #B85C38;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 12px 16px 16px;
  padding: 14px 20px;
  border-radius: 2px;
  border-bottom: none;
}

.mobile-nav-cta:hover,
.mobile-nav-cta:active {
  background-color: #9A4A2C;
  color: white;
}

.hero-el {
  opacity: 0;
  transform: translateY(30px);
}

.hero-el.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.service-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.service-card.reveal:nth-child(6) { transition-delay: 0.40s; }

.gallery-item.reveal:nth-child(2) { transition-delay: 0.05s; }
.gallery-item.reveal:nth-child(3) { transition-delay: 0.10s; }
.gallery-item.reveal:nth-child(4) { transition-delay: 0.15s; }
.gallery-item.reveal:nth-child(5) { transition-delay: 0.20s; }
.gallery-item.reveal:nth-child(6) { transition-delay: 0.25s; }
.gallery-item.reveal:nth-child(7) { transition-delay: 0.30s; }
.gallery-item.reveal:nth-child(8) { transition-delay: 0.35s; }
.gallery-item.reveal:nth-child(9) { transition-delay: 0.40s; }
.gallery-item.reveal:nth-child(10) { transition-delay: 0.45s; }
.gallery-item.reveal:nth-child(11) { transition-delay: 0.50s; }
.gallery-item.reveal:nth-child(12) { transition-delay: 0.55s; }

.testimonial-card:nth-child(2) { transition-delay: 0.12s; }
.testimonial-card:nth-child(3) { transition-delay: 0.24s; }

.gallery-item {
  background-color: #1F2325;
}

.gallery-short {
  aspect-ratio: 4/3;
}

.gallery-label {
  position: absolute;
  bottom: 12px;
  left: 16px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}

.group:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
}

.star-icon {
  width: 18px;
  height: 18px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(184, 92, 56, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B85C38;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 14px;
}

.about-badge {
  position: absolute;
  top: 24px;
  left: -16px;
  background-color: #B85C38;
  color: white;
  padding: 16px 24px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stats-grid > div {
  border-left: 1px solid #2C3338;
}

.stats-grid > div:first-child,
.stats-grid > div:nth-child(3) {
  border-left: none;
}

@media (min-width: 1024px) {
  .stats-grid > div:nth-child(3) {
    border-left: 1px solid #2C3338;
  }
}

.quote-line {
  width: 48px;
  height: 2px;
  background-color: #C47A4E;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background-color: #B85C38;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.contact-icon-area {
  margin-top: 18px;
}

.form-input {
  width: 100%;
  background-color: #FAF8F4;
  border: 1px solid #E5DDD2;
  border-radius: 2px;
  padding: 12px 16px;
  color: #1F2325;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: rgba(44, 51, 56, 0.35);
}

.form-input:focus {
  outline: none;
  border-color: #C47A4E;
  box-shadow: 0 0 0 2px rgba(196, 122, 78, 0.15);
}

.custom-select {
  appearance: none;
  padding-right: 2.5rem;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #B85C38;
  border-bottom: 2px solid #B85C38;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31, 35, 37, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: rgba(184, 92, 56, 0.6);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(184, 92, 56, 0.6);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
}

@media (max-width: 640px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1023px) {
  .nav-logo {
    width: 46px;
    height: 46px;
  }

  .about-badge {
    left: 0;
    top: auto;
    bottom: -12px;
    right: auto;
  }
  .about-image-wrap {
    margin-bottom: 24px;
  }
}

@media (max-width: 640px) {
  .footer-logo {
    width: 76px;
    height: 76px;
  }

  .gallery-item:nth-child(n+9) {
    display: none;
  }
}

#contact-form {
  max-width: 100%;
  overflow: hidden;
}

#contact-form .g-recaptcha {
  transform-origin: left center;
  max-width: 100%;
}

@media (max-width: 400px) {
  #contact-form .g-recaptcha {
    transform: scale(0.85);
  }
}

@media (max-width: 340px) {
  #contact-form .g-recaptcha {
    transform: scale(0.75);
  }
}
