:root{
  --azul:#145da0;
  --azul-claro:#dff3ff;
  --verde:#44b649;
  --amarelo:#ffcf33;
  --vermelho:#e63946;
  --texto:#1f2a37;
  --suave:#f4f9fb;
}

html{scroll-behavior:smooth;}
body{
  font-family: Arial, Helvetica, sans-serif;
  color:var(--texto);
  overflow-x:hidden;
  text-rendering:optimizeLegibility;
}

section, header{scroll-margin-top:90px;}

.brand-logo{
  width:58px;
  height:58px;
  object-fit:contain;
  border-radius:14px;
}

.nav-link{
  font-weight:600;
  color:#2b3440;
}

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

.hero-section{
  padding:150px 0 95px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,207,51,.35), transparent 25%),
    linear-gradient(135deg, #145da0 0%, #2aa7df 55%, #58bd5a 100%);
  color:#fff;
}

.hero-logo-card{
  background:#fff;
  border-radius:34px;
  padding:26px;
  box-shadow:0 25px 60px rgba(0,0,0,.22);
  display:inline-block;
  max-width:430px;
}

.hero-logo-card img{
  width:100%;
  border-radius:24px;
}

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

.section-tag{
  display:inline-flex;
  align-items:center;
  background:var(--azul-claro);
  color:var(--azul);
  font-weight:800;
  font-size:.85rem;
  border-radius:999px;
  padding:8px 16px;
  margin-bottom:14px;
}

.info-card, .service-card{
  background:#fff;
  height:100%;
  border-radius:24px;
  padding:28px;
  box-shadow:0 12px 32px rgba(20,93,160,.09);
  border:1px solid rgba(20,93,160,.08);
  transition:.25s ease;
}

.info-card:hover, .service-card:hover{
  transform:translateY(-5px);
}

.service-link-card{
  display:block;
  color:inherit;
  text-decoration:none;
}

.service-link-card h5{
  color:#0f172a;
}

.service-link-card p{
  color:#64748b;
}

.info-card i, .service-card i{
  font-size:34px;
  color:var(--azul);
  margin-bottom:15px;
  display:inline-block;
}

.bg-soft{
  background:var(--suave);
}

.interior-section{
  background:#fff;
}

.interior-preview{
  position:relative;
  width:100%;
  border:0;
  border-radius:28px;
  overflow:hidden;
  padding:0;
  background:#0f172a;
  box-shadow:0 20px 55px rgba(20,93,160,.16);
  cursor:pointer;
}

.interior-preview img{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
  transition:transform .35s ease;
}

.interior-preview:hover img{
  transform:scale(1.035);
}

.interior-preview-badge{
  position:absolute;
  left:18px;
  bottom:18px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#fff;
  background:rgba(20,93,160,.92);
  border-radius:999px;
  padding:10px 16px;
  font-weight:800;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}

.interior-modal{
  border:0;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 25px 90px rgba(0,0,0,.28);
}

#modalInterior360 .modal-dialog{
  width:min(1200px, calc(100vw - 32px));
  max-width:1200px;
  height:calc(100dvh - 32px);
  margin:16px auto;
}

#modalInterior360 .modal-content{
  max-height:100%;
}

#modalInterior360 .modal-header{
  flex:0 0 auto;
  padding:16px 20px 12px;
}

#modalInterior360 .modal-body{
  display:grid;
  grid-template-rows:minmax(0, 1fr) auto;
  min-height:0;
  padding:0 16px 16px;
}

.tour-viewer{
  position:relative;
  min-height:280px;
  overflow:hidden;
  border-radius:22px;
  background:#111827;
  user-select:none;
  touch-action:manipulation;
}

.tour-viewer img{
  display:block;
  width:100%;
  height:100%;
  min-height:280px;
  max-height:calc(100dvh - 190px);
  object-fit:cover;
  background:#111827;
}

.tour-location{
  position:absolute;
  left:16px;
  bottom:16px;
  z-index:2;
  color:#fff;
  background:rgba(20,93,160,.9);
  border-radius:999px;
  padding:9px 15px;
  font-weight:800;
  box-shadow:0 12px 30px rgba(0,0,0,.22);
}

.tour-hint{
  position:absolute;
  left:16px;
  top:16px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#fff;
  background:rgba(15,23,42,.72);
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:8px 13px;
  font-size:.9rem;
  font-weight:700;
  backdrop-filter:blur(8px);
}

.tour-hotspots{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
}

