:root {
  --bg: #050b16;
  --bg-elevated: rgba(10, 22, 41, 0.72);
  --surface: rgba(12, 24, 43, 0.76);
  --surface-strong: rgba(15, 29, 51, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --text: #edf5ff;
  --text-soft: #9fb4d1;
  --heading: #ffffff;
  --primary: #0d8bff;
  --primary-strong: #006dff;
  --accent: #34d8ff;
  --accent-soft: rgba(52, 216, 255, 0.14);
  --success: #17c85e;
  --danger: #ff6b6b;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1240px;
  --header-height: 92px;
}

body[data-theme="light"] {
  --bg: #f4f8ff;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-soft: rgba(8, 33, 64, 0.03);
  --text: #18314f;
  --text-soft: #607a98;
  --heading: #071a31;
  --primary: #007af8;
  --primary-strong: #005fe0;
  --accent: #0fb7ff;
  --accent-soft: rgba(15, 183, 255, 0.12);
  --border: rgba(8, 33, 64, 0.08);
  --shadow-lg: 0 28px 70px rgba(17, 57, 96, 0.14);
  --shadow-md: 0 16px 42px rgba(17, 57, 96, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; }
.glow-1 { width: 420px; height: 420px; top: -120px; left: -90px; background: rgba(13, 139, 255, 0.38); animation: drift 16s ease-in-out infinite; }
.glow-2 { width: 460px; height: 460px; right: -140px; top: 25vh; background: rgba(52, 216, 255, 0.2); animation: drift 18s ease-in-out infinite reverse; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  opacity: 0.4;
}

.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.section { position: relative; padding: 130px 0; }
.section-sm { padding: 100px 0; }
body[data-page="servicos"] .page-hero { padding-bottom: 30px; }
body[data-page="servicos"] .page-hero + .section-alt { padding-top: 40px; padding-bottom: 40px; }
body[data-page="servicos"] .page-hero + .section-alt + .section { padding-top: 40px; }
.section-alt { background: linear-gradient(180deg, transparent, var(--surface-soft), transparent); }
.glass-card {
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav-shell {
  min-height: var(--header-height);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 10px 0;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 184px; max-width: 38vw; height: auto; }
.brand-logo--light { display: none; }
body[data-theme="light"] .brand-logo--dark { display: none; }
body[data-theme="light"] .brand-logo--light { display: block; }
.nav { display: flex; justify-content: center; gap: 26px; align-items: center; }
.nav a {
  position: relative; font-size: 0.96rem; font-weight: 600; color: var(--text-soft); transition: color 0.25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
  background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px;
}
.nav a:hover, .nav a.active { color: var(--heading); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: transform 0.25s ease, opacity 0.25s ease; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.theme-toggle, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border); cursor: pointer; font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.theme-toggle:hover, .btn:hover { transform: translateY(-2px); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--heading);
  cursor: pointer; font-weight: 700; transition: transform 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.theme-toggle { width: 50px; padding: 0; }
.theme-toggle .theme-icon { font-size: 24px; line-height: 1; }
.lang-toggle { width: 50px; padding: 0; }
.lang-toggle > .material-symbols-outlined { font-size: 22px; color: var(--accent); }
.lang-dropdown { position: relative; }
.lang-dropdown summary { list-style: none; }
.lang-dropdown summary::-webkit-details-marker { display: none; }
.lang-flag { display: block; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 168px;
  margin: 0; padding: 6px; list-style: none; border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elevated) 97%, transparent);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.lang-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: var(--text-soft); font-weight: 600; font-size: 0.92rem; transition: background 0.18s ease, color 0.18s ease;
}
.lang-menu a:hover { background: var(--surface); color: var(--heading); }
.lang-menu a.active { color: var(--heading); background: var(--accent-soft); }

/* Client logo marquee */
.clients-heading { text-align: center; display: flex; flex-direction: column; gap: 6px; margin-bottom: 30px; }
.clients-heading strong { font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: 0.01em; font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--heading); }
.clients-heading span { color: var(--text-soft); }
.marquee {
  position: relative; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee-scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-logo {
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.55rem; letter-spacing: 0.08em;
  color: var(--text-soft); opacity: 0.65; white-space: nowrap; transition: opacity 0.25s ease, color 0.25s ease;
}
.client-logo:hover { opacity: 1; color: var(--heading); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* Solutions grid (UniFi-style cards) */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 18px; }
.solution-card { display: flex; flex-direction: column; gap: 13px; padding: 22px; border-radius: var(--radius-lg); }
.solution-card.reveal,
.icon-card.reveal,
.project-card.reveal,
.kpi-card.reveal,
.page-card.reveal {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.6s ease;
}
.solution-card.reveal.visible:hover,
.icon-card.reveal.visible:hover,
.project-card.reveal.visible:hover,
.kpi-card.reveal.visible:hover,
.page-card.reveal.visible:hover {
  transform: translateY(-6px) scale(1.035); box-shadow: var(--shadow-lg); z-index: 2;
}
.point-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.point-card:hover { transform: translateY(-6px) scale(1.035); box-shadow: var(--shadow-lg); z-index: 2; }
.solution-head { display: flex; align-items: center; gap: 10px; }
.solution-icon { font-size: 24px; color: var(--accent); }
.solution-head h3 { margin: 0; font-size: 1.05rem; color: var(--heading); }
.solution-tagline { display: block; color: var(--heading); font-size: 0.98rem; font-weight: 700; }
.solution-desc { margin: 0; color: var(--text-soft); font-size: 0.9rem; line-height: 1.5; }
.solution-media {
  margin-top: auto; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-strong), var(--accent-soft));
}
.solution-media img { width: 100%; height: 100%; object-fit: cover; }
.solution-media-placeholder { font-size: 54px; color: var(--text-soft); opacity: 0.35; }
.btn-primary {
  color: white; background: linear-gradient(135deg, var(--primary-strong), var(--accent)); border-color: transparent; box-shadow: 0 14px 32px rgba(13, 139, 255, 0.28);
}
.btn-secondary { background: var(--surface); color: var(--heading); }
.btn-block { width: 100%; }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 45; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #25d366, #128c4f); color: #fff;
  box-shadow: 0 18px 36px rgba(10, 168, 74, 0.32);
}
.whatsapp-icon { width: 32px; height: 32px; }

