:root {
  --bg: #fafaf7;
  --bg-soft: #f2f3ee;
  --surface: #ffffff;
  --surface-2: #f7f8f4;
  --ink: #0e1410;
  --ink-dim: #586060;
  --ink-mute: #8a928c;
  --accent: #00c95c;          /* verde do logo (mais escuro para contraste em fundo claro) */
  --accent-bright: #22f37a;   /* verde elétrico do logo */
  --accent-glow: #22f37a44;
  --accent-soft: #e7fcf0;
  --solar: #f5b800;           /* amarelo solar (mais escuro para contraste) */
  --solar-soft: #fff7d6;
  --line: #e3e6df;
  --line-strong: #cdd1c8;
  --danger: #e53939;
  --radius: 14px;
  --maxw: 1240px;
  --shadow-sm: 0 2px 6px rgba(14,20,16,0.04);
  --shadow-md: 0 8px 24px rgba(14,20,16,0.06);
  --shadow-lg: 0 20px 50px rgba(14,20,16,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Bricolage Grotesque', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, #22f37a18 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, #f5b80012 0%, transparent 50%);
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.025;
  z-index: 1;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Skip link (acessibilidade) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  z-index: 9999;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent);
}

/* Stats - reset dl/dt/dd para visual */
.hero-stats dt, .hero-stats dd { display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250,250,247,0.85);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 15px; color: var(--ink); }
.brand-text span { font-size: 11px; color: var(--ink-dim); font-weight: 400; }

.nav-links {
  display: flex; gap: 32px; align-items: center;
  list-style: none;
}
.nav-links > li {
  position: relative;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover { color: var(--accent); }
.nav-links > li > a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links > li > a:not(.btn):hover::after { width: 100%; }

/* Submenu dropdown */
.sub-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  min-width: 200px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  margin-top: 8px;
  box-shadow: var(--shadow-lg);
}
.has-sub:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}
.sub-menu li a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.sub-menu li a::after { display: none !important; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--accent);
  color: #052a13 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.menu-toggle { display: none; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-sun {
  position: absolute;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--solar) 0%, transparent 60%);
  opacity: 0.22;
  filter: blur(40px);
  animation: pulseSun 8s ease-in-out infinite;
}
@keyframes pulseSun {
  0%,100% { transform: translateY(-50%) scale(1); opacity: 0.22; }
  50% { transform: translateY(-50%) scale(1.1); opacity: 0.32; }
}

.hero-content {
  position: relative; z-index: 3;
  max-width: 880px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 28px;
  background: var(--surface);
  animation: fadeUp 0.7s ease forwards;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(44px, 7.5vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 28px;
  color: var(--ink);
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero h1 em {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  bottom: 4px; left: -4px; right: -4px;
  height: 14px;
  background: var(--solar);
  z-index: -1;
  opacity: 0.55;
  border-radius: 4px;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-dim);
  max-width: 620px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 0.8s 0.4s ease both;
  box-shadow: var(--shadow-sm);
}
.stat {
  background: var(--surface);
  padding: 24px 22px;
}
.stat-num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-family: 'Bricolage Grotesque', sans-serif;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION HEADERS ===== */
section { padding: 120px 0; position: relative; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 40px; margin-bottom: 64px;
}
.section-head .left { max-width: 700px; }
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.label::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
.section-title {
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
}
.section-title em {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}
.section-desc {
  font-size: 16px;
  color: var(--ink-dim);
  max-width: 380px;
}

/* ===== SOLUÇÕES ===== */
#solucoes { background: var(--bg-soft); }

.sol-tabs {
  display: flex; gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.sol-tab {
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.sol-tab:hover { color: var(--ink); }
.sol-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.sol-panel { display: none; animation: fadeIn 0.4s ease; }
.sol-panel.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 20px 40px -20px var(--accent-glow);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--solar));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover::before { transform: scaleX(1); }

.card.featured {
  background: linear-gradient(160deg, #ffffff, var(--accent-soft));
  border-color: var(--accent);
}
.card.featured::before { transform: scaleX(1); }

.card-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
  z-index: 2;
}

.card-image {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.card:hover .card-image img {
  transform: scale(1.05);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(0,201,92,0.2);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--accent); }

.card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.card .price-tag {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 15px;
  color: #b88500;
  margin-bottom: 16px;
}
.card p {
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 22px;
  line-height: 1.6;
}
.card ul {
  list-style: none;
  margin-bottom: 26px;
  flex-grow: 1;
}
.card ul li {
  font-size: 13px;
  color: var(--ink-dim);
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 10px;
}
.card ul li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.card ul li:first-child { border-top: none; }
.card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  transition: gap 0.2s;
  margin-top: auto;
}
.card-cta:hover { gap: 14px; }