.tour-hotspot{
  position:absolute;
  transform:translate(-50%, -50%);
  border:0;
  color:#fff;
  background:rgba(68,182,73,.94);
  border-radius:999px;
  min-width:46px;
  height:46px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-weight:800;
  box-shadow:0 16px 35px rgba(0,0,0,.28);
  pointer-events:auto;
  transition:.2s ease;
}

.tour-hotspot:hover{
  background:#349439;
  transform:translate(-50%, -54%);
}

.tour-hotspot::after{
  content:"";
  position:absolute;
  inset:-8px;
  border:2px solid rgba(255,255,255,.55);
  border-radius:999px;
  animation:hotspotPulse 1.8s ease-out infinite;
}

@keyframes hotspotPulse{
  from{
    opacity:.9;
    transform:scale(.82);
  }
  to{
    opacity:0;
    transform:scale(1.35);
  }
}

.tour-controls{
  display:grid;
  grid-template-columns:44px minmax(0, 1fr) 44px auto;
  align-items:center;
  gap:12px;
  margin-top:16px;
  min-width:0;
}

.tour-control-btn{
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:var(--azul);
  font-size:1.15rem;
  transition:.2s ease;
}

.tour-control-btn:hover{
  background:#0f4d84;
  transform:translateY(-1px);
}

.tour-play-btn{
  background:var(--verde);
}

.tour-play-btn:hover{
  background:#349439;
}

.tour-scene-strip{
  display:flex;
  gap:8px;
  min-width:0;
  overflow-x:auto;
  padding:4px 2px;
  scrollbar-width:thin;
  overscroll-behavior-inline:contain;
}

.tour-scene-btn{
  border:1px solid rgba(20,93,160,.18);
  color:#334155;
  background:#f8fbff;
  border-radius:999px;
  padding:9px 14px;
  font-weight:800;
  white-space:nowrap;
  transition:.2s ease;
}

.tour-scene-btn:hover,
.tour-scene-btn.active{
  color:#fff;
  background:var(--azul);
  border-color:var(--azul);
}

.tour-counter{
  color:#64748b;
  font-weight:800;
  white-space:nowrap;
}

.video-section{
  background:#fff;
}

.video-frame{
  background:
    linear-gradient(135deg, rgba(20,93,160,.10), rgba(68,182,73,.10)),
    #ffffff;
  border-radius:34px;
  padding:24px;
  box-shadow:0 20px 60px rgba(0,0,0,.12);
}

.phone-video-shell{
  width:min(100%, 420px);
  margin:0 auto;
  background:#111;
  border-radius:34px;
  padding:10px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.15);
}

.clinic-video{
  width:100%;
  aspect-ratio:9 / 16;
  object-fit:contain;
  background:#000;
  border-radius:26px;
  display:block;
}

.bg-primary-gradient{
  background:linear-gradient(135deg, #145da0 0%, #2aa7df 60%, #44b649 100%);
}

.whatsapp-float{
  position:fixed;
  right:20px;
  bottom:20px;
  width:62px;
  height:62px;
  background:#25d366;
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  text-decoration:none;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  z-index:999;
}

.aguia-float{
  width:76px;
  height:76px;
  min-width:0;
  gap:7px;
  padding:5px;
  border-radius:50%;
  background:#fff;
  border:3px solid rgba(68,182,73,.95);
  font-size:.78rem;
  font-weight:800;
  overflow:visible;
  transition:bottom .22s ease, transform .22s ease;
}

body.site-footer-visible .aguia-float,
body.site-footer-visible .whatsapp-float{
  bottom:var(--chat-footer-offset, 96px);
}

.aguia-float img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:50%;
}

.aguia-float span{
  position:absolute;
  right:58px;
  bottom:10px;
  color:#fff;
  background:var(--azul);
  border-radius:999px;
  padding:6px 10px;
  line-height:1;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
  white-space:nowrap;
}

@media(max-width:991px){
  .hero-section{
    padding-top:130px;
    text-align:center;
  }
  .section-padding{
    padding:70px 0;
  }

  #modalInterior360 .modal-dialog{
    width:100%;
    max-width:none;
    height:100dvh;
    margin:0;
  }

  #modalInterior360 .modal-content{
    height:100%;
    max-height:none;
    border-radius:0;
  }
}

