:root {
  --color-bg-dark: #1F2A44;
  --color-cta: #2CC6B6;
  --color-light: #F2F2F2;
  --color-text: #0E0E0E;
  --color-white: #FFFFFF;
  --shadow-soft: 0 18px 45px rgba(10, 24, 55, 0.18);
  --shadow-card: 0 10px 28px rgba(12, 31, 66, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--color-text);
  font-weight: 700;
}

a {
  text-decoration: none;
}

.max-600 {
  max-width: 600px;
}

.section-padding {
  padding: 72px 0;
}

.bg-light-alt {
  background: #F7F9FC;
}

.bg-darker {
  background: #151D30;
}

.eyebrow {
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-cta);
  text-transform: uppercase;
  display: block;
}

.section-title {
  font-size: 2.1rem;
  margin: 6px 0 12px;
}

.text-cta {
  color: var(--color-cta) !important;
}

.ratio-9x16 {
  --bs-aspect-ratio: 177.77777778%;
}

/* Header & Nav */
.custom-nav {
  background: rgba(31, 42, 68, 0.96);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.custom-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.custom-nav .nav-link:hover,
.custom-nav .nav-link.active {
  color: var(--color-cta);
  background: rgba(44, 198, 182, 0.1);
}

/* Buttons */
.btn-cta {
  background: var(--color-cta);
  color: var(--color-bg-dark);
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(44, 198, 182, 0.35);
  transition: all 0.25s ease;
}

.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(44, 198, 182, 0.5);
  color: #FFFFFF !important;
}

.btn-outline-light {
  border-radius: 999px;
  font-weight: 600;
  border-width: 2px;
  padding: 10px 22px;
}

.btn-outline-dark {
  border-radius: 999px;
  font-weight: 600;
  border-width: 2px;
  padding: 10px 22px;
}

.btn-outline-dark:hover {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

/* 1. Hero Section */
.hero {
  min-height: 85vh;
  background: radial-gradient(120% 120% at 20% 20%, rgba(44, 198, 182, 0.18), transparent 50%),
              var(--color-bg-dark);
  padding: 130px 0 80px;
  position: relative;
}

.badge-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(44, 198, 182, 0.15);
  color: var(--color-cta);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(44, 198, 182, 0.3);
}

.hero-title {
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
}

.hero-image-wrap {
  position: relative;
}

.hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-image-badge {
  position: absolute;
  bottom: -16px;
  left: 16px;
  background: rgba(24, 33, 53, 0.94);
  border: 1px solid rgba(44, 198, 182, 0.4);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* 2. Como Funciona */
.how-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(31, 42, 68, 0.06);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(12, 31, 66, 0.12);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(44, 198, 182, 0.2);
}

.how-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(44, 198, 182, 0.12);
  color: var(--color-bg-dark);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

/* 3. Principais Serviços */
.service-feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(31, 42, 68, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(12, 31, 66, 0.14);
}

.service-feature-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0B1220;
}

.service-feature-img img,
.service-feature-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-feature-card:hover .service-feature-img img,
.service-feature-card:hover .service-feature-img video {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(31, 42, 68, 0.88);
  color: var(--color-white);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 2;
}

.badge-laser {
  background: rgba(44, 198, 182, 0.92) !important;
  color: var(--color-bg-dark) !important;
}

.service-feature-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-feature-body p {
  flex-grow: 1;
}

/* 4. Categorias */
.category-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(31, 42, 68, 0.06);
  transition: all 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(44, 198, 182, 0.2);
  border-color: var(--color-cta);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(44, 198, 182, 0.1);
  color: var(--color-bg-dark);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  transition: all 0.25s ease;
}

.category-card:hover .category-icon {
  background: var(--color-cta);
  color: var(--color-bg-dark);
}

.category-title {
  font-size: 0.9rem;
  margin-bottom: 3px;
  color: var(--color-bg-dark);
}

.category-desc {
  font-size: 0.76rem;
  color: #666;
  margin: 0;
}

