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

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

:root {
  --primary:    #2c1810;
  --primary-lt: #4a2c1e;
  --accent:     #c9a96e;
  --accent-lt:  #e8c99a;
  --bg:         #faf8f5;
  --bg-dark:    #f2ede6;
  --text:       #1a1208;
  --text-muted: #6b5b4e;
  --white:      #ffffff;
  --border:     #e0d5c8;
  --success:    #2d6a4f;
  --shadow:     0 4px 24px rgba(44,24,16,0.10);
  --shadow-lg:  0 8px 40px rgba(44,24,16,0.15);
  --radius:     4px;
  --radius-lg:  8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

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

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

/* ========== LOADING SCREEN ========== */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-brand {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.loading-bar-wrap {
  width: 180px; height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  animation: loadBar 1.2s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* ========== NAVBAR ========== */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(44,24,16,0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px; height: 70px;
}
.nav-brand { display: flex; flex-direction: column; }
.nav-brand .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary); letter-spacing: 0.04em;
}
.nav-brand .tagline {
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  font-weight: 400;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--primary);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--primary);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block; padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary); color: var(--white);
  padding: 14px 32px;
}
.btn-primary:hover { background: var(--primary-lt); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 12px 28px;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white); border: 1.5px solid rgba(255,255,255,0.6);
  padding: 14px 40px;
  font-size: 0.85rem;
}
.btn-ghost:hover { background: var(--white); color: var(--primary); }

.btn-accent {
  background: var(--accent); color: var(--primary);
  padding: 14px 32px;
}
.btn-accent:hover { background: var(--accent-lt); box-shadow: var(--shadow); }

/* ========== HERO ========== */
.hero {
  position: relative; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 600px;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 8s ease;
}
.hero:hover .hero-img { transform: scale(1.04); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(44,24,16,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: 0 24px; max-width: 800px;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300; opacity: 0.9;
  max-width: 500px; margin: 0 auto 40px;
  letter-spacing: 0.02em;
}

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

/* ========== SECTION ========== */
.section { padding: 96px 24px; }
.section-sm { padding: 64px 24px; }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary); margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; display: block;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-dark);
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .card-img-wrap img { transform: scale(1.08); }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--primary);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}

.card-body { padding: 20px 20px 22px; }
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--primary); margin-bottom: 4px;
}
.card-price {
  font-size: 1rem; font-weight: 600; color: var(--accent);
  margin-bottom: 16px;
}
.card-body .btn { width: 100%; }

/* ========== FEATURES STRIP ========== */
.features-strip {
  background: var(--primary); color: var(--white);
  padding: 48px 24px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; text-align: center;
  max-width: 1280px; margin: 0 auto;
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600; margin-bottom: 6px;
}
.feature-desc { font-size: 0.85rem; opacity: 0.75; }

/* ========== ABOUT PAGE ========== */
.about-hero {
  background: var(--primary); color: var(--white);
  text-align: center; padding: 100px 24px 80px;
}
.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}
.about-hero p { font-size: 1.1rem; opacity: 0.8; max-width: 560px; margin: 0 auto; }

.about-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  max-width: 1100px; margin: 0 auto;
  padding: 80px 24px;
}
.about-section.reverse { direction: rtl; }
.about-section.reverse > * { direction: ltr; }

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
  padding: 0 24px 80px;
}
.value-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.value-icon { font-size: 2.4rem; margin-bottom: 12px; }
.value-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--primary); margin-bottom: 8px;
}
.value-card p { font-size: 0.88rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .about-section { grid-template-columns: 1fr; gap: 32px; }
  .about-section.reverse { direction: ltr; }
}

/* ========== CONTACT PAGE ========== */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; max-width: 1100px; margin: 0 auto;
  padding: 80px 24px;
}
.contact-info h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 24px; }
.info-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.info-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-dark); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.info-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 4px; }
.info-value { color: var(--text); font-size: 0.95rem; }

@media (max-width: 768px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ========== FORMS ========== */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-card h3 {
  font-size: 1.4rem; color: var(--primary); margin-bottom: 24px;
  font-family: 'Playfair Display', serif;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Outfit', sans-serif; font-size: 0.95rem;
  background: var(--bg); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error { color: #c0392b; font-size: 0.8rem; margin-top: 4px; display: none; }
.form-group.error input,
.form-group.error textarea { border-color: #c0392b; }
.form-group.error .form-error { display: block; }

.success-msg {
  display: none; background: #d4edda;
  border: 1px solid #c3e6cb; color: var(--success);
  border-radius: var(--radius); padding: 16px 20px;
  font-size: 0.95rem; font-weight: 500; margin-top: 16px;
  text-align: center;
}
.success-msg.show { display: block; animation: fadeUp 0.4s ease; }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 820px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: fadeUp 0.35s ease;
  position: relative;
}

.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: var(--bg-dark); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.1rem; display: flex; align-items: center;
  justify-content: center; color: var(--text-muted);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--border); }

.modal-body {
  display: grid; grid-template-columns: 1fr 1fr;
}

.modal-img { aspect-ratio: 3/4; overflow: hidden; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }

.modal-info { padding: 36px 32px; }
.modal-info h2 {
  font-size: 1.6rem; color: var(--primary); margin-bottom: 8px;
}
.modal-price {
  font-size: 1.4rem; font-weight: 600; color: var(--accent);
  margin-bottom: 20px;
}
.modal-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }

.size-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 10px;
}
.size-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.size-btn {
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); padding: 8px 14px;
  font-size: 0.8rem; font-weight: 500;
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.2s;
}
.size-btn:hover, .size-btn.selected {
  border-color: var(--primary); background: var(--primary); color: var(--white);
}

.order-section { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 24px; }
.order-section h4 {
  font-size: 1.1rem; color: var(--primary); margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
}
.cod-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-dark); color: var(--text-muted);
  font-size: 0.78rem; font-weight: 500;
  border: 1px solid var(--border); border-radius: 99px;
  padding: 6px 14px; margin-bottom: 20px;
}

@media (max-width: 680px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-img { max-height: 300px; }
  .modal-info { padding: 24px 20px; }
}

/* ========== PAGE HERO ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  color: var(--white); text-align: center; padding: 80px 24px 64px;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.page-hero p { opacity: 0.75; font-size: 1rem; max-width: 480px; margin: 0 auto; }

/* ========== FOOTER ========== */
footer {
  background: var(--primary); color: var(--white);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 32px;
}
.footer-brand .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 12px; color: var(--accent);
}
.footer-brand p { font-size: 0.88rem; opacity: 0.65; max-width: 260px; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; opacity: 0.7; transition: opacity var(--transition); }
.footer-col ul li a:hover { opacity: 1; }
.footer-col address { font-style: normal; font-size: 0.88rem; opacity: 0.7; line-height: 1.8; }
.footer-col address a { opacity: 1; text-decoration: underline; text-underline-offset: 2px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; opacity: 0.5;
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ========== MISC UTILITIES ========== */
.divider {
  width: 60px; height: 2px; background: var(--accent);
  margin: 16px auto 0;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* Page transition animation */
.page-fade { animation: fadeUp 0.5s ease both; }

/* Breadcrumb */
.breadcrumb {
  padding: 12px 24px; font-size: 0.8rem;
  color: var(--text-muted); max-width: 1280px; margin: 0 auto;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
