/* ============================================================
   Kisanveer Satara Sahakari Sakhar Karkhana Ltd. — Site Styles
   ============================================================ */

:root {
  --green-900: #113321;
  --green-800: #16472c;
  --green-700: #1e5c39;
  --green-600: #276e45;
  --green-500: #2f8253;
  --green-100: #e6f0e9;
  --gold-700: #a9791c;
  --gold-600: #c8932c;
  --gold-500: #dba63e;
  --gold-300: #f0cf8a;
  --gold-100: #fbf1dc;
  --cream: #faf6ee;
  --cream-dark: #f2ead9;
  --ink: #22281f;
  --ink-soft: #4a5347;
  --white: #ffffff;
  --border: #e4ddca;
  --shadow: 0 10px 30px rgba(17, 51, 33, 0.08);
  --shadow-lg: 0 20px 50px rgba(17, 51, 33, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-600);
  display: inline-block;
}

.section {
  padding: 92px 0;
}
.section--tight { padding: 64px 0; }
.section--alt { background: var(--white); }
.section--cream { background: var(--cream-dark); }
.section--dark {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: var(--cream);
}
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-600);
  color: var(--green-900);
  box-shadow: 0 10px 24px rgba(200, 147, 44, 0.35);
}
.btn-primary:hover { background: var(--gold-500); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost {
  background: var(--green-100);
  color: var(--green-800);
}
.btn-ghost:hover { background: var(--gold-100); color: var(--gold-700); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

/* -------------------- Header -------------------- */
.topbar {
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a:hover { color: var(--gold-300); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--green-700), var(--gold-600), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
  box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-head); font-size: 1rem; color: var(--green-900); }
.brand-text span { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--green-100);
  color: var(--green-800);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--green-900); border-radius: 2px; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1100px 550px at 85% -10%, rgba(219,166,62,0.35), transparent 60%),
              linear-gradient(155deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: var(--white);
  padding: 110px 0 130px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--gold-300); }
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}
.hero-copy p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
  max-width: 560px;
}
.hero-stats div { border-left: 2px solid rgba(255,255,255,0.25); padding-left: 14px; }
.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--gold-300);
}
.hero-stats span { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(200deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero-visual svg { width: 92%; height: 92%; }
.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  color: var(--green-900);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.hero-badge span { font-size: 0.78rem; color: var(--ink-soft); }

/* -------------------- Page hero (inner pages) -------------------- */
.page-hero {
  background: linear-gradient(155deg, var(--green-900), var(--green-700));
  color: var(--white);
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 26px);
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--gold-300); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 760px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 640px; font-size: 1.05rem; margin-top: 14px; }

/* -------------------- Report tiles -------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-300);
}
.tile-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.tile-icon svg { width: 26px; height: 26px; }
.tile h3 { font-size: 1.05rem; line-height: 1.5; }
.tile .tile-meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: auto; }
.tile .btn { align-self: flex-start; }

/* -------------------- Chairman -------------------- */
.chairman {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.chairman-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/3.6;
  background: linear-gradient(155deg, var(--green-700), var(--green-900));
  box-shadow: var(--shadow-lg);
}
.chairman-photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  color: var(--white);
}
.avatar-fallback .initials {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid var(--gold-400, var(--gold-500));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 600;
}
.avatar-fallback small { font-size: 0.72rem; opacity: 0.7; padding: 0 20px; text-align: center; }

.chairman-quote {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--green-800);
  margin-bottom: 18px;
}
.chairman-body p { color: var(--ink-soft); margin: 0 0 16px; }
.chairman-sign { margin-top: 26px; }
.chairman-sign strong { display: block; font-family: var(--font-head); color: var(--green-900); font-size: 1.05rem; }
.chairman-sign span { display: block; font-size: 0.86rem; color: var(--ink-soft); }

/* -------------------- Project cards -------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.project-media svg { width: 64px; height: 64px; position: relative; z-index: 1; }
.project-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 22px);
}
.media-ethanol { background: linear-gradient(150deg, #1e5c39, #2f8253); }
.media-sugar { background: linear-gradient(150deg, #a9791c, #dba63e); }
.media-cogen { background: linear-gradient(150deg, #16472c, #276e45); }

.project-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.project-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.project-body .btn { align-self: flex-start; margin-top: 8px; }

/* -------------------- Stats grid (About) -------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--green-800);
}
.stat-card span { font-size: 0.85rem; color: var(--ink-soft); }

/* -------------------- Timeline / legacy -------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature-item { display: flex; gap: 16px; }
.feature-item .icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--gold-100); color: var(--gold-700);
  display: flex; align-items: center; justify-content: center;
}
.feature-item .icon svg { width: 22px; height: 22px; }
.feature-item h4 { margin-bottom: 4px; font-size: 1.02rem; }
.feature-item p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* -------------------- Board of Directors -------------------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.board-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.board-avatar {
  width: 92px; height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--green-600), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--gold-300);
}
.board-avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.board-avatar .initials {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
}
.board-card h4 { font-size: 0.96rem; margin-bottom: 4px; }
.board-card .role {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-100);
  border-radius: 999px;
  padding: 4px 12px;
}
.board-card.featured { grid-column: span 2; }
.board-card.featured .board-avatar { width: 108px; height: 108px; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.82);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.footer-info {
  padding: 72px 48px 72px 0;
}
.footer-info .brand { margin-bottom: 20px; }
.footer-info .brand-text strong { color: var(--white); }
.footer-info .brand-text span { color: rgba(255,255,255,0.6); }
.footer-info p.tagline { color: rgba(255,255,255,0.72); max-width: 420px; margin-bottom: 28px; }

.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-300);
}
.contact-list .icon svg { width: 18px; height: 18px; }
.contact-list strong { display: block; color: var(--white); font-size: 0.92rem; }
.contact-list span, .contact-list a { font-size: 0.88rem; color: rgba(255,255,255,0.72); }
.contact-list a:hover { color: var(--gold-300); }

.footer-links {
  display: flex;
  gap: 60px;
  padding: 72px 0;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: var(--gold-300); }

.footer-map {
  border-left: 1px solid rgba(255,255,255,0.12);
  padding: 72px 0 72px 48px;
  display: flex;
  flex-direction: column;
}
.footer-map h5 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  flex: 1;
  min-height: 320px;
  box-shadow: var(--shadow-lg);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(0.15) contrast(1.05); }
.map-links { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 10px;
}

/* -------------------- Reveal on scroll -------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .chairman { grid-template-columns: 1fr; }
  .chairman-photo { max-width: 320px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .board-card.featured { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-info { padding: 56px 0 0; }
  .footer-map { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); padding: 40px 0; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 14px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .site-header.open .nav-links a { padding: 12px 14px; }
  .hero { padding: 60px 0 80px; }
  .hero-stats { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .board-card.featured { grid-column: span 2; }
  .footer-links { gap: 32px; padding: 40px 0; }
  .section { padding: 64px 0; }
}
