@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ===================================================
   CASA DOS ADESIVOS — v2 "Imperial Craft"
   Paleta: Azul Elétrico + Vermelho Carmesim + Dourado
   Suporte a Dark Mode (padrão) + Light Mode
   =================================================== */

:root {
  /* ── DARK MODE (padrão) ──────────────────────────── */
  --bg-main: #0b0b0f;
  --bg-secondary: #111117;
  --bg-card: rgba(20, 20, 28, 0.75);
  --bg-card-hover: rgba(28, 28, 40, 0.92);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(29, 111, 242, 0.4);

  /* Textos */
  --text-primary: #f5f5f8;
  --text-secondary: #9aa3b8;
  --text-muted: #5c6680;

  /* Paleta "Imperial Craft" */
  --accent-blue:    #38bdf8; /* Azul claro para o tema escuro */
  --accent-red:     #E63946;
  --accent-gold:    #F4A100;

  /* Gradientes e Cores Sólidas */
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --btn-gradient: linear-gradient(90deg, #38bdf8, #0284c7);
  --btn-gradient-hover: linear-gradient(90deg, #0284c7, #38bdf8);
  --gold-gradient: linear-gradient(135deg, #F4A100, #FFD060);
  --hero-glow-1: rgba(56, 189, 248, 0.13);
  --hero-glow-2: rgba(2, 132, 199, 0.1);

  /* Navbar scrolled */
  --navbar-bg: rgba(11, 11, 15, 0.88);
  --navbar-mobile-bg: rgba(11, 11, 15, 0.97);

  /* Footer */
  --footer-bg: #070709;

  /* Inputs */
  --input-bg: rgba(11, 11, 15, 0.8);
  --select-option-bg: #111117;

  /* Sombras */
  --shadow-glow: 0 0 28px rgba(56, 189, 248, 0.3);
  --shadow-glow-red: 0 0 28px rgba(230, 57, 70, 0.3);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.55);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Toggle transition speed */
  --theme-transition: 0.35s ease;
}

/* =====================================================
   LIGHT MODE — html[data-theme="light"]
   ===================================================== */
html[data-theme="light"] {
  --bg-main: #F3F5FC;
  --bg-secondary: #E8ECF7;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border-color: rgba(15, 23, 65, 0.1);
  --border-glow: rgba(29, 111, 242, 0.35);

  --text-primary: #0F1729;
  --text-secondary: #4A5578;
  --text-muted: #8892AA;

  /* Acentos ligeiramente mais ricos para contraste em fundo claro */
  --accent-blue:    #1044A5; /* Azul escuro para o tema claro */
  --accent-red:     #C93040;
  --accent-gold:    #C97F00;

  --accent-gradient: linear-gradient(135deg, #1044A5 0%, #05266E 100%);
  --btn-gradient:    linear-gradient(90deg, #1044A5, #05266E);
  --btn-gradient-hover: linear-gradient(90deg, #05266E, #1044A5);
  --gold-gradient:   linear-gradient(135deg, #C97F00, #F0B429);
  --hero-glow-1: rgba(16, 68, 165, 0.08);
  --hero-glow-2: rgba(5, 38, 110, 0.05);

  --navbar-bg: rgba(243, 245, 252, 0.92);
  --navbar-mobile-bg: rgba(243, 245, 252, 0.99);

  --footer-bg: #DDE2F2;

  --input-bg: rgba(255, 255, 255, 0.9);
  --select-option-bg: #F3F5FC;

  --shadow-glow: 0 0 28px rgba(16, 68, 165, 0.2);
  --shadow-glow-red: 0 0 28px rgba(201, 48, 64, 0.2);
  --shadow-card: 0 4px 24px rgba(15, 23, 65, 0.1);
}

/* ===================== RESET & BASE ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Transição suave ao alternar tema — aplicada nos elementos principais */
body,
.navbar,
.about,
.portfolio,
.contact-section,
.footer,
.service-card,
.about-card,
.why-box,
.portfolio-item,
.contact-box,
.form-input,
.form-select,
.form-textarea {
  transition:
    background-color var(--theme-transition),
    background var(--theme-transition),
    border-color var(--theme-transition),
    color var(--theme-transition),
    box-shadow var(--theme-transition);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 10% 15%, rgba(29, 111, 242, 0.09) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 85%, rgba(244, 161, 0, 0.07) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Light mode: blobs mais suaves no fundo */
html[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse at 10% 15%, rgba(21, 88, 214, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 85%, rgba(201, 127, 0, 0.05) 0%, transparent 45%);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb {
  background: #23232e;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-main);
  transition: background var(--theme-transition);
}
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c5cbd8; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* ===================== UTILITY ===================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradiente azul → vermelho no texto */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradiente dourado no texto */
.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

/* Badge de seção — azul translúcido */
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(29, 111, 242, 0.12);
  border: 1px solid rgba(29, 111, 242, 0.35);
  border-radius: var(--radius-full);
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  letter-spacing: 0.2px;
}

/* Botão primário: gradiente azul → vermelho, texto branco */
.btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--btn-gradient-hover);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary span, .btn-primary > * { position: relative; z-index: 1; }

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px rgba(29, 111, 242, 0.45);
}

/* Botão secundário: ghost */
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

/* Light mode: botão secundário com borda azul já visível */
html[data-theme="light"] .btn-secondary {
  background: rgba(21, 88, 214, 0.06);
  border-color: rgba(21, 88, 214, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(29, 111, 242, 0.5);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(29, 111, 242, 0.2);
}

html[data-theme="light"] .btn-secondary:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* Botão WhatsApp: verde */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.5);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.35s ease;
}

.navbar.scrolled {
  padding: 12px 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 0 0 rgba(29, 111, 242, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Halo azul sutil ao redor da logo */
  filter: drop-shadow(0 0 8px rgba(29, 111, 242, 0.5));
  transition: filter 0.3s ease;
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 0 14px rgba(29, 111, 242, 0.75));
}

/* Nome da empresa com cor de acento */
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--btn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Sublinhado com gradiente azul → vermelho */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--btn-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.btn-whatsapp { color: #ffffff !important; }
.nav-links a.btn-whatsapp::after { display: none !important; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Agrupa toggle + burger na direita da navbar */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

/* Blob azul — direita */
.hero::before {
  content: '';
  position: absolute;
  top: 5%;
  right: -8%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--hero-glow-1) 0%, transparent 65%);
  filter: blur(70px);
  z-index: 0;
}

/* Blob vermelho — esquerda-baixo */
.hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--hero-glow-2) 0%, transparent 65%);
  filter: blur(70px);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Badge de destaque no hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(29, 111, 242, 0.08);
  border: 1px solid rgba(29, 111, 242, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 26px;
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Ponto pulsante em azul */
.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-blue);
  flex-shrink: 0;
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 111, 242, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(29, 111, 242, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 111, 242, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 38px;
  max-width: 560px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}

/* Destaques numéricos — dourado */
.hero-highlights {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.highlight-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  /* Vermelho nos números */
  color: var(--accent-red);
}

.highlight-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Imagem hero */
.hero-visual { position: relative; }

.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /*
    isolation: isolate cria novo contexto de empilhamento,
    mantendo o overflow:hidden ativo durante transforms 3D
    e evitando as bordas quadradas durante o scale da imagem.
  */
  isolation: isolate;
  border: 1px solid rgba(29, 111, 242, 0.25);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(230, 57, 70, 0.08);
  transform: perspective(1000px) rotateY(-5deg) rotateX(4deg);
  transition: transform 0.55s ease, box-shadow 0.55s ease;
  will-change: transform;
}

.image-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(29, 111, 242, 0.3);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
  /*
    border-radius: inherit garante que o próprio pixel da imagem
    já tenha as bordas arredondadas — fallback caso o clip do
    overflow falhe durante a composição GPU do transform.
  */
  border-radius: inherit;
  transition: transform 0.7s ease;
  will-change: transform;
}

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

