/* ============================================================
   ECOVETSERVICE — Inner Pages  v2
   Each page hero is UNIQUE — reflects the page's content
   ============================================================ */

/* ══════════════════════════════════════════════
   PAGE HERO BASE — light white/grey by default
   ══════════════════════════════════════════════ */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(var(--sp-12), 6vw, var(--sp-20)));
  padding-bottom: clamp(var(--sp-12), 6vw, var(--sp-20));
  position: relative; overflow: hidden;
  background: var(--color-navy);
}

.page-hero--light {
  background: var(--color-white);
  border-bottom: var(--border-thin);
}
.page-hero--light .page-hero__label { color: var(--color-teal); }
.page-hero--light .page-hero__label::before { background: var(--color-teal); }
.page-hero--light .page-hero__title { color: var(--color-navy); }
.page-hero--light .page-hero__title em { color: var(--color-teal); }
.page-hero--light .page-hero__subtitle { color: var(--color-text-muted); }
.page-hero--light .page-hero__breadcrumb { color: var(--color-grey-400); }
.page-hero--light .page-hero__breadcrumb a { color: var(--color-grey-400); }
.page-hero--light .page-hero__breadcrumb-current { color: var(--color-teal); }

/* About hero: split layout with real pharma image */
.page-hero--about {
  background: var(--color-white);
  border-bottom: var(--border-thin);
}
.page-hero--about::before { display:none; }

/* What We Do: teal accent bg */
.page-hero--wwd {
  background: linear-gradient(110deg, var(--color-navy) 55%, var(--color-navy-mid) 100%);
}
.page-hero--wwd::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 45%;
  background: linear-gradient(135deg, rgba(10,122,106,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Products: light clean */
.page-hero--products {
  background: var(--color-grey-50);
  border-bottom: var(--border-thin);
}
.page-hero--products .page-hero__label { color: var(--color-teal); }
.page-hero--products .page-hero__label::before { background: var(--color-teal); }
.page-hero--products .page-hero__title { color: var(--color-navy); }
.page-hero--products .page-hero__subtitle { color: var(--color-text-muted); }
.page-hero--products .page-hero__breadcrumb,
.page-hero--products .page-hero__breadcrumb a { color: var(--color-grey-400); }
.page-hero--products .page-hero__breadcrumb-current { color: var(--color-teal); }

/* Market: image background with overlay */
.page-hero--market {
  background: var(--color-navy);
  min-height: 380px;
}
.page-hero--market .ph-img {
  position: absolute; inset: 0;
}
.page-hero--market .ph-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.2; filter: saturate(0.4);
}
.page-hero--market .ph-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,33,55,0.95) 45%, rgba(13,33,55,0.6) 100%);
}

/* Partnership: dark with gold accent */
.page-hero--partnership {
  background: linear-gradient(115deg, var(--color-navy) 0%, #102840 100%);
}
.page-hero--partnership::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,151,46,0.3), transparent);
}

/* Contact: light split */
.page-hero--contact {
  background: var(--color-white);
  border-bottom: var(--border-thin);
}
.page-hero--contact .page-hero__label { color: var(--color-teal); }
.page-hero--contact .page-hero__label::before { background: var(--color-teal); }
.page-hero--contact .page-hero__title { color: var(--color-navy); }
.page-hero--contact .page-hero__subtitle { color: var(--color-text-muted); }
.page-hero--contact .page-hero__breadcrumb,
.page-hero--contact .page-hero__breadcrumb a { color: var(--color-grey-400); }
.page-hero--contact .page-hero__breadcrumb-current { color: var(--color-teal); }

.page-hero__inner {
  position: relative; z-index: 1;
}

.page-hero__breadcrumb {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: var(--sp-6);
}
.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.3); text-decoration: none; transition: color var(--dur-fast);
}
.page-hero__breadcrumb a:hover { color: var(--color-gold); }
.page-hero__breadcrumb-sep { color: rgba(255,255,255,0.15); }
.page-hero__breadcrumb-current { color: var(--color-gold); }

.page-hero__label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--color-gold); margin-bottom: var(--sp-4);
}
.page-hero__label::before { content: ''; width: 16px; height: 1.5px; background: var(--color-gold); }

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-6xl));
  font-weight: var(--fw-bold); color: var(--color-white);
  line-height: 1.05; letter-spacing: -0.025em;
  max-width: 760px; margin-bottom: var(--sp-5);
}
.page-hero__title em { font-style: normal; color: var(--color-teal-light); }
.page-hero__title--gold em { color: var(--color-gold); }

.page-hero__subtitle {
  font-size: clamp(var(--fs-base), 1.5vw, var(--fs-lg));
  color: rgba(255,255,255,0.5); max-width: 540px;
  line-height: var(--lh-relaxed); font-weight: var(--fw-light);
}

/* About hero split layout */
.page-hero__split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-10), 5vw, var(--sp-16));
  align-items: center;
}
.page-hero__split-img {
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-xl);
}
.page-hero__split-img img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 860px) {
  .page-hero__split { grid-template-columns: 1fr; }
  .page-hero__split-img { max-height: 280px; }
}
@media (max-width: 640px) {
  .page-hero { padding-top: calc(var(--header-h-mob) + var(--sp-10)); padding-bottom: var(--sp-10); }
  .page-hero__split-img { display: none; }
}

