/* ============================================================
   RAMESHWARAM AGRO OILS — design tokens
   Palette drawn from the oils themselves: raw sesame brown,
   pressed groundnut amber, temple-town vermillion, ivory rice-flour.
   ============================================================ */

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

:root{
  --ivory:        #FBF6EC;
  --ivory-deep:   #F1E8D4;
  --ink:          #221A12;
  --ink-soft:     #574936;
  --brown:        #4A2E1E;
  --brown-deep:   #331F14;
  --amber:        #C9820A;
  --amber-light:  #E8A93B;
  --amber-pale:   #F6D999;
  --green:        #2F4A26;
  --green-deep:   #203319;
  --rust:         #A63D2F;
  --line:         rgba(34,26,18,0.14);
  --line-soft:    rgba(34,26,18,0.08);

  --font-display: 'Fraunces', serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--ivory);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

body{
  background-image:
    radial-gradient(circle at 1px 1px, rgba(74,46,30,0.05) 1px, transparent 0);
  background-size:22px 22px;
}

img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-display); font-weight:600; color:var(--brown-deep); }
p{ margin:0; }

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

@media (max-width:640px){ .wrap{ padding:0 20px; } }

.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--rust);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:16px; height:1px;
  background:var(--rust);
  display:inline-block;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-mono);
  font-size:13px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:14px 26px;
  border-radius:2px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary{
  background:var(--brown-deep);
  color:var(--ivory);
}
.btn-primary:hover{ background:var(--amber); color:var(--brown-deep); transform:translateY(-2px); }
.btn-ghost{
  background:transparent;
  color:var(--brown-deep);
  border-color:var(--line);
}
.btn-ghost:hover{ border-color:var(--brown-deep); transform:translateY(-2px); }
.btn svg{ width:14px; height:14px; }

/* ---------- nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  border-bottom:1px solid var(--line);
}
.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(251,246,236,0.92);
  backdrop-filter:blur(8px);
  z-index:-1;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:18px;
  padding-bottom:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark{ width:40px; height:40px; flex-shrink:0; object-fit:contain; }
.brand-text{
  font-family:var(--font-display);
  font-weight:600;
  font-size:16.5px;
  line-height:1.15;
  color:var(--brown-deep);
}
.brand-text small{
  display:block;
  font-family:var(--font-mono);
  font-weight:400;
  font-size:10px;
  letter-spacing:0.12em;
  color:var(--ink-soft);
  text-transform:uppercase;
  margin-top:2px;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:2px;
}
.nav-links a{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  padding:10px 16px;
  color:var(--ink-soft);
  border-radius:2px;
  transition:color .2s ease, background .2s ease;
  position:relative;
}
.nav-links a:hover{ color:var(--brown-deep); background:var(--ivory-deep); }
.nav-links a.active{ color:var(--rust); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:16px; right:16px; bottom:5px;
  height:1px; background:var(--rust);
}
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{ display:none; }

@media (max-width:900px){
  .nav-links{
    position:fixed; top:71px; left:0; right:0; bottom:0;
    background:var(--ivory);
    flex-direction:column;
    align-items:stretch;
    padding:12px 20px 40px;
    gap:4px;
    transform:translateY(-110%);
    transition:transform .3s ease;
    overflow-y:auto;
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-links a{ padding:16px 8px; border-bottom:1px solid var(--line-soft); font-size:14px; }
  .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px;
    width:26px; background:none; border:none; cursor:pointer; padding:6px;
  }
  .nav-toggle span{ height:2px; background:var(--brown-deep); border-radius:2px; }
}

/* ---------- footer ---------- */
.site-footer{
  background:var(--brown-deep);
  color:var(--ivory-deep);
  margin-top:140px;
}
.footer-top{
  padding-top:72px;
  padding-bottom:56px;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:48px;
}
.footer-brand{ display:flex; gap:12px; margin-bottom:18px; }
.footer-brand .brand-text{ color:var(--ivory); }
.footer-brand .brand-text small{ color:rgba(251,246,236,0.55); }
.footer-col h4{
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--amber-light);
  font-weight:500;
  margin-bottom:16px;
}
.footer-col p, .footer-col a{
  color:rgba(251,246,236,0.72);
  font-size:14px;
  line-height:1.8;
}
.footer-col ul li{ margin-bottom:10px; }
.footer-col a:hover{ color:var(--ivory); }
.footer-bottom{
  border-top:1px solid rgba(251,246,236,0.14);
  padding-top:22px;
  padding-bottom:22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:0.03em;
  color:rgba(251,246,236,0.5);
}
@media (max-width:800px){
  .footer-top{ grid-template-columns:1fr 1fr; }
  .footer-bottom{ flex-direction:column; gap:10px; text-align:center; }
}
@media (max-width:520px){
  .footer-top{ grid-template-columns:1fr; }
}

