/* =========================================================
   Morya Snacks — Theme Styles
   Mirrors the React/Tailwind design with vanilla CSS.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root{
  --background:#f7f7f7;
  --foreground:#212121;
  --card:#ffffff;
  --muted:#ebe9e6;
  --muted-fg:#666666;
  --border:#e2ddd5;

  --morya-red:#dc2626;
  --morya-gold:#f5c518;
  --morya-orange:#f57c00;
  --morya-cream:#faf6ef;

  --primary:var(--morya-red);
  --primary-fg:#ffffff;
  --secondary:var(--morya-gold);
  --secondary-fg:#212121;

  --grad-morya:linear-gradient(135deg,var(--morya-red),var(--morya-orange));
  --grad-gold:linear-gradient(135deg,var(--morya-gold),var(--morya-orange));

  --shadow-card:0 4px 20px -4px rgba(0,0,0,.08);
  --shadow-morya:0 8px 30px -8px rgba(220,38,38,.25);

  --radius:.75rem;
  --font-heading:'Montserrat',sans-serif;
  --font-body:'Inter',sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  padding:0;
  background:var(--background);
  color:var(--foreground);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  padding-bottom:64px;
}
@media (min-width:768px){body{padding-bottom:0}}

h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);margin:0}
p{margin:0}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none}

.container{max-width:1024px;margin:0 auto;padding:0 1rem;width:100%}
.container-sm{max-width:768px;margin:0 auto;padding:0 1rem;width:100%}

/* Gradient text */
.text-gradient{
  background:var(--grad-morya);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Buttons */
.btn{
  display:inline-block;
  font-family:var(--font-heading);
  font-weight:700;
  padding:.875rem 2rem;
  border-radius:9999px;
  font-size:1rem;
  text-align:center;
  transition:opacity .2s,transform .2s;
  cursor:pointer;
}
.btn:hover{opacity:.9}
.btn-primary{background:var(--grad-morya);color:var(--primary-fg);box-shadow:var(--shadow-morya)}
.btn-gold{background:var(--grad-gold);color:var(--secondary-fg);box-shadow:var(--shadow-card)}
.btn-sm{padding:.625rem 1.25rem;font-size:.875rem}
.btn-block{display:block;width:100%}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.site-header .inner{
  display:flex;align-items:center;justify-content:space-between;
  height:56px;max-width:1152px;margin:0 auto;padding:0 1rem;
}
.brand{display:flex;align-items:center;gap:.5rem}
.brand img{width:36px;height:36px;border-radius:.5rem;object-fit:cover}
.brand-name{font-family:var(--font-heading);font-weight:700;font-size:1rem;display:none}
@media (min-width:640px){.brand-name{display:inline;background:var(--grad-morya);-webkit-background-clip:text;background-clip:text;color:transparent}}

.main-nav{display:none;gap:.25rem}
@media (min-width:768px){.main-nav{display:flex}}
.main-nav a{
  padding:.5rem .75rem;font-size:.875rem;font-weight:500;
  color:var(--muted-fg);border-radius:.375rem;transition:color .2s;
}
.main-nav a:hover,.main-nav a.active{color:var(--primary)}

.menu-toggle{
  display:inline-flex;padding:.5rem;border-radius:.375rem;color:var(--foreground);
}
@media (min-width:768px){.menu-toggle{display:none}}
.menu-toggle:hover{background:var(--muted)}
.menu-toggle svg{width:20px;height:20px}

.mobile-nav{display:none;border-top:1px solid var(--border);background:var(--card);padding:.5rem 1rem 1rem}
.mobile-nav.open{display:block}
.mobile-nav a{display:block;padding:.625rem 0;font-size:.875rem;font-weight:500;color:var(--muted-fg)}
.mobile-nav a.active{color:var(--primary)}

/* ===== Hero ===== */
.hero{
  position:relative;
  min-height:90vh;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:var(--morya-cream);
  padding:2rem 1rem 4rem;
  overflow:hidden;
  text-align:center;
}
.hero .blob{position:absolute;border-radius:50%;filter:blur(60px);opacity:.1;pointer-events:none}
.hero .blob-1{top:-5rem;right:-5rem;width:16rem;height:16rem;background:var(--grad-morya)}
.hero .blob-2{bottom:-5rem;left:-5rem;width:20rem;height:20rem;background:var(--grad-gold)}
.hero-logo{width:200px;margin:0 auto 1.5rem;filter:drop-shadow(0 8px 16px rgba(0,0,0,.15))}
.hero h1{font-size:2rem;font-weight:800;line-height:1.15;max-width:48rem;margin:0 auto}
@media (min-width:768px){.hero h1{font-size:3rem}}
@media (min-width:1024px){.hero h1{font-size:3.75rem}}
.hero p{margin-top:1rem;color:var(--muted-fg);font-size:1rem;max-width:32rem;margin-left:auto;margin-right:auto}
@media (min-width:768px){.hero p{font-size:1.125rem}}
.hero-ctas{margin-top:2rem;display:flex;flex-direction:column;gap:.75rem;justify-content:center}
@media (min-width:640px){.hero-ctas{flex-direction:row}}

/* ===== Generic Section ===== */
.section{padding:4rem 1rem}
.section-cream{background:var(--morya-cream)}
.section-bg{background:var(--background)}
.section h2{font-size:1.5rem;font-weight:800;text-align:center;margin-bottom:2.5rem}
@media (min-width:768px){.section h2{font-size:2.25rem}}

/* ===== Categories Grid ===== */
.cat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
@media (min-width:768px){.cat-grid{grid-template-columns:repeat(4,1fr)}}
.cat-card{
  background:var(--card);border-radius:1rem;overflow:hidden;
  box-shadow:var(--shadow-card);transition:transform .25s;
}
.cat-card:hover{transform:translateY(-6px)}
.cat-card .img{aspect-ratio:1/1;overflow:hidden;background:var(--morya-cream)}
.cat-card .img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.cat-card:hover .img img{transform:scale(1.05)}
.cat-card .body{padding:.75rem;text-align:center}
.cat-card h3{font-size:.875rem;font-weight:700}
.cat-card p{font-size:.75rem;color:var(--muted-fg);margin-top:.25rem}

/* ===== Featured Products Scroller ===== */
.products-scroll{
  display:flex;gap:1rem;overflow-x:auto;
  padding-bottom:1rem;
  scroll-snap-type:x mandatory;
  margin:0 -1rem;padding-left:1rem;padding-right:1rem;
  scrollbar-width:none;
}
.products-scroll::-webkit-scrollbar{display:none}
.product-card{
  width:140px;flex-shrink:0;scroll-snap-align:start;
  background:var(--card);border-radius:1rem;overflow:hidden;
  box-shadow:var(--shadow-card);
}
@media (min-width:768px){.product-card{width:170px}}
.product-card .img{position:relative;aspect-ratio:1/1;background:var(--background)}
.product-card .img img{width:100%;height:100%;object-fit:cover}
.product-card .tag{
  position:absolute;top:.5rem;left:.5rem;
  font-family:var(--font-heading);font-weight:700;
  font-size:10px;padding:.25rem .625rem;border-radius:9999px;
  background:var(--grad-morya);color:var(--primary-fg);
}
.product-card .tag.gold{background:var(--grad-gold);color:var(--secondary-fg)}
.product-card .body{padding:.75rem}
.product-card h3{font-size:.875rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card .price{font-family:var(--font-heading);font-weight:700;color:var(--primary);font-size:1.125rem;margin-top:.25rem}

/* ===== Why Choose ===== */
.why-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}
@media (min-width:768px){.why-grid{grid-template-columns:repeat(4,1fr)}}
.why-card{text-align:center}
.why-card .ic{
  width:56px;height:56px;border-radius:1rem;margin:0 auto .75rem;
  background:var(--grad-morya);color:var(--primary-fg);
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-morya);
}
.why-card .ic svg{width:24px;height:24px}
.why-card h3{font-size:.875rem;font-weight:700}
@media (min-width:768px){.why-card h3{font-size:1rem}}
.why-card p{font-size:.75rem;color:var(--muted-fg);margin-top:.25rem}