/* ══════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════ */
.about-values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
}
@media (max-width: 768px) { .about-values { grid-template-columns: 1fr; } }

.value-card {
  background: var(--color-white); border: var(--border-thin);
  border-radius: var(--radius-lg); padding: var(--sp-8);
  position: relative; overflow: hidden;
  transition: box-shadow var(--dur-mid), transform var(--dur-mid);
}
.value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.value-card__num {
  font-family: var(--font-display); font-size: 5rem;
  font-weight: var(--fw-bold); color: var(--color-grey-100);
  position: absolute; top: -10px; right: var(--sp-6); line-height: 1; user-select: none;
}
.value-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: rgba(10,122,106,0.07);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-5);
}
.value-card__icon svg { width: 24px; height: 24px; color: var(--color-teal); }
.value-card__title { font-family: var(--font-body); font-size: var(--fs-lg); font-weight: var(--fw-semi); color: var(--color-navy); margin-bottom: var(--sp-3); }
.value-card__text { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--lh-relaxed); }

/* ── What We Cover checklist ── */
.scope-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3);
}
@media (max-width: 640px) { .scope-list { grid-template-columns: 1fr; } }
.scope-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-white); border: var(--border-thin);
  border-radius: var(--radius-md);
  transition: box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.scope-item:hover { box-shadow: var(--shadow-sm); border-color: var(--color-teal-light); }
.scope-item svg { width: 16px; height: 16px; color: var(--color-teal); flex-shrink: 0; }
.scope-item span { font-size: var(--fs-sm); color: var(--color-text); font-weight: var(--fw-medium); }

/* ══════════════════════════════════════════════
   WHAT WE DO — ACCORDION
   ══════════════════════════════════════════════ */
.services-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.service-item {
  background: var(--color-white); border: var(--border-thin);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--dur-mid);
}
.service-item:hover { box-shadow: var(--shadow-md); }
.service-item.open { box-shadow: var(--shadow-md); border-color: var(--color-grey-200); }
.service-item__header {
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-7); cursor: pointer; user-select: none;
}
.service-item__num {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest); color: var(--color-teal); flex-shrink: 0; width: 26px;
}
.service-item__icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--color-grey-50);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--dur-fast);
}
.service-item.open .service-item__icon { background: rgba(10,122,106,0.08); }
.service-item__icon svg { width: 22px; height: 22px; color: var(--color-navy); transition: color var(--dur-fast); }
.service-item.open .service-item__icon svg { color: var(--color-teal); }
.service-item__info { flex: 1; min-width: 0; }
.service-item__title { font-family: var(--font-body); font-size: var(--fs-md); font-weight: var(--fw-semi); color: var(--color-navy); margin-bottom: var(--sp-1); }
.service-item__tagline { font-size: var(--fs-sm); color: var(--color-text-muted); }
.service-item__chevron {
  width: 20px; height: 20px; color: var(--color-grey-300); flex-shrink: 0;
  transition: transform var(--dur-mid) var(--ease-out), color var(--dur-fast);
}
.service-item.open .service-item__chevron { transform: rotate(180deg); color: var(--color-teal); }
.service-item__body {
  overflow: hidden; max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.service-item.open .service-item__body { max-height: 600px; }
.service-item__body-inner {
  padding: 0 var(--sp-7) var(--sp-7);
  padding-left: calc(var(--sp-7) + 26px + var(--sp-5) + 46px + var(--sp-5));
  border-top: var(--border-thin);
}
@media (max-width: 640px) {
  .service-item__body-inner { padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .service-item__header { padding: var(--sp-4) var(--sp-5); }
}
.service-item__body-text {
  font-size: var(--fs-base); color: var(--color-text-muted);
  line-height: var(--lh-relaxed); padding-top: var(--sp-5); margin-bottom: var(--sp-5);
}
.service-item__features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
@media (max-width: 640px) { .service-item__features { grid-template-columns: 1fr; } }
.service-feature {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  font-size: var(--fs-sm); color: var(--color-text);
}
.service-feature::before { content: '→'; color: var(--color-teal); flex-shrink: 0; font-size: 0.85em; margin-top: 1px; }

/* ══════════════════════════════════════════════
   PRODUCTS PAGE
   ══════════════════════════════════════════════ */
.products-category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
}
@media (max-width: 1024px) { .products-category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .products-category-grid { grid-template-columns: 1fr; } }
.product-cat-card {
  background: var(--color-white); border: var(--border-thin);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: all var(--dur-mid) var(--ease-out);
  display: flex; flex-direction: column;
}
.product-cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-grey-200); }
.product-cat-card__img { height: 180px; overflow: hidden; background: var(--color-grey-50); }
.product-cat-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slower) var(--ease-out);
}
.product-cat-card:hover .product-cat-card__img img { transform: scale(1.06); }
.product-cat-card__body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.product-cat-card__label {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--color-teal); margin-bottom: var(--sp-2);
}
.product-cat-card__title {
  font-family: var(--font-body); font-size: var(--fs-lg);
  font-weight: var(--fw-semi); color: var(--color-navy); margin-bottom: var(--sp-3);
}
.product-cat-card__desc {
  font-size: var(--fs-sm); color: var(--color-text-muted);
  line-height: var(--lh-relaxed); flex: 1; margin-bottom: var(--sp-5);
}
.product-cat-card__species { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.species-tag {
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--color-navy); background: var(--color-grey-50);
  border: var(--border-thin); padding: 3px 9px; border-radius: var(--radius-full);
}

