/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #e8e8e8;
  background: #111;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  font-weight: 600;
  color: #c8963e;
  margin-bottom: 12px;
}
.section-headline {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 48px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .2s, opacity .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); opacity: .9; }
.btn--primary { background: #c8963e; color: #fff; }
.btn--outline { background: transparent; color: #c8963e; border: 2px solid #c8963e; }
.btn--large { padding: 16px 40px; font-size: 1.05rem; }

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(17,17,17,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  opacity: .8;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  background: #c8963e;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  opacity: 1 !important;
  font-weight: 600;
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px; height: 20px;
  position: relative;
  z-index: 110;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: transform .3s, opacity .3s;
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 9px; }
.nav__toggle span:nth-child(3) { top: 18px; }

/* ===== HERO CAROUSEL ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide--active { opacity: 1; }

/* --- Glass text bar --- */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}
.hero__glass {
  background: rgba(30, 30, 40, .2);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.12);
  border-top-color: rgba(255,255,255,.25);
  border-radius: 28px;
  padding: 52px 60px;
  max-width: 720px;
  text-align: center;
  box-shadow:
    0 2px 0 rgba(255,255,255,.06) inset,
    0 24px 64px rgba(0,0,0,.25),
    0 8px 20px rgba(0,0,0,.15);
}
.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
  color: #fff;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* --- Dot indicators --- */
.hero__dots {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s;
}
.hero__dot--active {
  background: #fff;
  transform: scale(1.2);
}
.hero__dot:hover { background: rgba(255,255,255,.6); }

/* --- Scroll hint --- */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.7);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTION 2: ABOUT / WHY CHOOSE US ===== */
.about {
  background: #1a1a2e;
  padding: 100px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 36px 28px;
  transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(200,150,62,.3); }
.card__icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  color: #c8963e;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}
.card p {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ===== SECTION 3: CRAFTSMANSHIP (Sticky Scroll) ===== */
.craft {
  background: #111;
  padding: 100px 0;
}
.craft__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.craft__sticky {
  position: sticky;
  top: 100px;
}
.craft__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
}
.craft__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.craft__img--active { opacity: 1; }

.craft__stories {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.craft__story {
  padding: 60px 0;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.craft__story h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}
.craft__story p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}

/* ===== SECTION 4: CABINET STYLES ===== */
.styles {
  background: #f8f7f4;
  padding: 100px 0;
  color: #222;
}
.styles .section-label { color: #c8963e; }
.styles .section-headline { color: #222; }
.styles__group-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 28px;
  margin-top: 16px;
}
.styles__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.style-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.style-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.style-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.style-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.style-card:hover .style-card__img-wrap img { transform: scale(1.04); }
.style-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 20px 20px 8px;
  color: #222;
}
.style-card p {
  font-size: .9rem;
  color: #666;
  padding: 0 20px 24px;
  line-height: 1.55;
}

/* ===== SECTION 5: GALLERY ===== */
.gallery {
  background: #111;
  padding-bottom: 100px;
}
.gallery__banner {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  margin-bottom: 64px;
}
.gallery__banner img { width: 100%; height: 100%; object-fit: cover; }
.gallery__intro {
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 48px;
  max-width: 600px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__num {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 1;
}
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__overlay strong {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.gallery__overlay span {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

/* ===== SECTION 6: CONTACT ===== */
.contact {
  background: #1a1a2e;
  padding: 100px 0;
}
.contact__headline {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 48px;
  text-align: center;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 1rem;
  color: rgba(255,255,255,.8);
}
.contact__row svg { flex-shrink: 0; color: #c8963e; }
.contact__row a { transition: color .2s; }
.contact__row a:hover { color: #c8963e; }
.contact__cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 28px;
}
.contact__cta .btn { display: block; text-align: center; margin-bottom: 16px; }

/* ===== FOOTER ===== */
.footer {
  background: #0a0a0a;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer__logo { height: 36px; width: auto; }
.footer p { font-size: .85rem; color: rgba(255,255,255,.4); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 16px;
  opacity: .7;
  transition: opacity .2s;
  z-index: 210;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }
.lightbox__close { top: 16px; right: 24px; font-size: 3rem; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 3.5rem; }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 3.5rem; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .styles__row { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .craft__grid { grid-template-columns: 1fr; gap: 32px; }
  .craft__sticky { position: static; }
  .craft__img-wrap { aspect-ratio: 16 / 9; margin-bottom: 24px; }
  .craft__story { min-height: auto; padding: 32px 0; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: rgba(17,17,17,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 105;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__toggle { display: block; }
  .nav__toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(6px, 7px); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

  .cards { grid-template-columns: 1fr; }
  .card { padding: 28px 20px; }

  .styles__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .contact__headline { font-size: 1.8rem; }
  .contact__cta .btn--large { padding: 14px 28px; }

  .hero { height: 100svh; }
  .hero__slide { object-position: center 30%; }
  .hero__glass { padding: 36px 24px; border-radius: 22px; }
  .hero__title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero__sub { font-size: .95rem; }
  .hero__dots { bottom: 64px; }

  .footer__inner { flex-direction: column; text-align: center; gap: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; }
}
