/* ==========================================================================
   Solidy Obras - Construtora Residencial (Casas de Pequeno, Médio e Grande Porte)
   Paleta: Amarelo (#FFB800), Preto (#121417), Cinza (#1A1D21, #F4F6F9), Branco (#FFFFFF)
   ========================================================================== */

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

:root {
  /* Brand Colors */
  --primary-yellow: #FFB800;
  --primary-yellow-hover: #E0A200;
  --yellow-glow: rgba(255, 184, 0, 0.25);
  
  --bg-black: #121417;
  --bg-dark-card: #1A1D21;
  --bg-dark-hover: #22262C;
  --border-dark: #2E343B;
  
  --bg-light: #F4F6F9;
  --bg-white: #FFFFFF;
  --border-light: #E2E7ED;

  --text-white: #FFFFFF;
  --text-muted: #9DA6B2;
  --text-dark: #121417;
  --text-dark-muted: #626C77;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1280px;
  --header-height: 84px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
.font-heading { font-family: var(--font-heading); }
.text-yellow { color: var(--primary-yellow) !important; }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-yellow);
  color: var(--bg-black);
  box-shadow: 0 4px 20px var(--yellow-glow);
}

.btn-primary:hover {
  background-color: var(--primary-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 184, 0, 0.4);
}

.btn-whatsapp-action {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-action:hover {
  background: linear-gradient(135deg, #20bd5a, #0e7568);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
  border-color: var(--primary-yellow);
  color: var(--primary-yellow);
  background-color: rgba(255, 184, 0, 0.05);
}

/* Floating Action Buttons - FIXED AT BOTTOM LEFT */
.floating-left-actions {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.floating-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.floating-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: var(--transition);
}

.floating-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.floating-btn.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-btn.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.floating-btn.btn-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.floating-btn .tooltip {
  position: absolute;
  left: 66px;
  background-color: var(--bg-black);
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid var(--border-dark);
}

.floating-btn .tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent var(--bg-black) transparent transparent;
}

.floating-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
  left: 68px;
}

/* Header & Topbar */
.topbar {
  background-color: #0B0C0E;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 0;
}

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

.topbar-info {
  display: flex;
  gap: 20px;
}

.topbar-info-item span {
  color: var(--primary-yellow);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(18, 20, 23, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(18, 20, 23, 0.98);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.drawer-header,
.drawer-actions {
  display: none;
}

.desktop-cta {
  display: inline-flex;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-white);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-yellow);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-yellow);
}

.nav-link:hover::after {
  width: 100%;
}

/* Botão Hambúrguer - Padrão Tecnointegra */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: #18181b;
  border: 1px solid var(--primary-yellow);
  border-radius: var(--radius);
  color: var(--primary-yellow);
  font-size: 1.35rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.mobile-toggle:hover,
.mobile-toggle:active {
  background: #22262c;
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--yellow-glow);
}

/* Overlay & Trava de Scroll Body */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden !important;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(180deg, rgba(18, 20, 23, 0.72) 0%, rgba(18, 20, 23, 0.96) 100%), url('../assets/images/house-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 184, 0, 0.14);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 50px;
  color: var(--primary-yellow);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 720px;
  line-height: 1.7;
}

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

/* Residential Stats Bar */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(26, 29, 33, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--border-dark);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.8vw, 2.2rem);
  font-weight: 800;
  color: var(--primary-yellow);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Sections */
.section {
  padding: 90px 0;
  position: relative;
}

.section-dark { background-color: var(--bg-black); }
.section-card-bg { background-color: var(--bg-dark-card); }
.section-light { background-color: var(--bg-light); color: var(--text-dark); }

.section-header {
  margin-bottom: 50px;
}

.section-header.center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  font-family: var(--font-heading);
  color: var(--primary-yellow);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
}

.section-light .section-title { color: var(--text-dark); }
.section-desc { margin-top: 14px; color: var(--text-muted); font-size: 1.05rem; }
.section-light .section-desc { color: var(--text-dark-muted); }

/* House Types Grid */
.house-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.type-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.type-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-yellow);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.type-badge {
  display: inline-block;
  background: rgba(255, 184, 0, 0.12);
  color: var(--primary-yellow);
  border: 1px solid rgba(255, 184, 0, 0.3);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}

.type-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.type-meter {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-yellow);
  font-weight: 700;
  margin-bottom: 16px;
}

.type-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.type-features {
  margin-top: auto;
  border-top: 1px solid var(--border-dark);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-white);
}

.type-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-features li span {
  color: var(--primary-yellow);
}

/* Specialties Grid */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.specialty-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
}

.specialty-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-yellow);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.specialty-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.specialty-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-yellow);
  margin-bottom: 8px;
}

.specialty-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Portfolio Grid & Organized House Cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 540px));
  justify-content: center;
  gap: 32px;
  align-items: stretch;
}

.project-card {
  background: var(--bg-black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  outline: none;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--primary-yellow);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.project-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  max-height: 360px;
  overflow: hidden;
  background: #0b0c0e;
}

.project-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-container img {
  transform: scale(1.06);
}

.project-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(18, 20, 23, 0.88);
  backdrop-filter: blur(8px);
  color: var(--primary-yellow);
  border: 1px solid rgba(255, 184, 0, 0.45);
  padding: 5px 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

.project-photo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(18, 20, 23, 0.88);
  backdrop-filter: blur(8px);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 14px;
}

.project-header-group {
  border-left: 3px solid var(--primary-yellow);
  padding-left: 14px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 4px;
}

.project-subtitle {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-yellow);
  line-height: 1.4;
  margin: 0;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.project-card-footer {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.3);
  transition: var(--transition);
}

