/* =============================================
   MT Customs Prints - Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Cormorant+Garamond:wght@300;400;500&family=Outfit:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
  --navy: #1a2744;
  --blue: #2952cc;
  --gold: #b8860b;
  --gold-light: #d4a017;
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --light-grey: #eeebe5;
  --dark: #1a1a1a;
  --dark-bg: #111111;
  --text-muted: #6b6560;
  --white: #ffffff;
  --border: #e0dbd0;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
  --radius: 4px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--warm-white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(250,248,244,0.99);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

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

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  z-index: 999;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a.active { color: var(--gold); }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn-gold:hover {
  background: #9a6f09;
  border-color: #9a6f09;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,134,11,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--white);
}

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

/* =============================================
   SECTION LABELS
   ============================================= */

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
}

/* =============================================
   HERO SECTION (Home)
   ============================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-bg-left {
  background: url('https://images.unsplash.com/photo-1556821840-3a63f15732ce?w=900&q=80') center/cover no-repeat;
}

.hero-bg-right {
  background: url('https://images.unsplash.com/photo-1513519245088-0e12902e5a38?w=900&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,68,0.7) 0%, rgba(0,0,0,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
  max-width: 700px;
  animation: fadeUp 0.9s ease both;
}

.hero-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: white;
  border-radius: 50%;
  padding: 10px;
  margin: 0 auto 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-divider {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 60%;
  background: rgba(255,255,255,0.2);
  z-index: 1;
}

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

/* =============================================
   FEATURED SECTION
   ============================================= */

.featured-section {
  padding: 100px 48px;
  background: var(--warm-white);
}

.featured-header {
  text-align: center;
  margin-bottom: 56px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
}

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

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

.product-card-info {
  padding: 16px 18px 20px;
}

.product-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.product-card-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.product-card-category {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.featured-footer {
  text-align: center;
  margin-top: 48px;
}

.view-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: var(--transition);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.view-archive-link:hover { gap: 14px; }

/* =============================================
   ABOUT / STORY SECTION
   ============================================= */

.story-section {
  padding: 100px 48px;
  background: var(--light-grey);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.97rem;
  line-height: 1.8;
}

.story-text .section-title {
  margin-bottom: 24px;
}

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

.stat-card {
  background: var(--warm-white);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-section {
  padding: 100px 48px;
  background: var(--warm-white);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 20px; }

.contact-info > p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--light-grey);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.contact-method:hover {
  background: var(--cream);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact-method-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form */
.contact-form {
  background: var(--light-grey);
  border-radius: 12px;
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--dark);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.12);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.7);
  padding: 72px 48px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  background: white;
  border-radius: 50%;
  padding: 5px;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--gold-light); }

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   ARCHIVE PAGE
   ============================================= */

.archive-hero {
  background: var(--light-grey);
  padding: 80px 48px 60px;
  text-align: center;
  margin-top: 72px;
  border-bottom: 1px solid var(--border);
}

.archive-hero .section-title { margin: 8px 0 12px; }

.archive-count {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 20px 48px;
  position: sticky;
  top: 72px;
  z-index: 100;
}

.filter-bar-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background: var(--light-grey);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--light-grey);
  padding: 4px;
  border-radius: 6px;
}

.filter-tab {
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
}

.filter-tab.active {
  background: var(--gold);
  color: var(--white);
}

.filter-tab:not(.active):hover {
  background: var(--cream);
  color: var(--dark);
}

.sort-select {
  padding: 10px 14px;
  background: var(--light-grey);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--dark);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.sort-select:focus {
  border-color: var(--gold);
}

/* Archive Grid */
.archive-section {
  padding: 48px 48px 80px;
}

.archive-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.no-results h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--dark);
}

/* =============================================
   PRODUCT MODAL
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 12px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-img {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
}

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

.modal-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: -12px; right: -12px;
  width: 36px; height: 36px;
  background: var(--dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover { background: var(--gold); }

.modal-header { position: relative; }

.modal-category {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.modal-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.modal-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.modal-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  flex: 1;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.order-btn-whatsapp {
  background: #25d366;
  color: white;
}

.order-btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.order-btn-email {
  background: var(--gold);
  color: white;
}

.order-btn-email:hover {
  background: #9a6f09;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,134,11,0.3);
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-page-hero {
  background: var(--navy);
  padding: 80px 48px 60px;
  text-align: center;
  margin-top: 72px;
}

.contact-page-hero .section-label { color: var(--gold-light); }
.contact-page-hero .section-title { color: var(--white); }

.contact-page-section {
  padding: 80px 48px;
}

.contact-page-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

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

@media (max-width: 1100px) {
  .product-grid, .archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  .featured-section, .story-section, .contact-section, .archive-section, .contact-page-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .filter-bar { padding: 16px 24px; }
  
  .story-inner, .contact-inner, .contact-page-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .product-grid, .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal {
    grid-template-columns: 1fr;
    max-height: 85vh;
  }
  
  .modal-img {
    border-radius: 12px 12px 0 0;
    aspect-ratio: 4/3;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .hero-divider { display: none; }
}

@media (max-width: 600px) {
  .product-grid, .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .filter-bar-inner { flex-direction: column; align-items: stretch; }
  .filter-tabs { justify-content: center; }
  
  .archive-hero, .contact-page-hero { padding: 60px 24px 40px; }
  
  .footer { padding: 48px 24px 24px; }
}

/* Utility */
.container { max-width: 1300px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Featured cards: stagger fade-in on scroll ── */
.product-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}
