@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============ Reset & Variables ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

:root {
  --blue-dark: 199 60% 29%;   /* #1D5A75 */
  --blue-light: 193 40% 52%;  /* #50A0B8 */
  --green: 80 55% 45%;        /* #8AB234 */
  --gray-900: 222 47% 11%;
  --gray-700: 215 14% 26%;
  --gray-600: 220 9% 46%;
  --gray-100: 0 0% 96%;
  --radius: 0.75rem;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: hsl(var(--gray-900));
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
.page-flex { display: flex; flex-direction: column; min-height: 100vh; }
main { flex-grow: 1; }

/* ============ Layout helpers ============ */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem;
}
@media (min-width: 640px) { .section-container { padding: 6rem 1.5rem; } }
@media (min-width: 1024px) { .section-container { padding: 6rem 2rem; } }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 5rem;
  height: 0.25rem;
  background: hsl(var(--green));
  border-radius: 999px;
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

.section-subtitle {
  font-size: 1.05rem;
  color: hsl(var(--gray-600));
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.text-center-block { text-align: center; margin-bottom: 3rem; }

/* ============ Buttons ============ */
.btn-primary, .btn-secondary, .btn-accent, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: hsl(var(--blue-dark)); color: #fff; }
.btn-primary:hover { background: hsl(var(--blue-dark) / .9); box-shadow: 0 10px 20px rgba(29,90,117,.25); transform: translateY(-2px); }
.btn-secondary { background: hsl(var(--blue-light)); color: #fff; }
.btn-secondary:hover { background: hsl(var(--blue-light) / .9); box-shadow: 0 10px 20px rgba(80,160,184,.25); transform: translateY(-2px); }
.btn-accent { background: hsl(var(--green)); color: #fff; }
.btn-accent:hover { background: hsl(var(--green) / .9); box-shadow: 0 10px 20px rgba(138,178,52,.25); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid hsl(var(--blue-dark)); color: hsl(var(--blue-dark)); }
.btn-outline:hover { background: hsl(var(--blue-dark) / .08); }
.btn-icon { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal-up { transform: translateY(2rem); }
.reveal.is-visible { opacity: 1; transform: translate(0,0); }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #fff;
  padding: 1rem 0;
  transition: all .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 0.65rem 0;
}
.site-header .section-container { padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; max-width: 1280px; }
@media (min-width: 640px) { .site-header .section-container { padding: 0 1.5rem; } }

.site-logo img { height: 3rem; transition: all .3s ease; }
.site-header.is-scrolled .site-logo img { height: 2.5rem; }
.site-logo:hover img { transform: scale(1.05); }

.desktop-nav { display: none; }
@media (min-width: 768px) {
  .desktop-nav { display: flex; gap: 2rem; align-items: center; }
}
.desktop-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2937;
  position: relative;
  padding: 0.25rem 0;
  transition: color .2s ease;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: hsl(var(--blue-dark));
  transition: width .3s ease;
}
.desktop-nav a:hover { color: hsl(var(--blue-dark)); }
.desktop-nav a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 9999px;
  background: rgba(29,90,117,.1);
  color: hsl(var(--blue-dark));
  transition: all .2s ease;
}
.mobile-menu-btn:hover { transform: scale(1.05); background: rgba(29,90,117,.2); }
.mobile-menu-btn svg { width: 1.5rem; height: 1.5rem; }
.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn.is-open .icon-menu { display: none; }
.mobile-menu-btn.is-open .icon-close { display: block; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(2px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 768px) { .mobile-overlay { display: none; } }

.mobile-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 24rem;
  background: #fff;
  color: hsl(var(--gray-900));
  z-index: 45;
  box-shadow: -10px 0 30px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .3s ease-in-out;
}
.mobile-panel.is-open { transform: translateX(0); }
@media (min-width: 768px) { .mobile-panel { display: none; } }

.mobile-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.mobile-panel-header img { height: 2.5rem; }
.mobile-panel-header button {
  padding: 0.5rem; border-radius: 9999px; color: #6b7280; transition: background .2s ease;
}
.mobile-panel-header button:hover { background: #f3f4f6; }
.mobile-panel-header button svg { width: 1.5rem; height: 1.5rem; }

.mobile-nav { padding: 2rem 1.5rem; overflow-y: auto; height: calc(100% - 90px); }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid #f3f4f6; }
.mobile-nav li:last-child { border-bottom: none; }
.mobile-nav a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: hsl(var(--blue-dark));
  padding: 0.75rem 0;
  transition: all .2s ease;
}
.mobile-nav a:hover { color: hsl(var(--green)); transform: translateX(4px); }
.mobile-contact { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e5e7eb; }
.mobile-contact p { font-size: 0.85rem; color: #6b7280; margin-bottom: 1rem; font-weight: 500; }
.mobile-contact a { display: flex; align-items: center; font-size: 1rem; color: hsl(var(--blue-dark)); font-weight: 500; padding: 0.5rem 0; }

/* ============ Page header spacing (subpages) ============ */
.page-main { padding-top: 6rem; }

/* ============ Hero (home) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  background: #f9fafb;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(var(--blue-dark) / .05), hsl(var(--green) / .05));
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 640px) { .hero-grid { padding: 0 1.5rem; } }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-text h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero-text h1 { font-size: 3.75rem; } }
.hero-text h1 span { color: hsl(var(--blue-dark)); }
.hero-text p.hero-lead { font-size: 1.125rem; color: hsl(var(--gray-700)); margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; padding-top: 1.5rem; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.875rem; font-weight: 700; color: hsl(var(--blue-dark)); }
.hero-stat .label { font-size: 0.875rem; color: hsl(var(--gray-600)); }
.hero-stat-divider { width: 1px; height: 3rem; background: #e5e7eb; display: none; }
@media (min-width: 480px) { .hero-stat-divider { display: block; } }

.hero-media { display: none; }
@media (min-width: 768px) { .hero-media { display: block; } }
.hero-media-inner { position: relative; }
.hero-blob { position: absolute; border-radius: 9999px; filter: blur(40px); }
.hero-blob-1 { top: -3rem; left: -2rem; width: 16rem; height: 16rem; background: hsl(var(--green) / .1); }
.hero-blob-2 { bottom: -1.5rem; right: -1.5rem; width: 12rem; height: 12rem; background: hsl(var(--blue-light) / .2); }
.hero-media-card {
  position: relative; z-index: 1;
  background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.12);
  border-radius: 1rem; padding: 2rem;
  transition: all .5s ease;
}
.hero-media-card:hover { transform: scale(1.01); box-shadow: 0 25px 50px rgba(0,0,0,.18); }
.hero-media-card img { border-radius: 1rem; width: 100%; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-grid video { border-radius: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,.12); max-height: 70vh; width: 100%; }
.about-tag {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  background: hsl(var(--blue-dark) / .1); color: hsl(var(--blue-dark));
  margin-bottom: 1rem;
}
.about-text h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.about-text > p { color: hsl(var(--gray-700)); margin-bottom: 1.5rem; }
.policy-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.policy-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.policy-item svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--green)); flex-shrink: 0; margin-top: 0.15rem; }
.policy-item p { color: hsl(var(--gray-700)); }
.policy-item em { color: hsl(var(--gray-600)); font-style: italic; }

/* ============ Services ============ */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr 1fr; } }
.service-card {
  position: relative;
  background: #fff; border: 1px solid #f3f4f6; border-radius: 0.75rem;
  padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: all .3s ease;
}
.service-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.1); transform: translateY(-4px); }
.service-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.5rem;
  background: hsl(var(--blue-dark) / .1); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 1.75rem; height: 1.75rem; color: hsl(var(--blue-dark)); }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: hsl(var(--blue-dark)); }