/* ---------- section scaffolding ---------- */
section{ position:relative; }
.section-pad{ padding:110px 0; }
@media (max-width:700px){ .section-pad{ padding:72px 0; } }
.section-head{
  max-width:640px;
  margin-bottom:56px;
}
.section-head h2{
  font-size:clamp(30px,4vw,44px);
  line-height:1.08;
  margin-top:14px;
  letter-spacing:-0.01em;
}
.section-head p{
  margin-top:16px;
  color:var(--ink-soft);
  font-size:16.5px;
  max-width:520px;
}
.divider{
  height:1px;
  background:linear-gradient(90deg, var(--line) 0%, transparent 100%);
}
.hairline{ border-top:1px solid var(--line); }

/* ---------- page hero (inner pages) ---------- */
.page-hero{
  padding:64px 0 88px;
  background:var(--ivory-deep);
  border-bottom:1px solid var(--line);
  position:relative;
  overflow:hidden;
}
.page-hero h1{
  font-size:clamp(36px,6vw,64px);
  line-height:1.02;
  margin-top:16px;
  letter-spacing:-0.015em;
}
.page-hero .lede{
  margin-top:20px;
  font-size:18px;
  color:var(--ink-soft);
  max-width:560px;
}

/* ---------- ghani wheel decorative ---------- */
.wheel-deco{
  position:absolute;
  animation:spin 60s linear infinite;
  opacity:0.9;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce){
  .wheel-deco{ animation:none; }
}

/* ---------- process strip (seed to bottle) ---------- */
.process-row{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.process-step{
  padding:32px 22px;
  border-left:1px solid var(--line);
  position:relative;
}
.process-step:first-child{ border-left:none; }
.process-step .num{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--rust);
  letter-spacing:0.06em;
}
.process-step h3{
  font-size:18px;
  margin-top:10px;
  font-weight:600;
}
.process-step p{
  margin-top:8px;
  font-size:13.5px;
  color:var(--ink-soft);
  line-height:1.55;
}
@media (max-width:900px){
  .process-row{ grid-template-columns:1fr 1fr; }
  .process-step:nth-child(3){ border-left:none; }
}
@media (max-width:560px){
  .process-row{ grid-template-columns:1fr; }
  .process-step{ border-left:none; border-top:1px solid var(--line); }
  .process-step:first-child{ border-top:none; }
}

/* ---------- product cards ---------- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.product-card{
  background:var(--ivory);
  padding:0;
  display:flex;
  flex-direction:column;
  transition:background .25s ease;
}
.product-card:hover{ background:var(--ivory-deep); }
.product-photo{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--ivory-deep);
  border-bottom:1px solid var(--line);
}
.product-photo img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease;
}
.product-card:hover .product-photo img{ transform:scale(1.045); }
.product-body{ padding:28px 26px 30px; }
.oil-swatch{
  width:46px; height:58px;
  border-radius:0 0 22px 22px / 0 0 30px 30px;
  margin-bottom:22px;
  position:relative;
}
.oil-swatch::after{
  content:"";
  position:absolute; top:-8px; left:12px;
  width:22px; height:14px;
  background:var(--brown);
  border-radius:2px 2px 0 0;
}
.product-card h3{ font-size:21px; margin-bottom:6px; }
.product-card .tag{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--rust);
  margin-bottom:14px;
  display:block;
}
.product-card p{ font-size:14.5px; color:var(--ink-soft); line-height:1.65; }
.product-card .spec{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line-soft);
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--ink-soft);
  display:flex;
  justify-content:space-between;
}
@media (max-width:900px){ .product-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .product-grid{ grid-template-columns:1fr; } }

/* ---------- stat strip ---------- */
.stat-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.stat{
  padding:30px 24px;
  border-left:1px solid var(--line);
}
.stat:first-child{ border-left:none; }
.stat .n{
  font-family:var(--font-display);
  font-size:clamp(28px,3vw,38px);
  color:var(--brown-deep);
  font-weight:600;
}
.stat .l{
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-top:6px;
}
@media (max-width:800px){ .stat-strip{ grid-template-columns:1fr 1fr; } .stat:nth-child(3){ border-left:none; } .stat{ border-top:1px solid var(--line); } .stat:nth-child(1),.stat:nth-child(2){border-top:none;} }
@media (max-width:480px){ .stat-strip{ grid-template-columns:1fr; } .stat{ border-left:none !important; border-top:1px solid var(--line); } .stat:first-child{border-top:none;} }

