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

:root {
  --navy: #2c2c2c;
  --navy-dark: #1a1a1a;
  --accent: #8a7560;
  --accent-light: #a08b74;
  --text: #333;
  --text-light: #777;
  --bg: #fafaf8;
  --bg-alt: #f4f2ef;
  --white: #fff;
  --border: #e5e2dd;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
}

.btn-sm:hover {
  background: var(--navy-dark);
}

.btn-full { width: 100%; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  transition: filter 0.3s;
}

/* Nav logo: white icon on dark hero, navy color logo on scrolled white */
.nav .nav-logo-dark { display: block; }
.nav .nav-logo-light { display: none; }
.nav .nav-logo-full { display: none; }
.nav .nav-logo-icon { display: none; }

.nav.scrolled .nav-logo-dark { display: none; }
.nav.scrolled .nav-logo-light { display: block; }
.nav.scrolled .nav-logo-full { display: none; }
.nav.scrolled .nav-logo-icon { display: none; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

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

.nav.scrolled .nav-links a { color: var(--text); }
.nav.scrolled .nav-links a:hover { color: var(--navy); }

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.nav.scrolled .nav-toggle span { background: var(--text); }

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,35,50,0.82) 0%, rgba(26,35,50,0.92) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 120px 24px 80px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
  -webkit-text-fill-color: var(--accent-light);
}

/* Warm accent for non-hero sections */
.section-eyebrow { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-sub {
  font-size: 16px;
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 48px;
}

/* Center section headers */
.products, .process, .gallery-preview, .testimonials, .faq, .contact {
  text-align: center;
}

.products .section-sub,
.contact .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ===== PRODUCTS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.product-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-alt);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-alt);
  text-align: left;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-text p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ===== PROCESS ===== */
.process {
  background: var(--navy-dark);
  color: var(--white);
}

.process .section-title { color: var(--white); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.process-step { text-align: center; }

.process-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 16px;
  line-height: 1;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* ===== GALLERY PREVIEW ===== */
.gallery-preview {
  background: var(--bg-alt);
}

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.gallery-preview .btn-outline {
  color: var(--navy);
  border-color: var(--navy);
}

.gallery-preview .btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.stars {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.faq-icon { color: var(--accent); }

.testimonial-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

/* ===== FAQ ===== */
.faq { background: var(--bg-alt); }

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy-dark);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.faq-icon {
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-a p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  text-align: center;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.8);
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    color: var(--text) !important;
    font-size: 16px;
  }

  .nav-toggle { display: flex; }

  .hero-content { padding: 100px 24px 60px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }

  .section { padding: 64px 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-img img { height: 300px; }

  .process-grid { grid-template-columns: 1fr; gap: 32px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonial-grid { grid-template-columns: 1fr; }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
}

/* ===== CUSTOM CTA ===== */
.custom-cta {
  padding: 64px 0;
  background: var(--navy-dark);
}

.custom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.custom-cta-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
}

.custom-cta-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 540px;
}

.custom-cta .btn-primary {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .custom-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== CART ===== */
.cart-icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  padding: 4px;
  transition: color 0.2s;
}

.cart-icon-btn:hover { color: #fff; }

.nav.scrolled .cart-icon-btn { color: var(--text); }
.nav.scrolled .cart-icon-btn:hover { color: var(--navy); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
}

.cart-panel.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
}

.cart-close:hover { color: var(--text); }

.cart-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.cart-item-color {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-details { flex: 1; }

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.cart-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-meta span {
  font-size: 12px;
  color: var(--text-light);
}

.cart-item-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 6px;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.cart-item-remove:hover { color: #e53935; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

/* Toast */
.cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cart-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Customize Modal */
.customize-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--white);
  border-radius: 16px;
  width: 420px;
  max-width: 90vw;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.customize-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.customize-modal-inner {
  padding: 32px;
}

.customize-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.customize-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.modal-font-btn {
  padding: 10px 16px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  transition: all 0.2s;
}

.modal-font-btn:hover { border-color: var(--navy); }
.modal-font-btn.active { border-color: var(--navy); background: rgba(44,44,44,0.06); }