/* ══════════════════════════════════════════════
   PARTNERSHIP PAGE
   ══════════════════════════════════════════════ */
.partnership-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4);
}
@media (max-width: 900px) { .partnership-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partnership-benefits { grid-template-columns: 1fr; } }
.benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg); padding: var(--sp-7);
  transition: all var(--dur-mid) var(--ease-out);
}
.benefit-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(200,151,46,0.25); transform: translateY(-2px);
}
.benefit-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: rgba(200,151,46,0.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4);
}
.benefit-card__icon svg { width: 22px; height: 22px; color: var(--color-gold); }
.benefit-card__title { font-family: var(--font-body); font-size: var(--fs-base); font-weight: var(--fw-semi); color: var(--color-white); margin-bottom: var(--sp-2); }
.benefit-card__text { font-size: var(--fs-sm); color: rgba(255,255,255,0.45); line-height: var(--lh-relaxed); }

/* ══════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.7fr;
  gap: clamp(var(--sp-10), 6vw, var(--sp-16)); align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info__items { display: flex; flex-direction: column; gap: var(--sp-5); margin-top: var(--sp-8); }
.contact-info-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-info-item__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: rgba(10,122,106,0.07);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item__icon svg { width: 20px; height: 20px; color: var(--color-teal); }
.contact-info-item__label {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--color-teal); margin-bottom: var(--sp-1);
}
.contact-info-item__value { font-size: var(--fs-base); color: var(--color-text); font-weight: var(--fw-medium); }
.contact-info-item__value a { color: var(--color-navy); text-decoration: none; transition: color var(--dur-fast); }
.contact-info-item__value a:hover { color: var(--color-teal); }
.contact-form-wrap {
  background: var(--color-white); border: var(--border-thin);
  border-radius: var(--radius-xl); padding: clamp(var(--sp-8), 4vw, var(--sp-12));
  box-shadow: var(--shadow-card);
}
.contact-tabs {
  display: flex; gap: var(--sp-2); background: var(--color-grey-50);
  padding: var(--sp-1); border-radius: var(--radius-md); margin-bottom: var(--sp-8);
}
.contact-tab {
  flex: 1; font-size: var(--fs-xs); font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--color-text-muted); padding: var(--sp-3) var(--sp-4);
  border-radius: calc(var(--radius-md) - 2px); cursor: pointer; text-align: center;
  transition: all var(--dur-mid); background: none; border: none;
}
.contact-tab.active { background: var(--color-navy); color: var(--color-white); box-shadow: var(--shadow-sm); }
.contact-tab-pane { display: none; }
.contact-tab-pane.active { display: flex; flex-direction: column; gap: var(--sp-5); }

/* ══════════════════════════════════════════════
   PDF SECTION
   ══════════════════════════════════════════════ */
.pdf-cta {
  background: linear-gradient(120deg, var(--color-teal) 0%, var(--color-teal-mid) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(var(--sp-8), 5vw, var(--sp-12)) clamp(var(--sp-8), 5vw, var(--sp-16));
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-8); flex-wrap: wrap; overflow: hidden; position: relative;
}
.pdf-cta::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.pdf-cta__left { display: flex; align-items: center; gap: var(--sp-5); }
.pdf-cta__icon {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pdf-cta__icon svg { width: 26px; height: 26px; color: white; }
.pdf-cta__text h3 { font-family: var(--font-body); font-size: var(--fs-xl); font-weight: var(--fw-semi); color: var(--color-white); margin-bottom: var(--sp-1); }
.pdf-cta__text p { font-size: var(--fs-sm); color: rgba(255,255,255,0.6); }

/* ════════════════════════════════════════════
   GLOBAL ADAPTIVE FIXES — PAGES
   ════════════════════════════════════════════ */

/* ── About values: 2 columns at tablet (between 640 and 900px) ── */
@media (max-width: 900px) and (min-width: 641px) {
  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Inline 4-column grids → 2 col on tablet, 1 col on mobile ── */
@media (max-width: 768px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── PDF CTA: column layout on mobile ── */
@media (max-width: 600px) {
  .pdf-cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-6);
  }
  .pdf-cta .btn {
    text-align: center;
    justify-content: center;
  }
}

/* ── Products section intro header: left-align section-label line ── */
@media (max-width: 640px) {
  .page-hero__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* ── Partnership benefits: padding tighter on mobile ── */
@media (max-width: 480px) {
  .benefit-card {
    padding: var(--sp-5);
  }
  .value-card {
    padding: var(--sp-6);
  }
}