/* ===== About ===== */
.about-intro{text-align:center;margin-bottom:3.5rem;display:flex;flex-direction:column;align-items:center}
.about-intro img{width:96px;margin-bottom:1.5rem}
.about-intro h2{margin-bottom:1rem}
.about-intro p{color:var(--muted-fg);max-width:32rem;line-height:1.7}

.about-card{
  background:var(--card);border-radius:1rem;box-shadow:var(--shadow-card);
  padding:1.5rem;margin-bottom:2.5rem;
}
@media (min-width:768px){.about-card{padding:2.5rem}}
.about-card h3,.about-card h4{font-family:var(--font-heading);font-weight:700}
.about-card p{color:var(--muted-fg);line-height:1.7;margin-top:.5rem}

.vm-grid{display:grid;gap:1.5rem;margin-bottom:2.5rem}
@media (min-width:768px){.vm-grid{grid-template-columns:repeat(2,1fr)}}
.vm-card{background:var(--card);border-radius:1rem;box-shadow:var(--shadow-card);padding:1.5rem}
.vm-head{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem}
.vm-ic{width:40px;height:40px;border-radius:9999px;display:flex;align-items:center;justify-content:center;color:var(--primary-fg);background:var(--grad-morya)}
.vm-ic.gold{background:var(--grad-gold);color:var(--secondary-fg)}
.vm-ic svg{width:20px;height:20px}
.vm-card h4{font-size:1.125rem;font-weight:700}
.vm-card p{color:var(--muted-fg);font-size:.875rem;line-height:1.7;margin-top:.25rem}

