/* ============================================
   SUVARNA PANCHGAVYA — Design Tokens
   ============================================ */
:root {
  --cream: #F6EEDD;
  --paper: #FFFBF2;
  --ink: #3A2C20;
  --ink-soft: #80705F;
  --gold: #C8941E;
  --gold-deep: #A1730E;
  --gold-soft: #ECD49C;
  --terracotta: #B4523A;
  --sage: #57704D;
  --border: rgba(58, 44, 32, 0.14);
  --shadow: 0 10px 30px rgba(58, 44, 32, 0.08);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Tiro Devanagari Hindi", serif;

  --container: 1140px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.6em;
}

.lede {
  font-size: 1.15rem;
  max-width: 38em;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 238, 221, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

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

.brand .mark { width: 38px; height: 38px; flex-shrink: 0; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text .hi {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--gold-deep);
}

.brand-text .en {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--gold);
  color: var(--gold-deep);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  background: var(--paper);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cart-link:hover { border-color: var(--gold); }
.cart-link svg { width: 18px; height: 18px; }
.cart-count {
  background: var(--terracotta);
  color: var(--paper);
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
}
.btn-primary:hover { background: #9c4530; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-gold {
  background: var(--gold);
  color: var(--paper);
}
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-1px); }

.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sage);
  margin-bottom: 1.2em;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.8em;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mandala {
  width: min(420px, 100%);
  height: auto;
  animation: spin-slow 90s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .mandala { animation: none; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-art .core {
  position: absolute;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 1.6rem;
  color: var(--gold-deep);
  border: 1px solid var(--border);
}

/* ============================================
   Section spacing & dividers
   ============================================ */
section { padding: 72px 0; }
.section-head {
  max-width: 42em;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 28px 0;
}
.divider svg { width: 64px; height: 64px; opacity: 0.85; }

/* ============================================
   Five Gifts strip
   ============================================ */
.gifts-band { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.gift-card { text-align: center; }
.gift-card .icon {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.gift-card .icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gift-card .sanskrit {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--gold-deep);
  display: block;
}
.gift-card h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.gift-card p { font-size: 0.92rem; margin: 0; }

/* ============================================
   Cards / grids
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.card .icon-wrap svg { width: 28px; height: 28px; }

/* ============================================
   Pillars section
   ============================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}
.pillar h3 { margin-bottom: 0.35em; }

/* ============================================
   Banner / CTA strip
   ============================================ */
.banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}
.banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 48px 24px;
}
.banner h2, .banner p { color: var(--paper); }
.banner p { color: var(--gold-soft); }
.banner .eyebrow { color: var(--gold-soft); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--gold-soft);
  padding: 56px 0 28px;
  margin-top: 64px;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.footer-grid p, .footer-grid li { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-text .en,
.footer-brand .brand-text .hi { color: var(--paper); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ============================================
   Page header (non-home pages)
   ============================================ */
.page-header {
  padding: 56px 0 40px;
  text-align: center;
}
.page-header .eyebrow { text-align: center; }

/* ============================================
   About page specifics
   ============================================ */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-art {
  display: flex;
  justify-content: center;
}
.story-art svg { width: min(360px, 100%); }

.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.consult-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.consult-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.consult-list svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--sage); }

/* ============================================
   Products page
   ============================================ */
.filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-row button {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-row button.active,
.filter-row button:hover { background: var(--gold); color: var(--paper); border-color: var(--gold); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-art {
  background: var(--cream);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.product-art svg { width: 84px; height: 84px; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.product-cat {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.product-body h3 { margin-bottom: 0; }
.product-desc { font-size: 0.92rem; flex-grow: 1; }
.product-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 600;
}
.product-price .unit { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.qty-control button {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.qty-control input {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.qty-control input:focus { outline: none; }

/* ============================================
   Cart page
   ============================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-table th, .cart-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.cart-table th {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--cream);
}
.cart-table td.line-total { font-weight: 600; white-space: nowrap; }
.cart-item-name { display: flex; align-items: center; gap: 12px; }
.cart-item-name .icon-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-item-name .icon-wrap svg { width: 22px; height: 22px; }
.remove-btn {
  background: none;
  border: none;
  color: var(--terracotta);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}

.summary-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.summary-row.total {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: none;
  padding-top: 16px;
}
.summary-card .btn { margin-top: 10px; }
.payment-note {
  font-size: 0.85rem;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 18px;
}
.qr-box {
  margin-top: 18px;
  text-align: center;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}
.qr-box img, .qr-box canvas { margin: 0 auto; }
.empty-cart {
  text-align: center;
  padding: 64px 24px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty-cart svg { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--gold); }

/* ============================================
   Contact page / forms
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: flex-start;
}
.contact-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-list .icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-list .icon-wrap svg { width: 22px; height: 22px; }
.contact-info-list strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 2px; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.85rem; margin-top: 14px; }

.map-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; }

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .mandala { width: min(280px, 80vw); }
  .gifts-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 24px; }
  .story, .consult-grid, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
  }
  .gifts-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .product-grid { grid-template-columns: 1fr; }
  .banner .wrap { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 2.4rem; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}
