/*
Theme Name: ErgoSafe Solutions
Theme URI: https://ergosafecr.com/
Author: ErgoSafe Solutions
Description: Tema propio para el sitio unificado de ErgoSafe Solutions.
Version: 1.0.0
Text Domain: ergosafe
*/

:root {
  --navy: #15293e;
  --navy-800: #1e3a54;
  --navy-700: #274b69;
  --cyan: #1ba3d9;
  --cyan-dark: #1587b5;
  --cyan-soft: #e8f6fb;
  --slate: #64748b;
  --slate-700: #334155;
  --light: #f8fafc;
  --white: #ffffff;
  --line: rgba(21, 41, 62, 0.1);
  --line-strong: rgba(21, 41, 62, 0.16);
  --shadow-sm: 0 1px 2px rgba(21, 41, 62, 0.06);
  --shadow: 0 18px 45px -18px rgba(21, 41, 62, 0.25);
  --shadow-lg: 0 30px 70px -25px rgba(21, 41, 62, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --header: 78px;
}

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

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

body { overflow-x: hidden; }

.hero-grid > *,
.hero-media,
.hero-collage,
.hero-collage figure,
.services-grid > *,
.blog-grid > *,
.archive-grid > *,
.team-card > *,
.split > *,
.case > *,
.service-layout > *,
.contact-layout > *,
.footer-main > * { min-width: 0; }

h1, h2, h3, h4 { overflow-wrap: break-word; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dark); text-decoration: none; }
a:hover { color: var(--navy); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
strong { color: var(--navy); }
::selection { background: var(--cyan); color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 10px;
}
.skip-link:focus { top: 16px; color: var(--white); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 0.95rem; line-height: 1; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cyan); color: var(--white); box-shadow: 0 12px 28px -12px rgba(27, 163, 217, 0.7); }
.btn--primary:hover { background: var(--cyan-dark); color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-800); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--outline { border-color: var(--line-strong); color: var(--navy); background: var(--white); }
.btn--outline:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.btn--whatsapp { background: #25d366; color: #06371c; }
.btn--whatsapp:hover { background: #1ebe5b; color: #06371c; }
.btn--sm { padding: 10px 16px; font-size: 0.85rem; border-radius: 10px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); border-radius: 2px; }
.eyebrow--light { color: var(--cyan); }
.eyebrow--light::before { background: var(--cyan); }

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.72); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.05rem; margin-bottom: 0; }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.65); }
.section-head h2 { margin-bottom: 12px; }
.section-foot { margin-top: 36px; display: flex; justify-content: center; }

.hero {
  position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, 0.78);
  padding: 84px 0 92px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 82% 12%, rgba(27, 163, 217, 0.28) 0%, transparent 60%),
    radial-gradient(50% 70% at 8% 90%, rgba(27, 163, 217, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 54px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 .accent { color: var(--cyan); }
.hero-lead { font-size: 1.12rem; color: rgba(255, 255, 255, 0.72); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0; list-style: none; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.hero-proof svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }

.hero-media { position: relative; }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 158px; gap: 14px; }
.hero-collage figure { margin: 0; overflow: hidden; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--navy-800); box-shadow: var(--shadow-lg); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-collage figure:hover img { transform: scale(1.05); }
.hero-collage figure:first-child { grid-row: span 2; }
.hero-badge {
  position: absolute; left: -18px; bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--navy); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 0.82rem; font-weight: 700;
}
.hero-badge span { display: block; color: var(--slate); font-size: 0.72rem; font-weight: 500; }
.hero-badge svg { width: 26px; height: 26px; color: var(--cyan); flex: none; }

.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; padding: 24px 0; }
.trust-item { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--slate); font-size: 0.82rem; font-weight: 600; }
.trust-item svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--cyan), transparent); opacity: 0; transition: opacity 0.25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(27, 163, 217, 0.35); }
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--cyan-soft); color: var(--cyan-dark); margin-bottom: 20px;
}
.service-card__icon svg { width: 27px; height: 27px; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--slate); font-size: 0.92rem; margin-bottom: 20px; }
.service-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.88rem; color: var(--cyan-dark); }
.service-card__link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.service-card:hover .service-card__link svg { transform: translateX(4px); }
.service-card--featured { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, 0.72); }
.service-card--featured h3 { color: var(--white); }
.service-card--featured p { color: rgba(255, 255, 255, 0.66); }
.service-card--featured .service-card__icon { background: rgba(27, 163, 217, 0.18); color: var(--cyan); }
.service-card--featured .service-card__link { color: var(--cyan); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-step { position: relative; padding-top: 10px; }
.process-step::before {
  content: ""; position: absolute; top: 34px; left: 56px; right: -24px; height: 2px;
  background: linear-gradient(90deg, rgba(27, 163, 217, 0.5), rgba(27, 163, 217, 0.05));
}
.process-step:last-child::before { display: none; }
.process-num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--cyan); color: var(--navy);
  font-weight: 800; font-size: 1rem; margin-bottom: 18px; position: relative; z-index: 1;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--slate); font-size: 0.9rem; margin-bottom: 0; }

