/* ============================================================
   DhanayaBhojana — Design System
   A food-science consultancy: lab rigor meets Tamil Nadu food
   heritage (millets, organic, traditional RTE/RTC innovation).
   Signature motif: the "formulation tag" — cards styled like
   a lab specimen / ingredient label, tying science + product
   packaging together.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* --- Color tokens --- */
  --ink:        #1F261C;   /* deep botanical charcoal-green — headings, nav */
  --ink-soft:   #4B5142;   /* body copy on light */
  --turmeric:   #D79A2C;   /* primary accent — spice gold */
  --turmeric-dk:#B87F1B;
  --rust:       #A8431F;   /* secondary accent — millet/clay rust */
  --parchment:  #F4EEDC;   /* warm paper background */
  --parchment-2:#EDE4CB;   /* slightly deeper paper, for stripes */
  --labsage:    #E7EBDD;   /* cool "science" section background */
  --paper-line: #D8CFB0;   /* hairline rule on parchment */
  --white:      #FFFFFF;
  --whatsapp:   #2FA84F;

  /* --- Type --- */
  --f-display: 'Fraunces', ui-serif, Georgia, serif;
  --f-body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* --- Layout --- */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 10px rgba(31,38,28,0.08);
  --shadow-lift: 0 10px 30px rgba(31,38,28,0.16);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--f-body);
  color:var(--ink-soft);
  background:var(--parchment);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
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(--f-display); color:var(--ink); margin:0; line-height:1.12; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

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

:focus-visible{ outline:3px solid var(--turmeric); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  font-family:var(--f-mono);
  font-size:11.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--rust);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{
  content:"";
  width:16px; height:1px;
  background:var(--rust);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(244,238,220,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--paper-line);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 20px;
  max-width:var(--maxw); margin:0 auto;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family:var(--f-display); font-weight:700; font-size:20px;
  color:var(--ink);
}
.logo .mark{
  width:38px; height:38px; border-radius:9px;
  background:linear-gradient(155deg, var(--turmeric), var(--rust));
  display:flex; align-items:center; justify-content:center;
  color:var(--white); font-family:var(--f-display); font-weight:700; font-size:18px;
  flex-shrink:0;
}
.logo .word small{
  display:block;
  font-family:var(--f-mono); font-weight:500; font-size:9.5px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--rust);
  margin-top:1px;
}
.hamburger{
  width:42px; height:42px; border-radius:10px;
  background:var(--ink); border:none;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
}
.hamburger span{ width:19px; height:2px; background:var(--parchment); border-radius:2px; transition:transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* Slide-down mobile nav */
.mobile-nav{
  max-height:0; overflow:hidden;
  background:var(--ink);
  transition:max-height .35s ease;
}
.mobile-nav.open{ max-height:80vh; overflow-y:auto; }
.mobile-nav-inner{ padding:8px 20px 22px; }
.mn-group{ border-bottom:1px solid rgba(244,238,220,0.12); }
.mn-group-title{
  width:100%; background:none; border:none; text-align:left;
  padding:14px 2px; display:flex; justify-content:space-between; align-items:center;
  font-family:var(--f-mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--turmeric); font-weight:600;
}
.mn-group-title .chev{ transition:transform .25s; color:var(--parchment); }
.mn-group.open .mn-group-title .chev{ transform:rotate(180deg); }
.mn-links{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.mn-group.open .mn-links{ max-height:400px; }
.mn-links li a{
  display:block; padding:10px 2px 10px 14px;
  color:var(--parchment); font-size:15px; font-weight:500;
  border-left:2px solid rgba(244,238,220,0.15);
}
.mn-links li a:active,.mn-links li a:hover{ color:var(--turmeric); border-left-color:var(--turmeric); }
.mn-cta{
  margin-top:16px; display:flex; align-items:center; justify-content:center; gap:10px;
  background:var(--whatsapp); color:var(--white); font-weight:700;
  padding:14px; border-radius:12px; font-size:15px;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON — every page
   ============================================================ */
.wa-float{
  position:fixed; right:16px; bottom:16px; z-index:200;
  width:58px; height:58px; border-radius:50%;
  background:var(--whatsapp); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lift);
  animation:wa-pulse 2.6s ease-in-out infinite;
}
.wa-float svg{ width:29px; height:29px; }
@keyframes wa-pulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(47,168,79,0.45), var(--shadow-lift); }
  50%{ box-shadow:0 0 0 10px rgba(47,168,79,0), var(--shadow-lift); }
}