/* Badge flutuante sobre a imagem */
.floating-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(11, 11, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

/*
  O floating-badge fica SEMPRE sobre a imagem (fundo fixamente escuro).
  Independente do tema, o texto aqui deve ser sempre claro.
*/
.floating-badge strong,
.floating-badge b {
  color: #ffffff;
}
/* Anula qualquer `color: var(--text-secondary)` inline no span */
.floating-badge span {
  color: rgba(255, 255, 255, 0.65) !important;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  /* Ícone com fundo azul translúcido */
  background: rgba(29, 111, 242, 0.18);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ===================== ABOUT ===================== */
.about {
  background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 8%, var(--bg-secondary) 92%, transparent 100%);
  position: relative;
  overflow: hidden;
}

/* Linha decorativa no topo da seção About */
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 26px;
  border-radius: var(--radius-md);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Linha superior colorida nas cards About */
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--btn-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.about-card:hover::before { transform: scaleX(1); }

.about-card:hover {
  border-color: rgba(29, 111, 242, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

/* Icon wrapper SVG — About cards */
.about-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(29, 111, 242, 0.1);
  border: 1px solid rgba(29, 111, 242, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 14px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.about-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  transition: all 0.3s ease;
}

.about-card:hover .about-card-icon {
  background: var(--btn-gradient);
  border-color: transparent;
  color: #ffffff;
  transform: scale(1.08);
}

.about-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-primary);
}

.about-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================== SERVICES ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Barra superior gradiente azul→vermelho */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(29, 111, 242, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before { opacity: 1; }

/* Icon wrapper SVG — Service cards */
.service-icon {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  background: rgba(29, 111, 242, 0.1);
  border: 1px solid rgba(29, 111, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 22px;
  transition: all 0.35s ease;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  transition: all 0.3s ease;
}

/* Ícone com gradiente no hover */
.service-card:hover .service-icon {
  background: var(--btn-gradient);
  border-color: transparent;
  color: #ffffff;
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(29, 111, 242, 0.3);
}

/* Featured Service Card (ACM & PVC Highlight) */
.service-card.featured {
  border: 1px solid rgba(244, 161, 0, 0.35);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(244, 161, 0, 0.03) 100%);
}

html[data-theme="light"] .service-card.featured {
  border: 1px solid rgba(201, 127, 0, 0.35);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(201, 127, 0, 0.03) 100%);
}

.service-card.featured::before {
  background: var(--gold-gradient);
  opacity: 0.85;
}

.service-card.featured .service-icon {
  background: rgba(244, 161, 0, 0.1);
  border-color: rgba(244, 161, 0, 0.3);
  color: #ffb01f;
}

html[data-theme="light"] .service-card.featured .service-icon {
  background: rgba(201, 127, 0, 0.1);
  border-color: rgba(201, 127, 0, 0.3);
  color: #c97f00;
}

.service-card.featured:hover {
  border-color: rgba(244, 161, 0, 0.6);
  box-shadow: 0 20px 45px rgba(244, 161, 0, 0.15);
  background: linear-gradient(180deg, var(--bg-card-hover) 0%, rgba(244, 161, 0, 0.05) 100%);
}

html[data-theme="light"] .service-card.featured:hover {
  border-color: rgba(201, 127, 0, 0.6);
  box-shadow: 0 20px 45px rgba(201, 127, 0, 0.15);
  background: linear-gradient(180deg, var(--bg-card-hover) 0%, rgba(201, 127, 0, 0.05) 100%);
}

.service-card.featured:hover .service-icon {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(244, 161, 0, 0.3);
}

.service-badge-featured {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gold-gradient);
  color: #121214;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .service-badge-featured {
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(201, 127, 0, 0.2);
}