@media(max-width:576px){
  .brand-logo{
    width:52px;
    height:52px;
  }
  .hero-section h1{
    font-size:2.1rem;
  }
  .phone-video-shell{
    width:min(100%, 330px);
  }
  .tour-viewer img{
    height:62vh;
  }
  .tour-controls{
    grid-template-columns:42px 1fr 42px;
  }
  .tour-counter{
    grid-column:1 / -1;
    text-align:center;
  }
  .tour-hotspot span{
    display:none;
  }
  .tour-hotspot{
    min-width:44px;
    padding:0;
  }
}


/* Modal de pré-agendamento */
.agendamento-modal{
  border:0;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 25px 80px rgba(0,0,0,.25);
}

.agendamento-modal .modal-header,
.agendamento-modal .modal-body{
  padding-left:28px;
  padding-right:28px;
}

.agendamento-modal .form-control,
.agendamento-modal .form-select{
  border-radius:16px;
  border:1px solid rgba(20,93,160,.18);
  background:#f8fbff;
}

.agendamento-modal .form-control:focus,
.agendamento-modal .form-select:focus{
  border-color:var(--azul);
  box-shadow:0 0 0 .2rem rgba(20,93,160,.15);
}

.modal-tag{
  display:inline-flex;
  background:var(--azul-claro);
  color:var(--azul);
  font-size:.78rem;
  font-weight:800;
  padding:7px 13px;
  border-radius:999px;
}

.aguia-step{
  display:flex;
  align-items:center;
  gap:8px;
  margin:16px 0 12px;
  color:var(--azul);
  font-weight:800;
  font-size:.92rem;
}

.aguia-step::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--verde);
}

.aguia-modal-intro{
  display:flex;
  align-items:center;
  gap:14px;
}

.aguia-avatar{
  width:76px;
  height:76px;
  flex:0 0 auto;
  object-fit:contain;
  border-radius:20px;
  background:linear-gradient(135deg, rgba(20,93,160,.08), rgba(68,182,73,.12));
  padding:4px;
}


