/* ===========================
   MBG Thrif — style.css
   Domain: mbg.thirf.store
   =========================== */

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

:root {
  --cream:   #F5F0E8;
  --dark:    #1A1410;
  --brown:   #6B3F1E;
  --accent:  #C9773A;
  --light:   #FAF7F2;
  --muted:   #8C7B6B;
  --white:   #FFFFFF;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(26,20,16,.10);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--brown); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--dark);
  color: var(--dark);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--dark); color: var(--white); }

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-tag.light { color: var(--cream); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--dark); }
.section-head p  { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }

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

/* ---- NAVBAR ---- */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(250,247,242,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107,63,30,.10);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(26,20,16,.12); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--dark); letter-spacing: -.01em;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 14px;
  font-size: .9rem; font-weight: 500;
  color: var(--dark);
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--cream); }
.btn-nav {
  background: var(--dark) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 4px !important;
}
.btn-nav:hover { background: var(--brown) !important; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,119,58,.13) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  padding: 0 60px 0 max(60px, calc((100vw - 1200px)/2 + 60px));
  position: relative; z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: var(--accent); color: var(--white);
  font-size: .73rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 40px; margin-bottom: 20px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 20px;
}
.hero-content h1 em { font-style: italic; color: var(--accent); }

.hero-content p {
  color: var(--muted); font-size: 1.1rem; line-height: 1.7;
  max-width: 420px; margin-bottom: 36px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-img-wrap {
  height: 100%; min-height: 500px;
  position: relative; overflow: hidden;
}
.hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.hero-img-wrap:hover img { transform: scale(1.04); }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: .8rem; letter-spacing: .1em; color: var(--muted);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ---- WELCOME STRIP / TICKER ---- */
.welcome-strip {
  background: var(--dark); color: var(--cream);
  padding: 16px 0; overflow: hidden;
}
.ticker-wrap { overflow: hidden; }
.ticker {
  display: flex; gap: 60px; white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}
.ticker span {
  font-size: .9rem; font-weight: 500; letter-spacing: .05em;
  flex-shrink: 0;
}
@keyframes ticker-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---- PRODUCTS ---- */
.products { padding: 100px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp .5s ease both;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(26,20,16,.15); }

@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.product-card:nth-child(1) { animation-delay:.05s }
.product-card:nth-child(2) { animation-delay:.10s }
.product-card:nth-child(3) { animation-delay:.15s }
.product-card:nth-child(4) { animation-delay:.20s }
.product-card:nth-child(5) { animation-delay:.25s }
.product-card:nth-child(6) { animation-delay:.30s }
.product-card:nth-child(7) { animation-delay:.35s }
.product-card:nth-child(8) { animation-delay:.40s }
.product-card:nth-child(9) { animation-delay:.45s }

.card-img-wrap {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 1/1;
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-img-wrap:hover img { transform: scale(1.08); }

.card-overlay {
  position: absolute; inset: 0;
  background: rgba(26,20,16,.45);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; letter-spacing: .05em;
  opacity: 0; transition: opacity var(--transition);
}
.card-img-wrap:hover .card-overlay { opacity: 1; }

.card-info { padding: 18px 20px 22px; }
.card-info h3 { font-size: .98rem; font-weight: 600; margin-bottom: 6px; }
.price { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--accent); font-weight: 700; margin-bottom: 14px; }

.btn-card {
  display: block; text-align: center;
  background: var(--cream); color: var(--dark);
  border: 1px solid rgba(26,20,16,.15);
  padding: 10px; border-radius: 4px;
  font-size: .88rem; font-weight: 600;
  transition: all var(--transition);
}
.btn-card:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ---- PROMO BANNER ---- */
.promo {
  background: linear-gradient(135deg, var(--brown) 0%, var(--dark) 100%);
  padding: 80px 24px;
  overflow: hidden;
}

.promo-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
}

.promo-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--white); margin-bottom: 16px;
}
.promo-text p { color: rgba(255,255,255,.8); max-width: 440px; line-height: 1.7; margin-bottom: 32px; }

.promo-badge { flex-shrink: 0; }
.badge-circle {
  width: 160px; height: 160px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--white);
  animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow { from{transform:rotate(0)} to{transform:rotate(360deg)} }
.badge-off { font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.badge-pct { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900; line-height: 1; }

/* ---- ABOUT ---- */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

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

.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent); color: var(--white);
  padding: 16px 22px; border-radius: 8px;
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--shadow);
}

.about-text h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 20px; }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 28px; font-size: 1.05rem; }

.about-list { margin-bottom: 36px; }
.about-list li { padding: 8px 0; color: var(--dark); font-weight: 500; border-bottom: 1px solid rgba(26,20,16,.07); }

/* ---- INSTAGRAM CTA ---- */
.instagram-cta {
  background: var(--cream);
  text-align: center; padding: 80px 24px;
}
.instagram-cta h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 12px; }
.instagram-cta h2 span { color: var(--accent); }
.instagram-cta p { color: var(--muted); margin-bottom: 32px; font-size: 1.05rem; }

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 72px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer .logo { color: var(--white); }
.footer-brand p { margin-top: 16px; line-height: 1.7; max-width: 280px; }

.social-links { display: flex; gap: 14px; margin-top: 24px; }
.social-links a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.social-links a svg { width: 16px; height: 16px; }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

.footer-nav h4, .footer-contact h4 {
  color: var(--white); font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-nav a:hover { color: var(--accent); }

.footer-contact p { margin-bottom: 10px; font-size: .95rem; }

.footer-bottom {
  text-align: center; padding: 20px 24px;
  font-size: .85rem; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 40px 24px; }
  .hero-img-wrap { min-height: 320px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links { 
    display: none; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--light); border-bottom: 1px solid rgba(26,20,16,.1);
    padding: 20px 24px; gap: 4px;
    box-shadow: 0 8px 32px rgba(26,20,16,.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 6px; }
  .hamburger { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .promo-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
}