.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.service-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.87rem;
  margin-bottom: 8px;
}

/* Checkmark SVG nas listas de serviço */
.service-list li::before { display: none; } /* remove o ::before em texto */

.service-list li svg {
  width: 15px;
  height: 15px;
  color: var(--accent-blue);
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

/* ===================== PORTFOLIO ===================== */
.portfolio {
  background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 8%, var(--bg-secondary) 92%, transparent 100%);
  position: relative;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
}

.filter-btn {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: rgba(29, 111, 242, 0.4);
  color: var(--text-primary);
}

/* Botão ativo: gradiente azul → vermelho */
.filter-btn.active {
  background: var(--btn-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(29, 111, 242, 0.35);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.4s ease;
}

.portfolio-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
  border-color: rgba(29, 111, 242, 0.35);
}

.portfolio-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img { transform: scale(1.08); }

.portfolio-overlay {
  padding: 22px 24px;
  /*
    Dark mode: gradiente semi-transparente funciona bem sobre bg escuro.
    Light mode: bg-card vira branco; a opacidade 0.65 cria um cinza feio.
    Solução: opacidade máxima em ambos os stops no light mode.
  */
  background: linear-gradient(to top, rgba(11, 11, 15, 0.97) 0%, rgba(11, 11, 15, 0.75) 100%);
}

