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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

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

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.section-suptitle {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-desc {
  color: #666;
  font-size: 1rem;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #c9a96e;
  letter-spacing: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.4s, padding 0.4s;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 4px;
  color: #fff;
  transition: color 0.4s;
}

#navbar.scrolled .nav-logo {
  color: #1a1a1a;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a96e;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #c9a96e;
}

#navbar.scrolled .nav-links a {
  color: #555;
}

#navbar.scrolled .nav-links a:hover {
  color: #c9a96e;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span + span {
  margin-top: 6px;
}

#navbar.scrolled .nav-toggle span {
  background: #1a1a1a;
}

/* Hero */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 40%, #2a2a2a 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,169,110,0.08) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 2rem;
}

.hero-suptitle {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(201,169,110,0.8);
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease 0.3s both;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: #fff;
  letter-spacing: 16px;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease 0.5s both;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  animation: fadeUp 1s ease 0.7s both;
}

.btn-outline {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s;
  animation: fadeUp 1s ease 0.9s both;
}

.btn-outline:hover {
  border-color: #c9a96e;
  background: #c9a96e;
  color: #1a1a1a;
}

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

/* Collections */
#collections {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.collection-card {
  text-align: center;
}

.card-image {
  height: 340px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
  cursor: pointer;
}

.card-overlay span {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 0.25rem;
}

.collection-card:hover .card-overlay {
  opacity: 1;
}

.collection-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.collection-card p {
  color: #666;
  font-size: 0.9rem;
}

/* About */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.about-image {
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.about-image img {
  transition: transform 0.8s ease;
}

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

.about-content {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content p {
  color: #555;
  margin-bottom: 1.25rem;
  max-width: 480px;
}

.btn-link {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-top: 1rem;
  transition: gap 0.3s;
}

.btn-link:hover {
  color: #1a1a1a;
}

/* Craftsmanship */
#craftsmanship {
  padding: 8rem 2rem;
  background: #fff;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 2rem;
}

.step-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: rgba(201,169,110,0.2);
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
}

/* Gallery */
#gallery {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

/* Contact */
#contact {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content .section-title {
  color: #fff;
}

.contact-content p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 3rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

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

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

#contact-form select {
  color: rgba(255,255,255,0.5);
}

#contact-form select option {
  color: #1a1a1a;
}

.btn-primary {
  padding: 1rem 2.5rem;
  background: #c9a96e;
  border: none;
  color: #1a1a1a;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #b8974f;
}

/* Footer */
footer {
  padding: 3rem 2rem;
  background: #111;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand h3 {
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 3px;
}

.footer-brand p {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #c9a96e;
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  color: #333;
  letter-spacing: 1px;
}

/* Animations on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
  }

  .nav-links.open a {
    color: #1a1a1a;
  }

  #about {
    grid-template-columns: 1fr;
  }

  .about-content {
    padding: 3rem 2rem;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
