
:root {
  --ink: #17202a;
  --muted: #5b6875;
  --line: #dbe3eb;
  --paper: #ffffff;
  --wash: #f4f8fb;
  --blue: #0477b8;
  --teal: #00a6a6;
  --yellow: #f3c744;
  --green: #33855c;
  --coral: #d95f43;
  --shadow: 0 18px 42px rgba(23, 32, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  z-index: 20;
}
.skip-link:focus { left: 12px; top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 58px; height: 44px; object-fit: contain; }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); font-size: .76rem; }
.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a, .nav-group > summary {
  text-decoration: none;
  padding: 8px 10px;
  color: var(--muted);
  font-size: .92rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"], .nav-group > summary:hover, .nav-group > summary[aria-current="page"] {
  color: var(--blue);
  border-color: var(--yellow);
}
.nav-group { position: relative; }
.nav-group summary {
  list-style: none;
  cursor: pointer;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-caret {
  display: inline-block;
  margin-left: 4px;
  transition: transform .18s ease;
}
.nav-group[open] .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 300px;
  display: none;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.nav-dropdown a {
  display: block;
  border: 0;
  padding: 9px 10px;
}
.nav-group[open] .nav-dropdown { display: block; }
.nav-toggle { display: none; }
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  border: 1px solid var(--blue);
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.2;
}
.button:hover, .header-cta:hover { background: #035d91; border-color: #035d91; }
.button-outline {
  background: white;
  color: var(--blue);
}
.button-outline:hover {
  background: #eaf6fc;
  color: #035d91;
}
.button-small { min-height: 36px; padding: 8px 11px; font-size: .88rem; }

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.82) 48%, rgba(255,255,255,.62)),
    var(--hero-image) center/cover;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .82rem;
}
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 5rem); max-width: 980px; }
h2 { font-size: clamp(1.7rem, 3vw, 3rem); }
h3 { font-size: 1.15rem; }
.hero p, .page-hero p, .section-heading p, .split-section p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 760px;
}
.hero-actions, .product-actions, .link-row, .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}
.hero-gallery img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-gallery img:nth-child(2), .hero-gallery img:nth-child(5) { height: 230px; }

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: white;
}
.stats-band div { padding: 28px clamp(16px, 4vw, 40px); border-right: 1px solid rgba(255,255,255,.16); }
.stats-band strong { display: block; color: var(--yellow); font-size: 2rem; }
.stats-band span { color: rgba(255,255,255,.78); }

.section, .split-section, .page-hero {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 76px);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.tinted { background: var(--wash); }
.category-grid, .product-grid, .service-grid, .contact-grid, .testimonial-grid, .process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-card, .product-card, .service-grid article, .contact-grid article, .testimonial-grid article, .process article {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(23,32,42,.06);
}
.category-card { padding-bottom: 18px; position: relative; }
.category-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #f8fbfd;
  padding: 16px;
}
.category-card span {
  display: inline-block;
  margin: 16px 18px 8px;
  color: var(--green);
  font-weight: 800;
  font-size: .84rem;
}
.category-card h3, .category-card p { margin-left: 18px; margin-right: 18px; }
.category-card p, .product-card p { color: var(--muted); }
.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
}
.product-image {
  display: grid;
  place-items: center;
  min-height: 210px;
  background: #fbfdff;
  border-bottom: 1px solid var(--line);
}
.product-image img {
  max-height: 205px;
  width: 100%;
  object-fit: contain;
  padding: 14px;
}
.product-card > div { padding: 16px; }
.product-card h3 a { text-decoration: none; }
.card-actions { padding-top: 0; margin-top: 0; align-self: end; }

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}
.split-section > img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.link-row a {
  color: var(--blue);
  font-weight: 800;
}
.cta-panel {
  margin: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 76px);
  padding: clamp(28px, 5vw, 58px);
  background: linear-gradient(135deg, #07324c, #0477b8 48%, #00a6a6);
  color: white;
  border-radius: 8px;
}
.cta-panel .eyebrow, .cta-panel p { color: #ffdf6b; }
.cta-panel h2 { max-width: 920px; margin-bottom: 20px; }

.page-hero {
  background: linear-gradient(135deg, #eef8fc, #ffffff 48%, #fff8db);
}
.page-hero.compact { min-height: 330px; display: grid; align-content: center; }
.page-hero.service {
  min-height: 460px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.82) 55%, rgba(255,255,255,.56)),
    var(--hero-image) center/cover;
}
.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 12px;
  margin-bottom: 22px;
}
.catalog-toolbar input, .catalog-toolbar select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 13px;
  font: inherit;
  background: white;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 76px);
}
.anat-detail {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
}
.product-gallery {
  display: grid;
  gap: 14px;
  align-content: start;
}
.product-gallery img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: white;
  padding: 18px;
}
.feature-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feature-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  background: white;
}
.feature-gallery figure:first-child {
  grid-column: 1 / -1;
}
.feature-gallery img {
  border: 0;
  padding: 0;
  max-height: 680px;
}
.feature-gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
}
.code-line {
  padding: 12px 14px;
  background: var(--wash);
  border-left: 4px solid var(--yellow);
  width: fit-content;
}
.description-block p { color: var(--muted); }
.spec-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  margin-top: 24px;
}
.spec-list dt, .spec-list dd {
  margin: 0;
  padding: 12px 14px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.spec-list dt { font-weight: 800; background: var(--wash); }
.service-grid article, .contact-grid article, .testimonial-grid article, .process article {
  padding: 22px;
}
.process span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border-radius: 50%;
  font-weight: 900;
  margin-bottom: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.15fr;
  gap: 28px;
  padding: 40px clamp(18px, 5vw, 76px);
  background: #101820;
  color: rgba(255,255,255,.76);
}
.site-footer img { width: 90px; background: white; padding: 6px; }
.site-footer h2 { font-size: 1rem; color: white; margin-bottom: 12px; }
.site-footer a { display: block; color: rgba(255,255,255,.86); text-decoration: none; margin: 7px 0; }
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.site-footer .social-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  font-size: 1rem;
}
.social-icon.whatsapp { background: #25d366; }
.social-icon.facebook { background: #1877f2; font-family: Georgia, serif; font-size: 1.3rem; }
.social-icon.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 52%, #515bd4); font-size: 1.25rem; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; }
  .nav-toggle { display: inline-flex; justify-self: end; padding: 8px 10px; border: 1px solid var(--line); background: white; border-radius: 7px; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
  }
  .main-nav.open { display: flex; }
  .nav-group { width: 100%; }
  .nav-dropdown {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .nav-group:not([open]) .nav-dropdown { display: none; }
  .header-cta { display: none; }
  .hero, .split-section, .product-detail, .section-heading { grid-template-columns: 1fr; }
  .stats-band, .category-grid, .product-grid, .service-grid, .contact-grid, .testimonial-grid, .process, .site-footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .brand small { display: none; }
  .hero { min-height: auto; }
  h1 { font-size: 2.25rem; }
  .stats-band, .category-grid, .product-grid, .service-grid, .contact-grid, .testimonial-grid, .process, .site-footer, .catalog-toolbar, .spec-list { grid-template-columns: 1fr; }
  .hero-gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-gallery img, .hero-gallery img:nth-child(2), .hero-gallery img:nth-child(5) { height: 150px; }
  .product-gallery img { max-height: 420px; }
  .feature-gallery { grid-template-columns: 1fr; }
}