/* Scroll suave no modal sem mostrar barra */
.agendamento-modal .modal-body{
  max-height:75vh;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.agendamento-modal .modal-body::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

/* Melhor experiência mobile */
@media(max-width:768px){
  .modal-dialog{
    margin:12px;
  }

  .agendamento-modal{
    border-radius:24px;
  }

  .agendamento-modal .modal-body{
    max-height:70vh;
    padding-bottom:30px;
  }
}


/* Modal de retenção */
.retencao-modal{
  border:0;
  border-radius:30px;
  box-shadow:0 25px 80px rgba(0,0,0,.25);
  overflow:hidden;
}

.retencao-icon{
  width:78px;
  height:78px;
  margin:0 auto;
  border-radius:50%;
  background:linear-gradient(135deg, var(--azul), #44b649);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:38px;
}

.site-footer .container{
  display:grid;
  gap:6px;
}

.footer-credit{
  color:rgba(255,255,255,.72);
  font-size:.86rem;
}

.footer-credit strong{
  color:#dff3ff;
}

@media(max-width:991px){
  .navbar{
    max-height:100vh;
    overflow-y:auto;
  }

  .navbar-collapse{
    padding:12px 0 8px;
  }

  .navbar-nav{
    align-items:stretch !important;
    gap:4px;
  }

  .nav-link{
    min-height:44px;
    display:flex;
    align-items:center;
    border-radius:14px;
    padding:10px 12px !important;
    background:#f8fbff;
  }

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

  .hero-section .row{
    gap:28px;
  }

  .hero-section .d-flex{
    justify-content:center;
  }

  .hero-logo-card{
    max-width:320px;
    border-radius:24px;
    padding:16px;
  }

  .info-card,
  .service-card{
    border-radius:18px;
    padding:22px;
  }

  .interior-preview{
    border-radius:20px;
  }

  .video-frame{
    border-radius:24px;
    padding:16px;
  }
}

@media(max-width:576px){
  body{
    font-size:15.5px;
  }

  .navbar{
    padding-top:6px !important;
    padding-bottom:6px !important;
  }

  .brand-logo{
    width:46px;
    height:46px;
  }

  .hero-section{
    padding-top:104px;
  }

  .hero-section h1{
    font-size:2.02rem;
    line-height:1.08;
  }

  .hero-section .lead{
    font-size:1.02rem;
    line-height:1.58;
  }

  .hero-section .btn,
  .bg-primary-gradient .btn{
    width:100%;
    justify-content:center;
  }

  .section-tag{
    max-width:100%;
    white-space:normal;
    text-align:center;
    justify-content:center;
  }

  .section-padding h2{
    font-size:1.75rem;
    line-height:1.15;
  }

  .section-padding p.fs-5,
  .section-padding .lead{
    font-size:1rem !important;
  }

  .info-card,
  .service-card{
    padding:20px;
  }

  .service-card i,
  .info-card i{
    font-size:28px;
    margin-bottom:10px;
  }

  .interior-preview img{
    aspect-ratio:4 / 3;
  }

  .interior-preview-badge{
    left:12px;
    bottom:12px;
    max-width:calc(100% - 24px);
    padding:8px 12px;
    font-size:.88rem;
  }

  .phone-video-shell{
    border-radius:26px;
  }

  .clinic-video{
    border-radius:20px;
  }

  .tour-viewer img{
    height:56vh;
  }

  .tour-hint,
  .tour-location{
    left:10px;
    max-width:calc(100% - 20px);
    white-space:normal;
    border-radius:14px;
    font-size:.82rem;
  }

  .tour-location{
    bottom:10px;
  }

  .tour-controls{
    gap:8px;
  }

  .aguia-float{
    right:14px;
    bottom:14px;
    width:64px;
    height:64px;
  }

  body.site-footer-visible .aguia-float,
  body.site-footer-visible .whatsapp-float{
    bottom:var(--chat-footer-offset, 88px);
  }

  .aguia-float span{
    display:none;
  }
}

@media(min-width:420px) and (max-width:575.98px){
  .navbar > .container,
  .hero-section > .container,
  .section-padding > .container,
  footer > .container{
    width:100%;
    max-width:none;
    padding-left:16px;
    padding-right:16px;
  }

  .hero-section{
    margin:0;
    padding-left:0;
    padding-right:0;
  }

  .hero-section .row{
    margin-left:0;
    margin-right:0;
  }

  .hero-section [class*="col-"]{
    padding-left:0;
    padding-right:0;
  }

  .hero-section .badge{
    display:inline-flex;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    justify-content:center;
    border-radius:18px !important;
    font-size:.72rem;
    line-height:1.25;
    padding:8px 12px !important;
  }

  .hero-section h1{
    max-width:100%;
    font-size:clamp(1.9rem, 7vw, 2.28rem);
  }

  .hero-section .lead{
    max-width:100%;
  }

  .hero-section .d-flex{
    display:grid !important;
    width:100%;
  }

  .hero-logo-card{
    width:min(100%, 300px);
  }
}

@media(max-width:419.98px){
  .navbar > .container,
  .hero-section > .container,
  .section-padding > .container,
  footer > .container{
    padding-left:14px;
    padding-right:14px;
  }

  .hero-section .badge{
    display:inline-flex;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    justify-content:center;
    border-radius:18px !important;
    font-size:.7rem;
    line-height:1.25;
    padding:8px 10px !important;
  }

  .hero-section{
    padding-left:0;
    padding-right:0;
  }

  .hero-section .row{
    margin-left:0;
    margin-right:0;
  }

  .hero-section [class*="col-"]{
    padding-left:0;
    padding-right:0;
  }

  .hero-section h1{
    font-size:clamp(1.72rem, 8.2vw, 2rem);
    line-height:1.1;
  }

  .hero-section .lead{
    font-size:.96rem !important;
    line-height:1.56;
  }

  .hero-section .d-flex{
    display:grid !important;
    width:100%;
  }

  .hero-section .btn{
    min-height:46px;
    padding-left:12px !important;
    padding-right:12px !important;
    font-size:.96rem;
  }

  .hero-logo-card{
    width:min(100%, 260px);
  }
}

@media(max-width:359.98px){
  .navbar > .container,
  .hero-section > .container,
  .section-padding > .container,
  footer > .container{
    padding-left:10px;
    padding-right:10px;
  }

  .brand-logo{
    width:40px;
    height:40px;
  }

  .hero-section{
    padding-top:94px;
    padding-bottom:56px;
  }

  .hero-section .badge{
    font-size:.66rem;
    padding:7px 9px !important;
  }

  .hero-section h1{
    font-size:1.62rem;
  }

  .hero-section .lead{
    font-size:.92rem !important;
  }

  .section-padding h2{
    font-size:1.55rem;
  }

  .info-card,
  .service-card{
    padding:16px;
  }

  .aguia-float{
    width:58px;
    height:58px;
    right:10px;
    bottom:10px;
  }
}
