/* Innovate Nxt – Brand-aligned responsive styles
   Brand: Inter, Clover Green #42A14A, Bright Gold #FFCD00, Deep Forest #0F2E1A, White #FFFFFF, Rangoon Green #1C1C1C */

:root {
  /* Primary palette */
  --clover-green: #42A14A;
  --bright-gold: #FFCD00;
  --white: #FFFFFF;
  --rangoon-green: #1C1C1C;
  --deep-forest: #0F2E1A;
  --dark-charcoal: #1C1C1C;
  --navy: #0E1A2B;
  --green-black: #121A14;

  /* Semantic */
  --bg-dark: var(--deep-forest);
  --bg-light: var(--white);
  --text-on-dark: var(--white);
  --text-on-light: var(--rangoon-green);
  --accent: var(--bright-gold);
  --icon-tint: var(--clover-green);

  /* Typography – Inter, brand hierarchy */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --headline-size: clamp(2rem, 5vw, 4.5rem);
  /* ~72px desktop */
  --heading-size: clamp(1.75rem, 3.5vw, 2.8125rem);
  /* 45px */
  --subheading-size: clamp(1.125rem, 2vw, 1.875rem);
  /* 24–30px */
  --body-size: clamp(0.9375rem, 1.25vw, 1.375rem);
  /* 18–22px */
  --headline-tracking: -0.01em;
  --body-tracking: 0.01em;

  /* Spacing */
  --container-max: 1200px;
  --section-padding-y: clamp(3rem, 6vw, 5rem);
  --section-padding-x: clamp(1.25rem, 4vw, 2rem);
  --card-gap: clamp(1.25rem, 3vw, 2rem);
  --card-radius: 12px;
  --btn-radius: 8px;
  --shadow-card: 0 4px 20px rgba(15, 46, 26, 0.08);
  --shadow-card-hover: 0 8px 28px rgba(15, 46, 26, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--body-size);
  font-weight: 400;
  letter-spacing: var(--body-tracking);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--btn-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--bright-gold);
  color: var(--rangoon-green);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 205, 0, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--bright-gold);
}

.btn-hero-secondary:hover {
  background: rgba(255, 205, 0, 0.12);
  border-color: var(--bright-gold);
  color: var(--white);
}

.btn-nav-cta {
  flex-shrink: 0;
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

/* Hero */
.hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-top: calc(4.5rem + 2vh);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 28, 18, 0.95) 0%, transparent 45%),
    linear-gradient(225deg, rgba(8, 28, 18, 0.9) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 70% 50%, rgba(15, 46, 26, 0.6) 0%, transparent 55%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px);
  pointer-events: none;
}

/* Home Page Specific – Centered Background Image */
.hero-bg-center {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-center::before {
  /* Dark overlay so text and heading are readable over the hero image */
  background:
    radial-gradient(circle at center, rgba(8, 22, 14, 0.92) 0%, rgba(5, 18, 12, 0.96) 50%, rgba(4, 14, 10, 0.98) 100%);
  z-index: 0;
}

.hero-bg-center .hero-content {
  z-index: 1; /* bring content above pseudo-elements */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 100%;
  padding-left: max(calc((100% - var(--container-max)) / 2), var(--section-padding-x));
  padding-right: max(calc((100% - var(--container-max)) / 2), var(--section-padding-x));
  z-index: 1000;
  background: rgba(15, 46, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--white);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.nav-link-active {
  color: var(--bright-gold);
  font-weight: 600;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: clamp(2rem, 5vw, 4rem);
}

.hero-title {
  font-size: var(--headline-size);
  font-weight: 700;
  letter-spacing: var(--headline-tracking);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--subheading-size);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35), 0 0 1px rgba(0, 0, 0, 0.25);
}


.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-cta .btn-primary {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-on-light);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-narrow .section-title {
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: var(--heading-size);
  font-weight: 600;
  text-align: center;
  margin: 0 0 2.5rem;
  line-height: 1.2;
}

.section-title-dark {
  color: var(--rangoon-green);
}

.section-title-light {
  color: var(--white);
}

.section-image-wrap {
  margin-bottom: 2.5rem;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.section-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* Cards (F&B Broken) */
.card-grid {
  display: grid;
  gap: var(--card-gap);
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  padding: 2rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card-light {
  background: var(--white);
  border: 1px solid rgba(28, 28, 28, 0.08);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--icon-tint);
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--rangoon-green);
}