.hero, .page-hero { padding-top: 72px; }
.hero-grid, .split-section, .contact-layout, .feature-layout, .project-layout, .about-layout {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; align-items: center;
}
.hero-copy h1, .section-copy h2, .section-heading h2, .contact-panel h2, .cta-copy h2, .page-hero-copy h1, .kpi-card strong {
  margin: 0; color: var(--heading); font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.06;
}
.hero-copy h1, .page-hero-copy h1 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); max-width: 18ch; }
.lead, .section-copy p, .section-heading p, .contact-panel p, .cta-copy p, .project-card p, .info-list li, .service-list li, .kpi-card span, .page-card p, .contact-info-item a, .contact-info-item span, .form-note {
  color: var(--text-soft);
}
.hero-copy .lead, .page-hero-copy p { max-width: 68ch; margin: 22px 0 28px; font-size: 1.08rem; }
.section-chip, .eyebrow, .badge-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.09); background: linear-gradient(135deg, var(--accent-soft), rgba(13,139,255,0.08)); color: var(--accent); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.02em;
}
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.hero-points, .metric-banner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.point-card, .kpi-card { padding: 18px; border-radius: var(--radius-md); }
.point-card strong, .kpi-card strong { display: block; color: var(--heading); margin-bottom: 8px; font-size: 1rem; }
.point-card span, .kpi-card span { display: block; font-size: 0.94rem; }
.hero-media, .page-hero-media { position: relative; padding-bottom: 46px; }
.hero-media { padding-bottom: 0; }
.hero-image-card, .page-hero-image, .image-card, .project-card-image, .contact-visual, .bento-card { overflow: hidden; border-radius: var(--radius-xl); }
.hero-image-card img, .page-hero-image img, .bento-card img, .contact-visual img, .image-card img, .project-card-image img { width: 100%; height: 100%; object-fit: cover; }
.floating-panel { animation: none; }
.hero-badge, .page-badge {
  position: absolute; left: -28px; bottom: 0; max-width: 380px; padding: 22px; border-radius: 22px;
}
.hero-badge h3, .page-badge h3, .page-card h3, .project-card h3, .contact-form h3, .service-card h3, .icon-card h3 {
  margin: 0 0 12px; color: var(--heading); font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: 0.01em; line-height: 1.2;
}
.hero-badge h3, .page-badge h3 { font-size: 1.1rem; }
.hero-badge ul, .page-badge ul, .page-card ul, .service-list, .info-list { margin: 0; padding-left: 18px; color: var(--text-soft); }
.hero-badge li + li, .page-badge li + li, .page-card li + li, .service-list li + li, .info-list li + li { margin-top: 8px; }
.trust-strip { margin-top: 34px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.trust-item { padding: 18px 16px; text-align: center; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); color: var(--heading); font-weight: 700; letter-spacing: 0.01em; }
.section-copy h2, .section-heading h2, .contact-panel h2, .cta-copy h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); max-width: 16ch; }
.section-copy p, .section-heading p, .contact-panel p, .cta-copy p { margin: 18px 0 0; font-size: 1.02rem; }
.section-heading { max-width: 820px; margin-bottom: 38px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading.center h2, .section-heading.center p { margin-left: auto; margin-right: auto; }
.image-stack { display: grid; gap: 18px; }
.stack-card { border-radius: var(--radius-xl); overflow: hidden; }
.image-card.lg { min-height: 430px; }
.info-card { padding: 24px; }
.info-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--heading); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 0 6px rgba(13,139,255,0.12); }
.services-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.icon-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.service-card, .icon-card { position: relative; overflow: hidden; padding: 28px 22px; border-radius: var(--radius-lg); }
.service-card::before, .icon-card::before { content: ""; position: absolute; inset: auto -50px -50px auto; width: 130px; height: 130px; background: radial-gradient(circle, rgba(52,216,255,0.22), transparent 70%); }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, rgba(13,139,255,0.16), rgba(52,216,255,0.12)); color: var(--accent); margin-bottom: 18px; border: 1px solid var(--border); }
.service-icon svg { width: 28px; height: 28px; }
.service-icon .material-symbols-outlined { font-size: 30px; }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(240px, auto); gap: 18px; }
.bento-card { position: relative; min-height: 260px; }
.bento-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,8,16,0.05), rgba(3,8,16,0.72)); }
.bento-card > * { position: relative; z-index: 1; }
.bento-card.wide { grid-column: span 7; grid-row: span 2; }
.bento-card.tall { grid-column: span 5; grid-row: span 2; }
.bento-card:not(.wide):not(.tall) { grid-column: span 4; }
.logo-card { background: var(--surface-strong); }
.bento-copy { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.bento-copy.compact h3 { max-width: 14ch; }
.eyebrow { margin-bottom: 10px; padding: 8px 12px; }
.page-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { display: grid; gap: 18px; padding: 28px; border-radius: var(--radius-xl); }
.project-card-image { min-height: 230px; }
.cta-banner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; padding: 36px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(13,139,255,0.18), rgba(52,216,255,0.08)), linear-gradient(180deg, var(--surface), rgba(255,255,255,0.03));
}
.contact-layout { align-items: stretch; }
.contact-panel, .contact-form, .page-card, .kpi-card { padding: 30px; border-radius: var(--radius-xl); }
.contact-side { display: grid; gap: 18px; }
.contact-visual { min-height: 260px; }
.contact-info-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.contact-info-item strong { display: block; margin-bottom: 4px; color: var(--heading); }
.mini-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(13,139,255,0.18), rgba(52,216,255,0.14)); border: 1px solid var(--border); color: var(--accent); flex-shrink: 0; }
.mini-icon .material-symbols-outlined { font-size: 22px; }