html[data-theme="light"] .portfolio-overlay {
  /* Totalmente opaco: elimina o bleed do bg-card branco */
  background: linear-gradient(to top, #080810 0%, rgba(10, 10, 18, 0.97) 100%);
}

/* Categoria: azul claro legível sobre o overlay sempre escuro */
.portfolio-category {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #60a5fa;           /* azul claro — legível em fundo escuro */
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

/* No dark mode, usa o azul mais vibrante do tema */
html:not([data-theme="light"]) .portfolio-category {
  color: #7db9ff;
}

/*
  portfolio-title: overlay é SEMPRE escuro — texto sempre branco.
  Sem var(--text-primary) aqui para evitar o escuro-sobre-escuro.
*/
.portfolio-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

/* ===================== WHY CHOOSE US ===================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.why-box {
  text-align: center;
  padding: 38px 24px;
  /* Fundo mais visível — era quase invisível */
  background: rgba(29, 111, 242, 0.05);
  border: 1px solid rgba(29, 111, 242, 0.14);
  border-radius: var(--radius-lg);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Brilho suave no canto superior */
.why-box::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 111, 242, 0.15), transparent 70%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.why-box:hover::before { opacity: 1; }

.why-box:hover {
  background: rgba(29, 111, 242, 0.09);
  border-color: rgba(29, 111, 242, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Icon wrapper SVG — Why-box */
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(29, 111, 242, 0.1);
  border: 1px solid rgba(29, 111, 242, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 18px;
  transition: all 0.35s ease;
}

.why-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

.why-box:hover .why-icon {
  background: var(--btn-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(29, 111, 242, 0.35);
  transform: scale(1.1);
}

.why-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.why-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===================== CONTACT ===================== */
.contact-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.contact-box {
  background: var(--bg-card);
  /* Borda com brilho azul */
  border: 1px solid rgba(29, 111, 242, 0.2);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(230, 57, 70, 0.06);
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(29, 111, 242, 0.12);
  border: 1px solid rgba(29, 111, 242, 0.22);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.info-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.info-item:hover .info-item-icon {
  background: rgba(230, 57, 70, 0.15);
  border-color: rgba(230, 57, 70, 0.3);
}

.info-item-text h5 {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.info-item-text p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Formulário */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 18px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* Focus em azul */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(29, 111, 242, 0.15);
  background: rgba(29, 111, 242, 0.04);
}

.form-select option { background: var(--select-option-bg); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--footer-bg);
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--border-color);
  position: relative;
}

/* Linha decorativa topo do footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-blue) 50%, transparent 100%);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-blue);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title { font-size: 2.8rem; }

  .contact-box { padding: 32px; }

  /* No mobile: formulário aparece primeiro, informações de contato abaixo */
  .quote-form-container { order: 1; }
  .contact-info          { order: 2; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navbar-mobile-bg);
    backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
  }

  .nav-links.active { display: flex; }

  .mobile-menu-btn { display: block; }

  .section-title { font-size: 2.1rem; }

  .hero-title { font-size: 2.4rem; }

  .hero-highlights { gap: 20px; flex-wrap: wrap; }

  .form-row { grid-template-columns: 1fr; }

  /* Hero image size reduction on mobile */
  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }
  .image-card {
    transform: none !important;
  }
  .floating-badge {
    display: none;
  }

  /* Grid of 2x2 for about feature cards */
  .about-feature-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .about-card {
    padding: 16px;
  }
  .about-card h4 {
    font-size: 1rem;
  }
  .about-card p {
    font-size: 0.8rem;
  }

  /* Grid of 2 columns for Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .portfolio-img {
    height: 150px;
  }
  .portfolio-overlay {
    padding: 12px 14px;
  }
  .portfolio-title {
    font-size: 0.95rem;
  }
  .portfolio-category {
    font-size: 0.7rem;
  }

  /* Grid of 2x2 for Nossos Serviços */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .service-card {
    padding: 20px 16px;
  }
  .service-card .service-list {
    display: none;
  }
  .service-card .service-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .service-card .service-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .service-badge-featured {
    font-size: 0.65rem;
    padding: 3px 8px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.9rem; }
  .contact-box { padding: 24px; }
}

/* =====================================================
   BOTAO TOGGLE DE TEMA (sun/moon)
   ===================================================== */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(29, 111, 242, 0.1);
  border: 1px solid rgba(29, 111, 242, 0.25);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(29, 111, 242, 0.2);
  border-color: rgba(29, 111, 242, 0.5);
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(29, 111, 242, 0.3);
}

.theme-toggle:active {
  transform: scale(0.95) rotate(20deg);
}

/* Ícone do sol e da lua */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.4s ease;
  line-height: 1;
}