.card-text {
  font-size: 0.9375rem;
  color: var(--rangoon-green);
  opacity: 0.85;
  margin: 0;
  line-height: 1.6;
}

/* Benefit blocks (Formulate Fast) */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--card-gap);
}

.benefit-block {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  color: var(--clover-green);
  margin-bottom: 1rem;
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
}

.benefit-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.benefit-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.5;
}

/* Platform Capabilities */
.capability-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.capability-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.capability-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  color: var(--rangoon-green);
  font-weight: 500;
  transition: box-shadow 0.2s, transform 0.2s;
}

.capability-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.capability-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--icon-tint);
}

.capability-icon svg {
  width: 100%;
  height: 100%;
}

.capability-label {
  font-size: 0.9375rem;
}

/* Proof Points */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

.proof-card {
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--bright-gold);
}

.proof-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bright-gold);
  margin: 0 0 0.5rem;
}

.proof-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.5;
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.security-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
}

.security-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--icon-tint);
}

.security-icon svg {
  width: 100%;
  height: 100%;
}

.security-text {
  font-size: 0.9375rem;
  color: var(--rangoon-green);
  margin: 0;
  line-height: 1.6;
}

/* Locations */
.locations-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Partners */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  border: 1px solid rgba(28, 28, 28, 0.15);
  border-radius: var(--card-radius);
  background: var(--white);
  min-width: 200px;
  min-height: 80px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.partner-badge svg {
  height: 24px;
  width: auto;
  max-width: 200px;
  display: block;
}

/* CTA Banner */
.cta-banner {
  text-align: center;
}

.cta-title {
  margin-bottom: 1.5rem;
}

.cta-banner .btn {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Footer */
.footer {
  background: var(--green-black);
  color: var(--white);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem 3rem;
  padding-bottom: 2rem;
}

.footer-col {
  min-width: 0;
}

.logo-footer {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--clover-green);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem;
  max-width: 280px;
  line-height: 1.5;
}

.footer-demo-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bright-gold);
  display: inline-block;
  margin-top: 0.25rem;
}

.footer-demo-link:hover {
  color: rgba(255, 205, 0, 0.9);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a,
.footer-social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--bright-gold);
}

.footer-social a:hover,
.footer-social-link:hover {
  background: rgba(255, 205, 0, 0.15);
  border-color: var(--bright-gold);
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bright-gold);
  margin: 0 0 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Ingredient Page – Left-aligned Hero */
.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::before {
  background:
    linear-gradient(to right, rgba(15, 46, 26, 0.92) 0%, rgba(15, 46, 26, 0.75) 40%, rgba(15, 46, 26, 0.4) 70%, rgba(15, 46, 26, 0.25) 100%);
}

.hero-bg::after {
  background: none;
}

.hero-left .hero-content-left {
  text-align: left;
  max-width: 700px;
  margin-left: 0;
  margin-right: auto;
  padding-top: 0; /* Let flexbox handle vertical centering */
}

.hero-title-left {
  margin-left: 0 !important;
  margin-right: auto !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  max-width: 100%;
}

.hero-subtitle-left {
  margin-left: 0 !important;
  margin-right: auto !important;
  font-size: clamp(1rem, 2vw, 1.125rem) !important;
  max-width: 600px;
}

.hero-cta-left {
  justify-content: flex-start;
}

.section-title-left {
  text-align: left;
}

/* Pain Points Grid (Ingredient Page) */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

.pain-card {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-left: 4px solid var(--bright-gold);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.pain-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.pain-text {
  font-size: 0.9375rem;
  color: var(--rangoon-green);
  margin: 0;
  line-height: 1.6;
}

.pain-card-green {
  border-left-color: var(--clover-green);
}

/* CTA Gold Title */
.cta-title-gold {
  color: var(--bright-gold);
  font-style: italic;
}

/* Flavor Houses Specific Solutions */
.flavor-header-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--card-radius);
  margin-bottom: 2rem;
}

.flavor-solution-card {
  background: rgba(15, 46, 26, 0.6) !important;
  border: 1px solid var(--clover-green) !important;
}

.solution-icon-gold {
  color: var(--bright-gold) !important;
}

