/* TN Leads standalone website */
:root {
  --navy: #071b33;
  --navy-soft: #102b49;
  --red: #dc001b;
  --red-dark: #b90018;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --ink: #132238;
  --muted: #5b6777;
  --line: #dfe5ec;
  --success: #176b46;
  --error: #a41220;
  --shadow-sm: 0 8px 24px rgba(7, 27, 51, .08);
  --shadow-lg: 0 24px 60px rgba(7, 27, 51, .16);
  --radius: 18px;
  --font-heading: "Montserrat", Arial, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font-body); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 18px; color: var(--navy); font-family: var(--font-heading); line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 20px; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
::selection { color: var(--white); background: var(--red); }
[hidden] { display: none !important; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-compact { padding: 76px 0; }
.surface { background: var(--off-white); }
.section-heading { max-width: 730px; margin-bottom: 46px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p, .lead { color: var(--muted); font-size: 1.125rem; }
.heading-rule { width: 56px; height: 4px; margin-top: 22px; border-radius: 4px; background: var(--red); }
.centered .heading-rule { margin-inline: auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.stack { display: grid; gap: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--red); font-weight: 800; }
.text-link svg { width: 18px; transition: transform .25s ease; }
.text-link:hover svg { transform: translateX(4px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.scroll-progress { position: fixed; inset: 0 auto auto 0; z-index: 1400; width: 0; height: 3px; background: var(--red); pointer-events: none; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; color: var(--white); transition: background .3s ease, box-shadow .3s ease; }
.top-bar { height: 38px; overflow: hidden; background: var(--navy); transition: height .3s ease; }
.top-bar-inner { display: flex; height: 38px; align-items: center; justify-content: space-between; gap: 20px; font-size: .76rem; }
.top-bar-group { display: flex; align-items: center; gap: 22px; min-width: 0; }
.top-bar a, .top-bar span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.top-bar a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.top-bar svg { width: 14px; height: 14px; color: var(--red); flex: 0 0 auto; }
.main-nav-wrap { border-bottom: 1px solid rgba(255,255,255,.18); background: rgba(7,27,51,.28); transition: background .3s ease, border-color .3s ease; }
.main-nav { display: grid; grid-template-columns: 190px 1fr auto; min-height: 84px; align-items: center; gap: 24px; }
.nav-brand { display: inline-flex; width: max-content; align-items: center; }
.logo, .nav-brand img, .footer-brand img, .site-logo { width: 182px; height: auto; padding: 6px 10px; border-radius: 16px; background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .25s ease, border-radius .25s ease; }
.nav-brand:hover img { transform: translateY(-2px); }
.nav-menu { display: flex; align-items: center; justify-content: center; gap: 28px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-link { position: relative; display: inline-flex; min-height: 46px; align-items: center; gap: 5px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.nav-link::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; content: ""; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-link svg { width: 14px; transition: transform .25s ease; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.dropdown { position: absolute; top: calc(100% + 8px); left: 50%; width: 310px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; list-style: none; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--navy); font-size: .84rem; font-weight: 700; }
.dropdown a:hover { color: var(--red); background: var(--off-white); transform: translateX(3px); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .nav-link svg, .has-dropdown:focus-within .nav-link svg { transform: rotate(180deg); }
.site-header.scrolled { color: var(--navy); background: var(--white); box-shadow: var(--shadow-sm); }
.site-header.scrolled .top-bar { height: 0; }
.site-header.scrolled .main-nav-wrap { border-color: var(--line); background: var(--white); }
.site-header.scrolled .main-nav { min-height: 72px; }
.site-header.scrolled .logo { border-radius: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid currentColor; border-radius: 12px; color: inherit; background: transparent; align-items: center; justify-content: center; }
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-service-links { display: none; }
.nav-service-line { display: flex; align-items: center; }
.submenu-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 0; color: inherit; background: transparent; }
.submenu-toggle svg { width: 18px; transition: transform .25s ease; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.hamburger-lines { display: grid; width: 23px; gap: 5px; }
.hamburger-lines > span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] .hamburger-lines > span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger-lines > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger-lines > span:last-child { transform: translateY(-7px) rotate(-45deg); }
.consent label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.55; }
.consent input { width: 18px; height: 18px; min-height: 18px; margin: 3px 0 0; padding: 0; flex: 0 0 18px; accent-color: var(--red); }
.consent label > span { flex: 1; min-width: 0; }
.consent .text-link { display: inline; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 1px solid transparent; border-radius: 10px; font-size: .9rem; font-weight: 800; line-height: 1.2; transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.button svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .25s ease; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.button:hover svg { transform: translateX(3px); }
.button:active { transform: translateY(0) scale(.98); }
.button-primary { color: var(--white); background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.button-navy { color: var(--white); background: var(--navy); }
.button-navy:hover { background: var(--navy-soft); }
.button-outline { color: var(--white); border-color: rgba(255,255,255,.7); background: rgba(7,27,51,.15); }
.button-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.button-light { color: var(--navy); background: var(--white); }
.button-small { min-height: 42px; padding: 10px 15px; font-size: .8rem; }
.install-button { color: inherit; border-color: currentColor; background: transparent; }
.site-header.scrolled .install-button { color: var(--navy); }
.install-button:hover { color: var(--white); border-color: var(--red); background: var(--red); }
.install-button svg { width: 17px; }
.install-hint { position: fixed; right: 24px; top: 104px; z-index: 1300; width: min(390px, calc(100% - 32px)); padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--white); box-shadow: var(--shadow-lg); }
.install-hint p { margin: 0; font-size: .88rem; }
.install-hint button { float: right; margin: -5px -5px 5px 10px; border: 0; color: var(--navy); background: transparent; font-weight: 800; }
.install-prompt { position: fixed; right: 24px; bottom: 104px; z-index: 1150; display: grid; grid-template-columns: 58px 1fr; width: min(420px, calc(100% - 32px)); gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); animation: reveal-up .35s ease both; }
.install-prompt img { width: 58px; height: 58px; object-fit: contain; border-radius: 14px; }
.install-prompt h2 { margin-bottom: 5px; font-size: 1.05rem; }
.install-prompt p { margin-bottom: 13px; color: var(--muted); font-size: .84rem; }
.install-prompt-actions { display: flex; grid-column: 1 / -1; gap: 10px; }
.install-dismiss { border: 0; color: var(--muted); background: transparent; font-weight: 700; }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: var(--white); background: var(--navy); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-slide.active .hero-media { animation: hero-zoom 9s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,27,51,.9) 0%, rgba(7,27,51,.65) 44%, rgba(7,27,51,.22) 100%); }
.hero-content { position: relative; z-index: 2; width: min(calc(100% - 48px), var(--container)); margin: 0 auto; padding: 168px 0 110px; }
.hero-copy { max-width: 780px; }
.hero h1 { margin-bottom: 16px; color: var(--white); font-size: clamp(3.6rem, 8vw, 7.2rem); text-shadow: 0 3px 18px rgba(7,27,51,.4); }
.hero h2 { max-width: 700px; margin-bottom: 22px; color: var(--white); font-size: clamp(1.35rem, 2.5vw, 2.2rem); letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(7,27,51,.55); }
.hero-copy > p { max-width: 650px; color: rgba(255,255,255,.88); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-slide.active .hero-copy > * { animation: reveal-up .7s ease both; }
.hero-slide.active .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-slide.active .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-slide.active .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-controls { position: absolute; right: 0; bottom: 40px; left: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; }
.slider-dots { display: flex; gap: 10px; }
.slider-dot { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.45); transition: width .25s ease, background .25s ease; }
.slider-dot.active { width: 58px; background: var(--red); }
.slider-arrows { display: flex; gap: 9px; }
.slider-arrow { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: var(--white); background: rgba(7,27,51,.25); transition: background .25s ease, transform .25s ease; }
.slider-arrow:hover { background: var(--red); transform: translateY(-2px); }
.slider-arrow svg { width: 20px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9); font-size: .86rem; font-weight: 700; }
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { width: 17px; color: var(--red); }

.page-banner { position: relative; display: grid; min-height: 540px; align-items: end; overflow: hidden; color: var(--white); background: var(--navy); }
.page-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: banner-enter 1.1s ease both; }
.page-banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,27,51,.9), rgba(7,27,51,.5) 62%, rgba(7,27,51,.25)); }
.page-banner-content { position: relative; z-index: 1; padding-top: 176px; padding-bottom: 64px; animation: reveal-up .7s .1s ease both; }
.page-banner h1 { max-width: 920px; margin-bottom: 14px; color: var(--white); font-size: clamp(2.5rem, 5vw, 4.7rem); text-shadow: 0 3px 16px rgba(7,27,51,.5); }
.page-banner .lead { max-width: 720px; margin-bottom: 20px; color: rgba(255,255,255,.9); text-shadow: 0 2px 10px rgba(7,27,51,.5); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; }
.breadcrumb a { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.breadcrumb svg { width: 14px; }

.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.card-image { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.card:hover .card-image img { transform: scale(1.045); }
.card-body { padding: 26px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); }
.card-body .text-link { margin-top: 4px; }
.image-panel { position: relative; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow-lg); }
.image-panel img { width: 100%; min-height: 400px; object-fit: cover; aspect-ratio: 4 / 3; }
.image-panel::after { position: absolute; inset: auto 0 0; height: 5px; content: ""; background: var(--red); }
.check-list { display: grid; gap: 14px; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; }
.check-list svg { width: 20px; height: 20px; margin-top: 5px; flex: 0 0 auto; color: var(--red); }
.info-card { padding: 30px; border-top: 4px solid var(--navy); border-radius: 4px 4px var(--radius) var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .3s ease, border-color .3s ease; }
.info-card:hover { border-color: var(--red); transform: translateY(-4px); }
.info-card h3 { margin-bottom: 12px; }
.info-card p:last-child { margin-bottom: 0; color: var(--muted); }
.number { display: block; margin-bottom: 20px; color: var(--red); font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; line-height: 1; }
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: process; }
.process-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-card { position: relative; padding: 28px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.process-card h3 { font-size: 1.05rem; }
.process-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.industry-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; }
.industry-list li { padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: var(--white); font-weight: 700; transition: color .25s ease, border-color .25s ease, transform .25s ease; }
.industry-list li:hover { color: var(--red); border-color: var(--red); transform: translateY(-2px); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 20px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--white); background: var(--navy); font-family: var(--font-heading); font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--off-white); }
td:first-child { color: var(--navy); font-weight: 800; white-space: nowrap; }