/* 5. Trabalhos Recentes */
.portfolio-item-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(31, 42, 68, 0.06);
  transition: transform 0.25s ease;
}

.portfolio-item-card:hover {
  transform: translateY(-4px);
}

.portfolio-item-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #F4F6FB;
}

.portfolio-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.portfolio-cat-chip {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(31, 42, 68, 0.85);
  color: var(--color-cta);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  z-index: 2;
}

.portfolio-item-copy {
  padding: 14px 16px;
}

.portfolio-item-copy h5,
.portfolio-item-copy h6 {
  font-size: 0.95rem;
  margin: 0;
}

/* CTA Compacto Horizontal para Ideias Diferentes */
.custom-idea-banner {
  background: linear-gradient(135deg, #1F2A44, #151D30);
  border: 1px solid rgba(44, 198, 182, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.custom-idea-banner h4,
.custom-idea-banner h3 {
  color: #FFFFFF !important;
  font-weight: 700;
}

.custom-idea-banner p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Modal Title Color */
.modal-title,
#reelModalTitle,
#reelVideoModalTitle {
  color: #FFFFFF !important;
  font-weight: 700;
}

/* 6. Vídeos / Reels Grid */
.reel-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(31, 42, 68, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(12, 31, 66, 0.12);
}

.reel-poster-wrap {
  position: relative;
  aspect-ratio: 9/16;
  background: #0B1220;
  overflow: hidden;
}

.reel-poster,
.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.reel-card:hover .reel-poster,
.reel-card:hover .reel-video {
  transform: scale(1.04);
  opacity: 0.9;
}

.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(44, 198, 182, 0.92);
  color: var(--color-bg-dark);
  border: none;
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  z-index: 3;
}

.reel-play-btn:hover,
.reel-play-btn:focus {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-cta);
  color: #FFFFFF !important;
}

.reel-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

.reel-info {
  padding: 12px 14px;
}

.reel-info h6 {
  font-size: 0.88rem;
  margin: 0;
}

/* 7. Contact Section & FAQ */
.contact-section {
  background: var(--color-bg-dark);
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-card .form-control,
.contact-card .form-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  padding: 10px 14px;
  border-radius: 8px;
}

.contact-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(44, 198, 182, 0.25);
}

.contact-card .form-select option {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.custom-accordion-dark .accordion-item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
}

.custom-accordion-dark .accordion-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 16px;
}

.custom-accordion-dark .accordion-button:not(.collapsed) {
  background: rgba(44, 198, 182, 0.15);
  color: var(--color-cta);
  box-shadow: none;
}

.custom-accordion-dark .accordion-button::after {
  filter: invert(1);
}

.custom-accordion-dark .accordion-body {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  padding: 12px 16px;
}

/* Floating WhatsApp Button (Fixed Bottom-Right) */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFF;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  z-index: 1040;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus {
  transform: scale(1.08);
  color: #FFF;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.6);
}

/* Floating Scroll-to-Top Button (Fixed Bottom-Left) */
.scroll-top-btn {
  position: fixed;
  left: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(31, 42, 68, 0.92);
  color: var(--color-cta);
  border: 1px solid rgba(44, 198, 182, 0.4);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
  background: var(--color-cta);
  color: var(--color-bg-dark);
  border-color: var(--color-cta);
  transform: translateY(-2px);
  outline: 2px solid var(--color-cta);
}

/* Footer Hover Links & Myrotech Logo */
.hover-cta:hover {
  color: var(--color-cta) !important;
}

.myrotech-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.myrotech-link:hover {
  opacity: 0.8;
}

.myrotech-footer-logo {
  height: 26px;
  width: auto;
  max-width: 140px;
  display: block;
}

/* Responsive Tweaks */
@media (max-width: 991.98px) {
  .hero {
    padding-top: 110px;
  }
  .section-padding {
    padding: 54px 0;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .contact-card {
    padding: 20px;
  }
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    right: 14px;
    bottom: 14px;
  }
  .scroll-top-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    left: 14px;
    bottom: 14px;
  }
}