/* Outline Gold Button */
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--btn-radius);
  border: 2px solid var(--bright-gold);
  background: transparent;
  color: var(--bright-gold);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-outline-gold:hover {
  background: rgba(255, 205, 0, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 205, 0, 0.2);
}

/* Solution Cards (Ingredient Page) */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

.solution-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.2s, transform 0.2s;
}

.solution-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.solution-icon {
  width: 44px;
  height: 44px;
  color: var(--clover-green);
  margin-bottom: 1rem;
}

.solution-icon svg {
  width: 100%;
  height: 100%;
}

.solution-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bright-gold);
  margin: 0 0 0.5rem;
}

.solution-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.5;
}

/* Stats Grid (Ingredient Page) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
  text-align: center;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--card-gap);
}

.stat-card {
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--card-radius);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--clover-green);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-main);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rangoon-green);
  text-transform: lowercase;
}

/* Process Timeline (Flavor Page) */
.process-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clover-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.process-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rangoon-green);
  line-height: 1.4;
  max-width: 140px;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 16px;
  color: var(--clover-green);
  flex: 0.5;
}

.process-arrow svg {
  width: 20px;
  height: 20px;
}

.pt-0 {
  padding-top: 0 !important;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--green-haze);
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* Trusted By / Partners Section */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.partner-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: var(--white);
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: var(--card-radius);
  height: 100px;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.partner-badge svg,
.partner-badge img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* =============================================
   Blogs Page
   ============================================= */
.blogs-header {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-top: 4rem; /* clear fixed nav so hero isn’t hidden */
}

.blogs-hero {
  background: var(--deep-forest);
  padding: clamp(2.5rem, 5vw, 4rem) var(--section-padding-x);
  text-align: center;
}

.blogs-hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
  letter-spacing: var(--headline-tracking);
  line-height: 1.2;
}

.blogs-hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.blogs-main {
  background: var(--bg-light);
  color: var(--text-on-light);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.blogs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.blogs-filter-pill {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rangoon-green);
  background: rgba(28, 28, 28, 0.08);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.blogs-filter-pill:hover {
  background: rgba(28, 28, 28, 0.14);
}

.blogs-filter-pill.is-active {
  background: var(--deep-forest);
  color: var(--white);
}

/* Featured blog post */
.blogs-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--deep-forest);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
}

.blogs-featured-content {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blogs-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1rem;
  width: fit-content;
}

.blogs-tag-yellow {
  background: var(--bright-gold);
  color: var(--rangoon-green);
}

.blogs-tag-green {
  background: var(--clover-green);
  color: var(--white);
}

.blogs-featured-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.blogs-featured-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.blogs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.blogs-meta-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.blogs-meta-item {
  display: inline-flex;
  align-items: center;
}

.blogs-meta-light {
  color: rgba(28, 28, 28, 0.65);
}

.blogs-featured-media {
  min-height: 280px;
}

.blogs-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Blog grid */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.blogs-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(28, 28, 28, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.blogs-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.blogs-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blogs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blogs-card-body {
  padding: 1.25rem 1.5rem;
}

.blogs-card-body .blogs-tag {
  margin-bottom: 0.75rem;
}

.blogs-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--rangoon-green);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.blogs-card-desc {
  font-size: 0.9375rem;
  color: rgba(28, 28, 28, 0.75);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.blogs-card-body .blogs-meta {
  font-size: 0.8125rem;
  gap: 0.5rem;
}

/* Newsletter (blogs + footer style) */
.blogs-newsletter {
  background: var(--green-black);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--section-padding-x);
  text-align: center;
}

.blogs-newsletter-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.5rem;
}

.blogs-newsletter-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.blogs-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.blogs-newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--btn-radius);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.blogs-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.blogs-newsletter-input:focus {
  border-color: var(--bright-gold);
  background: rgba(255, 255, 255, 0.12);
}

.blogs-newsletter-btn {
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   RESPONSIVE BREAKPOINTS (all breakpoints, largest first)
   =============================================
   1. 1024px  – Tablet (smaller nav, 2-col grids, footer 2-col)
   2. 900px   – Tablet narrow (footer 1-col, stats 2-col, featured stacked)
   3. 768px   – Mobile (hamburger nav, single-col grids, hero flexible)
   4. 480px   – Mobile small (tight spacing, smaller type & logo)
   ============================================= */

/* 1. ≤ 1024px — Tablet */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.875rem;
  }

  .btn-nav-cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    margin-bottom: 2rem;
  }
}

