/* ═══════════════════════════════════════════════════════════════════
   MITHILA PUFFS — Landing page styles
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --maroon:       #8B1A1A;
  --maroon-dark:  #5c0f0f;
  --cream:        #fdf6e7;
  --cream-dark:   #f4ead0;
  --gold:         #d4a574;
  --gold-bright:  #f4c06a;
  --saffron:      #e27d3c;
  --lotus:        #f4a7b9;
  --ink:          #1c1917;
  --ink-soft:     #44403c;
  --muted:        #78716c;
  --line:         #e7e1cf;
  --success:      #15803d;
  --whatsapp:     #25D366;
  --instagram:    #E1306C;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:    6px;
  --radius-lg: 14px;
  --shadow:    0 8px 32px -8px rgba(139, 26, 26, 0.12);
  --shadow-lg: 0 24px 60px -20px rgba(139, 26, 26, 0.25);
  --container: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(244, 192, 106, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(244, 167, 185, 0.06), transparent 40%);
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 3rem;
}

.muted { color: var(--muted); }


/* ═══════════════════════════════════════════════════════════════════
   NAVBAR — flex, image-friendly logo, wrapping links
   ═══════════════════════════════════════════════════════════════════ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 231, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.5rem;
  min-width: 0;
  flex-wrap: nowrap;
  position: relative;     /* anchor for the dropdown menu on mobile */
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  flex-shrink: 1;
}

/* Logo CONTAINER — fixed 48×48 circle, image fits inside via object-fit */
.brand-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--cream));
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* If user drops <img class="brand-logo-placeholder"> directly */
img.brand-logo-placeholder {
  object-fit: cover;
  object-position: center;
}

/* If user nests <img> INSIDE the placeholder div */
.brand-logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--maroon);
  white-space: nowrap;
}
.brand-text span {
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--maroon); }
.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--maroon);
}

/* ── Hamburger button — hidden on desktop, shows ≤780px ──── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--maroon);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' /%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  background: rgba(139, 26, 26, 0.08);
  color: var(--maroon);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--maroon);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--maroon);
}
.hero-title .outline {
  -webkit-text-stroke: 2px var(--maroon);
  color: transparent;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 1.75rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.hero-badges {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--ink-soft);
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rotating-leaf {
  position: relative;
  width: 360px;
  height: 360px;
  max-width: 100%;
  aspect-ratio: 1;
}
.leaf-text {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  animation: spin 25s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.brand-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .15em;
  fill: var(--maroon);
}
.leaf-center {
  position: absolute;
  inset: 25%;
  background: radial-gradient(circle, var(--gold-bright), var(--cream));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.leaf-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leaf-emoji {
  font-size: 8rem;
}


/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: none;
  text-decoration: none;
}
.btn-lg { padding: .95rem 1.85rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--maroon); color: white; }
.btn-primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}


/* ═══════════════════════════════════════════════════════════════════
   SECTION HEAD
   ═══════════════════════════════════════════════════════════════════ */

.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-num {
  display: inline-block;
  font-size: .8rem;
  color: var(--maroon);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .5rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--maroon);
}
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }


/* ═══════════════════════════════════════════════════════════════════
   PRODUCTS
   ═══════════════════════════════════════════════════════════════════ */

.products {
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent, rgba(244, 234, 208, 0.4));
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.pc-img {
  position: relative;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--cream-dark), var(--gold-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform .35s;
}
.product-card:hover .pc-img img {
  transform: scale(1.05);
}
.pc-img:empty::after,
.pc-img:not(:has(img))::after {
  content: '🌰';
  font-size: 5rem;
  opacity: 0.35;
}

.pc-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.pc-tag {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--maroon);
  font-weight: 700;
}
.pc-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}
.pc-desc {
  color: var(--ink-soft);
  font-size: .9rem;
  flex: 1;
}
.pc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: .75rem;
}
.btn-mini {
  padding: .55rem .75rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, opacity .15s;
}
.btn-mini:hover { transform: translateY(-1px); }
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}


/* ═══════════════════════════════════════════════════════════════════
   ABOUT + ENQUIRY
   ═══════════════════════════════════════════════════════════════════ */