.service-card p { color: hsl(var(--gray-700)); }
.service-cetesb { position: absolute; top: 1rem; right: 1rem; width: 4rem; opacity: .9; }
.services-actions { text-align: center; margin-top: 4rem; display: flex; flex-direction: column; sm-flex-direction: row; gap: 1rem; align-items: center; justify-content: center; }
@media (min-width: 768px) { .services-actions { flex-direction: row; } }

/* ============ Carousel (nylon + product images) ============ */
.carousel { position: relative; max-width: 56rem; margin: 0 auto; }
.carousel-track-wrap { overflow: hidden; border-radius: 0.75rem; }
.carousel-track { display: flex; transition: transform .4s ease; }
.carousel-slide { flex: 0 0 100%; position: relative; }
.carousel-slide img { width: 100%; height: 24rem; object-fit: cover; }
.carousel-caption {
  position: absolute; bottom: 1rem; left: 1rem;
  background: rgba(0,0,0,.7); color: #fff; padding: 0.4rem 0.9rem; border-radius: 0.5rem; font-size: 0.85rem; font-weight: 500;
}
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--blue-dark)); transition: all .2s ease; z-index: 2;
}
.carousel-nav:hover { background: hsl(var(--blue-dark)); color: #fff; }
.carousel-nav svg { width: 1.25rem; height: 1.25rem; }
.carousel-nav.prev { left: 1rem; }
.carousel-nav.next { right: 1rem; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.carousel-dots button { width: 0.75rem; height: 0.75rem; border-radius: 9999px; background: #d1d5db; transition: background .2s ease; }
.carousel-dots button.is-active { background: hsl(var(--blue-dark)); }

/* ============ Products ============ */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: 1fr 1fr 1fr; } }
.product-card {
  background: #fff; border-radius: 0.75rem; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .3s ease;
}
.product-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.12); }
.product-card-img { height: 12rem; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 1.5rem; }
.product-card-body h3 { font-size: 1.25rem; font-weight: 700; color: hsl(var(--blue-dark)); margin-bottom: 0.75rem; }
.product-card-body p { color: hsl(var(--gray-700)); }
.product-card-actions { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.product-card-actions a.link-info { color: hsl(var(--blue-dark)); font-weight: 500; font-size: 0.9rem; transition: color .2s ease; }
.product-card-actions a.link-info:hover { color: hsl(var(--green)); }
.product-card-actions .btn-outline { padding: 0.5rem 1rem; font-size: 0.875rem; }
.products-video { max-width: 72rem; margin: 3rem auto 0; text-align: center; }
.products-video-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.products-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; justify-items: center; }
.products-video video { display: block; border-radius: 0.75rem; box-shadow: 0 20px 40px rgba(0,0,0,.12); width: 100%; max-width: 20rem; aspect-ratio: 576 / 896; object-fit: cover; background: #000; }
@media (max-width: 768px) {
  .products-video-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .products-video video { max-width: none; }
}
@media (max-width: 480px) {
  .products-video-grid { gap: 0.5rem; }
}
.products-cta {
  text-align: center; margin-top: 4rem; background: #f9fafb;
  border-radius: 0.75rem; padding: 2rem;
}
.products-cta h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.products-cta p { color: hsl(var(--gray-700)); margin-bottom: 1.5rem; }

/* ============ Contact ============ */
.section-gray { background: #f9fafb; }
.contact-wrap { max-width: 56rem; margin: 0 auto; }
.contact-info-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .contact-info-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: #fff; padding: 1.25rem; border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f3f4f6;
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact-icon {
  width: 3rem; height: 3rem; border-radius: 9999px; flex-shrink: 0;
  background: hsl(var(--blue-dark) / .1); display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--blue-dark)); }
