:root {
  --blue-950: #08233d;
  --blue-900: #0d3155;
  --blue-800: #123b66;
  --blue-700: #1a4d80;
  --blue-100: #e7eef5;
  --gold-700: #9e812e;
  --gold-600: #b69539;
  --gold-500: #c1a549;
  --gold-100: #f4edd7;
  --ink: #17202a;
  --muted: #66717d;
  --line: #dfe5ea;
  --surface: #ffffff;
  --surface-soft: #f5f7f9;
  --shadow-sm: 0 10px 30px rgba(8, 35, 61, 0.08);
  --shadow-md: 0 20px 50px rgba(8, 35, 61, 0.14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: min(1180px, calc(100% - 40px));
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: 9999;
  transform: none;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-950);
  border-radius: 8px;
}

.skip-link:focus {
  top: 8px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section--soft {
  background: var(--surface-soft);
}

.section--dark {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

.section--dark .eyebrow {
  color: #eadca8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--blue-950);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 6vw, 5.4rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.lead {
  max-width: 710px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.76);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-heading > div:first-child {
  max-width: 760px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.nav-link:focus-visible,
.mobile-menu-button:focus-visible,
.accordion-trigger:focus-visible,
.form-control:focus-visible {
  outline: 3px solid rgba(193, 165, 73, 0.42);
  outline-offset: 3px;
}

.btn--primary {
  color: #fff;
  background: var(--blue-800);
  box-shadow: 0 12px 28px rgba(18, 59, 102, 0.24);
}

.btn--primary:hover {
  background: var(--blue-900);
}

.btn--gold {
  color: var(--blue-950);
  background: var(--gold-500);
  box-shadow: 0 12px 28px rgba(193, 165, 73, 0.25);
}

.btn--gold:hover {
  background: #ceb45d;
}

.btn--outline {
  color: var(--blue-800);
  background: transparent;
  border-color: rgba(18, 59, 102, 0.28);
}

.btn--outline:hover {
  background: var(--blue-100);
  border-color: var(--blue-800);
}

.btn--light {
  color: var(--blue-950);
  background: #fff;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(18, 59, 102, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 224px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 12px 14px;
  color: #344252;
  font-weight: 750;
}

.nav-link::after {
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  height: 2px;
  content: "";
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--blue-800);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.mobile-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--blue-950);
  background: var(--surface-soft);
  border: 0;
  border-radius: 50%;
}

/* =========================================================
   HERO COM VÍDEO
   ========================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 760px;
  padding: 110px 0 90px;
  overflow: hidden;
  isolation: isolate;
  background-color: #092b4c;
}

/*
  O vídeo possui 112% da altura da hero.
  Como a seção usa overflow: hidden, aproximadamente
  os 10% inferiores deixam de aparecer.
*/
.hero-video {
  position: absolute;
  z-index: -3;
  top: 0;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

/* Escurece o vídeo para manter os textos legíveis */
.hero-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 25, 44, 0.93) 0%,
      rgba(5, 25, 44, 0.82) 38%,
      rgba(5, 25, 44, 0.54) 68%,
      rgba(5, 25, 44, 0.28) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 25, 44, 0.38) 0%,
      transparent 40%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(32px, 7vw, 120px);
}

.hero-copy {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 45px 0 35px;
  color: #ffffff;
}

.hero .eyebrow {
  margin: 0 0 18px;
  color: #c1a549;
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .button-row {
  max-width: 980px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  margin-top: 64px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 30px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stat:first-child {
  padding-left: 30px;
}

.hero-stat:last-child {
  padding-right: 30px;
  border-right: 0;
}

.hero-stat strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.4;
}

.hero h1 {
  max-width: 1050px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.4rem, 6.2vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero .lead {
  max-width: 900px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.7;
}

.hero .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-secondary-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
}

.hero-secondary-button:hover {
  color: #123b66;
  border-color: #ffffff;
  background: #ffffff;
}

.trust-bar {
  padding: 26px 0;
  color: #fff;
  background: var(--blue-900);
}

.trust-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 750;
}

.trust-item svg {
  color: var(--gold-500);
}

.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  position: relative;
  overflow: hidden;
  min-height: 355px;
  color: #fff;
  background: var(--blue-950);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.product-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.product-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 35, 61, 0.02) 30%, rgba(8, 35, 61, 0.93) 100%);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px;
}

.product-card h3 {
  color: #fff;
}

.product-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
}

.split-layout {
  display: grid;
  align-items: center;
  gap: 72px;
  grid-template-columns: 1fr 1fr;
}

.about-visual {
  position: relative;
  min-height: 540px;
}

