/* ============================================================
   RIVALESA S.A. — Laboratorio de Calibración
   Tema WordPress personalizado
   Versión: 1.0.0 | 2025
   Compatible: WordPress 6.x | PHP 8.x
   ============================================================ */

/* ─── Imports ───────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Source+Sans+3:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --clr-bg:          #f7f9fc;
  --clr-bg-alt:      #eceef1;
  --clr-white:       #FFFFFF;
  --clr-primary:     #00327d;
  --clr-primary-dk:  #002254;
  --clr-accent:      #0047ab;
  --clr-accent-lt:   #a5bdff;
  --clr-fore:        #191c1e;
  --clr-muted:       #4e6073;
  --clr-border:      #D1D9E0;
  --clr-card:        #FFFFFF;

  /* Terracotta/Electric heating colours */
  --clr-tertiary:     #5f2500;
  --clr-tertiary-dk:  #833600;
  --clr-tertiary-lt:  #ffab7f;

  /* Service colours */
  --clr-temp:        #B03020;
  --clr-temp-bg:     #FEF0EF;
  --clr-hum:         #1A7A5E;
  --clr-hum-bg:      #EEF9F5;
  --clr-pres:        #6C3A9E;
  --clr-pres-bg:     #F4EEFF;
  --clr-masa:        #A0720B;
  --clr-masa-bg:     #FEF8E8;

  --ff-display:      'Montserrat', sans-serif;
  --ff-body:         'Source Sans 3', system-ui, sans-serif;
  --ff-mono:         'JetBrains Mono', monospace;

  --radius:          .5rem;
  --shadow-sm:       0 1px 3px rgba(0,50,125,.08);
  --shadow-md:       0 4px 16px rgba(0,50,125,.12);
  --transition:      .2s ease;
  --container:       1200px;
  --header-h:        80px;
}