/* ===== SOBRE NÓS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--ink);
}
.about-text h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.about-text p {
  font-size: 17px;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.about-text strong { color: var(--ink); }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.feat {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.feat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feat-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.feat-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
}
.feat-desc {
  font-size: 13px;
  color: var(--ink-dim);
}

.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), var(--solar-soft));
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.about-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(34,243,122,0.25), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(245,184,0,0.18), transparent 40%);
}
.visual-house {
  width: 75%;
  position: relative;
  z-index: 2;
}
.visual-quote {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  z-index: 3;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.visual-quote span {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PROCESSO ===== */
#processo { background: var(--bg-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step {
  padding: 36px 28px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  counter-increment: step;
  position: relative;
  transition: background 0.3s;
}
.step:last-child { border-right: none; }
.step:hover { background: var(--accent-soft); }
.step::before {
  content: "0" counter(step);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 56px;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 16px; right: 22px;
  line-height: 1;
}
.step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 40px;
  color: var(--ink);
}
.step p {
  font-size: 13px;
  color: var(--ink-dim);
}

/* ===== ORÇAMENTO ===== */
.quote-wrap {
  background: linear-gradient(160deg, var(--surface), var(--accent-soft));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.quote-wrap::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  position: relative;
  z-index: 2;
}
.quote-grid h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--ink);
}
.quote-grid h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.quote-info p {
  font-size: 16px;
  color: var(--ink-dim);
  margin-bottom: 28px;
}
.quote-perks { list-style: none; }
.quote-perks li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  color: var(--ink-dim);
  font-size: 14px;
}
.quote-perks li svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  flex-shrink: 0;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
form label {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
form input, form select, form textarea {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,201,92,0.12);
}
form textarea { resize: vertical; min-height: 110px; }
.submit-btn {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 16px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.submit-btn:hover {
  background: var(--accent);
  color: #052a13;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-glow);
}

.form-msg {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
}
.form-msg.success {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: #006633;
}

/* ===== CONTACTO ===== */
#contacto { background: var(--bg-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.contact-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(0,201,92,0.25);
  display: grid; place-items: center;
  margin: 0 auto 22px;
}
.contact-icon svg { width: 28px; height: 28px; stroke: var(--accent); }
.contact-card h4 {
  font-size: 14px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 10px;
  font-weight: 500;
}
.contact-card .value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  word-break: break-word;
}
.contact-card:hover .value { color: var(--accent); }

/* ===== REDES SOCIAIS ===== */
.social-bar {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.social-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  margin-bottom: 18px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  transition: all 0.25s ease;
}
.social-link svg {
  width: 22px;
  height: 22px;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #052a13;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  background: var(--surface);
  position: relative;
  z-index: 2;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.foot-brand p {
  color: var(--ink-dim);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}
.foot-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 18px;
  font-weight: 500;
}
.foot-col ul { list-style: none; }
.foot-col ul li { margin-bottom: 10px; }
.foot-col ul a {
  color: var(--ink-dim);
  font-size: 14px;
  transition: color 0.2s;
}
.foot-col ul a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 13px;
  color: var(--ink-mute);
}
.foot-bottom .made {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  z-index: 100;
  animation: floatPulse 2s ease-in-out infinite;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }
@keyframes floatPulse {
  0%,100% { box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 40px rgba(37,211,102,0.7); }
}

/* ============================================================
   FIX GERAIS PARA FORMS EM MOBILE
   Aplicáveis em todos os viewports para prevenir overflow.
   ============================================================ */
form input, form select, form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0; /* fix bug flexbox overflow */
}
form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%),
    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 1px),
    calc(100% - 15px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
form select::-ms-expand { display: none; }
/* Prevenir overflow horizontal geral do site */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe { max-width: 100%; height: auto; }

/* ============================================================
   TABLET / MOBILE GRANDE (≤ 980px)
   ============================================================ */
@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { max-height: 600px; overflow-y: auto; }
  .nav-links li {
    width: 100%;
    border-top: 1px solid var(--line);
  }
  .nav-links li a {
    display: block;
    padding: 18px 24px;
  }
  .nav-links li a::after { display: none; }
  .nav-links .btn-primary {
    margin: 16px 24px;
    justify-content: center;
  }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--bg-soft);
    border: none;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    padding: 0;
  }
  .sub-menu li a {
    padding-left: 48px !important;
    font-size: 13px;
  }
  .menu-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
  }
  .menu-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:nth-child(odd) { border-right: 1px solid var(--line); }
  .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .quote-wrap { padding: 36px 24px; }
  form { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  section { padding: 80px 0; }
}

/* ============================================================
   MOBILE (≤ 640px) — otimizações para telemóveis normais
   ============================================================ */
@media (max-width: 640px) {
  /* Container geral com padding menor */
  .container, .wrap { padding-left: 16px; padding-right: 16px; }
  section { padding: 60px 0; }

  /* Formulário de orçamento — foco em prevenir overflow */
  .quote-wrap {
    padding: 24px 16px;
    border-radius: 14px;
    margin-left: 0; margin-right: 0;
  }
  form input, form select, form textarea {
    padding: 12px 14px;
    font-size: 16px; /* CRÍTICO: evita zoom automático do iOS Safari */
    border-radius: 10px;
  }
  form select { padding-right: 40px; background-position: right 12px center; }
  form label { font-size: 11px; }
  .submit-btn { padding: 14px 20px; font-size: 14px; }

  /* Hero */
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 34px !important; line-height: 1.1; }
  .hero-tagline { font-size: 15px; }
  .hero-stats { padding: 24px 16px; gap: 12px; }
  .hero-stat .num { font-size: 24px; }
  .hero-stat .lbl { font-size: 10px; }

  /* Secções */
  .section-eyebrow { font-size: 10px; }
  .section-head h2 { font-size: 26px !important; }

  /* Cartões */
  .card { padding: 24px 20px; }
  .card h3 { font-size: 18px; }

  /* About */
  .about-grid { gap: 30px; }
  .about-content h2 { font-size: 26px; }
  .about-features { gap: 12px; }
  .feat-card { padding: 20px 16px; }

  /* Processo/Steps */
  .step { padding: 24px 20px; }
  .step .num { font-size: 34px; }

  /* Soluções */
  .sol-tabs { flex-wrap: wrap; gap: 8px; }
  .sol-tab { flex: 1 0 auto; font-size: 12px; padding: 10px 14px; }
  .sol-item { padding: 20px 16px; }

  /* Contactos */
  .contact-item { padding: 16px; }

  /* Footer */
  .footer { padding: 40px 0 20px; }
  .foot-brand-text { font-size: 13px; }

  /* WhatsApp float button */
  .whatsapp-float {
    bottom: 20px; right: 20px;
    width: 56px; height: 56px;
  }
  .whatsapp-float svg { width: 26px; height: 26px; }

  /* Navbar mobile */
  .navbar-inner { padding: 0 16px; }
  .brand-text { font-size: 15px; }
}

/* ============================================================
   MOBILE PEQUENO (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero h1 { font-size: 28px !important; }
  .section-head h2 { font-size: 22px !important; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .about-features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none !important; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .sol-tab { font-size: 11px; padding: 8px 12px; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