/* 2. ≤ 900px — Tablet narrow */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand .footer-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .capability-images {
    grid-template-columns: 1fr;
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blogs-featured {
    grid-template-columns: 1fr;
  }

  .blogs-featured-media {
    order: -1;
    min-height: 240px;
  }
}

/* 3. ≤ 768px — Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: min(100vh, 600px);
    height: auto;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0F2E1A;
    flex-direction: column;
    padding: 1rem var(--section-padding-x) 1.5rem;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .nav-links.is-open {
    display: flex;
  }

  .btn-nav-cta {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-left .hero-content-left {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
  }

  .hero-title-left {
    margin-left: auto !important;
  }

  .hero-subtitle-left {
    margin-left: auto !important;
  }

  .hero-cta-left {
    justify-content: center;
  }

  .section-title-left {
    text-align: center;
  }

  .partners-grid {
    flex-direction: column;
    align-items: center;
  }

  .partner-badge {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .locations-list {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .section-image {
    aspect-ratio: 16/9;
  }

  .cta-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .stat-card {
    padding: 1.5rem;
  }

  /* Process Timeline (Mobile) */
  .process-timeline {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
  }
  
  .process-arrow {
    transform: rotate(90deg);
    padding: 1rem 0;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
  }

  .blogs-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .blogs-filters::-webkit-scrollbar {
    display: none;
  }

  .blogs-filter-pill {
    flex-shrink: 0;
  }

  .blogs-newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .blogs-newsletter-input {
    min-width: 0;
  }
}

/* 4. ≤ 480px — Mobile small */
@media (max-width: 480px) {
  :root {
    --section-padding-y: clamp(2rem, 5vw, 3rem);
    --section-padding-x: 1rem;
    --card-gap: 1rem;
  }

  .hero {
    padding-bottom: 2.5rem;
  }

  .hero-content {
    padding-top: 1.5rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta .btn {
    max-width: 100%;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
  }

  .section-title {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
    margin-bottom: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.125rem;
  }

  .card-text {
    font-size: 0.875rem;
  }

  .benefit-block {
    padding: 1.25rem;
  }

  .benefit-title {
    font-size: 1rem;
  }

  .benefit-text {
    font-size: 0.875rem;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    padding: 1rem 1.25rem;
  }

  .capability-label {
    font-size: 0.875rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-card {
    padding: 1.25rem;
  }

  .solution-title {
    font-size: 1rem;
  }

  .solution-text {
    font-size: 0.875rem;
  }

  .pain-card {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  }

  .pain-text {
    font-size: 0.875rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.8125rem;
  }

  .proof-card {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  }

  .proof-title {
    font-size: 1rem;
  }

  .proof-text {
    font-size: 0.875rem;
  }

  .security-card {
    padding: 1.25rem;
  }

  .security-text {
    font-size: 0.875rem;
  }

  .section-image {
    aspect-ratio: 4/3;
  }

  .partner-badge {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    max-width: 100%;
  }

  .cta-banner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .cta-banner .btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .footer {
    padding-top: 2rem;
  }

  .footer-inner {
    gap: 1.5rem;
  }

  .footer-heading {
    margin-bottom: 0.75rem;
  }

  .footer-col a {
    font-size: 0.875rem;
  }

  .footer-tagline {
    font-size: 0.875rem;
  }

  .locations-list {
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .copyright {
    font-size: 0.75rem;
  }

  .blogs-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .blogs-hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .blogs-hero-subtitle {
    font-size: 0.9375rem;
  }

  .blogs-featured-content {
    padding: 1.25rem;
  }

  .blogs-featured-title {
    font-size: 1.25rem;
  }

  .blogs-featured-desc {
    font-size: 0.9375rem;
  }

  .blogs-featured-media {
    min-height: 200px;
  }

  .blogs-card-body {
    padding: 1rem 1.25rem;
  }

  .blogs-card-title {
    font-size: 1rem;
  }

  .blogs-card-desc {
    font-size: 0.875rem;
  }

  .blogs-newsletter {
    padding: 2rem 1rem;
  }

  .blogs-newsletter-title {
    font-size: 1.25rem;
  }

  .blogs-newsletter-desc {
    font-size: 0.9375rem;
  }

  .blogs-header {
    padding-top: 3.5rem;
  }

  .logo-img {
    height: 32px;
  }
}