:root {
  --tatvant-green: #2f7d32;
  --tatvant-green-dark: #1f5a2c;
  --tatvant-bg: #f7faf7;
  --tatvant-text: #455a46;
  --tatvant-muted: #6d7a6f;
  --tatvant-border: #e3eee3;
  --tatvant-white: #ffffff;
  /* One vertical rhythm for every section on every page. Applied per side, so two
     stacked sections sit 2x this apart (128px on desktop). */
  --tatvant-section: clamp(2.5rem, 5vw, 4rem);
}

body.tatvant-theme {
  margin: 0;
  padding: 0;
  background: var(--tatvant-bg);
  color: var(--tatvant-text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
}

body.tatvant-theme * { box-sizing: border-box; }
body.tatvant-theme img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #e7efe8; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 1rem; }
.site-brand { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 1.35rem; font-weight: 800; color: var(--tatvant-green-dark); }
.site-brand .brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #e8f5eb; color: var(--tatvant-green); }
.site-nav ul { display: flex; align-items: center; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.site-nav li { list-style: none; }
.site-nav a { display: inline-flex; align-items: center; padding: 0.55rem 0.9rem; border-radius: 999px; color: #334c3b; font-weight: 600; }
.site-nav a:hover, .site-nav .current-menu-item > a { background: #e8f5eb; color: var(--tatvant-green); }
.menu-toggle { display: none; width: 42px; height: 42px; border: none; background: var(--tatvant-green); color: #fff; border-radius: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px auto; }

/* Shared page banner. Page stylesheets may override the height/background;
   the .heroX class rules below are scoped with .hero so they win over .hero h1 / .hero p. */
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 480px; padding: 4.5rem 0; text-align: center; color: #fff; background: linear-gradient(135deg, #1a4e24, #2f7d32); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1)); z-index: 0; }
.hero:has(.heroBackground)::before { display: none; } /* image banners bring their own scrim */
.hero .container { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: #fff; margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3rem); }
.hero p { max-width: 760px; font-size: 1.05rem; color: #ecf7ed; margin: 0 auto; }
.hero .heroBackground { position: absolute; inset: 0; z-index: -1; }
.hero .heroContent { max-width: 900px; margin: 0 auto; padding: 0 1rem; text-align: center; }
.hero .heroBadge { display: inline-block; margin-bottom: 1.25rem; padding: 0.5rem 1.1rem; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; background: rgba(255,255,255,0.12); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
/* background/-webkit-text-fill resets undo the gradient-clipped title in Product/style.css,
   which otherwise renders as transparent text if background-clip fails. */
.hero .heroTitle { margin: 0 0 1.25rem; font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; color: #fff; background: none; -webkit-background-clip: border-box; -webkit-text-fill-color: currentColor; }
.hero .heroSubtitle { max-width: 720px; margin: 0 auto; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; justify-content: center; }

@media (max-width: 768px) {
  .hero { min-height: 380px; padding: 3.5rem 0; }
  .hero .heroTitle br { display: none; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 1.3rem; border-radius: 999px; background: var(--tatvant-green); color: #fff; font-weight: 700; border: 1px solid var(--tatvant-green); }
.btn.secondary { background: transparent; color: #fff; border-color: #fff; }

/* Breadcrumb bar, shared by the product and post detail templates. */
.tvBreadcrumb { background: #fff; border-bottom: 1px solid #e6efe7; }
.tvBreadcrumb .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; font-size: 0.9rem; color: #6d7a6f; }
.tvBreadcrumb a { color: #2e7d32; font-weight: 600; }
.tvBreadcrumb a:hover { text-decoration: underline; }
.tvCrumbSep { color: #b9c8bc; }
.tvCrumbCurrent { color: #1b5e20; font-weight: 700; }

.section-block { padding: var(--tatvant-section) 0; }
.blog-card .blog-content .btn { align-self: flex-start; }
.section-heading { font-size: 2rem; margin: 0 0 0.6rem; color: var(--tatvant-green-dark); }
.section-subtitle { color: var(--tatvant-muted); margin: 0 0 2rem; }
.about-grid, .feature-grid, .product-grid, .quality-grid, .contact-layout { display: grid; gap: 1.25rem; }
.about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .feature-card, .product-card, .info-card, .form-card, .quote-card { background: var(--tatvant-white); border: 1px solid var(--tatvant-border); border-radius: 18px; padding: 1.5rem; box-shadow: 0 10px 25px rgba(0,0,0,0.04); }
.card h3, .feature-card h3, .product-card h3, .info-card h3 { margin-top: 0; color: var(--tatvant-green-dark); }
.feature-card .icon, .info-card .icon { display: inline-flex; width: 2.8rem; height: 2.8rem; align-items: center; justify-content: center; border-radius: 999px; background: #e8f5eb; color: var(--tatvant-green); margin-bottom: 1rem; }
.product-card img { border-radius: 12px; height: 220px; object-fit: cover; margin-bottom: 1rem; }
.product-card .category { display: inline-block; margin-bottom: 0.5rem; color: var(--tatvant-green); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cta-box { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem; padding: 2rem; border-radius: 24px; background: linear-gradient(135deg, #f0f8f1, #e8f5eb); border: 1px solid var(--tatvant-border); }
.contact-layout { grid-template-columns: 0.95fr 1.05fr; }
.form-card input, .form-card textarea { width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--tatvant-border); border-radius: 12px; font: inherit; margin-top: 0.5rem; }
.form-card button { margin-top: 1rem; border: none; cursor: pointer; }
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}
.blog-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: var(--tatvant-heading);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}
.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--tatvant-green);
  color: #fff;
  border-color: var(--tatvant-green);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.2);
}
.blog-grid { display: grid; gap: 1.25rem; grid-template-columns: 1.2fr 0.8fr; }
.blog-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--tatvant-border); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card .blog-content { padding: 1.25rem; }
.timeline { display: grid; gap: 1rem; }
.timeline-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--tatvant-white); border: 1px solid var(--tatvant-border); border-radius: 16px; padding: 1.1rem 1.2rem; }
.timeline-item .step { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tatvant-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.site-footer { background: var(--tatvant-green-dark); color: #f3f5f3; padding: 3rem 0 2rem; margin-top: 3rem; }
.site-footer .container { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3, .site-footer h4 { color: #fff; margin: 0 0 0.7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1.5rem; padding-top: 1rem; color: #dcefe0; grid-column: 1 / -1; }
/* Every folder stylesheet declares a bare `p { color: #666 }`. An element selector beats
   the colour inherited from .site-footer, so footer paragraphs need explicit rules or they
   render dark grey on dark green. Specificity here (0,1,1) wins regardless of load order. */
.site-footer p, .site-footer li, .site-footer span { color: #dcefe0; }
.site-footer p { margin: 0; font-size: 1rem; line-height: 1.7; }
.site-footer .copyright p { color: #cfe6d4; font-size: 0.95rem; }

@media (max-width: 900px) {
  .about-grid, .feature-grid, .product-grid, .quality-grid, .contact-layout, .blog-grid, .cta-box { grid-template-columns: 1fr; }
}

.pagination,
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 3rem;
  padding-top: 1rem;
  list-style: none;
  padding-left: 0;
}

.pagination li {
  margin: 0;
}

.pagination a,
.pagination span,
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.95rem;
  height: 2.95rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid #d8e7d9;
  background: #f7fcf7;
  color: var(--tatvant-green-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.pagination a:hover,
.pagination span,
.pagination .current,
.pagination li .current {
  background: linear-gradient(135deg, var(--tatvant-green), #3a8f3d);
  color: #fff;
  border-color: var(--tatvant-green);
  box-shadow: 0 10px 22px rgba(47, 125, 50, 0.2);
}

.pagination .current,
.pagination li .current {
  transform: translateY(-1px);
}

.product-pagination {
  margin-top: 3rem;
}

.filterContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filterBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--tatvant-heading);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.filterBtn:hover,
.filterBtn.active {
  background: var(--tatvant-green);
  color: #fff;
  border-color: var(--tatvant-green);
  box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
}

/* Scroll animations. Each folder stylesheet declares these too; defining them here means
   they also work on templates that load no folder CSS (page.php, index.php, search, 404).
   The .visible class is added by the observer in assets/js/site.js. */
.animate-fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-fade-in { opacity: 0; transition: opacity 0.8s ease; }
.animate-scale-up { opacity: 0; transform: scale(0.8); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-fade-up.visible, .animate-fade-in.visible, .animate-scale-up.visible { opacity: 1; }
.animate-fade-up.visible { transform: translateY(0); }
.animate-scale-up.visible { transform: scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Prefixed with `body` so this beats the unconditional opacity:0 in the folder
   stylesheets, which load after this file. */
@media (prefers-reduced-motion: reduce) {
  body .animate-fade-up,
  body .animate-fade-in,
  body .animate-scale-up { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; top: 78px; width: 100%; padding: 1rem; background: #fff; border-bottom: 1px solid #e7efe8; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}