.project-card:hover .project-cta-arrow {
  background: var(--primary-yellow);
  color: var(--bg-black);
  transform: translateX(4px);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-white);
}

.form-control {
  width: 100%;
  background: var(--bg-black);
  border: 1px solid var(--border-dark);
  color: var(--text-white);
  padding: 13px 16px;
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px var(--yellow-glow);
}

/* Financing Box */
.financing-box {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), rgba(26, 29, 33, 0.95));
  border: 1px solid var(--primary-yellow);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.financing-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--bg-black);
  margin: 8px 0 12px;
}

.financing-desc {
  color: var(--text-dark-muted);
  font-size: 1rem;
  max-width: 700px;
  line-height: 1.65;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.testimonial-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 24px;
  color: var(--text-white);
  font-size: 0.92rem;
  line-height: 1.65;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-dark);
  padding-top: 18px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-yellow);
  color: var(--bg-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-white);
}

.author-loc {
  font-size: 0.82rem;
  color: var(--primary-yellow);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.96rem;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.contact-quick-card {
  background: var(--bg-black);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-quick-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary-yellow);
}

.contact-quick-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-direct-list {
  margin-top: 28px;
  border-top: 1px solid var(--border-dark);
  padding-top: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  word-break: break-word;
}

.contact-link {
  color: var(--primary-yellow);
  text-decoration: underline;
}

/* Modal & Responsive Gallery */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(10, 11, 13, 0.92);
  border: 1px solid var(--border-dark);
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary-yellow);
  color: var(--bg-black);
  transform: scale(1.08);
}

.modal-carousel-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
  margin-bottom: 22px;
}

.modal-img-wrap {
  position: relative;
  width: 100%;
  height: clamp(260px, 54vh, 520px);
  background: #07080a;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: pan-y;
}

.modal-img-wrap img,
.modal-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07080a;
}

.modal-img-wrap video {
  display: none;
}

.modal-slide-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(6px);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 10;
  pointer-events: none;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 11, 13, 0.85);
  color: #fff;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition);
}

.carousel-nav-btn.prev-btn {
  left: 14px;
}

.carousel-nav-btn.next-btn {
  right: 14px;
}

.carousel-nav-btn:hover {
  background: var(--primary-yellow);
  color: var(--bg-black);
  border-color: var(--primary-yellow);
}

.modal-thumbs-strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-dark) transparent;
}

.modal-thumb {
  width: 68px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: all 0.2s ease;
}

.modal-thumb.active {
  border-color: var(--primary-yellow);
  opacity: 1;
}

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

.modal-details {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text-white);
  margin: 4px 0 6px;
}

.modal-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-yellow);
  font-size: 0.98rem;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--primary-yellow);
}

.modal-desc {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-white);
  margin-bottom: 0;
}

/* Toast */
.toast-msg {
  position: fixed;
  top: 100px;
  right: 24px;
  left: 24px;
  max-width: 440px;
  margin-left: auto;
  background: var(--primary-yellow);
  color: var(--bg-black);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 10000;
  transform: translateY(-20px);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  background-color: #0B0C0E;
  border-top: 1px solid var(--border-dark);
  padding: 70px 0 30px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 16px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 26px;
  height: 2px;
  background: var(--primary-yellow);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-yellow);
  padding-left: 4px;
}

.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: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Responsive - Tablet & Smaller Desktop */
@media (max-width: 1024px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .financing-box {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive - Mobile & Large Phones */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 18px;
  }

  /* Limpeza do Cabeçalho Mobile */
  .topbar {
    display: none !important;
  }

  .navbar {
    top: 0 !important;
    height: 72px;
  }

  .desktop-cta {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 56px;
    background-attachment: scroll;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    margin-bottom: 36px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Slide-out Dark Menu Drawer */
  .nav-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background-color: #18181b;
    border-left: 1px solid var(--border-dark);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 60px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
  }

  .nav-container.active {
    transform: translateX(0);
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-dark);
  }

  .drawer-brand img {
    height: 38px;
    width: auto;
    object-fit: contain;
  }

  .drawer-close {
    width: 40px;
    height: 40px;
    background: #22262c;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: var(--primary-yellow);
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }

  .drawer-close:hover {
    background: var(--primary-yellow);
    color: var(--bg-black);
    border-color: var(--primary-yellow);
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    transition: var(--transition);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link:active {
    background: rgba(255, 184, 0, 0.1);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    padding-left: 20px;
  }

  .drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-bottom: 40px;
  }

  .drawer-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-item:not(:last-child) {
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 14px;
  }

  .specialties-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
  }

  .specialty-card {
    padding: 20px 16px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-img-container {
    min-height: 220px;
  }

  .project-body {
    padding: 22px 20px;
  }

  .project-title {
    font-size: 1.3rem;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-quick-card,
  .financing-box,
  .testimonial-card {
    padding: 24px 20px;
  }

  .financing-box .btn {
    width: 100%;
  }

  /* Modal Mobile Adaptation */
  .modal-overlay {
    padding: 12px;
  }

  .modal-container {
    padding: 18px 16px 22px;
    max-height: 94vh;
    max-height: 94dvh;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .modal-img-wrap {
    height: clamp(210px, 38vh, 340px);
  }

  .carousel-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .carousel-nav-btn.prev-btn {
    left: 8px;
  }

  .carousel-nav-btn.next-btn {
    right: 8px;
  }

  .modal-thumb {
    width: 58px;
    height: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .floating-left-actions {
    bottom: 16px;
    left: 16px;
    gap: 10px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .floating-btn .tooltip {
    display: none;
  }
}

/* Responsive - Small Phones */
@media (max-width: 480px) {
  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 13px 20px;
    font-size: 0.88rem;
  }
}