.process-list{list-style:decimal inside;color:var(--muted-fg);font-size:.875rem;line-height:1.8;padding:0;margin:1rem 0 0}
.process-list li{margin-bottom:.5rem}
.process-list strong{color:var(--foreground)}

.fssai-card{text-align:center}
.fssai-card .vm-head{justify-content:center}

/* ===== Distributor ===== */
.distributor{
  background:var(--grad-morya);color:var(--primary-fg);
  position:relative;overflow:hidden;padding:4rem 1rem;
}
.distributor::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 80% 20%, rgba(245,124,0,.4), transparent 60%);
  pointer-events:none;
}
.distributor .container{position:relative;z-index:1;max-width:64rem}
.distributor h2{color:var(--primary-fg);margin-bottom:1rem}
.distributor .lede{text-align:center;color:rgba(255,255,255,.85);max-width:28rem;margin:0 auto 2.5rem}
.perks{display:flex;flex-direction:column;gap:1rem;justify-content:center;margin-bottom:2.5rem}
@media (min-width:640px){.perks{flex-direction:row}}
.perk{
  display:flex;align-items:center;gap:.75rem;
  background:rgba(255,255,255,.1);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.2);
  border-radius:.875rem;padding:.75rem 1.25rem;
  font-family:var(--font-heading);font-weight:600;font-size:.875rem;
}
.perk svg{width:20px;height:20px;color:var(--morya-gold);flex-shrink:0}

.dist-form-wrap{max-width:32rem;margin:0 auto}
.dist-form{
  background:rgba(255,255,255,.1);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.2);border-radius:1rem;
  padding:1.5rem;display:flex;flex-direction:column;gap:1rem;
}
.dist-form h3{text-align:center;font-size:1.125rem;font-weight:700;color:var(--primary-fg)}
.dist-form input,.dist-form textarea{
  width:100%;padding:.625rem 1rem;border-radius:.5rem;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);
  color:var(--primary-fg);font-family:inherit;font-size:.875rem;
}
.dist-form input::placeholder,.dist-form textarea::placeholder{color:rgba(255,255,255,.55)}
.dist-form input:focus,.dist-form textarea:focus{outline:none;box-shadow:0 0 0 2px var(--morya-gold)}
.dist-form textarea{resize:none;min-height:84px}
.dist-form button{
  background:var(--grad-gold);color:var(--secondary-fg);
  font-family:var(--font-heading);font-weight:700;padding:.875rem;
  border-radius:9999px;font-size:.875rem;box-shadow:var(--shadow-card);
}
.form-success{text-align:center;padding:1.5rem 0;color:var(--primary-fg)}
.form-success .ic{width:56px;height:56px;border-radius:9999px;background:var(--grad-gold);color:var(--secondary-fg);display:flex;align-items:center;justify-content:center;margin:0 auto 1rem}
.form-success h3{font-size:1.125rem;font-weight:700;margin-bottom:.25rem}
.form-success p{font-size:.875rem;opacity:.8}

