/* Agri Tech Hub Base Styles */
:root {
    --primary-teal: #004D25;
    /* The dark navy/teal color */
    --accent-teal: #216a7f;
    /* Lighter teal used for text overlay */
    --accent-orange: #d9774a;
    /* Used for checkmarks and accents */
    --accent-brown: #8c5a45;
    /* Used for the second biotech icon box */
    --text-dark: #1a202c;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
}
.grf-hero {
  position: relative;
  min-height: 370px;
  padding: 60px 0;
  background: url('../images/product-plant-factory.webp')
    center/cover no-repeat;
  overflow: hidden;
}

/* overlay */
.grf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(3px);
  z-index: 0;
}

.grf-container {
  position: relative;
  z-index: 2;
  width: min(1200px, 92%);
  margin: auto;
}

/* Center title */
.grf-title-card {
  width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.grf-title-card h1 {
  color: #004D25;
  font-size: 62px;
  line-height: 1.1;
  margin-bottom: 12px;
  font-weight: 800;
}

.grf-desc {
  /* color: #004D25; */
  color:black;
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 24px;
}

.trial-flow-section {
  width: min(1100px, 92%);
  margin: auto;
  margin-top: -65px; /* THIS creates overflow on hero image */
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
}

/* Flow Card */
.grf-flow {
  width: 100%;
  background: #0a5a2f;
  color: #fff;
  padding: 20px 24px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.grf-flow h4 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 22px;
  text-align: center;
}

/* Steps */
.grf-flow-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.grf-flow-steps span {
  position: relative;
  padding: 10px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Arrow after every span */
.grf-flow-steps span::after {
  content: "→";
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* No arrow after last span */
.grf-flow-steps span:last-child::after {
  content: "";
}

/* Hero Section */
/* .hero {
    position: relative;
    background-image: url('assets/images/agri_hero.png');
    background-color: var(--primary-teal);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    padding: 120px 40px;
    color: white;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    background: #eab308;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 20px;
    display: inline-block;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-text-box {
    background: rgba(33, 106, 127, 0.85);
    padding: 30px;
    border-radius: 4px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.hero-desc {
    font-size: 14px;
    line-height: 1.8;
    flex: 2;
}

.hero-mission {
    flex: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 30px;
}

.hero-mission h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-mission p {
    font-size: 13px;
    opacity: 0.9;
} */

/* Stats Section */
.stats-section {
    padding: 80px 120px;
    background: var(--bg-light);
    transform: translateY(-40px);
}

.stats-grid {
    display: flex;
    gap: 30px;
}

.stat-box-left {
    flex: 1;
    background: var(--bg-white);
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border-left: 10px solid var(--primary-teal);
    /* Added thick left border */
}

.stat-box-left h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-big {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-teal);
    line-height: 1;
    margin-bottom: 40px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.stat-big span {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-meta {
    display: flex;
    gap: 60px;
}

.meta-item h5 {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.meta-item p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.stat-box-right {
    width: 380px;
    background: var(--primary-teal);
    color: white;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.stat-box-right h3 {
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.key-units-list {
    list-style: none;
}

.key-units-list li {
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.key-units-list li::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23d9774a" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="8"></circle><circle cx="12" cy="12" r="4" fill="%23d9774a"></circle></svg>') center/cover;
}

/* Specialized Infrastructure Section */
.spec-infra {
    padding: 60px 120px;
    background: var(--bg-light);
}

.spec-infra h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 20px;
    max-width: 500px;
}

.spec-infra-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 60px;
}

.cards-grid {
    display: flex;
    gap: 30px;
}

.infra-card {
    background: var(--bg-white);
    padding: 40px 30px;
    flex: 1;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.infra-card-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-teal);
    /* for currentColor SVGs */
}

.infra-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 12px;
}

.infra-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Biotech Section */
.biotech-section {
    padding: 100px 120px;
    background: var(--bg-white);
}

.biotech-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.biotech-content {
    padding: 0 70px 0 0;
    flex: 1;
}

.biotech-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-navy {
    background: var(--primary-teal);
}

.icon-brown {
    background: var(--accent-brown);
}

.feature-item h3 {
    font-size: 18px;
    color: var(--primary-teal);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 15px;
    color: var(--text-muted);
}

.biotech-image-wrapper {
    flex: 1;
    position: relative;
    padding: 20px;
}

.biotech-image-wrapper img {
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.precision-box {
    position: absolute;
    bottom: -10px;
    left: -10px;
    background: white;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    max-width: 300px;
    z-index: 10;
}

.precision-box h3 {
    font-size: 18px;
    color: var(--primary-teal);
    margin-bottom: 12px;
}

.precision-box p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Granule Section */
.granule-section {
    padding: 100px 120px;
    background: var(--bg-white);
}

.granule-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse;
}

.granule-content {
    flex: 1;
}

.granule-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 40px;
}

.check-list {
    list-style: none;
    margin-bottom: 40px;
}

.check-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.check-list li svg {
    margin-top: 4px;
    flex-shrink: 0;
}

.check-text h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.check-text p {
    font-size: 15px;
    color: var(--text-muted);
}

.badges {
    display: flex;
    gap: 30px;
}

.badge-item {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.badge-item span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

.granule-image-wrapper {
    flex: 1;
}

.granule-image-wrapper img {
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Formulation Excellence */
.formulation {
    background: var(--primary-teal);
    padding: 100px 120px;
    color: white;
    text-align: center;
}

.formulation h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.formulation p {
    font-size: 16px;
    color: #a4cecf;
    max-width: 700px;
    margin: 0 auto 60px;
}

.formulation-grid {
    display: flex;
    gap: 30px;
    text-align: left;
}

.formulation-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    flex: 1;
}

.formulation-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.formulation-card p.card-desc {
    font-size: 14px;
    color: #a4cecf;
    margin-bottom: 30px;
    line-height: 1.6;
}

.dark-check-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dark-check-list li {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark-check-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
}

/* Bottom Services */
.bottom-sections {
    padding: 80px 120px;
    background: var(--bg-light);
}

.bottom-grid {
    display: flex;
    gap: 30px;
}

.bottom-cols-left {
    flex: 1;
    display: flex;
    gap: 30px;
}

.mini-card {
    background: var(--bg-white);
    padding: 40px 20px;
    border-radius: 4px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-top: 4px solid var(--primary-teal);
    /* Added horizontal top border */
}

.mini-card h3 {
    font-size: 16px;
    color: var(--primary-teal);
    margin: 20px 0 15px;
}

.mini-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.mini-card a {
    display: inline-block;
    margin-top: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.bottom-right {
    flex: 1;
    background: #e2e8f0;
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bottom-right::before {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    background: rgba(255, 255, 255, 0.4);
    width: 150px;
    height: 150px;
    transform: rotate(45deg);
}

.bottom-right h3 {
    font-size: 24px;
    color: var(--primary-teal);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.bottom-right p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.btn-dark {
    background: var(--primary-teal);
    color: white;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    position: relative;
    z-index: 2;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .stats-grid {
        flex-direction: row;
    }
    .stats-section {
        padding: 80px 0px;
    }

    .stat-box-right {
        width: 100%;
    }
    .spec-infra{
        padding: 80px 0px;

    }
    .biotech-section {
        padding: 80px 0px;
    }

    .biotech-content {
        padding: 0;
    }

    .granule-section {
        padding: 80px 0px;
    }

    .formulation {
        padding: 80px 0px;
    }

    .bottom-sections {
        padding: 80px 0px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .biotech-flex,
    .granule-flex {
        flex-direction: column;
    }

    .granule-flex {
        flex-direction: column-reverse;
    }
    .biotech-image-wrapper img {
 width: 100%;
}
}

@media (max-width: 900px) {

    .cards-grid,
    .formulation-grid,
    .bottom-grid,
    .bottom-cols-left {
        flex-direction: column;
    }
    
    

    .hero-text-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-mission {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 0;
        padding-top: 20px;
    }

    .stat-meta {
        flex-direction: column;
        gap: 20px;
    }
    

    .nav-links,
    .btn-connect {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {

    .grf-title-card {
    width: 100%;
  }
    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .stat-big {
        font-size: 48px;
    }

    .stats-section {
        padding: 80px 0px;
    }

    .spec-infra {
        padding: 80px 0px;
    }

    .biotech-section {
        padding: 80px 0px;
    }

    .biotech-content {
        padding: 0;
    }

    .granule-section {
        padding: 80px 0px;
    }

    .formulation {
        padding: 80px 0px;
    }

    .bottom-sections {
        padding: 80px 0px;
    }

    .spec-infra h2,
    .biotech-content h2,
    .granule-content h2,
    .formulation h2 {
        font-size: 28px;
    }

    .container {
        padding: 0 20px;
    }

    .precision-box {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: -30px;
        width: 90%;
        margin-left: 5%;
    }

    .dark-check-list {
        grid-template-columns: 1fr;
    }
    
}