/* --- LUXURY TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  /* Color Palette */
  --background: #f8f7f2; 
  --foreground: #221f1e;
  --primary: #221f1e;
  --accent: #c5a059;   /* Luxury Gold */
  --muted: #e5e1d8;
  --border: #d6d1c4;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', serif;
  
  /* Transitions */
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Global Image Fix to prevent distortion */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.font-display {
  font-family: var(--font-display);
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2rem 0;
  transition: padding 0.4s ease, background-color 0.4s ease, border 0.4s ease;
}

.navbar.scrolled {
  padding: 1.2rem 0;
  background-color: rgba(248, 247, 242, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* When scrolled, ensure text returns to primary dark color regardless of inline styles */
.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-links a,
.navbar.scrolled .menu-toggle {
  color: var(--primary) !important; 
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.4s ease;
}

.navbar-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-links a:hover, 
.navbar-links a.active {
  color: var(--accent) !important;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* Hidden on desktop */
}

/* --- FULL-BLEED OVERLAY HERO --- */
.hero {
  position: relative;
  min-height: 111vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -100px; /* Pulls the image up behind the navbar */
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark tint */
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 0 2rem;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #e5e1d8;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-desc {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #f8f7f2;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition-smooth);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: var(--transition-smooth);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: var(--transition-smooth);
}

.reveal.active, 
.reveal-left.active, 
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- STORE & PRODUCT GRID --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 4rem 2rem;
  margin: 4rem 0;
}

.product-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* Handles both .product-card-image and .image-box to ensure uniform photos */
.product-card-image, 
.image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background-color: var(--muted);
  margin-bottom: 1.5rem;
}

.product-card-image img, 
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 0.5rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.product-price {
  font-weight: 500;
}

/* --- UTILITY & BUTTONS --- */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 1.25rem 3rem;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: var(--transition-smooth);
  border: 1px solid var(--primary);
}

.btn-accent:hover {
  background: transparent;
  color: var(--primary);
}

/* Hero Button Override */
.hero-content .btn-accent {
  background: white;
  color: #1a1a1a;
  border: 1px solid white;
}

.hero-content .btn-accent:hover {
  background: transparent;
  color: white;
}

/* --- SERVICE CARDS --- */
.service-card {
  background-color: #ffffff;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border-color: var(--accent); /* Changes the border to gold on hover */
}

/* --- FOOTER --- */
.footer {
  padding: 8rem 0 4rem;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  margin-top: 8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--background);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  }

  .navbar-links.active {
    right: 0;
  }

  /* Force mobile menu text to be dark so it is visible on the light background */
  .navbar-links a {
    color: var(--primary) !important;
    font-size: 1.2rem;
  }

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

@media (max-width: 768px) {
  .reveal-left, .reveal-right {
    padding-right: 0 !important;
  }
  main > section > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* --- INQUIRY MODAL (POP-UP) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  background: #f8f7f2;
  font-family: inherit;
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: border-color 0.3s ease;
}

.checkbox-label:hover {
  border-color: var(--primary);
}