.case { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--shadow-lg); }
.case-media { position: relative; min-height: 420px; }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(30, 58, 84, 0.9)); }
.case-body { padding: 48px; }
.case-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(27, 163, 217, 0.16); border: 1px solid rgba(27, 163, 217, 0.35); color: var(--cyan); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; padding: 7px 12px; border-radius: 999px; margin-bottom: 18px; }
.case-body h2, .case-body h3 { color: var(--white); }
.case-body p { color: rgba(255, 255, 255, 0.68); }
.case-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.case-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }
.case-list svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 3px; }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-card { display: grid; grid-template-columns: 210px 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-photo { position: relative; min-height: 280px; background: var(--navy); }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-body { padding: 26px; display: flex; flex-direction: column; }
.team-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-specialty { color: var(--cyan-dark); font-size: 0.84rem; font-weight: 700; margin-bottom: 10px; }
.team-certs { color: var(--slate); font-size: 0.82rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.team-body .service-card__link { margin-top: auto; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan-dark); margin-bottom: 10px; }
.post-meta span { color: var(--slate); font-weight: 500; text-transform: none; letter-spacing: 0; }
.post-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.post-card p { color: var(--slate); font-size: 0.9rem; margin-bottom: 18px; }
.post-card .service-card__link { margin-top: auto; }

.cta-band { background: linear-gradient(120deg, var(--cyan-dark) 0%, var(--cyan) 55%, #29b7e8 100%); border-radius: var(--radius-lg); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--white); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); top: -160px; right: -80px; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 0; max-width: 620px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-actions .btn--dark { box-shadow: 0 12px 28px -14px rgba(21, 41, 62, 0.8); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(21, 41, 62, 0.35); border-color: var(--line); }
.announcement { background: var(--navy); color: rgba(255, 255, 255, 0.7); font-size: 0.76rem; }
.announcement .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.announcement strong { color: var(--cyan); font-weight: 700; }
.announcement a { color: var(--white); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.announcement a svg { width: 14px; height: 14px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--navy); border-radius: 11px; flex: none; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.28rem; font-weight: 900; letter-spacing: -0.03em; color: var(--navy); }
.brand-name .safe { color: var(--cyan); }
.brand-sub { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.32em; color: var(--slate); text-transform: uppercase; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px; border-radius: 9px; color: var(--slate-700); font-size: 0.88rem; font-weight: 600; transition: background 0.2s ease, color 0.2s ease; }
.nav-list > li > a:hover, .nav-list > li.current-menu-item > a, .nav-list > li.current-menu-ancestor > a { background: var(--cyan-soft); color: var(--cyan-dark); }
.menu-item-has-children > a::after { content: ""; width: 5px; height: 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 3px; margin-top: -3px; }
.sub-menu { position: absolute; top: 100%; left: 0; min-width: 250px; margin: 0; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 50; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--slate-700); font-size: 0.84rem; font-weight: 500; }
.sub-menu a:hover { background: var(--cyan-soft); color: var(--cyan-dark); }
.header-cta { margin-left: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; color: var(--navy); cursor: pointer; place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.page-hero { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 64px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 10%, rgba(27,163,217,0.24), transparent 60%), radial-gradient(50% 70% at 10% 100%, rgba(27,163,217,0.12), transparent 60%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.68); font-size: 1.05rem; max-width: 720px; margin-bottom: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.76rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px; }
.breadcrumbs a { color: rgba(255, 255, 255, 0.72); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs span { color: rgba(255, 255, 255, 0.65); }

.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 42px; align-items: start; }
.service-main .prose > h2 { margin-top: 2rem; }
.service-side { position: sticky; top: calc(var(--header) + 20px); display: grid; gap: 18px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.side-card p { color: var(--slate); font-size: 0.88rem; }
.side-card .btn { width: 100%; margin-top: 6px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--slate); }
.side-list svg { width: 17px; height: 17px; color: var(--cyan); flex: none; margin-top: 3px; }
.side-meta { display: grid; gap: 12px; }
.side-meta div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 0.84rem; }
.side-meta div:last-child { border-bottom: 0; padding-bottom: 0; }
.side-meta dt { color: var(--slate); }
.side-meta dd { margin: 0; color: var(--navy); font-weight: 700; text-align: right; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate-700); font-size: 0.95rem; }
.checklist svg { width: 19px; height: 19px; color: var(--cyan); flex: none; margin-top: 3px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.pills li { background: var(--cyan-soft); color: var(--cyan-dark); border: 1px solid rgba(27, 163, 217, 0.22); padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }

.faq { display: grid; gap: 10px; margin: 0 0 1.5rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--cyan); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--slate); font-size: 0.92rem; }
.faq details > div p:last-child { margin-bottom: 0; }