/* ─── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-fore);
  line-height: 1.6;
  min-height: 100vh;
}

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

a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-primary); }
a:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul { list-style: none; }

/* ─── Accessibility ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  background: var(--clr-primary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: .5rem; }

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

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

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

.section { padding-block: 5rem; }
.section--alt { background: var(--clr-bg-alt); }
.section--white { background: var(--clr-white); }
.section--dark { background: var(--clr-primary); color: #fff; }

/* ─── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--ff-display); line-height: 1.15; color: var(--clr-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.7; }

.section-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  font-weight: 500;
  margin-bottom: .75rem;
}

.divider {
  width: 3rem;
  height: 2px;
  background: rgba(26,114,184,.4);
  margin: 1rem 0 1.5rem;
  border: none;
}

.text-muted { color: var(--clr-muted); }
.text-accent { color: var(--clr-accent); }
.text-center { text-align: center; }
.mono { font-family: var(--ff-mono); }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.btn--primary { background: var(--clr-primary); color: #fff; }
.btn--primary:hover { background: var(--clr-primary-dk); color: #fff; }

.btn--accent { background: var(--clr-accent); color: #fff; }
.btn--accent:hover { background: var(--clr-primary-dk); color: #fff; }

.btn--tertiary { background: var(--clr-tertiary-dk); color: #fff; }
.btn--tertiary:hover { background: var(--clr-tertiary); color: #fff; }

.btn--outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn--outline:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn--outline-dark { background: transparent; color: var(--clr-primary); border: 1.5px solid var(--clr-border); }
.btn--outline-dark:hover { background: var(--clr-bg-alt); }

.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1ebe5c; color: #fff; }

.btn--sm { padding: .45rem 1rem; font-size: .8rem; }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition), padding var(--transition);
  display: flex;
  align-items: center;
}
.site-header.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,50,125,.08);
  height: 70px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__icon {
  width: 36px; height: 36px;
  background: var(--clr-primary);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.site-logo__icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.site-logo__text { line-height: 1.1; }
.site-logo__name  { display: block; font-family: var(--ff-display); font-size: .875rem; font-weight: 700; color: var(--clr-primary); letter-spacing: .03em; }
.site-logo__sub   { display: block; font-family: var(--ff-mono); font-size: .6rem; color: var(--clr-muted); letter-spacing: .18em; text-transform: uppercase; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li {
  display: block;
  margin: 0;
  padding: 0;
}
.main-nav a, .main-nav .nav-link {
  padding: .25rem 0;
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-muted);
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
  display: block;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav .nav-link:hover { color: var(--clr-primary); }
.main-nav li.current-menu-item a, .main-nav li.current_page_item a { color: var(--clr-primary); font-weight: 700; border-bottom: 2px solid var(--clr-primary); }

.nav-cta {
  margin-left: 1rem;
  background: var(--clr-primary) !important;
  color: #fff !important;
  padding: .6rem 1.25rem !important;
  border-radius: var(--radius) !important;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--clr-primary-dk) !important; }

/* Admin Bar Fixes */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  padding: .5rem;
  color: var(--clr-fore);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(12,48,96,.07); }
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu li {
  display: block;
}
.mobile-menu a {
  padding: .6rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-fore);
  transition: background var(--transition);
  text-decoration: none;
  display: block;
}
.mobile-menu a:hover, .mobile-menu li.current-menu-item a { background: rgba(0,50,125,.06); color: var(--clr-primary); }
.mobile-menu .nav-cta {
  background: var(--clr-primary) !important;
  color: #fff !important;
  text-align: center;
  margin-top: .5rem;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00327d 0%, #002254 60%, #5f2500 100%);
  padding-top: var(--header-h);
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .12;
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: rgba(255,255,255,.8);
  letter-spacing: .12em;
  margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 span { color: #7EC8E3; }
.hero__desc { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
}
.hero__trust-item svg { width: 14px; height: 14px; opacity: .5; stroke: currentColor; fill: none; stroke-width: 2; }

/* Hero service cards */
.hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: .625rem;
  padding: 1.25rem;
  text-decoration: none;
  transition: background var(--transition);
  display: block;
}
.hero-card:hover { background: rgba(255,255,255,.14); }

.hero-card__icon {
  width: 40px; height: 40px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
}
.hero-card__icon svg { width: 20px; height: 20px; fill: none; stroke: #E0F0FF; stroke-width: 2; }

.hero-card__name { color: #fff; font-weight: 600; font-size: .875rem; margin-bottom: .25rem; }
.hero-card__desc { color: rgba(255,255,255,.5); font-size: .75rem; line-height: 1.4; }
.hero-card__link {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-top: .75rem;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}
.hero-card:hover .hero-card__link { color: rgba(255,255,255,.75); }
.hero-card__link svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ─── Stats ─────────────────────────────────────────────────── */
.stats-bar {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  padding-block: 3.5rem;
}
.stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }

.stat__icon {
  width: 40px; height: 40px;
  background: var(--clr-bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.stat__icon svg { width: 18px; height: 18px; stroke: var(--clr-accent); fill: none; stroke-width: 2; }
.stat__value { font-family: var(--ff-display); font-size: 2.25rem; font-weight: 700; color: var(--clr-primary); line-height: 1; margin-bottom: .25rem; }
.stat__label { font-size: .825rem; color: var(--clr-muted); }

/* ─── Section Headers ───────────────────────────────────────── */
.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }
.section-header--center .divider { margin-inline: auto; }
.section-header p { color: var(--clr-muted); max-width: 600px; margin-top: .75rem; }
.section-header--center p { margin-inline: auto; }

/* ─── Service Cards ─────────────────────────────────────────── */
.service-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: .625rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-md); }

.service-card__stripe { height: 4px; width: 100%; }
.service-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.service-card__icon {
  width: 48px; height: 48px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-card__icon svg { width: 24px; height: 24px; fill: none; stroke-width: 1.75; stroke: currentColor; }

.service-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.service-card p { font-size: .875rem; color: var(--clr-muted); flex: 1; line-height: 1.6; margin-bottom: 1.25rem; }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--clr-accent);
  transition: gap var(--transition);
}
.service-card__link:hover { gap: .5rem; }
.service-card__link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Service color variants */
.svc--temp .service-card__stripe { background: var(--clr-temp); }
.svc--temp .service-card__icon { background: var(--clr-temp-bg); color: var(--clr-temp); }
.svc--hum  .service-card__stripe { background: var(--clr-hum); }
.svc--hum  .service-card__icon { background: var(--clr-hum-bg); color: var(--clr-hum); }
.svc--pres .service-card__stripe { background: var(--clr-pres); }
.svc--pres .service-card__icon { background: var(--clr-pres-bg); color: var(--clr-pres); }
.svc--masa .service-card__stripe { background: var(--clr-masa); }
.svc--masa .service-card__icon { background: var(--clr-masa-bg); color: var(--clr-masa); }

