/* ============================================================
   SHIVSAMPOORNA MILLS PVT. LTD. — Main Stylesheet
   shivsampoornamills.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --forest:    #2C4A2E;
  --moss:      #4A7C59;
  --sage:      #7FAF8A;
  --cream:     #F5F0E8;
  --parchment: #EDE4D0;
  --earth:     #8B6340;
  --terracotta:#C47A3A;
  --bark:      #3D2B1F;
  --warm-white:#FDFAF4;
  --text-dark: #1E1E1E;
  --text-mid:  #4A4A4A;
  --text-light:#7A7A7A;
  --border:    rgba(44,74,46,0.15);

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Jost', sans-serif;

  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(44,74,46,0.12);
  --shadow-lg: 0 12px 48px rgba(44,74,46,0.18);
  --transition: 0.3s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utility ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--forest); color: var(--warm-white); }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 12px;
}
.section--dark .tag { color: var(--sage); }
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
  margin-bottom: 20px;
}
.section--dark .section-title { color: var(--warm-white); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.8;
}
.section--dark .section-sub { color: rgba(253,250,244,0.75); }
.divider {
  width: 48px; height: 3px;
  background: var(--terracotta);
  margin: 20px 0 40px;
  border-radius: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-primary {
  background: var(--forest);
  color: var(--warm-white);
}
.btn-primary:hover { background: var(--moss); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  border: 2px solid var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--warm-white); }
.btn-light {
  background: var(--warm-white);
  color: var(--forest);
}
.btn-light:hover { background: var(--parchment); transform: translateY(-2px); }
.btn-terracotta {
  background: var(--terracotta);
  color: var(--warm-white);
}
.btn-terracotta:hover { background: var(--earth); transform: translateY(-2px); }

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-h);
  background: rgba(253,250,244,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(44,74,46,0.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img {
  height: 54px;
  width: auto;
  max-width: 260px;
  display: block;
  object-fit: contain;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--forest); background: rgba(44,74,46,0.07); }
.nav-cta { margin-left: 12px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile Menu ── */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 998;
  box-shadow: var(--shadow-lg);
}
#mobile-menu.open { display: block; }
#mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}
#mobile-menu a:last-child { border: none; margin-top: 16px; }

/* ── Page Header (inner pages) ── */
.page-header {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  background: var(--forest);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.page-header .tag { color: var(--sage); }
.page-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 1.1rem;
  color: rgba(253,250,244,0.75);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Footer ── */
#footer {
  background: var(--bark);
  color: rgba(253,250,244,0.85);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(253,250,244,0.65);
  margin-top: 16px;
  max-width: 280px;
}
.footer-logo-name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--warm-white);
}
.footer-logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253,250,244,0.5);
  margin-top: 2px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(253,250,244,0.65);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--warm-white); }
.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(253,250,244,0.65);
  line-height: 1.8;
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(253,250,244,0.4);
}
.footer-bottom a { color: rgba(253,250,244,0.4); }
.footer-bottom a:hover { color: var(--warm-white); }
.fssai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: rgba(253,250,244,0.65);
  margin-top: 16px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
