/* ==========================================================================
   MAGE SERVICE - LINK NA BIO (STRICT BLACK & RED THEME)
   ========================================================================== */

:root {
  --bg-dark: #07080A;
  --bg-card: rgba(16, 18, 26, 0.9);
  --bg-card-hover: rgba(24, 28, 40, 0.95);
  
  --brand-red: #EE1D23;
  --brand-red-bright: #FF2E34;
  --brand-red-dark: #B50D12;
  --brand-red-glow: rgba(238, 29, 35, 0.45);
  
  --text-main: #FFFFFF;
  --text-sub: #E2E8F0;
  --text-muted: #94A3B8;
  
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-red: rgba(238, 29, 35, 0.4);
  
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 25px rgba(238, 29, 35, 0.4);
}

/* Base Reset & Prevent Default Link Colors */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px 12px 28px;
  overflow-x: hidden;
  position: relative;
}

/* FORCE LINK COLORS TO WHITE (OVERRIDE ALL BROWSER DEFAULTS) */
a, a:hover, a:focus, a:visited, a:active {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Background Effects */
.bg-fx-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.bg-glow-top {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--brand-red) 0%, transparent 70%);
}

.bg-glow-bottom {
  bottom: 20px;
  right: -80px;
  background: radial-gradient(circle, var(--brand-red-dark) 0%, transparent 70%);
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(238, 29, 35, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Main Container */
.bio-container {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   1. HERO HEADER WITH SURVEILLANCE CAMERA BACKGROUND
   ========================================================================== */
.header-card {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.78) 0%, rgba(16, 18, 26, 0.96) 100%), url('Imagens/cctv.png');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 30px 20px 22px;
  text-align: center;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
}

.logo-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 12px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  background: #000000;
  padding: 6px;
  border: 2px solid var(--brand-red);
  box-shadow: 0 0 20px rgba(238, 29, 35, 0.5);
  position: relative;
  z-index: 2;
}

.logo-pulse-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 25px;
  border: 2px solid var(--brand-red);
  opacity: 0.6;
  animation: logoPulse 2.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
  z-index: 1;
}

@keyframes logoPulse {
  0% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 0.2; }
  100% { transform: scale(0.96); opacity: 0.8; }
}

.verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #000;
  color: var(--brand-red);
  font-size: 18px;
  border-radius: 50%;
  z-index: 3;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #FFF !important;
  margin-bottom: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.brand-tagline {
  font-size: 14px;
  color: var(--text-sub) !important;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(238, 29, 35, 0.15);
  border: 1px solid var(--border-red);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #FFF !important;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-red);
  animation: dotBlink 1.5s infinite alternate;
}

@keyframes dotBlink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* ==========================================================================
   2. 1ST BUTTON: VISITE NOSSO SITE
   ========================================================================== */
.btn-website-main {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-website-main:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  box-shadow: 0 0 25px rgba(238, 29, 35, 0.35);
  border-color: var(--brand-red);
}

.btn-website-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(238, 29, 35, 0.18);
  color: var(--brand-red) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.btn-website-text {
  flex: 1;
}

.btn-website-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #FFF !important;
}

.btn-website-sub {
  display: block;
  font-size: 12px;
  color: var(--text-sub) !important;
}

.btn-website-arrow {
  color: var(--brand-red) !important;
  font-size: 14px;
}

/* ==========================================================================
   3. 2ND BUTTON: OFFERS TRIGGER BUTTON
   ========================================================================== */
.btn-offers-pulse {
  width: 100%;
  background: linear-gradient(135deg, rgba(238, 29, 35, 0.28) 0%, rgba(16, 18, 26, 0.95) 100%);
  border: 1.5px solid var(--brand-red);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.btn-offers-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shineWave 3.5s infinite;
}

@keyframes shineWave {
  0% { left: -100%; }
  20% { left: 150%; }
  100% { left: 150%; }
}

.btn-offers-pulse:hover, .btn-offers-pulse:active {
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(135deg, rgba(238, 29, 35, 0.45) 0%, rgba(24, 28, 40, 0.95) 100%);
  box-shadow: 0 0 35px rgba(238, 29, 35, 0.55);
}

.offers-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-red);
  color: #FFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(238, 29, 35, 0.4);
}

.offers-btn-content {
  flex: 1;
}

.offers-badge-tag {
  display: inline-block;
  background: rgba(238, 29, 35, 0.3);
  color: #FF8A8E !important;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.offers-btn-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #FFF !important;
}

.offers-btn-sub {
  display: block;
  font-size: 12px;
  color: var(--text-sub) !important;
}

.offers-arrow {
  color: var(--brand-red) !important;
  font-size: 14px;
}

/* ==========================================================================
   4. BRANCHES SECTION (VIBRANT & ULTRA HIGH CONTRAST BUTTONS)
   ========================================================================== */
.section-label {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label i {
  color: var(--brand-red) !important;
}

.branches-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.branch-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.branch-card:hover {
  border-color: var(--border-red);
  box-shadow: 0 10px 30px -5px rgba(238, 29, 35, 0.25);
}

.branch-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.state-badge {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-red);
  color: #FFF !important;
  box-shadow: 0 0 12px rgba(238, 29, 35, 0.4);
}

