/*
Theme Name: KVK Pratapgarh
Theme URI: https://kvkvpratapgarh.com
Author: Raja Dinesh Singh KVK
Author URI: https://kvkvpratapgarh.com
Description: Official theme for Raja Dinesh Singh Krishi Vigyan Kendra, Pratapgarh
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: kvkvpratapgarh
Tags: agriculture, government, one-page
*/

:root {
  --green-dark: #1a3a1f;
  --green-mid: #2d6a35;
  --green-light: #4a9e56;
  --gold: #c8a84b;
  --gold-light: #e8c876;
  --cream: #f8f4ed;
  --cream-dark: #ede7db;
  --text-dark: #1a1a1a;
  --text-mid: #3a3a3a;
  --text-muted: #6a6a6a;
  --white: #ffffff;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
}

/* ─── TOP BAR ─── */
.topbar {
  background: var(--green-dark);
  color: #cde8d0;
  font-size: 12px;
  padding: 6px 0;
  letter-spacing: 0.03em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cde8d0; text-decoration: none; margin-left: 16px; }
.topbar a:hover { color: var(--gold-light); }

/* ─── HEADER ─── */
header {
  background: var(--white);
  border-bottom: 1px solid #e0d8cc;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}
.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.logo-emblem {
  width: 64px; height: 64px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.logo-emblem svg { width: 36px; height: 36px; }
.logo-text h1 { font-size: 20px; font-weight: 700; color: var(--green-dark); line-height: 1.15; }
.logo-text p { font-size: 11px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-weight: 400; margin-top: 1px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ─── NAV ─── */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { text-decoration: none; color: var(--text-mid); font-size: 13.5px; font-weight: 500; padding: 7px 12px; border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
.main-nav a:hover { background: var(--cream); color: var(--green-mid); }
.main-nav a.btn-contact { background: var(--green-mid); color: white; border-radius: 8px; padding: 8px 18px; }
.main-nav a.btn-contact:hover { background: var(--green-dark); }

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: 1.5px solid #ccc; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 18px; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #254d2a 50%, #1e4023 100%);
  color: white;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(ellipse at 70% 50%, rgba(74,158,86,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-tag { display: inline-block; background: rgba(200,168,75,0.2); border: 1px solid rgba(200,168,75,0.5); color: var(--gold-light); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; font-family: 'DM Sans', sans-serif; }
.hero h2 { font-size: 52px; font-weight: 700; line-height: 1.1; margin-bottom: 8px; color: white; }
.hero h2 span { color: var(--gold-light); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.75); margin: 16px 0 32px; max-width: 460px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: var(--gold); color: var(--green-dark); font-weight: 600; font-size: 14px; padding: 13px 28px; border-radius: 8px; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.4); color: white; font-size: 14px; padding: 13px 28px; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.btn-outline:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; margin-top: 48px; }
.stat-item { background: rgba(0,0,0,0.25); padding: 20px; text-align: center; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 4px; letter-spacing: 0.05em; }

.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 22px; transition: all 0.25s; }
.hero-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.hero-card-icon { width: 40px; height: 40px; background: rgba(200,168,75,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 20px; }
.hero-card h4 { font-size: 16px; color: white; font-family: 'DM Sans', sans-serif; font-weight: 600; margin-bottom: 6px; }
.hero-card p { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ─── MARQUEE ─── */
.marquee-bar { background: var(--gold); padding: 10px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 40px; animation: marquee 30s linear infinite; white-space: nowrap; }
.marquee-item { font-size: 12.5px; font-weight: 600; color: var(--green-dark); letter-spacing: 0.05em; text-transform: uppercase; }
.marquee-item::before { content: '✦  '; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── CONTAINER ─── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ─── SECTION HEADER ─── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-mid); font-weight: 600; background: rgba(45,106,53,0.08); padding: 5px 14px; border-radius: 100px; margin-bottom: 14px; }
.section-header h2 { font-size: 42px; font-weight: 700; color: var(--green-dark); margin-bottom: 14px; }
.section-header p { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.divider { width: 60px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }

/* ─── ABOUT ─── */
.about { padding: 100px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image-block { position: relative; }
.about-img-main { width: 100%; aspect-ratio: 4/3; background: linear-gradient(160deg, #e8f5ea, #c6e0c9); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; bottom: -24px; right: -24px; background: var(--green-dark); color: white; border-radius: 14px; padding: 20px 24px; text-align: center; border: 4px solid white; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.about-badge .num { font-family: 'Cormorant Garamond', serif; font-size: 44px; font-weight: 700; color: var(--gold-light); line-height: 1; }
.about-badge p { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.about-content { padding-right: 20px; }
.about-content h2 { font-size: 38px; color: var(--green-dark); margin-bottom: 16px; }
.about-content > p { color: var(--text-mid); line-height: 1.8; margin-bottom: 24px; font-size: 15.5px; }
.about-points { list-style: none; margin: 28px 0; }
.about-points li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; font-size: 14.5px; color: var(--text-mid); line-height: 1.6; }
.about-points li .dot { width: 22px; height: 22px; background: var(--green-mid); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.about-points li .dot::after { content: '✓'; font-size: 11px; color: white; font-weight: 700; }

/* ─── SERVICES ─── */
.services { padding: 100px 0; background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: white; border-radius: 16px; padding: 36px 30px; border: 1px solid rgba(0,0,0,0.05); transition: all 0.25s; position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s; transform-origin: left; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; background: rgba(45,106,53,0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }
.service-card h3 { font-size: 21px; color: var(--green-dark); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ─── PROGRAMS ─── */
.programs { padding: 100px 0; }
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.program-item { background: var(--cream); border-radius: 14px; padding: 32px; border-left: 4px solid var(--green-mid); transition: box-shadow 0.2s; }
.program-item:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.program-item .prog-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green-mid); font-weight: 700; margin-bottom: 10px; }
.program-item h3 { font-size: 22px; color: var(--green-dark); margin-bottom: 10px; }
.program-item p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.program-meta { display: flex; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(0,0,0,0.07); flex-wrap: wrap; }
.program-meta span { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

/* ─── CROPS ─── */
.crops { padding: 100px 0; background: var(--green-dark); }
.crops .section-header h2 { color: white; }
.crops .section-tag { background: rgba(200,168,75,0.2); color: var(--gold-light); }
.crops .section-header p { color: rgba(255,255,255,0.65); }
.crops .divider { background: var(--gold-light); }
.crops-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.crop-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 28px 20px; text-align: center; transition: all 0.25s; }
.crop-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.crop-emoji { font-size: 40px; margin-bottom: 12px; display: block; }
.crop-card h4 { font-family: 'DM Sans'; font-size: 15px; font-weight: 600; color: white; margin-bottom: 6px; }
.crop-card p { font-size: 12px; color: rgba(255,255,255,0.55); }

/* ─── FACILITIES ─── */
.facilities { padding: 100px 0; background: var(--cream); }
.facilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facility-card { background: white; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.facility-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.1); }
.facility-img { height: 160px; background: linear-gradient(135deg, #e8f5ea 0%, #c0dbc4 100%); display: flex; align-items: center; justify-content: center; font-size: 52px; }
.facility-body { padding: 24px; }
.facility-body h3 { font-size: 19px; color: var(--green-dark); margin-bottom: 8px; }
.facility-body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ─── HIGHLIGHT ─── */
.highlight { padding: 100px 0; background: var(--green-dark); }
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.highlight-content h2 { font-size: 42px; color: white; margin-bottom: 20px; }
.highlight-content h2 span { color: var(--gold-light); }
.highlight-content p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 20px; }
.highlight-list { list-style: none; }
.highlight-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 14px; color: rgba(255,255,255,0.8); display: flex; gap: 12px; align-items: flex-start; }
.highlight-list li::before { content: '→'; color: var(--gold-light); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.achievement-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ach-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 24px; text-align: center; }
.ach-card .big-num { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 700; color: var(--gold-light); line-height: 1; }
.ach-card .label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; line-height: 1.5; }

/* ─── TEAM ─── */
.team { padding: 100px 0; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.team-card { text-align: center; padding: 28px 20px; border-radius: 14px; background: var(--white); border: 1px solid rgba(0,0,0,0.06); transition: all 0.25s; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--green-mid), var(--green-dark)); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: var(--gold-light); border: 3px solid var(--gold); }
.team-card h4 { font-size: 15px; color: var(--green-dark); margin-bottom: 4px; }
.team-card .designation { font-size: 11px; color: var(--green-mid); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.team-card p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ─── NEWS ─── */
.news { padding: 100px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,0,0,0.08); transition: box-shadow 0.2s; }
.news-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.1); }
.news-date-band { background: var(--green-mid); color: white; font-size: 11px; padding: 8px 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.news-img { height: 170px; background: linear-gradient(135deg, #e8f5ea, #d4ebda); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px; }
.news-body h3 { font-size: 19px; color: var(--green-dark); margin-bottom: 8px; line-height: 1.3; }
.news-body p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.news-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green-mid); text-decoration: none; margin-top: 14px; transition: gap 0.2s; }
.news-link:hover { gap: 10px; }

/* ─── CONTACT ─── */
.contact { padding: 100px 0; background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: 36px; color: var(--green-dark); margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 32px; }
.contact-items { list-style: none; }
.contact-items li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.07); }
.contact-items li:last-child { border-bottom: none; }
.ci-icon { width: 44px; height: 44px; background: var(--green-dark); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ci-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.ci-value { font-size: 15px; color: var(--text-dark); margin-top: 2px; font-weight: 500; }

.contact-form { background: white; border-radius: 16px; padding: 40px; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.contact-form h3 { font-size: 24px; color: var(--green-dark); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-mid); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid #e0d8cc; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text-dark); background: #fdfaf6; transition: border-color 0.2s; outline: none; appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green-mid); background: white; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submit-btn { width: 100%; padding: 14px; background: var(--green-dark); color: white; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; letter-spacing: 0.04em; }
.submit-btn:hover { background: var(--green-mid); }

/* ─── FOOTER ─── */
footer { background: #0f2213; color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .logo-text h1 { color: white; font-size: 18px; }
.footer-brand .logo-text p { color: rgba(255,255,255,0.45); }
.footer-brand > p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.8; margin-top: 16px; }
.footer-col h4 { color: white; font-family: 'DM Sans'; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: var(--gold-light); text-decoration: none; }

/* ─── WPCF7 FORM OVERRIDES ─── */
.wpcf7-form .form-group input,
.wpcf7-form .form-group select,
.wpcf7-form .form-group textarea { width: 100%; }
.wpcf7-submit { width: 100%; padding: 14px; background: var(--green-dark); color: white; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.wpcf7-submit:hover { background: var(--green-mid); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .highlight-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h2 { font-size: 38px; }
  .services-grid, .programs-grid { grid-template-columns: 1fr 1fr; }
  .crops-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; flex-direction: column; width: 100%; background: white; position: absolute; top: 100%; left: 0; padding: 16px 32px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-top: 1px solid #eee; gap: 4px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  header { position: relative; }
}
@media (max-width: 600px) {
  .services-grid, .programs-grid, .crops-grid, .news-grid, .team-grid, .facilities-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 30px; }
  .hero-card-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 30px; }
  .achievement-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