.cta-band { position: relative; overflow: hidden; padding: 74px 0; color: var(--white); background: var(--navy); }
.cta-band::after { position: absolute; top: -50%; right: -6%; width: 360px; height: 360px; border: 70px solid rgba(220,0,27,.5); border-radius: 50%; content: ""; transform: rotate(-12deg); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.cta-band h2 { max-width: 700px; margin-bottom: 12px; color: var(--white); }
.cta-band p { max-width: 680px; margin: 0; color: rgba(255,255,255,.8); }
.cta-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 12px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 1fr); gap: 70px; align-items: start; }
.article-content h2 { margin-top: 44px; font-size: 1.75rem; }
.article-content h2:first-child { margin-top: 0; }
.article-content p, .article-content li { color: var(--muted); }
.article-content ul { display: grid; gap: 10px; padding-left: 22px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; color: var(--muted); font-size: .88rem; }
.article-sidebar { position: sticky; top: 110px; padding: 26px; border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; background: var(--off-white); }
.article-sidebar h2 { font-size: 1.3rem; }
.article-sidebar a:not(.button) { display: block; padding: 8px 0; color: var(--navy); font-weight: 700; }
.article-sidebar a:not(.button):hover { color: var(--red); }
.article-image { width: 100%; margin-bottom: 34px; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: var(--white); font-weight: 800; }
.filter-button:hover, .filter-button.active { color: var(--white); border-color: var(--red); background: var(--red); }
.gallery-item { overflow: hidden; padding: 0; border: 0; border-radius: var(--radius); text-align: left; background: var(--white); box-shadow: var(--shadow-sm); animation: reveal-up .4s ease both; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { padding: 20px; }
.gallery-caption h3 { margin-bottom: 7px; }
.gallery-caption p { margin: 0; color: var(--muted); font-size: .9rem; }
.lightbox { width: min(1000px, calc(100% - 32px)); max-height: 90vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); }
.lightbox::backdrop { background: rgba(7,27,51,.85); }
.lightbox img { width: 100%; max-height: 65vh; object-fit: contain; background: var(--navy); }
.lightbox-body { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; }
.lightbox-body h2 { margin: 0; font-size: 1.2rem; }
.lightbox-controls { display: flex; gap: 8px; }
.lightbox-controls button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: var(--white); }
.lightbox-controls svg { width: 19px; }

