/*
Theme Name: Mashal Mustard Oil
Theme URI: https://mashalmustardoil.pk
Author: Mashal Industries
Description: Custom WordPress theme for Mashal Mustard Oil — a Pakistani mustard oil & ghee manufacturer. Built for wholesale/B2B lead generation, distributor onboarding, and brand trust.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: mashal
*/

/* =========================================================
   DESIGN TOKENS
   Palette grounded in the raw materials of the business:
   mustard seed gold, sarson-leaf green, sack-paper cream,
   and the "mashal" (torch) amber the brand is named for.
   ========================================================= */
:root{
  --gold:        #C4901E;   /* pressed mustard oil */
  --gold-deep:   #9C6F14;
  --flame:       #E8A93B;   /* the "mashal" torch accent */
  --leaf:        #2B3A26;   /* sarson leaf / trust, dark grounding */
  --leaf-2:      #3D4F35;
  --cream:       #F6F0E1;   /* raw seed sack paper */
  --cream-2:     #EFE6CE;
  --ink:         #26221A;   /* warm charcoal, not pure black */
  --ink-soft:    #55503f;
  --white:       #FFFCF6;
  --line:        #DED0AC;
  --rust:        #8A3B24;   /* used sparingly: urgent CTA only */

  --font-head: "Barlow Semi Condensed", "Barlow", Arial, sans-serif;
  --font-body: "Barlow", -apple-system, "Segoe UI", Arial, sans-serif;

  --radius-drum: 6px 6px 0 0;  /* canister/drum silhouette used on product cards */
  --shadow-soft: 0 10px 24px rgba(38,34,26,0.10);
  --container: 1180px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-head);
  font-weight:600;
  line-height:1.12;
  margin:0 0 .5em;
  color:var(--leaf);
  letter-spacing:.2px;
}
h1{ font-size:clamp(2.1rem,4.6vw,3.4rem); font-weight:700; }
h2{ font-size:clamp(1.7rem,3.2vw,2.4rem); }
h3{ font-size:1.25rem; }
p{ margin:0 0 1em; max-width:62ch; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
section{ padding:88px 0; }
:focus-visible{ outline:3px solid var(--flame); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ *{ animation-duration:.001ms !important; transition-duration:.001ms !important; } }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 26px;
  border-radius:3px;
  font-family:var(--font-head);
  font-weight:600;
  font-size:1rem;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-gold{ background:var(--gold); color:var(--white); }
.btn-gold:hover{ background:var(--gold-deep); }
.btn-outline{ background:transparent; border-color:var(--white); color:var(--white); }
.btn-outline:hover{ background:rgba(255,255,255,.12); }
.btn-outline-dark{ background:transparent; border-color:var(--leaf); color:var(--leaf); }
.btn-outline-dark:hover{ background:var(--leaf); color:var(--white); }
.btn-block{ width:100%; justify-content:center; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-topbar{
  background:var(--leaf);
  color:var(--cream-2);
  font-size:.86rem;
}
.site-topbar .container{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:8px; padding-bottom:8px; gap:16px; flex-wrap:wrap;
}
.site-topbar a{ color:var(--cream-2); }
.site-topbar .topbar-contact{ display:flex; gap:20px; flex-wrap:wrap; }
.site-topbar .topbar-contact span{ opacity:.75; margin-right:4px; }

.site-header{
  background:var(--white);
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:50;
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:14px; padding-bottom:14px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{ width:44px; height:44px; flex:none; }
.brand-text{ font-family:var(--font-head); line-height:1.05; }
.brand-text .brand-name{ display:block; font-weight:700; font-size:1.28rem; color:var(--leaf); }
.brand-text .brand-sub{ display:block; font-size:.72rem; letter-spacing:.06em; color:var(--gold-deep); }

.primary-nav ul{ display:flex; gap:2px; align-items:center; }
.primary-nav a{
  display:block; padding:10px 16px; font-weight:600; font-size:.98rem;
  color:var(--ink); border-radius:3px;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a{ color:var(--gold-deep); background:var(--cream); }
.header-cta{ display:flex; align-items:center; gap:12px; }
.header-cta .btn{ padding:11px 20px; font-size:.92rem; }

.nav-toggle{ display:none; background:none; border:0; padding:8px; cursor:pointer; }
.nav-toggle span{ display:block; width:26px; height:2px; background:var(--leaf); margin:5px 0; }

@media (max-width: 900px){
  .primary-nav{
    position:absolute; top:100%; left:0; right:0; background:var(--white);
    border-bottom:1px solid var(--line);
    display:none; box-shadow:var(--shadow-soft);
  }
  .primary-nav.is-open{ display:block; }
  .primary-nav ul{ flex-direction:column; padding:8px 24px 18px; }
  .primary-nav a{ padding:12px 4px; border-bottom:1px solid var(--line); border-radius:0; }
  .nav-toggle{ display:block; }
  .header-cta .btn-outline-dark{ display:none; }
  .site-topbar .topbar-contact span:first-child{ display:none; }
}

/* =========================================================
   HERO  (asymmetric: copy left, torch-mark device right)
   ========================================================= */
.hero{
  background:var(--leaf);
  color:var(--cream-2);
  position:relative;
  overflow:hidden;
  padding:76px 0 0;
}
.hero .container{
  display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center;
}
.hero-eyebrow-line{
  display:flex; align-items:center; gap:10px; margin-bottom:18px; color:var(--flame); font-weight:600;
}
.hero-eyebrow-line svg{ width:20px; height:20px; }
.hero h1{ color:var(--white); margin-bottom:18px; }
.hero p.lead{ color:var(--cream-2); font-size:1.12rem; max-width:46ch; }
.hero-actions{ display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }
.hero-figure{ position:relative; }
.hero-figure svg{ width:100%; height:auto; }
.hero-bottom-edge{
  height:34px; width:100%; margin-top:60px;
  background:var(--cream);
  clip-path:polygon(0 34px,4% 0,8% 34px,12% 0,16% 34px,20% 0,24% 34px,28% 0,32% 34px,36% 0,40% 34px,44% 0,48% 34px,52% 0,56% 34px,60% 0,64% 34px,68% 0,72% 34px,76% 0,80% 34px,84% 0,88% 34px,92% 0,96% 34px,100% 0,100% 34px,0 34px);
}
@media (max-width:900px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-figure{ order:-1; max-width:260px; margin:0 auto; }
}

/* =========================================================
   TRUST / STAT BAND — styled like a stencilled crate stamp
   (used once: this content genuinely is a set of scale figures)
   ========================================================= */
.stat-band{ background:var(--cream-2); border-bottom:1px solid var(--line); padding:0; }
.stat-band .container{
  display:grid; grid-template-columns:repeat(4,1fr); gap:0;
}
.stat{
  padding:34px 18px; text-align:center; border-left:1px dashed var(--line);
}
.stat:first-child{ border-left:0; }
.stat .num{
  font-family:var(--font-head); font-weight:700; font-size:2.1rem; color:var(--gold-deep);
  border:2px solid var(--gold-deep); display:inline-block; padding:2px 14px; border-radius:2px;
}
.stat .label{ margin-top:10px; font-size:.88rem; color:var(--ink-soft); }
@media (max-width:760px){ .stat-band .container{ grid-template-columns:1fr 1fr; } .stat{ border-left:0; border-top:1px dashed var(--line);} .stat:nth-child(-n+2){border-top:0;} }

/* =========================================================
   GENERIC SECTION HEADERS
   ========================================================= */
.section-head{ max-width:64ch; margin-bottom:44px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ color:var(--ink-soft); font-size:1.05rem; }
.section-alt{ background:var(--white); }
.section-dark{ background:var(--leaf); color:var(--cream-2); }
.section-dark h2, .section-dark h3{ color:var(--white); }
.section-dark p{ color:var(--cream-2); }

/* =========================================================
   ABOUT SNIPPET
   ========================================================= */
.about-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:center; }
.about-grid figure{ margin:0; }
.about-figure-frame{
  border:8px solid var(--white); box-shadow:var(--shadow-soft); background:var(--gold);
  aspect-ratio:4/5; display:flex; align-items:center; justify-content:center;
}
.about-figure-frame svg{ width:64%; }
.about-points{ margin-top:22px; display:grid; gap:14px; }
.about-points li{ display:flex; gap:12px; align-items:flex-start; }
.about-points svg{ width:22px; height:22px; flex:none; margin-top:2px; color:var(--gold-deep); }
@media (max-width:860px){ .about-grid{ grid-template-columns:1fr; } }

/* =========================================================
   PRODUCT CARDS — canister/drum silhouette
   (flat bottom, radius only at the top = a lid)
   ========================================================= */
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
.product-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-drum);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.product-card .lid{
  height:8px; background:var(--gold);
}
.product-card .art{
  padding:30px 22px 10px; display:flex; align-items:center; justify-content:center;
  background:var(--cream-2); height:170px;
}
.product-card .art svg{ height:120px; width:auto; }
.product-card .body{ padding:20px 22px 24px; flex:1; display:flex; flex-direction:column; }
.product-card h3{ margin-bottom:6px; }
.product-card .tag{ font-size:.82rem; color:var(--gold-deep); font-weight:600; margin-bottom:10px; }
.product-card p{ font-size:.94rem; color:var(--ink-soft); flex:1; }
.product-card .card-link{ margin-top:12px; font-weight:600; color:var(--leaf); font-size:.94rem; border-top:1px solid var(--line); padding-top:12px; }
.product-card .card-link:hover{ color:var(--gold-deep); }
@media (max-width:980px){ .product-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .product-grid{ grid-template-columns:1fr; } }

/* =========================================================
   PROCESS STEPS (this content is genuinely sequential)
   ========================================================= */
.process-list{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; counter-reset:step; margin-top:10px; }
.process-list li{
  position:relative; padding:26px 22px 0; border-top:3px solid var(--gold);
  counter-increment:step;
}
.process-list li::before{
  content:counter(step,decimal-leading-zero);
  font-family:var(--font-head); font-weight:700; color:var(--gold-deep); font-size:1.5rem; display:block; margin-bottom:8px;
}
.process-list h3{ font-size:1.05rem; margin-bottom:6px; }
.process-list p{ font-size:.92rem; color:var(--ink-soft); }
@media (max-width:900px){ .process-list{ grid-template-columns:1fr 1fr; row-gap:32px; } }
@media (max-width:560px){ .process-list{ grid-template-columns:1fr; } }

/* =========================================================
   WHY / FEATURE GRID
   ========================================================= */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.feature{ background:var(--white); border:1px solid var(--line); padding:28px 26px; }
.feature svg{ width:34px; height:34px; color:var(--gold-deep); margin-bottom:14px; }
.feature h3{ margin-bottom:8px; font-size:1.1rem; }
.feature p{ font-size:.94rem; color:var(--ink-soft); margin-bottom:0; }
@media (max-width:900px){ .feature-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .feature-grid{ grid-template-columns:1fr; } }

/* =========================================================
   SPLIT CTA (wholesale / distributor)
   ========================================================= */
.split-cta{ display:grid; grid-template-columns:1fr 1fr; gap:2px; background:var(--line); }
.split-cta .panel{ background:var(--white); padding:50px 44px; }
.split-cta .panel.dark{ background:var(--leaf); color:var(--cream-2); }
.split-cta .panel.dark h3{ color:var(--white); }
.split-cta .panel.dark p{ color:var(--cream-2); }
.split-cta .panel .tagpill{
  display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.04em;
  color:var(--gold-deep); border:1px solid var(--gold-deep); padding:4px 10px; border-radius:2px; margin-bottom:14px;
}
.split-cta .panel.dark .tagpill{ color:var(--flame); border-color:var(--flame); }
@media (max-width:860px){ .split-cta{ grid-template-columns:1fr; } .split-cta .panel{ padding:40px 26px; } }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.testimonial{ background:var(--cream-2); padding:28px 26px; border-left:4px solid var(--gold); }
.testimonial p.quote{ font-style:italic; color:var(--ink); margin-bottom:16px; }
.testimonial .who{ font-family:var(--font-head); font-weight:700; color:var(--leaf); font-size:.95rem; }
.testimonial .where{ font-size:.85rem; color:var(--ink-soft); }
@media (max-width:900px){ .testimonial-strip{ grid-template-columns:1fr; } }

/* =========================================================
   FORMS (lead gen: wholesale / distributor / contact)
   ========================================================= */
.lead-form{ background:var(--white); border:1px solid var(--line); padding:34px; }
.lead-form h3{ margin-bottom:4px; }
.lead-form .sub{ color:var(--ink-soft); font-size:.92rem; margin-bottom:22px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-field{ margin-bottom:16px; }
.form-field label{ display:block; font-size:.88rem; font-weight:600; margin-bottom:6px; color:var(--leaf); }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:3px;
  font-family:var(--font-body); font-size:.98rem; background:var(--cream);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ outline:2px solid var(--gold-deep); background:var(--white); }
.form-field textarea{ resize:vertical; min-height:100px; }
.form-note{ font-size:.8rem; color:var(--ink-soft); margin-top:10px; }
.form-success{ background:#EAF3E4; border:1px solid #9CC28B; color:#2E5322; padding:14px 16px; border-radius:3px; margin-bottom:18px; font-size:.94rem; }
.form-error{ background:#F7E7E1; border:1px solid #D99C86; color:#7A2E17; padding:14px 16px; border-radius:3px; margin-bottom:18px; font-size:.94rem; }
.hp-field{ position:absolute; left:-9999px; top:-9999px; }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }

/* =========================================================
   TWO-COLUMN generic (used on about/quality/wholesale pages)
   ========================================================= */
.two-col{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:start; }
@media (max-width:900px){ .two-col{ grid-template-columns:1fr; } }
.info-list li{ display:flex; gap:12px; padding:12px 0; border-top:1px solid var(--line); }
.info-list li:first-child{ border-top:0; }
.info-list svg{ width:20px; height:20px; flex:none; color:var(--gold-deep); margin-top:3px; }

.page-hero{
  background:var(--leaf); color:var(--cream-2); padding:56px 0 44px;
  border-bottom:6px solid var(--gold);
}
.page-hero h1{ color:var(--white); margin-bottom:8px; }
.breadcrumb{ font-size:.85rem; color:var(--flame); margin-bottom:10px; }
.breadcrumb a{ color:var(--cream-2); }

/* Packaging size chips (wholesale page) */
.chip-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.chip{ background:var(--cream-2); border:1px solid var(--line); padding:8px 14px; border-radius:2px; font-size:.9rem; font-weight:600; color:var(--leaf); }

/* Certifications strip */
.cert-strip{ display:flex; flex-wrap:wrap; gap:34px; align-items:center; }
.cert-strip .cert{ display:flex; align-items:center; gap:10px; color:var(--ink-soft); font-weight:600; font-size:.92rem; }
.cert-strip svg{ width:30px; height:30px; color:var(--gold-deep); }

/* Distributor requirements table-ish list */
.reqs{ display:grid; gap:0; border:1px solid var(--line); }
.reqs li{ display:flex; gap:14px; padding:16px 18px; border-top:1px solid var(--line); align-items:flex-start; }
.reqs li:first-child{ border-top:0; }
.reqs .n{ font-family:var(--font-head); font-weight:700; color:var(--gold-deep); }

/* Map / contact block */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:44px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.map-frame{ border:1px solid var(--line); }
.map-frame iframe{ width:100%; height:320px; border:0; display:block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background:#1B2417; color:#CFCABA; padding-top:64px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:40px; }
.footer-grid h4{ color:var(--white); font-size:.95rem; margin-bottom:16px; }
.footer-grid a{ color:#CFCABA; }
.footer-grid a:hover{ color:var(--flame); }
.footer-grid li{ margin-bottom:10px; font-size:.92rem; }
.footer-brand .brand-name{ color:var(--white); }
.footer-brand p{ color:#A9A390; font-size:.92rem; margin-top:14px; }
.footer-bottom{
  border-top:1px solid #2E3A27; padding:20px 0; font-size:.82rem; color:#8D8873;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }

/* =========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================= */
.wa-float{
  position:fixed; right:20px; bottom:20px; z-index:60;
  width:56px; height:56px; border-radius:50%; background:#2B3A26;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-soft);
}
.wa-float svg{ width:28px; height:28px; color:var(--flame); }

/* =========================================================
   404
   ========================================================= */
.error-404{ text-align:center; padding:110px 0; }
.error-404 .code{ font-family:var(--font-head); font-size:5rem; font-weight:700; color:var(--gold); }