/* Material Symbols base */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal;
  text-transform: none; display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full-span { grid-column: 1 / -1; }
.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: color-mix(in srgb, var(--text-soft) 90%, transparent); }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(52,216,255,0.45); box-shadow: 0 0 0 4px rgba(52,216,255,0.12); transform: translateY(-1px); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-note { margin: 0; font-size: 0.9rem; }
.hidden-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.alert {
  margin-bottom: 18px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--border);
}
.alert-success { background: rgba(23,200,94,0.14); color: #dffff0; }
.alert-error { background: rgba(255,107,107,0.14); color: #ffe2e2; }
.map-frame-wrap { border-radius: 20px; overflow: hidden; min-height: 320px; border: 1px solid var(--border); }
.map-frame { width: 100%; min-height: 320px; border: 0; display: block; }
.footer { margin-top: 40px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding: 64px 0 56px;
}
.footer-brand { max-width: 340px; }
.footer-logo { display: inline-flex; }
.footer-logo .brand-logo { width: 200px; max-width: 60vw; height: auto; }
.footer-tagline { margin: 18px 0 22px; color: var(--text-soft); line-height: 1.55; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 {
  margin: 0 0 6px; color: var(--heading); font-family: "Inter", sans-serif;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
}
.footer-col a, .footer-address { color: var(--text-soft); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--heading); }
.footer-address { line-height: 1.5; }
.footer-contact-item { display: inline-flex; align-items: flex-start; gap: 9px; color: var(--text-soft); line-height: 1.45; }
.footer-contact-item .material-symbols-outlined { font-size: 20px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.footer-bottom { border-top: 1px solid var(--border); background: var(--surface-soft); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px 0; }
.footer-bottom-inner span { color: var(--text-soft); font-size: 0.9rem; }
.footer-tag { letter-spacing: 0.03em; font-size: 0.72rem; opacity: 0.85; }
.footer-tag a { color: var(--accent); transition: color 0.2s ease; }
.footer-tag a:hover { color: var(--heading); text-decoration: underline; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes floatCard { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes drift { 0%,100% { transform: translate3d(0,0,0) scale(1);} 50% { transform: translate3d(20px,26px,0) scale(1.06);} }

@media (max-width: 1180px) {
  .hero-grid, .split-section, .contact-layout, .feature-layout, .project-layout, .about-layout, .page-grid-2, .project-grid, .cta-banner {
    grid-template-columns: 1fr;
  }
  .hero-copy h1, .section-copy h2, .section-heading h2, .contact-panel h2, .cta-copy h2, .page-hero-copy h1 { max-width: none; }
  .hero-points, .metric-banner, .services-grid, .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-badge, .page-badge { position: static; margin-top: 18px; max-width: none; }
}

@media (max-width: 920px) {
  .nav-shell { grid-template-columns: auto 1fr auto; position: relative; padding: 8px 0; }
  .nav-toggle { display: inline-block; justify-self: end; }
  .nav {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0; display: grid; gap: 12px; padding: 18px; border-radius: 24px;
    background: color-mix(in srgb, var(--bg-elevated) 96%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.25s ease, transform 0.25s ease;
  }
  body.menu-open .nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-actions { display: none; }
  .hero, .page-hero, .section { padding: 88px 0; }
  .bento-card.wide, .bento-card.tall, .bento-card:not(.wide):not(.tall) { grid-column: span 12; grid-row: span 1; min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 52px 0 44px; }
  .footer-brand { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero-copy h1, .page-hero-copy h1 { font-size: clamp(1.45rem, 5.5vw, 1.9rem); }
  .hero-points, .services-grid, .icon-grid, .trust-strip, .form-grid, .metric-banner { grid-template-columns: 1fr; }
  .theme-toggle, .btn { width: 100%; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .whatsapp-float { right: 12px; bottom: 12px; }
}

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