/* ─── Legal Notice ──────────────────────────────────────────── */
.legal-notice {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: .875rem 1rem;
  font-size: .8rem;
  color: #92400e;
  line-height: 1.5;
}
.legal-notice svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: #b45309; fill: none; stroke-width: 2; }
.legal-notice strong { font-weight: 600; }

/* ─── Why Us ─────────────────────────────────────────────────── */
.why-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.why-item__icon {
  width: 40px; height: 40px;
  background: rgba(12,48,96,.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-item__icon svg { width: 18px; height: 18px; stroke: var(--clr-accent); fill: none; stroke-width: 2; }
.why-item h4 { font-size: .9375rem; margin-bottom: .25rem; font-family: var(--ff-body); color: var(--clr-fore); }
.why-item p  { font-size: .8125rem; color: var(--clr-muted); line-height: 1.6; }

.why__img-wrap { position: relative; }
.why__img-wrap img { width: 100%; height: 460px; object-fit: cover; border-radius: .75rem; box-shadow: var(--shadow-md); background: var(--clr-bg-alt); }

.cert-badge {
  position: absolute;
  bottom: -1rem; left: -1rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: .625rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  max-width: 280px;
}
.cert-badge__head { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .8125rem; color: var(--clr-fore); margin-bottom: .4rem; }
.cert-badge__head svg { width: 16px; height: 16px; stroke: #16a34a; fill: none; stroke-width: 2.5; }
.cert-badge__data { font-family: var(--ff-mono); font-size: .7rem; color: var(--clr-muted); line-height: 1.5; }

/* ─── Sectors ───────────────────────────────────────────────── */
.sector-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: .625rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
  transition: box-shadow var(--transition);
}
.sector-card:hover { box-shadow: var(--shadow-sm); }
.sector-card__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sector-card__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.sector-card p { font-size: .8125rem; font-weight: 500; color: var(--clr-fore); }

/* ─── Blog Cards ────────────────────────────────────────────── */
.blog-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: .625rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card:hover .blog-card__title { color: var(--clr-accent); }

.blog-card img { width: 100%; height: 200px; object-fit: cover; background: var(--clr-bg-alt); }
.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.blog-card__cat { font-family: var(--ff-mono); font-size: .68rem; background: var(--clr-bg-alt); color: var(--clr-accent); padding: .2rem .6rem; border-radius: 100px; }
.blog-card__date { font-size: .75rem; color: var(--clr-muted); }
.blog-card__title { font-family: var(--ff-display); font-size: 1rem; font-weight: 600; color: var(--clr-fore); line-height: 1.35; margin-bottom: .5rem; transition: color var(--transition); }
.blog-card__excerpt { font-size: .8125rem; color: var(--clr-muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__read { font-size: .8rem; font-weight: 600; color: var(--clr-accent); display: inline-flex; align-items: center; gap: .25rem; margin-top: auto; }
.blog-card__read svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Blog horizontal card (archive) */
.blog-card--h { flex-direction: row; }
.blog-card--h img { width: 200px; height: auto; flex-shrink: 0; border-radius: 0; }
.blog-card--h .blog-card__body { padding: 1.5rem; }

/* ─── CTA Section ───────────────────────────────────────────── */
.cta-section {
  padding-block: 5rem;
  background: linear-gradient(135deg, #0C3060 0%, #1A72B8 100%);
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 520px; margin: 0 auto 2rem; }
.cta-section__btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ─── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  background: var(--clr-primary);
  padding: 6rem 0 4rem;
  text-align: center;
  margin-top: var(--header-h);
}
.page-hero .section-label { color: rgba(255,255,255,.6); }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 600px; margin-inline: auto; }

/* ─── Service Detail ─────────────────────────────────────────── */
.service-hero {
  position: relative;
  padding: 5rem 0 4rem;
  margin-top: var(--header-h);
  overflow: hidden;
}
.service-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .2;
}
.service-hero__inner { position: relative; }
.service-hero__title { color: #fff; }
.service-hero__desc { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 600px; margin-top: .75rem; }

.service-hero__icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.18);
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-hero__icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.75; }

.service-back { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.65); font-size: .8125rem; margin-bottom: 1.5rem; transition: color var(--transition); }
.service-back:hover { color: #fff; }
.service-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Tabs */
.tabs-nav { border-bottom: 1px solid var(--clr-border); margin-bottom: 2rem; display: flex; overflow-x: auto; }
.tabs-nav__btn {
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--clr-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}
.tabs-nav__btn.active { color: var(--clr-accent); border-bottom-color: var(--clr-accent); }
.tabs-nav__btn:hover { color: var(--clr-fore); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Instrument list */
.instrument-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.instrument-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .875rem 1rem;
  font-size: .875rem;
}
.instrument-item svg { width: 16px; height: 16px; stroke: var(--clr-accent); fill: none; stroke-width: 2.5; flex-shrink: 0; margin-top: 2px; }

/* Range / uncertainty tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--clr-primary); color: #fff; text-align: left; padding: .75rem 1rem; font-size: .75rem; font-family: var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.data-table th:first-child { border-radius: .375rem 0 0 0; }
.data-table th:last-child  { border-radius: 0 .375rem 0 0; }
.data-table td { padding: .7rem 1rem; font-size: .875rem; border-bottom: 1px solid var(--clr-border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--clr-bg-alt); }
.data-table .mono { color: var(--clr-accent); font-size: .8125rem; }

/* ─── Accreditation ──────────────────────────────────────────── */
.accred-card {
  background: var(--clr-card);
  border: 2px solid rgba(26,114,184,.25);
  border-radius: .75rem;
  padding: 2rem;
}
.accred-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 100px;
  padding: .3rem .85rem;
  font-size: .75rem;
  font-weight: 600;
  color: #15803d;
  font-family: var(--ff-mono);
}
.accred-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }

.accred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.accred-datum {
  background: var(--clr-bg-alt);
  border-radius: var(--radius);
  padding: .75rem 1rem;
}
.accred-datum__label { font-size: .7rem; color: var(--clr-muted); margin-bottom: .2rem; }
.accred-datum__value { font-family: var(--ff-mono); font-size: .8125rem; font-weight: 500; color: var(--clr-fore); }

.logo-placeholder {
  background: var(--clr-bg-alt);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--clr-muted);
  border: 1px dashed var(--clr-border);
}

.int-org-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1rem;
}
.int-org-item__code { font-family: var(--ff-mono); font-size: .8125rem; font-weight: 700; color: var(--clr-accent); width: 80px; flex-shrink: 0; padding-top: 2px; }
.int-org-item__name { font-size: .875rem; font-weight: 500; color: var(--clr-fore); }
.int-org-item__role { font-size: .75rem; color: var(--clr-muted); }

/* ─── About ──────────────────────────────────────────────────── */
.timeline { padding-left: 1rem; }
.timeline-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.timeline-item__year { font-family: var(--ff-mono); font-size: .8125rem; font-weight: 500; color: var(--clr-accent); width: 40px; flex-shrink: 0; padding-top: 2px; }
.timeline-item__body { flex: 1; border-left: 1px solid var(--clr-border); padding-left: 1rem; padding-bottom: 1.25rem; font-size: .875rem; color: var(--clr-fore); }