/* ============================================================
   HERO — mobile-optimized banner, present on every page
   ============================================================ */
.hero{
  position:relative;
  background:var(--ink);
  color:var(--parchment);
  overflow:hidden;
  padding:52px 20px 40px;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 85% 0%, rgba(215,154,44,0.30), transparent 55%),
    radial-gradient(circle at 5% 100%, rgba(168,67,31,0.35), transparent 50%);
  pointer-events:none;
}
.hero-grain{
  position:absolute; inset:0; opacity:.5; mix-blend-mode:overlay; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.hero-inner{ position:relative; max-width:var(--maxw); margin:0 auto; }
.hero .eyebrow{ color:var(--turmeric); }
.hero .eyebrow::before{ background:var(--turmeric); }
.hero h1{
  color:var(--white);
  font-size:clamp(28px, 7vw, 46px);
  font-weight:600;
  margin-top:14px;
  max-width:15ch;
}
.hero h1 em{ font-style:italic; color:var(--turmeric); }
.hero p.lede{
  margin-top:14px; font-size:15.5px; line-height:1.6;
  color:#D9D9CE; max-width:46ch;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.btn{
  display:inline-flex; align-items:center; gap:9px;
  padding:13px 20px; border-radius:11px;
  font-weight:700; font-size:14.5px;
  border:1px solid transparent;
}
.btn-primary{ background:var(--whatsapp); color:var(--white); }
.btn-outline{ background:transparent; border-color:rgba(244,238,220,0.35); color:var(--parchment); }
.btn-dark{ background:var(--ink); color:var(--parchment); }
.btn-primary:hover{ background:#268C42; }
.btn-outline:hover{ border-color:var(--turmeric); color:var(--turmeric); }

.hero-tape{
  position:relative; margin-top:30px;
  display:flex; overflow-x:auto; gap:0;
  border-top:1px dashed rgba(244,238,220,0.25);
  padding-top:14px;
  -ms-overflow-style:none; scrollbar-width:none;
}
.hero-tape::-webkit-scrollbar{ display:none; }
.hero-stat{
  flex:0 0 auto; padding:6px 20px 6px 0; margin-right:20px;
  border-right:1px dashed rgba(244,238,220,0.25);
  white-space:nowrap;
}
.hero-stat .num{ font-family:var(--f-display); font-size:22px; color:var(--turmeric); font-weight:600; }
.hero-stat .lbl{ font-family:var(--f-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:#B9B9AC; }

/* Quick-link icon row (mobile app-shortcut style, from reference) */
.quicklinks{
  display:grid; grid-template-columns:repeat(4,1fr);
  background:var(--white);
  border-bottom:1px solid var(--paper-line);
}
.quicklinks a{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:16px 6px; text-align:center;
  font-size:12px; font-weight:600; color:var(--ink);
  border-right:1px solid var(--parchment-2);
}
.quicklinks a:last-child{ border-right:none; }
.quicklinks .qicon{
  width:40px; height:40px; border-radius:10px;
  background:var(--labsage);
  display:flex; align-items:center; justify-content:center;
  color:var(--rust);
}
.quicklinks .qicon svg{ width:19px; height:19px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section{ padding:52px 0; }
.section.on-sage{ background:var(--labsage); }
.section.on-ink{ background:var(--ink); color:var(--parchment); }
.section.on-ink h2, .section.on-ink h3, .section.on-ink h4{ color:var(--white); }
.section-head{ margin-bottom:28px; max-width:60ch; }
.section-head h2{ font-size:clamp(24px,5.5vw,34px); margin-top:10px; }
.section-head p{ margin-top:10px; font-size:15px; line-height:1.6; color:var(--ink-soft); }
.section.on-ink .section-head p{ color:#C9C9BC; }

/* ---------- Formulation-tag card (signature element) ---------- */
.tag-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
@media(min-width:640px){ .tag-grid{ grid-template-columns:1fr 1fr; } }
@media(min-width:980px){ .tag-grid.cols-3{ grid-template-columns:repeat(3,1fr); } }

.tag-card{
  position:relative;
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  padding:22px 20px 20px;
  border:1px solid var(--paper-line);
  transition:transform .2s ease, box-shadow .2s ease;
}
.tag-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lift); }
.tag-card::before{
  content:"";
  position:absolute; top:-1px; left:16px; right:16px; height:0;
  border-top:2px dashed var(--paper-line);
}
.tag-punch{
  position:absolute; top:-8px; left:50%; transform:translateX(-50%);
  width:16px; height:16px; border-radius:50%;
  background:var(--parchment); border:1px solid var(--paper-line);
}
.tag-meta{
  font-family:var(--f-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--rust); display:flex; justify-content:space-between; align-items:center;
}
.tag-card h3{ font-size:19px; margin-top:12px; }
.tag-card p{ font-size:14px; line-height:1.55; margin-top:8px; color:var(--ink-soft); }
.tag-foot{
  margin-top:14px; padding-top:12px; border-top:1px solid var(--parchment-2);
  display:flex; justify-content:space-between; align-items:center;
}
.tag-link{
  font-family:var(--f-mono); font-size:11.5px; font-weight:600; letter-spacing:.04em;
  color:var(--ink); display:inline-flex; align-items:center; gap:6px;
}
.tag-card:hover .tag-link{ color:var(--rust); }
.tag-count{
  width:26px; height:26px; border-radius:50%;
  background:var(--labsage); color:var(--rust);
  font-family:var(--f-mono); font-size:11px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}

/* ---------- Pillars (numbered — real process, order matters) ---------- */
.pillar-list{ display:flex; flex-direction:column; }
.pillar{
  display:grid; grid-template-columns:56px 1fr; gap:16px;
  padding:20px 0; border-top:1px solid rgba(244,238,220,0.14);
}
.section:not(.on-ink) .pillar{ border-top:1px solid var(--paper-line); }
.pillar:last-child{ border-bottom:1px solid rgba(244,238,220,0.14); }
.section:not(.on-ink) .pillar:last-child{ border-bottom:1px solid var(--paper-line); }
.pillar .num{ font-family:var(--f-mono); font-size:14px; color:var(--turmeric); font-weight:600; padding-top:3px; }
.pillar h3{ font-size:18px; }
.pillar p{ font-size:14px; line-height:1.6; margin-top:6px; color:#C9C9BC; max-width:60ch; }
.section:not(.on-ink) .pillar p{ color:var(--ink-soft); }

/* ---------- Service page: left content / right image ---------- */
.split{
  display:grid; grid-template-columns:1fr; gap:24px; align-items:center;
  padding:36px 0; border-bottom:1px solid var(--paper-line);
}
.split:last-child{ border-bottom:none; }
@media(min-width:800px){
  .split{ grid-template-columns:1.05fr 0.95fr; gap:44px; }
  .split.reverse{ direction:rtl; }
  .split.reverse > *{ direction:ltr; }
}
.split-media{
  border-radius:var(--radius); overflow:hidden; aspect-ratio:4/3;
  background:linear-gradient(155deg, var(--labsage), var(--parchment-2));
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--paper-line);
}
.split-media .ph-badge{
  font-family:var(--f-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--rust); background:var(--white); padding:6px 12px; border-radius:99px; border:1px solid var(--paper-line);
}
.split-body .eyebrow{ margin-bottom:10px; }
.split-body h3{ font-size:clamp(20px,4vw,26px); }
.split-body p{ margin-top:12px; font-size:14.5px; line-height:1.65; }
.split-body .btn{ margin-top:18px; }

/* ---------- Product cards ---------- */
.product-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media(min-width:640px){ .product-grid{ grid-template-columns:repeat(3,1fr); gap:18px; } }
.product-card{
  background:var(--white); border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--paper-line); box-shadow:var(--shadow-card);
}
.product-media{
  aspect-ratio:1/1;
  background:linear-gradient(155deg, var(--labsage), var(--parchment-2));
  position:relative;
}
.product-tag{
  position:absolute; top:9px; left:9px;
  background:var(--rust); color:var(--white);
  font-family:var(--f-mono); font-size:9.5px; letter-spacing:.06em; text-transform:uppercase;
  padding:4px 8px; border-radius:5px; font-weight:600;
}
.product-body{ padding:12px 12px 14px; }
.product-body h4{ font-size:14.5px; font-weight:700; line-height:1.3; }
.product-body .pmeta{
  font-family:var(--f-mono); font-size:10px; color:var(--rust); text-transform:uppercase; letter-spacing:.06em;
  margin-top:5px;
}
.product-cta{
  margin-top:10px; display:flex; align-items:center; gap:6px;
  font-size:12px; font-weight:700; color:var(--whatsapp);
}

/* ---------- Blog teaser cards ---------- */
.blog-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
@media(min-width:640px){ .blog-grid{ grid-template-columns:1fr 1fr; } }
.blog-card{
  background:var(--white); border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--paper-line); box-shadow:var(--shadow-card);
  display:flex; flex-direction:column;
}
.blog-media{ aspect-ratio:16/9; background:linear-gradient(155deg, var(--ink), #33402C); }
.blog-body{ padding:18px; }
.blog-body .eyebrow{ margin-bottom:8px; }
.blog-body h3{ font-size:18px; }
.blog-body p{ margin-top:8px; font-size:13.5px; line-height:1.55; color:var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background:var(--ink); color:#C9C9BC; padding:44px 0 22px; }
.footer-top{ display:grid; grid-template-columns:1fr; gap:30px; }
@media(min-width:800px){ .footer-top{ grid-template-columns:1.3fr 1fr 1fr 1fr; gap:24px; } }
.footer-brand .logo{ color:var(--white); }
.footer-brand p{ margin-top:12px; font-size:13.5px; line-height:1.6; max-width:36ch; }
.footer-col h5{
  font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--turmeric); margin-bottom:12px;
}
.footer-col ul li{ margin-bottom:9px; }
.footer-col ul li a{ font-size:13.5px; color:#C9C9BC; }
.footer-col ul li a:hover{ color:var(--turmeric); }
.footer-bottom{
  margin-top:36px; padding-top:18px; border-top:1px solid rgba(244,238,220,0.12);
  display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between;
  font-size:12px; color:#8E8E80;
}

/* ---------- Breadcrumb / page eyebrow bar (inner pages) ---------- */
.crumbbar{ padding:14px 0; border-bottom:1px solid var(--paper-line); background:var(--white); }
.crumbbar .container{ display:flex; align-items:center; gap:8px; font-family:var(--f-mono); font-size:11.5px; color:var(--ink-soft); flex-wrap:wrap; }
.crumbbar a{ color:var(--rust); }
.crumbbar .sep{ color:var(--paper-line); }

/* Utility */
.mt-0{ margin-top:0 !important; }
.text-center{ text-align:center; }
.badge-count{
  font-family:var(--f-mono); font-size:12px; color:var(--rust);
}
/* =========================================
   OUR JOURNEY
========================================= */

.journey-section {
  overflow: hidden;
}

.journey-split {
  align-items: center;
  gap: 70px;
}


/* =========================================
   FOUNDER IMAGE AREA
========================================= */

.journey-founders {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 500px;
  margin: 0 auto;
}


/* =========================================
   CIRCLE IMAGES
========================================= */

.founder-circle {
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
  background: #eeeeee;
  border: 8px solid #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

.founder-circle img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* BIG CIRCLE */

.founder-one {
  width: 390px;
  height: 390px;

  top: 10px;
  right: 35px;

  z-index: 2;
}


/* SECOND BIG CIRCLE */

.founder-two {
  width: 300px;
  height: 300px;

  left: 5px;
  bottom: 10px;

  z-index: 3;
}


/* =========================================
   OPTIONAL GOLD RING
========================================= */

.founder-one::before,
.founder-two::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 154, 50, 0.55);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

  .journey-split {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .journey-founders {
    max-width: 600px;
    height: 500px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .journey-split {
    gap: 40px;
  }

  .journey-founders {
    height: 360px;
    max-width: 390px;
  }

  .founder-one {
    width: 280px;
    height: 280px;
    top: 0;
    right: 10px;
  }

  .founder-two {
    width: 210px;
    height: 210px;
    left: 0;
    bottom: 0;
  }

  .founder-circle {
    border-width: 6px;
  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

  .journey-founders {
    height: 320px;
  }

  .founder-one {
    width: 245px;
    height: 245px;
    right: 0;
  }

  .founder-two {
    width: 180px;
    height: 180px;
    left: 0;
  }

}
.blog-media {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #f2f2f2;
}

.blog-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-media img {
  transform: scale(1.05);
}
.split-media {
  overflow: hidden;
  border-radius: 20px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
}
.hero-banner-image {
  width: 100%;
  max-width: 1200px;
  margin: 35px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.hero-banner-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}