/* ==========================================================================
   AvanceDev — Design Tokens & Base
   ========================================================================== */
:root {
  /* This site only ships a light palette — opt out of browsers' automatic
     dark-mode/forced-dark heuristics, which otherwise re-darken light text
     (e.g. white button labels) sitting on already-dark backgrounds. */
  color-scheme: light;

  /* Brand */
  --color-primary: #000000;
  --color-primary-dark: #222222;
  --gradient-action: linear-gradient(135deg, #444444 0%, #000000 100%);

  /* Result/success emphasis, kept in the site's own black tone (no color
     hue) per brand decision. The terminal keeps its own brighter green
     (--terminal-green) since it sits on a dark surface. */
  --accent: #111111;

  /* Backgrounds */
  --bg-main: #f4f4f4;
  --bg-subtle: #eaeaea;
  --bg-card: #ffffff;

  /* Text */
  --text-main: #111111;
  --text-dim: #444444;
  --text-soft: #666666;
  --text-on-dark: #ffffff;

  /* Support */
  --border-color: #d4d4d4;
  --success: var(--accent);
  --terminal-bg: #111111;
  --terminal-purple: #c678dd;
  --terminal-blue: #61afef;
  --terminal-green: #98c379;
  --dot-red: #ff5f56;
  --dot-yellow: #ffbd2e;
  --dot-green: #27c93f;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 18px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0 12px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 22px 46px -10px rgba(0, 0, 0, 0.32), 0 8px 20px -6px rgba(0, 0, 0, 0.18);

  /* Type */
  --font-main: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-max: 1200px;
  --section-pad: clamp(5rem, 9vw, 8.5rem);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dim);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5.8vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.section {
  padding-block: var(--section-pad);
}

.section-subtle {
  background: var(--bg-subtle);
}

.section-head {
  max-width: 640px;
  margin-bottom: 4.5rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.85rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}

/* Buttons whose label may be too long for very narrow viewports should wrap
   onto a second line and shrink to fit, instead of overflowing their
   container. Nav/hero CTAs stay single-line since they always have room. */
.btn-wrap {
  white-space: normal;
}

.btn-primary {
  background: var(--gradient-action);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow);
}
.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: #fff;
  border-color: #b8b8b8;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.btn-secondary:active { transform: translateY(-1px) scale(0.99); }