.about-enquiry { padding: 4rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
}
.about-text h2 em { font-style: italic; font-weight: 400; color: var(--maroon); }
.about-text p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.05rem; }
.about-bullets {
  list-style: none;
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.about-bullets li { padding: .65rem 0; border-bottom: 1px dashed var(--line); }
.about-bullets li:last-child { border-bottom: none; }

.enquiry-card {
  background: var(--maroon);
  color: var(--cream);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.enquiry-card .section-num { color: var(--gold-bright); }
.enquiry-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 1rem 0 .75rem;
}
.enquiry-sub { opacity: .85; margin-bottom: 1.5rem; }
.enquiry-form label { display: block; margin-bottom: 1rem; }
.enquiry-form label > span {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .35rem;
  opacity: .9;
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  font-family: inherit;
  font-size: .95rem;
}
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder { color: rgba(253, 246, 231, 0.5); }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.15);
}
.enquiry-form select option { color: var(--ink); }
.enquiry-form .btn-primary {
  background: var(--cream);
  color: var(--maroon);
  margin-top: .5rem;
}
.enquiry-form .btn-primary:hover { background: var(--gold-bright); }

.social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(253, 246, 231, 0.2);
}
.social-row .muted { color: rgba(253, 246, 231, 0.6); }
.social-pill {
  padding: .45rem 1rem;
  background: rgba(253, 246, 231, 0.1);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .15s, transform .15s;
}
.social-pill:hover {
  background: rgba(253, 246, 231, 0.2);
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: center;
}
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; }
.footer p { opacity: .7; font-size: .9rem; margin-top: .35rem; }
.footer-meta { text-align: right; }
.footer-meta small { opacity: .5; font-size: .8rem; }


/* ═══════════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════════════════════════════════ */

.float-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: transform .15s, box-shadow .15s;
}
.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}
.float-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  opacity: .5;
  animation: ringPulse 2s infinite;
}
@keyframes ringPulse {
  0%   { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.5); opacity: 0; }
}


/* ═══════════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════════ */

#toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: .75rem 1.5rem;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform .3s;
  pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤900px)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero { padding: 2rem 0 3rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* Hide the rotating leaf entirely once the layout stacks —
     it only looks right when sitting parallel to the text. */
  .hero-visual { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .products { padding: 3rem 0; }
  .about-enquiry { padding: 3rem 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .footer-meta { text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Navbar dropdown (≤780px)
   At this width the inline links start crowding the brand,
   so we switch to a hamburger + dropdown menu.
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem 0;

    /* Closed by default — hide gracefully */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .25s ease, visibility .25s;
  }
  .nav-links.open {
    max-height: 400px;
    visibility: visible;
  }
  .nav-links a {
    padding: .9rem 1.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a:hover::after { display: none; }
  .nav-links a:hover {
    background: rgba(139, 26, 26, 0.06);
  }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Phone (≤600px)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  /* NAVBAR — compact, links fit without cut-off */
  .nav-inner {
    padding: .65rem 1rem;
    gap: .5rem;
  }
  .brand-logo-placeholder { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text span   { font-size: .55rem; letter-spacing: .12em; }

  /* HERO — compact, text-first, smaller leaf, tighter spacing */
  .hero { padding: 1.5rem 0 2.5rem; }
  .hero-inner { gap: 1.5rem; }
  .eyebrow {
    font-size: .65rem;
    padding: .25rem .65rem;
    margin-bottom: .85rem;
  }
  .hero-title {
    font-size: 2.1rem;
    margin-bottom: .85rem;
  }
  .hero-sub {
    font-size: .95rem;
    margin-bottom: 1.25rem;
  }
  .hero-ctas {
    flex-direction: column;
    gap: .65rem;
    margin-bottom: 1.25rem;
  }
  .hero-ctas .btn { width: 100%; }
  .btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
  .hero-badges { gap: .75rem; font-size: .8rem; }

  /* Tighter section gaps */
  .products { padding: 2.5rem 0; }
  .about-enquiry { padding: 2.5rem 0; }
  .section-head { margin-bottom: 2rem; }
  .about-grid { gap: 2rem; }

  /* Products & enquiry */
  .product-grid { grid-template-columns: 1fr; gap: 1rem; }
  .enquiry-card { padding: 1.75rem; }
  .enquiry-card h3 { font-size: 1.4rem; }

  .float-whatsapp {
    width: 52px;
    height: 52px;
    bottom: 1rem;
    right: 1rem;
  }
  .footer { padding: 2rem 0 1.25rem; }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Tiny phone (≤400px)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 400px) {
  .brand-text span { display: none; }

  .pc-actions { grid-template-columns: 1fr; }

  .hero-title { font-size: 1.85rem; }
}