:root {
  --primary: #003366;
  --primary-light: #0a4a8f;
  --secondary: #00897b;
  --accent: #43c59e;
  --dark: #0d1b2a;
  --mid: #4a6080;
  --light: #eef4fb;
  --white: #ffffff;
  --border: #d0dce8;
  --shadow: 0 18px 48px rgba(13, 27, 42, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 8px; }

.topbar { background: var(--primary); color: #fff; font-size: 0.9rem; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { display: block; width: 190px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--primary); }
.nav-list { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 12px; text-decoration: none; font-weight: 800; color: var(--dark); border-radius: 8px; }
.nav-list li.active > a, .nav-list a:hover { color: var(--primary); background: var(--light); }
.nav-cta { background: var(--accent) !important; color: var(--primary) !important; }
.dropdown { position: absolute; top: 100%; left: 0; display: none; min-width: 250px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 8px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { width: 100%; justify-content: flex-start; }

.hero { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--light), #fff 48%, rgba(67, 197, 158, 0.18)); padding: 86px 0 74px; }
.hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -42% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(0, 137, 123, 0.11);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 48px; align-items: center; }
.hero__grid > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; color: var(--secondary); text-transform: uppercase; letter-spacing: 0; font-weight: 900; font-size: 0.84rem; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; color: var(--primary); }
h1 { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2.55rem, 6vw, 5rem); max-width: 880px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; }
.hero__lead { font-size: 1.22rem; max-width: 720px; color: var(--mid); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 18px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; font-weight: 900; cursor: pointer; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn--light { background: #fff; color: var(--primary); }
.btn--sm { min-height: 36px; padding: 7px 13px; }
.hero__image {
  position: relative;
  margin: 0;
  min-height: 360px;
  display: grid;
  align-items: end;
}
.hero__image img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
}
.hero__image figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 51, 102, 0.92);
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.16);
}
.hero__image span { display: inline-block; margin-bottom: 6px; color: var(--accent); font-weight: 900; }
.hero__image strong { display: block; font-size: 1.15rem; line-height: 1.2; }

.section { padding: 76px 0; }
.section--soft { background: var(--light); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 46px; align-items: start; }
.feature-grid, .cards-three, .approach-grid { display: grid; gap: 18px; }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid article, .cards-three article, .approach-grid a, .panel-list, .contact-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(13, 27, 42, 0.06);
}
.feature-grid article h3, .feature-grid article p { margin-bottom: 0; }
.cards-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-three span { color: var(--secondary); font-weight: 900; }
.approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.approach-grid a { text-decoration: none; color: var(--dark); }
.approach-grid a:hover { border-color: var(--secondary); transform: translateY(-2px); }
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pill-grid span, .badge-row span { display: inline-flex; padding: 9px 13px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-weight: 800; color: var(--primary); }
.steps { display: grid; gap: 14px; }
.steps article { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 18px; border-left: 4px solid var(--accent); background: var(--light); border-radius: 8px; }
.steps span { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; }
.steps h3, .steps p { margin: 0; }
.panel-list p { padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--border); }
.panel-list p:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.cta-band { background: var(--secondary); color: #fff; padding: 42px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-bottom: 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band__visual { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.cta-band__visual img { width: 150px; border-radius: 8px; box-shadow: 0 14px 36px rgba(13,27,42,0.16); }

.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 38px; }
.contact-card__image { display: block; width: min(100%, 320px); margin: 24px 0 0; border-radius: 8px; box-shadow: 0 12px 30px rgba(13,27,42,0.08); }
.contact-form { display: grid; gap: 15px; }
.contact-form label { display: grid; gap: 7px; font-weight: 800; color: var(--primary); }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 12px; font: inherit; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.notice { margin: 0; padding: 12px; border-radius: 8px; font-weight: 800; }
.notice--success { background: #e7f8ef; color: #135d33; }
.notice--error { background: #fff0f0; color: #8a1f1f; }

.site-footer { background: var(--dark); color: rgba(255,255,255,0.82); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.35fr 0.95fr 0.9fr 1.1fr 1fr; gap: 28px; align-items: start; }
.footer__logo { background: #fff; border-radius: 8px; padding: 8px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.site-footer address { font-style: normal; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__cqc-widget { min-width: 0; }
.footer__cqc-widget iframe, .footer__cqc-widget img, .footer__cqc-widget div { max-width: 100%; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 42px; padding: 18px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer__bottom p { margin: 0; }

.cookie-banner { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -10px 32px rgba(13,27,42,0.12); }
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cookie-banner p { margin: 0; }

.contact-widget { position: fixed; right: 22px; bottom: 22px; z-index: 31; display: grid; gap: 10px; justify-items: end; }
.contact-widget__actions { display: none; gap: 10px; flex-direction: column; }
.contact-widget.is-open .contact-widget__actions { display: flex; }
.contact-widget__btn, .contact-widget__toggle { width: 54px; height: 54px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; color: #fff; text-decoration: none; font-weight: 900; box-shadow: var(--shadow); }
.contact-widget__toggle { background: var(--primary); font-size: 1.7rem; cursor: pointer; }
.contact-widget__btn--whatsapp { background: #25d366; }
.contact-widget__btn--phone { background: var(--primary); font-size: 0.82rem; }
.contact-widget__btn--email { background: var(--secondary); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); }
  .main-nav.is-open { display: block; }
  .nav-list { display: block; padding: 12px 20px 18px; }
  .nav-list a { width: 100%; justify-content: space-between; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .hero__grid, .split, .contact-layout, .footer__grid { grid-template-columns: 1fr; }
  .hero__image { min-height: 0; max-width: 560px; }
  .feature-grid, .cards-three, .approach-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1120px); }
  .topbar__inner { justify-content: center; gap: 12px; padding: 8px 0; }
  .hero { padding: 54px 0; }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 1.65rem; }
  .section { padding: 54px 0; }
  .cta-band__inner, .cookie-banner__inner, .footer__bottom-inner, .cta-band__visual { display: grid; }
  .cta-band__visual img { width: 130px; }
  .hero__image figcaption { position: static; margin-top: -8px; border-radius: 0 0 8px 8px; }
  .contact-widget { right: 14px; bottom: 14px; }
}