.about-visual > img {
  width: 86%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 250px;
  padding: 30px;
  color: #fff;
  background: var(--blue-800);
  border: 10px solid #fff;
  border-radius: 26px;
}

.about-badge strong {
  display: block;
  color: var(--gold-500);
  font-size: 2rem;
}

.check-list {
  display: grid;
  gap: 15px;
  margin: 26px 0 32px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-list svg {
  margin-top: 3px;
  color: var(--gold-700);
}

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(193, 165, 73, 0.55);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--blue-800);
  background: var(--gold-100);
  border-radius: 14px;
}

.calculator-cta {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: center;
  gap: 50px;
  padding: 58px;
  color: #fff;
  background: linear-gradient(125deg, var(--blue-950), var(--blue-700));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  grid-template-columns: 1fr auto;
}

.calculator-cta::after {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 360px;
  height: 360px;
  content: "";
  background: rgba(193, 165, 73, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.calculator-cta > * {
  position: relative;
  z-index: 1;
}

.calculator-cta h2 {
  color: #fff;
}

.calculator-cta p {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 0.88fr 1.12fr;
}

.contact-panel,
.map-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-panel {
  padding: 38px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-list-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--blue-800);
  background: var(--blue-100);
  border-radius: 12px;
}

.contact-list strong {
  display: block;
  color: var(--blue-950);
}

.contact-list span,
.contact-list a {
  color: var(--muted);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(8, 35, 61, 0.97), rgba(18, 59, 102, 0.84)),
    url("../images/aco-inox.jpg") center / cover;
}

.page-hero::after {
  position: absolute;
  top: -150px;
  right: -120px;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.03), 0 0 0 120px rgba(255, 255, 255, 0.018);
}

.page-hero h1 {
  max-width: 840px;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.page-hero p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.breadcrumbs a:hover {
  color: #fff;
}

.accordion-list {
  display: grid;
  gap: 16px;
}

.accordion-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px rgba(8, 35, 61, 0.05);
}

.accordion-trigger {
  display: grid;
  width: 100%;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  color: var(--blue-950);
  text-align: left;
  background: #fff;
  border: 0;
  grid-template-columns: 90px 1fr auto;
}

.accordion-trigger:hover {
  background: #fbfcfd;
}

.accordion-trigger img {
  width: 90px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
}

.accordion-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 850;
}

.accordion-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.accordion-chevron {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--blue-800);
  background: var(--blue-100);
  border-radius: 50%;
  transition: transform 200ms ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  display: grid;
  overflow: hidden;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.accordion-panel[aria-hidden="false"] {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  min-height: 0;
}