/* ---------- cards / values grid ---------- */
.trio{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}
.trio-item .icon{ width:40px; height:40px; margin-bottom:20px; color:var(--amber); }
.trio-item h3{ font-size:19px; margin-bottom:10px; }
.trio-item p{ font-size:14.5px; color:var(--ink-soft); line-height:1.65; }
@media (max-width:800px){ .trio{ grid-template-columns:1fr; gap:36px; } }

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--green-deep);
  color:var(--ivory);
  padding:80px 0;
  position:relative;
  overflow:hidden;
}
.cta-band h2{
  color:var(--ivory);
  font-size:clamp(28px,4vw,42px);
  max-width:560px;
  line-height:1.1;
}
.cta-band p{ color:rgba(251,246,236,0.75); margin-top:14px; max-width:480px; font-size:16px; }
.cta-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
  flex-wrap:wrap;
}
.cta-band .btn-primary{ background:var(--amber); color:var(--brown-deep); }
.cta-band .btn-primary:hover{ background:var(--ivory); }

/* ---------- timeline (about page) ---------- */
.timeline{ position:relative; padding-left:2px; }
.timeline::before{
  content:""; position:absolute; left:70px; top:6px; bottom:6px; width:1px;
  background:var(--line);
}
.timeline-item{
  display:grid;
  grid-template-columns:70px 1fr;
  gap:32px;
  padding:28px 0;
  border-top:1px solid var(--line-soft);
}
.timeline-item:first-child{ border-top:none; }
.timeline-item .yr{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--rust);
  padding-top:2px;
  position:relative;
}
.timeline-item .yr::after{
  content:""; position:absolute; right:-37px; top:5px;
  width:9px; height:9px; border-radius:50%;
  background:var(--ivory); border:2px solid var(--rust);
}
.timeline-item h3{ font-size:18px; margin-bottom:6px; }
.timeline-item p{ font-size:14.5px; color:var(--ink-soft); line-height:1.65; max-width:520px; }
@media (max-width:600px){
  .timeline::before{ left:44px; }
  .timeline-item{ grid-template-columns:44px 1fr; gap:20px; }
  .timeline-item .yr::after{ right:-25px; }
}

/* ---------- badges (quality page) ---------- */
.badge-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.badge-card{
  background:var(--ivory);
  padding:32px 24px;
  text-align:center;
}
.badge-card .ring{
  width:56px; height:56px;
  margin:0 auto 16px;
  border-radius:50%;
  border:1.5px solid var(--amber);
  display:flex; align-items:center; justify-content:center;
}
.badge-card .ring svg{ width:24px; height:24px; color:var(--amber); }
.badge-card h4{ font-size:14.5px; font-weight:600; margin-bottom:6px; }
.badge-card p{ font-size:12.5px; color:var(--ink-soft); }
@media (max-width:800px){ .badge-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:460px){ .badge-grid{ grid-template-columns:1fr; } }