.branch-info h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #FFF !important;
}

.branch-info p {
  font-size: 12px;
  color: var(--text-sub) !important;
  display: flex;
  align-items: center;
}

.branch-info p i {
  margin-right: 6px;
  color: var(--brand-red) !important;
  font-size: 13px;
}

/* WhatsApp Direct Action Button */
.btn-wa-direct {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-decoration: none !important;
  padding: 14px 16px !important;
  border-radius: var(--radius-md) !important;
  background: linear-gradient(135deg, #EE1D23 0%, #B50D12 100%) !important;
  border: 1.5px solid #FF4D52 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(238, 29, 35, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  position: relative;
  overflow: hidden;
}

.btn-wa-direct:hover, .btn-wa-direct:active {
  transform: translateY(-2px) scale(1.01) !important;
  background: linear-gradient(135deg, #FF2E34 0%, #EE1D23 100%) !important;
  box-shadow: 0 8px 25px rgba(238, 29, 35, 0.65) !important;
}

.btn-wa-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF !important;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-wa-text-wrap {
  flex: 1;
  margin-left: 12px;
}

.btn-wa-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #FFFFFF !important;
}

.btn-wa-number {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 700;
}

.btn-wa-arrow {
  font-size: 16px;
  color: #FFFFFF !important;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.btn-wa-direct:hover .btn-wa-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* ==========================================================================
   5. FAST QUOTE SIMULATOR
   ========================================================================== */
.quote-simulator-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-card);
}

.simulator-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.simulator-header i {
  font-size: 22px;
  color: var(--brand-red) !important;
  background: rgba(238, 29, 35, 0.15);
  padding: 10px;
  border-radius: 12px;
}

.simulator-header h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #FFF !important;
}

.simulator-header p {
  font-size: 12px;
  color: var(--text-muted) !important;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub) !important;
  margin-bottom: 8px;
}

.step-num {
  background: var(--brand-red);
  color: #FFF !important;
  font-size: 11px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Radio Tiles */
.radio-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.radio-tile input {
  display: none;
}

.tile-content {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tile-content i {
  display: block;
  font-size: 18px;
  color: var(--text-muted) !important;
  margin-bottom: 4px;
}

.tile-content span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub) !important;
}

.radio-tile input:checked + .tile-content {
  background: rgba(238, 29, 35, 0.25);
  border-color: var(--brand-red);
}

.radio-tile input:checked + .tile-content i {
  color: var(--brand-red) !important;
}

.radio-tile input:checked + .tile-content span {
  color: #FFF !important;
  font-weight: 800;
}

/* Checkbox Tiles */
.checkbox-tiles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkbox-tile {
  display: block;
  cursor: pointer;
}

.checkbox-tile input {
  display: none;
}

.checkbox-tile span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub) !important;
  transition: all 0.2s ease;
}

.checkbox-tile span i {
  color: var(--text-muted) !important;
  font-size: 14px;
}

.checkbox-tile input:checked + span {
  background: rgba(238, 29, 35, 0.25);
  border-color: var(--brand-red);
  color: #FFF !important;
  font-weight: 800;
}

.checkbox-tile input:checked + span i {
  color: var(--brand-red) !important;
}

/* Unit Selector (FIXED DYNAMIC SIZE EXPANSION ON SELECTION) */
.unit-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.unit-radio {
  width: 100%;
  display: block;
}

.unit-radio input {
  display: none;
}

.unit-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  min-height: 44px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted) !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.unit-box i {
  margin-right: 4px;
  flex-shrink: 0;
}

.unit-radio input:checked + .unit-box {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #FFF !important;
  font-weight: 700; /* Identical font-weight so box dimensions stay exactly the same */
  box-shadow: 0 0 12px rgba(238, 29, 35, 0.4);
}

.btn-quote-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #FFF !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(238, 29, 35, 0.45);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-quote-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ==========================================================================
   6. FOOTER (CLEAN SINGLE LINE)
   ========================================================================== */
.bio-footer {
  text-align: center;
  padding: 24px 10px 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 10px;
}

.bio-footer p {
  font-size: 12px;
  color: var(--text-muted) !important;
  font-weight: 500;
}

/* ==========================================================================
   7. MODAL & OFFERS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: #0E1016;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1.5px solid var(--border-red);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-red) !important;
  letter-spacing: 1px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #FFF !important;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFF !important;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.highlight-offer {
  border-color: var(--brand-red);
  box-shadow: 0 0 15px rgba(238, 29, 35, 0.25);
}

.offer-img-wrap {
  position: relative;
  height: 130px;
  width: 100%;
}

.offer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-badge-percent {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-red);
  color: #FFF !important;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
}

.offer-content {
  padding: 14px;
}

.offer-content h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #FFF !important;
  margin-bottom: 6px;
}

.offer-content p {
  font-size: 12px;
  color: var(--text-sub) !important;
  line-height: 1.4;
  margin-bottom: 12px;
}

.btn-claim-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%) !important;
  color: #FFF !important;
  text-decoration: none !important;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 12px rgba(238, 29, 35, 0.4);
}