.mission-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card { border-radius: .75rem; padding: 2rem; }
.mv-card--mission { background: var(--clr-primary); color: #fff; }
.mv-card--vision  { background: var(--clr-accent); color: #fff; }
.mv-card__icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.mv-card__icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.mv-card h3 { font-size: 1.4rem; color: #fff; margin-bottom: 1rem; }
.mv-card p  { color: rgba(255,255,255,.7); font-size: .875rem; line-height: 1.7; }

.quality-quote {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: .75rem;
  padding: 2rem;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--clr-fore);
}
.quality-quote__author { font-family: var(--ff-mono); font-size: .7rem; color: var(--clr-muted); text-align: right; margin-top: 1rem; font-style: normal; }

.value-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.value-card svg { width: 18px; height: 18px; stroke: var(--clr-accent); fill: none; stroke-width: 2; margin-bottom: .75rem; }
.value-card h4 { font-family: var(--ff-body); font-size: .9375rem; margin-bottom: .35rem; }
.value-card p  { font-size: .8125rem; color: var(--clr-muted); }

/* Team */
.team-card { background: var(--clr-card); border: 1px solid var(--clr-border); border-radius: .625rem; overflow: hidden; }
.team-card img { width: 100%; height: 220px; object-fit: cover; background: var(--clr-bg-alt); }
.team-card__body { padding: 1.25rem; }
.team-card__name { font-family: var(--ff-display); font-size: 1rem; font-weight: 600; margin-bottom: .2rem; }
.team-card__role { font-size: .75rem; font-weight: 500; color: var(--clr-accent); margin-bottom: .5rem; }
.team-card__spec { font-size: .78rem; color: var(--clr-muted); line-height: 1.5; margin-bottom: .75rem; }
.team-card__edu  { font-size: .76rem; color: var(--clr-muted); border-top: 1px solid var(--clr-border); padding-top: .75rem; line-height: 1.5; }
.team-card__exp  { display: flex; align-items: center; gap: .4rem; font-family: var(--ff-mono); font-size: .7rem; color: var(--clr-muted); margin-top: .5rem; }
.team-card__exp::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--clr-accent); flex-shrink: 0; }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-info-item__icon {
  width: 40px; height: 40px;
  background: var(--clr-bg-alt);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item__icon svg { width: 18px; height: 18px; stroke: var(--clr-accent); fill: none; stroke-width: 2; }
.contact-info-item__label { font-family: var(--ff-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: var(--clr-muted); margin-bottom: .2rem; }
.contact-info-item a, .contact-info-item p { font-size: .875rem; color: var(--clr-fore); }
.contact-info-item a:hover { color: var(--clr-accent); }

.map-wrap { border-radius: .625rem; overflow: hidden; border: 1px solid var(--clr-border); margin-top: 2rem; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; font-weight: 500; color: var(--clr-fore); }
.form-group label span { color: #dc2626; }

.form-group input,
.form-group select,
.form-group textarea {
  background: #F0F7FC;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .65rem .875rem;
  font-family: var(--ff-body);
  font-size: .875rem;
  color: var(--clr-fore);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--clr-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(26,114,184,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { cursor: pointer; }

.form-privacy {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .76rem;
  color: var(--clr-muted);
  line-height: 1.5;
}
.form-privacy strong { color: var(--clr-fore); }

.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: .75rem;
  padding: 3rem 2rem;
  text-align: center;
  display: none;
}
.form-success.show { display: block; }
.form-success svg { width: 56px; height: 56px; stroke: #16a34a; fill: none; stroke-width: 1.5; margin: 0 auto 1rem; }
.form-success h3 { color: #166534; font-size: 1.5rem; margin-bottom: .5rem; }
.form-success p  { color: #15803d; font-size: .875rem; }

/* ─── Blog detail ────────────────────────────────────────────── */
.post-header { background: var(--clr-bg-alt); border-bottom: 1px solid var(--clr-border); padding: 3rem 0 2.5rem; margin-top: var(--header-h); }
.post-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.post-cat { font-family: var(--ff-mono); font-size: .68rem; background: var(--clr-accent); color: #fff; padding: .2rem .7rem; border-radius: 100px; }
.post-date, .post-read { font-size: .8125rem; color: var(--clr-muted); }
.post-author { font-size: .8125rem; color: var(--clr-muted); display: flex; align-items: center; gap: .4rem; }
.post-author svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.post-hero-img { width: 100%; max-height: 420px; object-fit: cover; background: var(--clr-bg-alt); }

.post-content { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem; }
.post-content h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; color: var(--clr-primary); }
.post-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; color: var(--clr-primary); }
.post-content p  { color: var(--clr-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.post-content ul { list-style: disc; padding-left: 1.5rem; color: var(--clr-muted); margin-bottom: 1.25rem; }
.post-content ul li { margin-bottom: .4rem; line-height: 1.7; font-size: .9375rem; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .875rem; }
.post-content table th { background: var(--clr-primary); color: #fff; padding: .6rem .875rem; text-align: left; }
.post-content table td { padding: .5rem .875rem; border-bottom: 1px solid var(--clr-border); color: var(--clr-muted); }
.post-content table tr:nth-child(even) td { background: var(--clr-bg-alt); }

.post-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.post-tag { font-family: var(--ff-mono); font-size: .7rem; background: var(--clr-bg-alt); color: var(--clr-muted); padding: .3rem .75rem; border-radius: 100px; border: 1px solid var(--clr-border); }

/* ─── Sidebar ────────────────────────────────────────────────── */
.sidebar-widget { background: var(--clr-card); border: 1px solid var(--clr-border); border-radius: .625rem; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-widget h4 { font-family: var(--ff-display); font-size: 1.05rem; color: var(--clr-primary); margin-bottom: 1rem; }
.sidebar-widget--dark { background: var(--clr-primary); color: #fff; }
.sidebar-widget--dark h4 { color: #fff; }
.sidebar-widget--dark p { color: rgba(255,255,255,.7); font-size: .8125rem; margin-bottom: 1rem; }
.sidebar-cat-item { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--clr-border); font-size: .875rem; color: var(--clr-muted); }
.sidebar-cat-item:last-child { border-bottom: none; }
.sidebar-cat-count { font-family: var(--ff-mono); font-size: .7rem; color: var(--clr-accent); }
.recent-post-item { padding: .6rem 0; border-bottom: 1px solid var(--clr-border); font-size: .8125rem; }
.recent-post-item:last-child { border-bottom: none; }
.recent-post-item a { color: var(--clr-fore); }
.recent-post-item a:hover { color: var(--clr-accent); }

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { font-size: .78rem; color: var(--clr-muted); padding: .75rem 0; }
.breadcrumb a { color: var(--clr-muted); }
.breadcrumb a:hover { color: var(--clr-accent); }
.breadcrumb__sep { margin-inline: .4rem; opacity: .5; }

/* ─── WhatsApp Floating ──────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  padding: .75rem 1.1rem;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.wa-float:hover { background: #1ebe5c; color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 18px; height: 18px; fill: #fff; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--clr-primary); color: #fff; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .site-logo__name, .footer-brand .site-logo__sub { color: #fff; }
.footer-brand .site-logo__sub { color: rgba(255,255,255,.45); }
.footer-desc { color: rgba(255,255,255,.55); font-size: .8125rem; line-height: 1.7; margin: 1rem 0 1rem; }
.footer-accred { display: flex; align-items: center; gap: .5rem; font-family: var(--ff-mono); font-size: .68rem; color: rgba(255,255,255,.5); letter-spacing: .08em; }
.footer-accred::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }

.footer-heading { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); margin-bottom: 1rem; font-family: var(--ff-body); }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .8125rem; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: .4rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-links a svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.footer-contact-item { display: flex; align-items: flex-start; gap: .625rem; margin-bottom: .875rem; font-size: .8125rem; color: rgba(255,255,255,.55); }
.footer-contact-item svg { width: 15px; height: 15px; stroke: rgba(255,255,255,.4); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,.55); }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 1rem 0;
  font-size: .7rem;
  color: rgba(255,255,255,.25);
  line-height: 1.6;
}
.footer-legal strong { color: rgba(255,255,255,.35); }

/* ─── Utility ────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

.cta-inline {
  background: var(--clr-bg-alt);
  border-radius: .75rem;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
}
.cta-inline__text h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.cta-inline__text p  { font-size: .875rem; color: var(--clr-muted); }
.cta-inline__btns { display: flex; gap: .75rem; flex-shrink: 0; flex-wrap: wrap; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__cards { max-width: 460px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mission-vision-grid { grid-template-columns: 1fr; }
  .accred-grid { grid-template-columns: 1fr; }
  .instrument-list { grid-template-columns: 1fr; }
  .blog-card--h { flex-direction: column; }
  .blog-card--h img { width: 100%; height: 200px; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .cert-badge { position: static; margin-top: 1rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero__cards { grid-template-columns: 1fr; max-width: 100%; }
  .stats-bar__grid { grid-template-columns: 1fr; }
}