/* Dark mode: mostra lua, esconde sol */
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Light mode: mostra sol, esconde lua */
html[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
html[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }

/* Light mode: estilo do toggle fica mais quente */
html[data-theme="light"] .theme-toggle {
  background: rgba(201, 127, 0, 0.12);
  border-color: rgba(201, 127, 0, 0.35);
  color: var(--accent-gold);
}

html[data-theme="light"] .theme-toggle:hover {
  background: rgba(201, 127, 0, 0.22);
  border-color: rgba(201, 127, 0, 0.6);
  box-shadow: 0 0 16px rgba(201, 127, 0, 0.3);
}

/* Ajuste: em mobile o toggle fica na linha com o menu burger */
@media (max-width: 768px) {
  .theme-toggle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  /* Grouping: burger + toggle ficam lado a lado */
  .nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* ===================== MAP SECTION ===================== */
.map-section {
  padding: 100px 0 0 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-main) 100%);
  transition: background var(--theme-transition);
}
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  line-height: 0;
  transition: all 0.3s ease;
}
.map-wrapper:hover {
  border-color: rgba(29, 111, 242, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] .map-wrapper:hover {
  border-color: rgba(201, 127, 0, 0.35);
  box-shadow: 0 10px 30px rgba(201, 127, 0, 0.1);
}
.map-wrapper iframe {
  width: 100%;
  height: 350px;
  border: 0;
  vertical-align: middle;
}

/* ── Botões de navegação Waze / Google Maps ─────────────── */
.map-nav-btns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.map-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  flex: 1;
  min-width: 160px;
  justify-content: center;
}

/* Waze — azul turquesa */
.map-nav-waze {
  background: rgba(0, 210, 215, 0.12);
  border-color: rgba(0, 210, 215, 0.3);
  color: #00d2d7;
}
.map-nav-waze:hover {
  background: rgba(0, 210, 215, 0.22);
  border-color: rgba(0, 210, 215, 0.6);
  box-shadow: 0 0 18px rgba(0, 210, 215, 0.25);
  transform: translateY(-2px);
}

/* Google Maps — azul claro */
.map-nav-gmaps {
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.3);
  color: #4285f4;
}
.map-nav-gmaps:hover {
  background: rgba(66, 133, 244, 0.22);
  border-color: rgba(66, 133, 244, 0.6);
  box-shadow: 0 0 18px rgba(66, 133, 244, 0.25);
  transform: translateY(-2px);
}

/* Apple Maps — prateado/cinza neutro */
.map-nav-apple {
  background: rgba(180, 180, 190, 0.10);
  border-color: rgba(180, 180, 190, 0.30);
  color: #b4b4be;
}
.map-nav-apple:hover {
  background: rgba(180, 180, 190, 0.20);
  border-color: rgba(180, 180, 190, 0.55);
  box-shadow: 0 0 18px rgba(180, 180, 190, 0.18);
  transform: translateY(-2px);
}

/* Light mode: ajuste de contraste nos botões de mapa */
html[data-theme="light"] .map-nav-waze  { color: #007f82; }
html[data-theme="light"] .map-nav-gmaps { color: #1a5fcc; }
html[data-theme="light"] .map-nav-apple { color: #555566; border-color: rgba(85,85,102,0.35); background: rgba(85,85,102,0.07); }

/* Logo Waze: alterna entre versão dark e light conforme o tema */
.waze-logo-light            { display: none; }          /* dark mode: usa a versão turquesa clara */
html[data-theme="light"] .waze-logo-dark  { display: none; }   /* light mode: esconde a turquesa clara */
html[data-theme="light"] .waze-logo-light { display: inline; } /* light mode: mostra a turquesa escura */

/* ── Info item clicável (telefone + e-mail) ─────────────── */
.info-item-clickable {
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}
.info-item-clickable:hover,
.info-item-clickable:focus-visible {
  background: rgba(56, 189, 248, 0.07);
  transform: translateX(4px);
  outline: none;
}

/* Hint de "toque para escolher" */
.contact-tap-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Phone Action Sheet (bottom-sheet) ──────────────────── */
.phone-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.phone-sheet-overlay.active {
  display: block;
  opacity: 1;
}

.phone-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-radius: 20px 20px 0 0;
  padding: 16px 24px 36px;
  z-index: 9001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}
.phone-sheet.active {
  transform: translateY(0);
}

.phone-sheet-handle {
  width: 44px;
  height: 5px;
  background: var(--border-color);
  border-radius: 99px;
  margin: 0 auto 8px;
  flex-shrink: 0;
}

.phone-sheet-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.phone-sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.phone-sheet-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}
.phone-sheet-whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.phone-sheet-call {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-blue);
}
.phone-sheet-call:hover {
  background: rgba(56, 189, 248, 0.22);
  transform: translateY(-1px);
}

.phone-sheet-cancel {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.phone-sheet-cancel:hover {
  background: rgba(255,255,255,0.04);
}

/* Light mode: phone sheet */
html[data-theme="light"] .phone-sheet {
  background: #ffffff;
  border-color: #e0e0e8;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.15);
}
html[data-theme="light"] .phone-sheet-call {
  color: #0369a1;
  border-color: rgba(3,105,161,0.35);
  background: rgba(3,105,161,0.08);
}