.accordion-content {
  display: grid;
  gap: 32px;
  padding: 10px 30px 34px 134px;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.meta-card {
  padding: 24px;
  background: var(--surface-soft);
  border-radius: 14px;
}

.meta-card h4 {
  margin: 0 0 10px;
  color: var(--blue-950);
}

.meta-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.calculator-shell {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.calculator-card,
.result-card,
.converter-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.calculator-card,
.converter-card {
  padding: 34px;
}

.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  color: var(--blue-950);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.form-control {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8e1;
  border-radius: 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-control:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(18, 59, 102, 0.08);
  outline: none;
}

.field-with-unit {
  position: relative;
}

.field-with-unit .form-control {
  padding-right: 56px;
}

.field-unit {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.dynamic-fields {
  display: contents;
}

.shape-preview {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--blue-800);
  background: linear-gradient(135deg, var(--blue-100), #fff);
  border: 1px dashed rgba(18, 59, 102, 0.25);
  border-radius: 14px;
}

.shape-preview svg {
  width: 112px;
  height: 112px;
}

.result-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  overflow: hidden;
  align-self: start;
}

.result-card-header {
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
}

.result-card-header h3 {
  color: #fff;
}

.result-card-body {
  padding: 28px;
}

.result-main {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.result-main span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-main strong {
  display: block;
  margin-top: 4px;
  color: var(--blue-800);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.result-list {
  display: grid;
  gap: 13px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.result-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.result-list span {
  color: var(--muted);
}

.result-list strong {
  color: var(--blue-950);
  text-align: right;
}

.notice {
  padding: 16px 18px;
  color: #654f16;
  background: var(--gold-100);
  border-left: 4px solid var(--gold-500);
  border-radius: 8px;
  font-size: 0.88rem;
}

.converter-layout {
  display: grid;
  align-items: end;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.fraction-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.25fr 1fr 1fr;
}

.converter-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-700);
}

.site-footer {
  padding: 68px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--blue-950);
}

.footer-grid {
  display: grid;
  gap: 52px;
  margin-bottom: 48px;
  grid-template-columns: 1.25fr 0.75fr 0.85fr;
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  width: 230px;
  margin-bottom: 20px;
  padding: 10px;
}

.footer-title {
  margin-bottom: 16px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #25d366;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(12, 88, 40, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float::before {
  position: absolute;
  inset: -9px;
  z-index: -1;
  content: "";
  border: 2px solid rgba(37, 211, 102, 0.4);
  border-radius: 50%;
  animation: whatsapp-pulse 2.2s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 36px rgba(12, 88, 40, 0.38);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-label {
  position: absolute;
  right: 70px;
  width: max-content;
  padding: 8px 12px;
  color: var(--blue-950);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-label,
.whatsapp-float:focus-visible .whatsapp-label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsapp-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.82);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .split-layout,
  .contact-grid,
  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero-mosaic {
    min-height: 510px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-shell {
    align-items: stretch;
  }

  .result-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 74px;
    --container: min(100% - 28px, 1180px);
  }

  .section {
    padding: 74px 0;
  }

  .brand img {
    width: 190px;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 0;
    height: calc(100dvh - var(--header-height));
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    transform: translateX(24px);
    visibility: hidden;
    pointer-events: none;
    transition: transform 220ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    padding: 15px 10px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn {
    margin-top: 20px;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-mosaic {
    min-height: 430px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .btn {
    margin-top: 12px;
  }

  .calculator-cta {
    padding: 42px 30px;
    grid-template-columns: 1fr;
  }

  .accordion-content {
    padding: 8px 24px 28px;
    grid-template-columns: 1fr;
  }

  .converter-layout {
    grid-template-columns: 1fr;
  }

  .converter-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: clamp(2.4rem, 13vw, 3.7rem);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-mosaic {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 180px;
  }

  .hero-image:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .product-grid,
  .feature-grid,
  .trust-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 310px;
  }

  .about-visual {
    min-height: 420px;
  }

  .about-visual > img {
    width: 100%;
    height: 400px;
  }

  .about-badge {
    right: 12px;
    bottom: -18px;
    width: 220px;
    padding: 22px;
  }

  .contact-panel,
  .calculator-card,
  .converter-card {
    padding: 26px 20px;
  }

  .accordion-trigger {
    gap: 14px;
    padding: 14px;
    grid-template-columns: 68px 1fr auto;
  }

  .accordion-trigger img {
    width: 68px;
    height: 58px;
  }

  .accordion-subtitle {
    display: none;
  }

  .accordion-chevron {
    width: 34px;
    height: 34px;
  }

  .fraction-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .whatsapp-label {
    display: none;
  }
}

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

body.whatsapp-selector-open {
  overflow: hidden;
}

.whatsapp-selector {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.whatsapp-selector[hidden] {
  display: none;
}

.whatsapp-selector.is-open {
  opacity: 1;
  visibility: visible;
}

.whatsapp-selector-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(4, 19, 33, 0.72);
  border: 0;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.whatsapp-selector-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  padding: 34px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
}

.whatsapp-selector.is-open
.whatsapp-selector-dialog {
  transform: translateY(0) scale(1);
}

.whatsapp-selector-dialog h2 {
  margin: 5px 45px 25px 0;
  color: var(--blue-950);
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.whatsapp-selector-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--blue-800);
  background: var(--surface-soft);
  border: 0;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.whatsapp-selector-options {
  display: grid;
  gap: 14px;
}

.whatsapp-option {
  display: grid;
  align-items: center;
  gap: 16px;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 18px;
  color: var(--blue-950);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.whatsapp-option:hover {
  border-color: var(--gold-500);
  box-shadow:
    0 12px 30px rgba(18, 59, 102, 0.12);
  transform: translateY(-2px);
}

.whatsapp-option-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #25d366;
  border-radius: 50%;
}

.whatsapp-option-icon svg {
  width: 25px;
  height: 25px;
}

.whatsapp-option span:last-child {
  display: grid;
  gap: 4px;
}

.whatsapp-option strong {
  color: var(--blue-950);
  font-size: 1rem;
}

.whatsapp-option small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

button.whatsapp-float {
  padding: 0;
  border: 4px solid #fff;
  font: inherit;
  cursor: pointer;
}

button.btn {
  font: inherit;
  cursor: pointer;
}

@media (max-width: 600px) {
  .whatsapp-selector {
    align-items: end;
    padding: 12px;
  }

  .whatsapp-selector-dialog {
    width: 100%;
    padding: 28px 18px 20px;
    border-radius: 20px 20px 12px 12px;
  }

  .whatsapp-option {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 15px;
  }

  .whatsapp-option-icon {
    width: 46px;
    height: 46px;
  }
}