/* ===== Contact Strip ===== */
.contact-grid{display:grid;grid-template-columns:1fr;gap:1rem}
@media (min-width:640px){.contact-grid{grid-template-columns:repeat(3,1fr)}}
.contact-card{background:var(--card);border-radius:1rem;box-shadow:var(--shadow-card);padding:1.5rem;text-align:center}
.contact-card .ic{
  width:48px;height:48px;border-radius:9999px;
  background:var(--grad-morya);color:var(--primary-fg);
  display:flex;align-items:center;justify-content:center;margin:0 auto .75rem;
}
.contact-card .ic svg{width:20px;height:20px}
.contact-card h3{font-size:.875rem;font-weight:700;margin-bottom:.25rem;font-family:var(--font-heading)}
.contact-card p{font-size:.875rem;color:var(--muted-fg);word-break:break-word}

/* Contact page two-column */
.contact-two{display:grid;gap:2rem}
@media (min-width:768px){.contact-two{grid-template-columns:repeat(2,1fr)}}
.info-row{display:flex;align-items:center;gap:.75rem;font-size:.875rem;color:var(--muted-fg);margin-bottom:1rem}
.info-row .ic{width:36px;height:36px;border-radius:9999px;background:var(--grad-morya);color:var(--primary-fg);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.info-row .ic svg{width:16px;height:16px}

.light-form input,.light-form textarea{
  width:100%;padding:.625rem 1rem;border-radius:.5rem;
  background:var(--background);border:1px solid var(--border);
  font-family:inherit;font-size:.875rem;color:var(--foreground);
}
.light-form input:focus,.light-form textarea:focus{outline:none;box-shadow:0 0 0 2px var(--primary)}
.light-form textarea{resize:none;min-height:84px}
.light-form>*{margin-bottom:1rem}
.light-form button{background:var(--grad-morya);color:var(--primary-fg);font-family:var(--font-heading);font-weight:700;padding:.875rem;border-radius:9999px;width:100%;box-shadow:var(--shadow-morya)}

/* ===== Footer ===== */
.site-footer{background:var(--foreground);color:#fff;padding:3rem 1rem 2rem;margin-top:0}
.site-footer .grid{display:grid;grid-template-columns:1fr;gap:2rem;max-width:1024px;margin:0 auto}
@media (min-width:768px){.site-footer .grid{grid-template-columns:repeat(3,1fr)}}
.site-footer img.logo{width:80px;border-radius:.5rem;margin-bottom:1rem}
.site-footer p,.site-footer li{color:rgba(255,255,255,.7);font-size:.875rem;line-height:1.6}
.site-footer h4{color:var(--morya-gold);font-size:.875rem;font-weight:700;margin-bottom:.75rem;font-family:var(--font-heading)}
.site-footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}
.site-footer ul a:hover{color:var(--morya-gold)}
.site-footer .row{display:flex;align-items:center;gap:.5rem}
.site-footer .row.start{align-items:flex-start}
.site-footer .row svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}
.site-footer .copy{text-align:center;border-top:1px solid rgba(255,255,255,.1);margin-top:2rem;padding-top:1.5rem;font-size:.75rem;color:rgba(255,255,255,.4)}

/* ===== Sticky Mobile CTA ===== */
.sticky-cta{
  position:fixed;bottom:0;left:0;right:0;z-index:50;
  background:rgba(255,255,255,.95);backdrop-filter:blur(8px);
  border-top:1px solid var(--border);
  padding:.75rem 1rem;display:flex;gap:.75rem;
}
@media (min-width:768px){.sticky-cta{display:none}}
.sticky-cta .btn{flex:1;padding:.625rem;font-size:.875rem}

/* ===== Reveal animation ===== */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease, transform .6s ease}
.reveal.in{opacity:1;transform:none}

/* Page hero */
.page-hero{padding:3rem 1rem 1rem;text-align:center;background:var(--morya-cream)}
.page-hero h1{font-size:1.75rem;font-weight:800}
@media (min-width:768px){.page-hero h1{font-size:2.5rem}}
.page-hero p{color:var(--muted-fg);max-width:32rem;margin:.75rem auto 0}