.contact-card h4 { font-size: 1.1rem; font-weight: 600; color: hsl(var(--blue-dark)); margin-bottom: 0.25rem; }
.contact-card p { color: hsl(var(--gray-700)); }
.contact-map {
  background: #fff; padding: 0.25rem; border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f3f4f6;
  overflow: hidden; height: 350px; margin-top: 1.5rem;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ============ Footer ============ */
.site-footer { background: hsl(var(--blue-dark)); color: #fff; }
.footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 3rem 1rem;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 640px) { .footer-grid { padding: 3rem 1.5rem; grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand img { height: 4rem; background: #fff; padding: 0.25rem; border-radius: 0.375rem; margin-bottom: 1rem; }
.footer-brand p { color: #d1d5db; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; overflow: hidden; transition: transform .2s ease; }
.footer-social a:hover { transform: scale(1.1); }
.footer-social img { width: 100%; height: 100%; object-fit: cover; }
.site-footer h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer ul a { color: #d1d5db; transition: color .2s ease; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; color: #d1d5db; margin-bottom: 0.75rem; }
.footer-contact .dot { width: 1.25rem; height: 1.25rem; border-radius: 9999px; background: hsl(var(--green)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.15rem; }
.footer-contact .dot svg { width: 0.75rem; height: 0.75rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 1rem; text-align: center; color: #d1d5db; font-size: 0.875rem; }

/* ============ WhatsApp float ============ */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  background: #22c55e; color: #fff; border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.1rem; transition: all .3s ease;
}
.whatsapp-float:hover { background: #16a34a; transform: scale(1.08); }
.whatsapp-float svg { width: 1.5rem; height: 1.5rem; }
.whatsapp-float span { font-size: 0.875rem; font-weight: 500; display: none; }
@media (min-width: 640px) { .whatsapp-float span { display: block; } }

/* ============ Inner page hero (Fleet / Laboratory) ============ */
.inner-hero { background: hsl(var(--blue-dark) / .05); padding: 4rem 0; }
@media (min-width: 768px) { .inner-hero { padding: 6rem 0; } }
.inner-hero-grid { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .inner-hero-grid { flex-direction: row; } }
.inner-hero-text { width: 100%; }
@media (min-width: 1024px) { .inner-hero-text { width: 50%; } }
.inner-hero-text h1 { font-size: 2rem; font-weight: 700; color: hsl(var(--blue-dark)); margin-bottom: 1.5rem; }
@media (min-width: 640px) { .inner-hero-text h1 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .inner-hero-text h1 { font-size: 3rem; } }
.inner-hero-text p { font-size: 1.125rem; color: hsl(var(--gray-700)); margin-bottom: 1.5rem; }
.inner-hero-media { width: 100%; position: relative; }
@media (min-width: 1024px) { .inner-hero-media { width: 50%; } }
.inner-hero-media video { border-radius: 0.75rem; box-shadow: 0 20px 40px rgba(0,0,0,.15); max-height: 70vh; width: 100%; }
.inner-hero-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background: hsl(var(--blue-dark)); color: #fff; padding: 1rem; border-radius: 0.75rem;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
}
.inner-hero-badge svg { width: 2rem; height: 2rem; }

.fallback-note { text-align: center; color: hsl(var(--gray-600)); padding: 2rem; border: 2px dashed #d1d5db; border-radius: 1rem; }
.fallback-note a { color: hsl(var(--blue-dark)); text-decoration: underline; }

/* ============ Fleet gallery ============ */
.fleet-gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .fleet-gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .fleet-gallery-grid { grid-template-columns: 1fr 1fr 1fr; } }
.fleet-gallery-grid figure {
  overflow: hidden; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .3s ease;
}
.fleet-gallery-grid figure:hover { box-shadow: 0 10px 25px rgba(0,0,0,.12); }
.fleet-gallery-grid img { height: 16rem; object-fit: cover; transition: transform .5s ease; }
.fleet-gallery-grid figure:hover img { transform: scale(1.05); }

/* ============ CTA block (Fleet / Laboratory) ============ */
.cta-block { background: hsl(var(--blue-dark) / .05); }
.cta-card {
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border: 1px solid #f3f4f6; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-radius: 0.75rem; padding: 2.5rem; text-align: center;
  max-width: 56rem; margin: 0 auto;
}
.cta-card h2 { font-size: 1.75rem; font-weight: 700; color: hsl(var(--blue-dark)); margin-bottom: 1rem; }
.cta-card p { font-size: 1.125rem; color: hsl(var(--gray-700)); margin-bottom: 2rem; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }

/* ============ Laboratory hero video ============ */
.lab-hero { position: relative; width: 100%; height: 70vh; overflow: hidden; }
.lab-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lab-hero-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
}
.lab-hero-overlay-inner { text-align: center; color: #fff; padding: 1.5rem; max-width: 56rem; }
.lab-hero-overlay-inner h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 640px) { .lab-hero-overlay-inner h1 { font-size: 3rem; } }
.lab-hero-overlay-inner p { font-size: 1.25rem; }

.lab-overview-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .lab-overview-grid { grid-template-columns: 1fr 1fr; } }
.lab-overview-grid h2 { font-size: 1.75rem; font-weight: 700; color: hsl(var(--blue-dark)); margin-bottom: 1rem; }
.lab-overview-grid > div > p { color: hsl(var(--gray-700)); margin-bottom: 1rem; }
.lab-feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
@media (min-width: 480px) { .lab-feature-grid { grid-template-columns: 1fr 1fr; } }
.lab-feature {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem;
  border: 1px solid #e5e7eb; border-radius: 0.5rem; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.lab-feature svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--green)); flex-shrink: 0; margin-top: 0.15rem; }
.lab-feature h3 { font-size: 1.05rem; font-weight: 600; color: hsl(var(--blue-dark)); margin-bottom: 0.25rem; }
.lab-feature p { font-size: 0.875rem; color: hsl(var(--gray-600)); }
.lab-overview-img { border-radius: 0.75rem; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,.12); }
.lab-overview-img img { height: 25rem; object-fit: cover; width: 100%; }

.cert-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
.cert-card {
  background: rgba(255,255,255,.9); border: 1px solid #f3f4f6; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-radius: 0.5rem; padding: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.cert-icon { width: 6rem; height: 6rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.cert-icon.blue { background: hsl(var(--blue-dark) / .1); }
.cert-icon.green { background: hsl(var(--green) / .1); }
.cert-icon svg { width: 3rem; height: 3rem; }
.cert-icon.blue svg { color: hsl(var(--blue-dark)); }
.cert-icon.green svg { color: hsl(var(--green)); }
.cert-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.cert-card p { color: hsl(var(--gray-700)); margin-bottom: 1.5rem; }
.cert-pdf { width: 100%; height: 500px; background: #f3f4f6; border-radius: 0.5rem; border: 1px solid #d1d5db; overflow: hidden; }
.cert-pdf iframe { width: 100%; height: 100%; border: 0; }
.cert-card .btn-secondary { margin-top: 1rem; }

.media-gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .media-gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .media-gallery-grid { grid-template-columns: 1fr 1fr 1fr; } }
.media-gallery-grid figure { background: #f3f4f6; border-radius: 0.5rem; overflow: hidden; height: 16rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.media-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.media-video-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 4rem; }
@media (min-width: 768px) { .media-video-grid { grid-template-columns: 1fr 1fr; } }
.media-video-grid > div { background: #f3f4f6; border-radius: 0.5rem; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.media-video-grid video { width: 100%; height: 100%; object-fit: cover; }
.media-video-title { text-align: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }

/* ============ Product detail ============ */
.product-detail-top { color: hsl(var(--blue-dark)); display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-weight: 500; transition: color .2s ease; }
.product-detail-top:hover { color: hsl(var(--green)); }
.product-detail-top svg { width: 1rem; height: 1rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .product-detail-grid { grid-template-columns: 1fr 1fr; } }
.product-detail-media { background: #fff; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.product-detail-media img { width: 100%; object-fit: cover; }
.product-detail-media .carousel-slide img { height: auto; }
.product-detail-info h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .product-detail-info h1 { font-size: 2.25rem; } }
.product-detail-info > p.lead { font-size: 1.125rem; color: hsl(var(--gray-700)); margin-bottom: 1.5rem; }
.detail-block { margin-bottom: 1.5rem; }
.detail-block h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.detail-block p { color: hsl(var(--gray-700)); }
.detail-block ul { list-style: disc; padding-left: 1.25rem; color: hsl(var(--gray-700)); }
.detail-block ul li { margin-bottom: 0.5rem; }
.detail-conclusion { background: #eff6ff; border: 1px solid #dbeafe; padding: 1rem; border-radius: 0.5rem; }
.detail-conclusion p { color: #1e293b; font-style: italic; }
.detail-table { width: 100%; border-collapse: collapse; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden; }
.detail-table th, .detail-table td { padding: 0.75rem 1rem; border: 1px solid #e5e7eb; text-align: left; }
.detail-table th { background: #f3f4f6; font-weight: 600; width: 33%; }
.detail-table tr:hover td { background: #f9fafb; }
.detail-cta { margin-top: 2rem; }
.detail-cta h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