/* ---------- quote strip ---------- */
.quote-strip{
  padding:90px 0;
  background:var(--ivory-deep);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.quote-strip blockquote{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:400;
  font-size:clamp(22px,3vw,32px);
  line-height:1.35;
  color:var(--brown-deep);
  max-width:760px;
}
.quote-strip cite{
  display:block;
  margin-top:24px;
  font-style:normal;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.04em;
  color:var(--ink-soft);
}

/* ---------- contact page ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  border:1px solid var(--line);
}
.contact-form{ padding:52px; background:var(--ivory); }
.contact-info{ padding:52px; background:var(--brown-deep); color:var(--ivory-deep); }
.field{ margin-bottom:22px; }
.field label{
  display:block;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-bottom:8px;
}
.field input, .field select, .field textarea{
  width:100%;
  background:transparent;
  border:none;
  border-bottom:1px solid var(--line);
  padding:10px 2px;
  font-family:var(--font-body);
  font-size:15px;
  color:var(--ink);
  outline:none;
  transition:border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--amber); }
.field textarea{ resize:vertical; min-height:90px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.contact-info h3{ color:var(--ivory); font-size:20px; margin-bottom:22px; }
.contact-info .loc{ margin-bottom:26px; }
.contact-info .loc h4{
  font-family:var(--font-mono);
  font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--amber-light); margin-bottom:8px;
}
.contact-info .loc p{ font-size:14px; color:rgba(251,246,236,0.78); line-height:1.7; }
.contact-info .loc a{ color:rgba(251,246,236,0.9); }
@media (max-width:900px){
  .contact-grid{ grid-template-columns:1fr; }
  .contact-form, .contact-info{ padding:36px 26px; }
  .field-row{ grid-template-columns:1fr; }
}

/* ---------- reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- misc utility ---------- */
.mt-64{ margin-top:64px; }
.text-center{ text-align:center; margin-left:auto; margin-right:auto; }
.hero-figure{ position:relative; }

.footer-brand .brand-mark{ width:44px; height:44px; }

/* ---------- whatsapp cta ---------- */
.btn-whatsapp{
  background:var(--green);
  color:var(--ivory);
}
.btn-whatsapp:hover{ background:#3a5c2e; transform:translateY(-2px); color:var(--ivory); }
.btn-whatsapp svg{ width:15px; height:15px; }

/* ---------- industries grid ---------- */
.industry-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.industry-card{
  background:var(--ivory);
  padding:36px 30px;
}
.industry-card .icon{ width:34px; height:34px; color:var(--rust); margin-bottom:20px; }
.industry-card h3{ font-size:18px; margin-bottom:10px; }
.industry-card p{ font-size:14px; color:var(--ink-soft); line-height:1.6; }
.industry-card .feeds{
  margin-top:14px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.04em;
  color:var(--amber);
  text-transform:uppercase;
}
@media (max-width:900px){ .industry-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .industry-grid{ grid-template-columns:1fr; } }

/* ---------- client wall ---------- */
.client-wall{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}
.client-cell{
  padding:34px 28px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  min-height:104px;
}
.client-cell span{
  font-family:var(--font-display);
  font-size:17px;
  font-weight:500;
  color:var(--brown-deep);
  line-height:1.3;
}
@media (max-width:800px){ .client-wall{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .client-wall{ grid-template-columns:1fr; } }

/* ---------- map / directions link ---------- */
.map-link{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:14px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--amber-light);
}
.map-link svg{ width:14px; height:14px; }
.map-link:hover{ color:var(--ivory); }

/* ---------- hours table ---------- */
.hours-table{ width:100%; border-collapse:collapse; margin-top:6px; }
.hours-table td{
  padding:6px 0;
  font-size:13.5px;
  color:rgba(251,246,236,0.78);
  border-bottom:1px solid rgba(251,246,236,0.08);
}
.hours-table td:last-child{ text-align:right; font-family:var(--font-mono); font-size:12px; }

/* ---------- gallery ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.gallery-tile{
  position:relative;
  aspect-ratio:4/5;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--ivory-deep);
}
.gallery-tile.wide{ aspect-ratio:8/5; grid-column:span 2; }
.gallery-tile img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.gallery-tile .texture{
  width:100%; height:100%;
  display:flex;
  align-items:flex-end;
  padding:22px;
}
.gallery-tile .cap{
  position:relative;
  z-index:2;
}
.gallery-tile .cap .tag{
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:rgba(251,246,236,0.85);
  display:block;
  margin-bottom:4px;
}
.gallery-tile .cap h3{
  color:var(--ivory);
  font-size:18px;
  font-weight:600;
}
.gallery-tile::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
  z-index:1;
}
@media (max-width:900px){
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-tile.wide{ grid-column:span 2; }
}
@media (max-width:560px){
  .gallery-grid{ grid-template-columns:1fr; }
  .gallery-tile.wide{ grid-column:span 1; }
}
.gallery-note{
  margin-top:40px;
  padding:22px 26px;
  border:1px dashed var(--line);
  background:var(--ivory-deep);
  display:flex;
  align-items:center;
  gap:14px;
}
.gallery-note svg{ width:22px; height:22px; color:var(--rust); flex-shrink:0; }
.gallery-note p{ font-size:13.5px; color:var(--ink-soft); line-height:1.6; }