.faq-list { display: grid; max-width: 900px; gap: 14px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.faq-item h2 { margin: 0; font-size: 1rem; letter-spacing: 0; }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border: 0; border-radius: 14px; color: var(--navy); text-align: left; background: var(--white); font-family: var(--font-heading); font-weight: 700; }
.faq-question svg { width: 20px; flex: 0 0 auto; color: var(--red); transition: transform .3s ease; }
.faq-question[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 24px; color: var(--muted); }
.faq-question[aria-expanded="true"] + .faq-answer { grid-template-rows: 1fr; }
.faq-question[aria-expanded="true"] + .faq-answer p { padding-bottom: 24px; }

.form-shell { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .86rem; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); outline: 0; box-shadow: 0 0 0 3px rgba(220,0,27,.12); }
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: var(--error); }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: .8rem; }
.form-message { margin-top: 16px; padding: 13px 16px; border-radius: 9px; font-size: .9rem; }
.form-message.success { color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--white)); }
.form-message.error { color: var(--error); background: color-mix(in srgb, var(--error) 10%, var(--white)); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-list { display: grid; gap: 20px; list-style: none; }
.contact-list li, .contact-list a { display: flex; align-items: flex-start; gap: 13px; }
.contact-list svg { width: 21px; height: 21px; margin-top: 5px; flex: 0 0 auto; color: var(--red); }
.contact-list a:hover { color: var(--red); }
.map-frame { width: 100%; min-height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
.newsletter-form input { min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: var(--white); background: rgba(255,255,255,.08); }
.newsletter-form input::placeholder { color: rgba(255,255,255,.65); }
.newsletter-form input:focus { border-color: var(--red); outline: 0; }
.newsletter-form .button { min-height: 44px; padding: 10px 14px; }

.site-footer { padding: 72px 0 24px; color: rgba(255,255,255,.76); background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr 1.3fr; gap: 44px; }
.footer-brand img { width: 205px; }
.footer-brand p { margin-top: 20px; }
.footer-title { margin-bottom: 20px; color: var(--white); font-size: 1.05rem; }
.footer-links { display: grid; gap: 10px; list-style: none; }
.footer-links a { position: relative; font-size: .88rem; transition: color .2s ease, padding-left .2s ease; }
.footer-links a:hover { padding-left: 5px; color: var(--white); }
.footer-contact { display: grid; gap: 12px; font-size: .88rem; }
.footer-contact a, .footer-contact span { display: flex; align-items: flex-start; gap: 9px; }
.footer-contact svg { width: 17px; margin-top: 5px; flex: 0 0 auto; color: var(--red); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: .78rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a:hover { color: var(--white); }
.footer-install { margin-top: 18px; color: var(--white); border-color: rgba(255,255,255,.5); }

.floating-button { position: fixed; right: 22px; z-index: 1100; display: grid; width: 54px; height: 54px; place-items: center; border: 0; border-radius: 50%; color: var(--white); box-shadow: var(--shadow-lg); transition: transform .25s ease, opacity .25s ease; }
.floating-button:hover { transform: translateY(-4px); }
.floating-button svg { width: 25px; height: 25px; }
.whatsapp-button { bottom: 24px; background: var(--success); }
.back-to-top { bottom: 90px; background: var(--red); opacity: 0; visibility: hidden; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.cookie-banner { position: fixed; bottom: 22px; left: 22px; z-index: 1200; width: min(440px, calc(100% - 110px)); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); animation: reveal-up .4s ease both; }
.cookie-banner h2 { margin-bottom: 8px; font-size: 1.05rem; }
.cookie-banner p { margin-bottom: 15px; color: var(--muted); font-size: .82rem; }
.cookie-actions { display: flex; gap: 10px; }

.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.motion-ready .reveal.from-left { transform: translateX(-24px); }
.motion-ready .reveal.from-right { transform: translateX(24px); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translate(0); }
.motion-ready .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.motion-ready .stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }

@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1.11); } }
@keyframes banner-enter { from { opacity: .5; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1120px) {
  .main-nav { grid-template-columns: 1fr auto auto; }
  .nav-menu { position: fixed; top: 122px; right: 0; left: 0; display: block; max-height: calc(100svh - 122px); padding: 18px 24px 28px; overflow-y: auto; color: var(--navy); background: var(--white); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .site-header.scrolled .nav-menu { top: 72px; max-height: calc(100svh - 72px); }
  .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .nav-link { display: flex; width: 100%; min-height: 50px; justify-content: space-between; font-size: 1rem; }
  .nav-link::after { display: none; }
  .submenu-toggle { display: inline-flex; }
  .dropdown { position: static; display: none; width: 100%; padding: 0 0 12px 14px; border: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { transform: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { padding: 9px 10px; }
  .menu-toggle { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 76px 0; }
  .section-compact { padding: 58px 0; }
  .top-bar-inner { justify-content: center; }
  .top-bar-group { gap: 18px; }
  .top-bar-group:last-child, .top-bar-email { display: none !important; }
  .main-nav { min-height: 74px; gap: 10px; }
  .logo, .nav-brand img { width: 146px; padding: 5px 8px; border-radius: 12px; }
  .nav-actions .quote-button { display: none; }
  .nav-menu { top: 112px; }
  .hero-content { width: calc(100% - 32px); padding: 150px 0 124px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero h2 { font-size: 1.35rem; }
  .hero-copy > p { font-size: .98rem; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,27,51,.9), rgba(7,27,51,.55)); }
  .hero-controls { bottom: 26px; }
  .trust-strip { gap: 10px 18px; margin-top: 30px; }
  .page-banner { min-height: 490px; }
  .page-banner-content { padding-top: 154px; padding-bottom: 46px; }
  .grid-2, .grid-3, .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .grid-4 { gap: 16px; }
  .process-grid, .process-grid.three-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-sidebar { position: static; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .cta-band::after { opacity: .45; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-shell { padding: 24px; }
  .footer-grid { gap: 34px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .install-prompt { right: 16px; bottom: 94px; }
  .install-hint { top: 92px; right: 16px; }
}

@media (max-width: 520px) {
  .top-bar { height: 34px; }
  .top-bar-inner { height: 34px; }
  .top-bar-group { width: 100%; justify-content: space-between; gap: 8px; }
  .top-bar a { font-size: .7rem; }
  .top-bar-address { display: none !important; }
  .main-nav { grid-template-columns: 1fr auto auto; min-height: 70px; }
  .logo, .nav-brand img { width: 126px; border-radius: 10px; }
  .nav-actions { gap: 6px; }
  .install-button { width: 42px; min-height: 42px; padding: 8px; border-radius: 10px; }
  .install-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle { width: 42px; height: 42px; }
  .nav-menu { top: 104px; max-height: calc(100svh - 104px); }
  .site-header.scrolled .nav-menu { top: 70px; }
  .hero { min-height: 780px; }
  .hero-content { padding-top: 142px; }
  .hero-actions .button { width: 100%; }
  .slider-arrow { width: 42px; height: 42px; }
  .trust-strip { display: grid; grid-template-columns: 1fr 1fr; font-size: .76rem; }
  .grid-4, .process-grid, .process-grid.three-columns { grid-template-columns: 1fr; }
  .image-panel img { min-height: 280px; }
  .card-body { padding: 22px; }
  .cta-actions, .cta-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { grid-template-columns: 1fr; }
  .cookie-banner { bottom: 16px; left: 16px; width: calc(100% - 96px); padding: 17px; }
  .floating-button { right: 16px; width: 50px; height: 50px; }
  .whatsapp-button { bottom: 18px; }
  .back-to-top { bottom: 78px; }
  .lightbox-body { align-items: flex-start; flex-direction: column; }
  th, td { padding: 16px; }
  td:first-child { white-space: normal; }
}

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

@media print {
  .site-header, .site-footer, .floating-button, .cookie-banner, .install-prompt, .scroll-progress, .cta-band, .hero-controls { display: none !important; }
  .page-banner { min-height: 260px; }
  .page-banner-content { padding: 50px 0; }
  .section { padding: 30px 0; }
  body { color: var(--ink); }
}
