/* ============================================
   Tithal Farmers Producer Company Ltd
   Modern Elegant Agriculture Website
   ============================================ */

:root {
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --primary-dark: #081C15;
  --accent: #40916C;
  --accent-soft: #52B788;
  --gold: #D4A373;
  --cream: #F8F9F5;
  --off-white: #FEFDF9;
  --text: #1A1A1A;
  --text-muted: #5C6B5E;
  --border: #E8EDE9;
  --shadow: 0 4px 24px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 67, 50, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar a {
  color: rgba(255,255,255,0.85);
}

.top-bar a:hover {
  color: var(--accent-soft);
}

/* ========== HEADER ========== */
.header {
  background: rgba(254, 253, 249, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
  overflow: hidden;
  padding: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.logo-text p {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 50px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(64, 145, 108, 0.1);
}

.nav-links a.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 11px 24px;
  margin-left: 8px;
}

.nav-links a.btn-nav:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #F8F9F5 0%, #E8F5E9 50%, #C8E6C9 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(64, 145, 108, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 80px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.hero h1 span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--primary) 0%, var(--accent) 100%);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-float {
  position: absolute;
  background: white;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

.hero-float.one {
  bottom: 30px;
  left: -20px;
}

.hero-float.two {
  top: 40px;
  right: -15px;
  animation-delay: 1.5s;
}

.hero-float .icon {
  width: 42px;
  height: 42px;
  background: rgba(64, 145, 108, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
}

.hero-float strong {
  display: block;
  font-size: 15px;
  color: var(--primary-dark);
}

.hero-float span {
  font-size: 12px;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(64, 145, 108, 0.12), rgba(27, 67, 50, 0.08));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 650;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== ABOUT PREVIEW ========== */
.about-preview {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: white;
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.about-image-badge strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

.about-image-badge span {
  font-size: 13px;
  color: var(--text-muted);
}

.about-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
}

.about-content > p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.value-item .check {
  width: 28px;
  height: 28px;
  background: rgba(64, 145, 108, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.value-item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== IMPACT ========== */
.impact {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.impact .section-header h2,
.impact .section-label {
  color: white;
}

.impact .section-header p {
  color: rgba(255,255,255,0.75);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.impact-card {
  text-align: center;
  padding: 36px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.impact-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.impact-card .number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-soft);
}

.impact-card .label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ========== PRODUCE SHOWCASE ========== */
.produce-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.produce-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.produce-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.produce-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produce-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 21, 0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.produce-card h3 {
  color: white;
  font-size: 1.2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
}

.produce-card p {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

/* ========== BOARD ========== */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.board-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.board-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.board-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: white;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.board-card h3 {
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  font-weight: 650;
  margin-bottom: 4px;
}

.board-card .role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.board-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail .icon-box {
  width: 48px;
  height: 48px;
  background: rgba(64, 145, 108, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-detail a:hover {
  color: var(--accent);
}

.contact-form-wrap {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #E8F5E9;
  color: #1B4332;
  border: 1px solid #A5D6A7;
  display: block;
}

.form-message.error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
  display: block;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text h1 {
  color: white;
  font-size: 18px;
}

.footer-brand .logo-text p {
  color: rgba(255,255,255,0.5);
}

.footer-brand > p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.footer-links a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom span {
  color: rgba(255,255,255,0.5);
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0 70px;
  text-align: center;
  color: white;
  position: relative;
}

.page-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }
  .hero-float.one { left: 10px; }
  .hero-float.two { right: 10px; }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .produce-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 4px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
    transition: right 0.35s ease;
    z-index: 999;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a {
    width: 100%;
    padding: 14px 18px;
  }
  .nav-links a.btn-nav {
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .values-list {
    grid-template-columns: 1fr;
  }
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .produce-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .produce-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-left, .top-bar-right {
    gap: 12px;
    font-size: 12px;
  }
}

/* ========== CERTIFICATIONS / TRUST LOGOS ========== */
.certifications {
  background: white;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.certifications .section-header {
  margin-bottom: 48px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}

.cert-card {
  background: #ffffff;
  border: 1px solid #E5EBE7;
  border-radius: 16px;
  padding: 24px 20px 22px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(27, 67, 50, 0.05);
}

.cert-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-soft));
  transform: scaleX(0);
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(27, 67, 50, 0.12);
  border-color: #D0DDD5;
}

.cert-card:hover::after {
  transform: scaleX(1);
}

/* Uniform logo container - same white background for all */
.cert-logo-box {
  width: 100%;
  height: 120px;
  background: #ffffff;
  border: 1px solid #EEF2EF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  margin-bottom: 4px;
}

.cert-card .cert-img {
  width: auto;
  max-width: 100%;
  max-height: 92px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
}

.cert-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 650;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.3;
}

.cert-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.cert-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 14px;
  background: rgba(64, 145, 108, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 992px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== SCROLL TRIGGER ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.from-left {
  transform: translateX(-50px);
}

.reveal.from-right {
  transform: translateX(50px);
}

.reveal.from-scale {
  transform: scale(0.92);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays via JS data-delay or nth-child fallbacks */
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }
.reveal.d6 { transition-delay: 0.48s; }

/* Section headers reveal */
.section-header.reveal {
  transform: translateY(30px);
}

/* Hero entrance (on load) */
.hero-text {
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-visual {
  animation: heroFadeIn 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-text,
  .hero-visual {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ========== PARALLAX ========== */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-visual.parallax-layer,
.hero-image-wrap {
  will-change: transform;
}

.impact {
  background-attachment: fixed;
}

/* Soft parallax for page heroes on inner pages */
.page-hero {
  background-attachment: fixed;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

/* Disable fixed bg on mobile (performance + iOS issues) */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .impact,
  .page-hero {
    background-attachment: scroll !important;
  }
  .parallax-layer {
    transform: none !important;
  }
}