.prose { color: var(--slate-700); font-size: 1rem; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; }
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.22rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--cyan-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 3px solid var(--cyan); background: var(--cyan-soft); border-radius: 0 12px 12px 0; color: var(--navy); font-weight: 500; }
.prose img { border-radius: 14px; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--light); color: var(--navy); }

.article-header { max-width: 860px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--slate); font-size: 0.8rem; margin-bottom: 18px; }
.article-meta .tag { background: var(--cyan-soft); color: var(--cyan-dark); font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.article-hero { max-width: 980px; margin: 0 auto 36px; }
.article-hero img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-cta { max-width: 760px; margin: 48px auto 0; }

.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-sm); }
.contact-item svg { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 3px; }
.contact-item h3 { font-size: 0.92rem; margin-bottom: 2px; }
.contact-item p, .contact-item a { margin: 0; color: var(--slate); font-size: 0.9rem; }
.contact-item a:hover { color: var(--cyan-dark); }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; font-size: 0.92rem; color: var(--navy); background: var(--white); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(27, 163, 217, 0.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field--full { grid-column: 1 / -1; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; color: var(--slate); margin-bottom: 18px; }
.form-consent input { width: auto; margin-top: 3px; }
.form-message { padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 18px; }
.form-message--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-message--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.hp-field { position: absolute !important; left: -9999px !important; }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.page-nav { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.page-nav .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 0.85rem; }
.page-nav .page-numbers.current, .page-nav .page-numbers:hover { background: var(--cyan); border-color: var(--cyan); color: var(--white); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.value-card svg { width: 26px; height: 26px; color: var(--cyan); margin-bottom: 14px; }
.value-card h3 { font-size: 1rem; margin-bottom: 6px; }
.value-card p { color: var(--slate); font-size: 0.87rem; margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split h2 { margin-bottom: 14px; }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #06371c; padding: 13px 18px; border-radius: 999px;
  font-weight: 800; font-size: 0.86rem; box-shadow: 0 16px 35px -12px rgba(37, 211, 102, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); color: #06371c; box-shadow: 0 20px 45px -12px rgba(37, 211, 102, 0.8); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float span { display: none; }

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.62); margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 64px 0 42px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.45); }
.footer-brand p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); max-width: 320px; }
.footer-col h3 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.58); font-size: 0.88rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--cyan); flex: none; margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.7); }
.social a:hover { background: var(--cyan); color: var(--white); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.78rem; color: rgba(255, 255, 255, 0.4); }
.footer-bottom ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a:hover { color: var(--cyan); }

.empty-state { text-align: center; padding: 60px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state p { color: var(--slate); margin-bottom: 0; }

.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-media { max-width: 620px; }
  .services-grid, .blog-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step::before { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .service-side { position: static; grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .case-media { min-height: 320px; }
  .case-media::after { background: linear-gradient(180deg, transparent 40%, rgba(30, 58, 84, 0.9)); }
}

@media (max-width: 820px) {
  .announcement .wrap { justify-content: center; }
  .announcement .announcement-cta { display: none; }
  .menu-toggle { display: grid; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 20px; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a { padding: 12px; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .menu-item-has-children > a::after { margin-left: auto; }
  .header-cta { display: none; }
  .hero { padding: 60px 0 70px; }
  .hero-collage { grid-auto-rows: 130px; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { justify-content: flex-start; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 180px 1fr; }
  .contact-layout, .split { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .article-hero { margin-bottom: 26px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .services-grid, .blog-grid, .archive-grid, .process, .values-grid, .service-side { grid-template-columns: 1fr; }
  .hero-collage { grid-auto-rows: 118px; }
  .hero-badge { left: 10px; bottom: 12px; padding: 10px 12px; }
  .hero-actions .btn { width: 100%; }
  .team-card { grid-template-columns: 1fr; }
  .team-photo { min-height: 260px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .wa-float span { display: inline; }
  .article-body, .article-header, .article-cta { padding-left: 4px; padding-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