.btn-block { width: 100%; }

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(244, 244, 244, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-wordmark {
  height: 26px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 0.2rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--text-main);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-main); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-actions .btn-primary {
  display: none;
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.nav-toggle:hover {
  background: var(--bg-subtle);
  border-color: #b8b8b8;
}
.nav-toggle:active { transform: scale(0.94); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 16px;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 1px solid transparent;
  background: var(--bg-main);
  transition:
    max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease,
    border-color 0.2s ease;
}
.mobile-menu.is-open {
  max-height: 480px;
  opacity: 1;
  padding: 0.5rem 1.5rem 1.5rem;
  border-top-color: var(--border-color);
}
.mobile-menu a:not(.btn) {
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}
.mobile-menu .btn { margin-top: 1rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn-primary { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60vh;
  background: radial-gradient(ellipse at top, #ffffff 0%, #e8e8e8 45%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 640px; }

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

/* Terminal window */
.hero-visual { position: relative; }
.terminal-caption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
}

.terminal {
  background: var(--terminal-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin-inline: auto;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.1rem;
  background: #1a1a1a;
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.red { background: var(--dot-red); }
.terminal-dot.yellow { background: var(--dot-yellow); }
.terminal-dot.green { background: var(--dot-green); }
.terminal-title {
  margin-inline: auto;
  transform: translateX(-16px);
  font-size: 0.78rem;
  color: #888;
  font-weight: 600;
}

.terminal-body {
  padding: 1.5rem 1.4rem 1.75rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.85;
  color: #ccc;
  overflow-x: auto;
}
.terminal-body .cmd { color: #fff; }
.terminal-body .cmd::before { content: "$ "; color: var(--terminal-green); }
.terminal-body .purple { color: var(--terminal-purple); }
.terminal-body .blue { color: var(--terminal-blue); }
.terminal-body .green { color: var(--terminal-green); }
.terminal-body .ok { color: var(--terminal-green); font-weight: 700; }
.terminal-body .muted { color: #666; }

.terminal-body .cmd-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  background: var(--terminal-green);
  vertical-align: text-bottom;
  animation: cmd-blink 0.9s step-end infinite;
}
.terminal-body .cmd-cursor.is-done {
  animation: none;
  opacity: 0;
}
@keyframes cmd-blink {
  50% { opacity: 0; }
}

.build-line {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.build-line.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Cards get a touch of scale on top of the rise so a grid of cards doesn't
   read as the identical entrance as text blocks and stat groups. */
.reveal-card {
  transform: translateY(28px) scale(0.96);
}
.reveal-card.is-visible {
  transform: none;
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
  .hero-content { max-width: none; }
}

/* ==========================================================================
   Social proof strip
   ========================================================================== */
.proof-strip {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 2.5rem;
  text-align: center;
}
.proof-stat .num {
  display: block;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.proof-stat .label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.5;
  margin-top: 0.4rem;
}
@media (min-width: 700px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Cards grid (shared)
   ========================================================================== */
.grid {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2-wide { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-group + .services-group {
  margin-top: 4.5rem;
}
.services-group-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.35s var(--ease);
}
.icon-box svg { width: 28px; height: 28px; }

/* Asymmetric grid instead of a uniform 3-up repeat: the first card per
   group spans full width as a wide horizontal feature; the other two
   sit side by side beneath it as standard cards. */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

.card.service-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}
.card.service-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
  border-color: #c2c2c2;
}
.service-card:hover .icon-box {
  transform: rotate(-8deg) scale(1.12);
}

.service-card-wide {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .card.service-card.service-card-wide {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
  }
  .service-card-wide .icon-box { margin-bottom: 0; }
  .service-card-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }
}

/* Reserve two lines of height so a title that wraps to a second line
   ("O Google Trabalhando por Você") doesn't push its own paragraph down
   relative to single-line titles in the same row. The wide card is alone
   in its row, so it doesn't need the reservation. */
.service-card h3 { margin-bottom: 0.75rem; min-height: 2.3em; }
.service-card-wide h3 { min-height: 0; }
.service-card p { font-size: 0.98rem; }

.service-list {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.service-list svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
  border-color: #c2c2c2;
}

.portfolio-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--gradient-action);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portfolio-media svg,
.portfolio-media img {
  transition: transform 0.5s var(--ease);
}
.portfolio-card:hover .portfolio-media svg,
.portfolio-card:hover .portfolio-media img {
  transform: scale(1.06);
}
.portfolio-media svg {
  width: 46%;
  height: 46%;
  color: rgba(255, 255, 255, 0.92);
}
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; }

.portfolio-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
}

.portfolio-body {
  padding: 1.85rem 1.85rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
/* Reserve two lines so a wrapped title ("Exemplo: lançamento de produto")
   doesn't start its paragraph lower than the single-line titles beside it. */
.portfolio-body h3 { margin-bottom: 0.5rem; min-height: 2.3em; }
.portfolio-body p { font-size: 0.95rem; margin-bottom: 1.25rem; }

.portfolio-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.1rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}
.portfolio-stats > div {
  flex: 1;
  min-width: 0;
}
.portfolio-stats .stat-num {
  display: block;
  font-weight: 800;
  color: var(--success);
  font-size: 1.05rem;
}
.portfolio-stats .stat-label {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 600;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.faq-item {
  padding: 0.4rem 1.75rem;
}
.faq-item:hover {
  border-color: #c2c2c2;
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.02rem;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .icon-plus {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
}
.faq-item .icon-plus::before,
.faq-item .icon-plus::after {
  content: "";
  position: absolute;
  background: var(--text-main);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-item .icon-plus::before { width: 14px; height: 2px; }
.faq-item .icon-plus::after { width: 2px; height: 14px; }
.faq-item[open] .icon-plus::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] .faq-body {
  grid-template-rows: 1fr;
}
.faq-body > p {
  overflow: hidden;
  min-height: 0;
}

.faq-item p {
  padding-bottom: 1.5rem;
  font-size: 0.96rem;
  color: var(--text-dim);
  max-width: 62ch;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; gap: 3.5rem; }
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { font-size: 1.05rem; margin-bottom: 2.25rem; }

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-detail .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 0;
}
.contact-detail .icon-box svg { width: 22px; height: 22px; }
.contact-detail strong { display: block; color: var(--text-main); font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-detail span { font-size: 0.9rem; color: var(--text-soft); }

.social-row { display: flex; gap: 0.75rem; }
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.2s ease, box-shadow 0.3s var(--ease);
}
.social-icon svg { width: 18px; height: 18px; color: var(--text-main); transition: color 0.2s ease; }
.social-icon:hover {
  background: var(--color-primary);
  transform: translateY(-3px) scale(1.06);
  box-shadow: var(--shadow-md);
}
.social-icon:hover svg { color: #fff; }

.form-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #999; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}
.field textarea { resize: vertical; min-height: 130px; }

.field-error {
  display: none;
  font-size: 0.8rem;
  color: #d92d20;
  margin-top: 0.4rem;
  font-weight: 600;
}
.field.has-error input,
.field.has-error textarea { border-color: #d92d20; }
.field.has-error .field-error { display: block; }

/* honeypot — hidden from real users, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.consent-row input {
  margin-top: 0.25rem;
  width: 17px;
  height: 17px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.consent-row label {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.consent-row a { color: var(--text-main); font-weight: 700; text-decoration: underline; }

.form-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 1.1rem;
  justify-content: center;
}
.form-note svg { width: 15px; height: 15px; flex-shrink: 0; }

.form-status {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.25rem;
}
.form-status.show { display: flex; }
.form-status.success { background: #eafbee; color: var(--success); border: 1px solid #b8e9c3; }
.form-status.error { background: #fdeeed; color: #b3261e; border: 1px solid #f3c6c2; }
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ==========================================================================
   Final CTA band
   ========================================================================== */
.cta-band {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: #bbb; font-size: 1.05rem; max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .btn-secondary {
  background: #fff;
  border-color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  padding-block: 4.5rem 2.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.75rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand p {
  font-size: 0.92rem;
  margin-block: 1.1rem 1.5rem;
  max-width: 32ch;
}
.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text-main); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-soft);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: var(--text-soft); }
.footer-legal a:hover { color: var(--text-main); }

/* ==========================================================================
   Legal pages (privacy / terms)
   ========================================================================== */
.legal-page { padding-block: 5rem; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { margin-bottom: 0.75rem; }
.legal-updated { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 2.5rem; }
.legal-page h2 { font-size: 1.3rem; margin-block: 2.25rem 0.9rem; }
.legal-page p, .legal-page li { font-size: 0.98rem; margin-bottom: 0.9rem; }
.legal-page ul { padding-left: 1.4rem; list-style: disc; }
.legal-page a { text-decoration: underline; color: var(--text-main); font-weight: 600; }
.legal-back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 2.5rem; font-weight: 700; color: var(--text-main); }
