/* =======================================================================
   Riyanshi — Indian Traditional Apparel
   All visual styling lives here. Colors are defined once at the top so
   you can re-brand the whole site by changing a few values.
   ======================================================================= */

:root {
  --maroon: #7a1f2b;
  --maroon-dark: #5c161f;
  --gold: #c8a04e;
  --gold-light: #e3c982;
  --cream: #fdf8f0;
  --ink: #2a2320;
  --muted: #7c6f66;
  --card-bg: #ffffff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, .brand {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

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

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------------- Header / Nav ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200, 160, 78, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  font-size: 1.7rem;
  color: var(--maroon);
}
.brand span { color: var(--gold); }
.brand-logo { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--maroon); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--maroon);
  cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  /* Local hero photo. Drop your image at images/hero.jpg (wide/landscape,
     ~1600px, under ~400KB). The maroon gradient sits on top for readable text,
     and the deep-maroon base color below shows as a graceful fallback until
     your photo is added — so the hero never looks blank. */
  background-color: var(--maroon-dark);
  background-image:
    linear-gradient(rgba(60, 15, 22, 0.55), rgba(60, 15, 22, 0.65)),
    url("images/hero.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-inner { padding: 30px; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: var(--gold-light);
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--maroon-dark); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border-color: var(--gold); color: #fff; }
.btn-outline:hover { background: var(--gold); color: var(--maroon-dark); }

/* ---------------- Section headings ---------------- */
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--maroon); }
.section-title p { color: var(--muted); margin-bottom: 34px; }
.divider {
  width: 70px; height: 3px; background: var(--gold);
  margin: 10px auto 0; border-radius: 3px;
}

/* ---------------- Filters ---------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--maroon);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { background: rgba(200,160,78,0.15); }
.filter-btn.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* ---------------- Product grid ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }
.card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f0e9df;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .card-img img { transform: scale(1.06); }
.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(122,31,43,0.92);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}
.card-body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.card-desc { font-size: 0.85rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.card-price { font-size: 1.2rem; font-weight: 700; color: var(--maroon); margin-bottom: 12px; }
.card-size { margin-bottom: 14px; }
.size-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid rgba(200,160,78,0.5);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.size-select:focus { outline: none; border-color: var(--gold); }
.size-fixed { font-size: 0.82rem; color: var(--muted); }
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-1px); }
.btn-whatsapp svg { width: 18px; height: 18px; fill: #fff; }

/* ---------------- About ---------------- */
.about { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h2 { color: var(--maroon); font-size: 2.2rem; margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }

/* ---------------- Contact ---------------- */
.contact { background: var(--maroon); color: #fff; text-align: center; }
.contact h2 { color: var(--gold-light); }
.contact p { color: rgba(255,255,255,0.85); margin-bottom: 26px; }
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.contact-methods a {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(227,201,130,0.4);
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 500;
  transition: background 0.2s;
}
.contact-methods a:hover { background: rgba(255,255,255,0.2); }

/* ---------------- Footer ---------------- */
footer {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 26px 0;
  font-size: 0.85rem;
}
footer .brand { font-size: 1.3rem; color: var(--gold-light); display: block; margin-bottom: 6px; }

/* ---------------- Tablet & Mobile (<= 768px) ---------------- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    border-bottom: 1px solid rgba(200,160,78,0.25);
    transition: max-height 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 15px 0; width: 100%; text-align: center; border-top: 1px solid rgba(200,160,78,0.15); }

  .section { padding: 50px 0; }
  .hero { min-height: 70vh; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-img { order: -1; }
  .about-text { text-align: center; }
  .about-text h2 { font-size: 1.8rem; }

  /* Two products per row on tablets/large phones */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---------------- Small phones (<= 480px) ---------------- */
@media (max-width: 480px) {
  .container { width: 90%; }
  .brand { font-size: 1.45rem; }

  .hero { min-height: 64vh; }
  .hero-inner { padding: 20px; }
  /* Stack the two hero buttons full-width so they never overflow */
  .hero-inner > div { display: flex; flex-direction: column; gap: 12px; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; }

  .section { padding: 42px 0; }
  .filters { gap: 8px; margin-bottom: 28px; }
  .filter-btn { padding: 8px 16px; font-size: 0.82rem; }

  /* Single column = bigger, tappable product cards on small screens */
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .card-img { aspect-ratio: 4 / 5; }

  .contact-methods { flex-direction: column; align-items: stretch; }
  .contact-methods a { text-align: center; }
}
