/* ============================= */
/* GLOBAL RESET */
/* ============================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Nunito',sans-serif;
}

body{
  background:#c6f3e6;
  color:#006e6d;
  overflow-x:hidden;
}

img, video{
  max-width:100%;
  display:block;
}

section{
  width:100%;
}

/* ============================= */
/* LAYOUT CONTAINER SYSTEM */
/* ============================= */

.hero,
.section,
.home-visit{
  width:100%;
  padding:80px 20px;
}

.section{
  text-align:center;
}

.section h2{
  margin-bottom:40px;
}

/* Desktop content width control */
@media (min-width:1024px){
  .hero,
  .section,
  .home-visit{
    max-width:1200px;
    margin:auto;
    padding:120px 40px;
  }
}

/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar{
  position:fixed;
  top:0;
  width:100%;
  padding:14px 0 6px;
  display:flex;
  justify-content:center;
  transition:.4s ease;
  z-index:1000;
}

.navbar.light{
  background:#c6f3e6;
  color:#006e6d;
}

.navbar.dark{
  background:#006e6d;
  color:#c6f3e6;
}

.navbar.shrink{
  padding:8px 0 2px;
}

.brand-main{
  font-size:26px;
  font-weight:700;
  letter-spacing:4px;
}

.nav-logo{
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1;
}

.brand-main{
  font-size:28px;
  font-weight:700;
  letter-spacing:3px;
  margin:0;
}

.brand-sub{
  font-size:10px;
  margin-top:-4px;
  letter-spacing:0.8px;
  font-weight:400;
  opacity:0.9;
}

@media (min-width:1024px){
  .brand-main{
    font-size:32px;
  }
}

/* ============================= */
/* HERO */
/* ============================= */

.hero{
  padding-top:160px;
  text-align:center;
}

.hero h1{
  font-size:42px;
  letter-spacing:6px;
}

@media (min-width:768px){
  .hero h1{
    font-size:60px;
  }
}

@media (min-width:1024px){
  .hero h1{
    font-size:72px;
  }
}

.primary-btn{
  display:inline-block;
  margin-top:30px;
  padding:14px 30px;
  background:#006e6d;
  color:#c6f3e6;
  text-decoration:none;
  border-radius:40px;
  transition:.3s ease;
}

.primary-btn:hover{
  transform:translateY(-3px);
}

/* ============================= */
/* GRID SYSTEM */
/* ============================= */

.grid-3,
.services-grid{
  display:grid;
  gap:20px;
}

/* Tablet */
@media (min-width:768px){
  .grid-3{
    grid-template-columns:repeat(2,1fr);
  }

  .services-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* Desktop */
@media (min-width:1024px){
  .grid-3{
    grid-template-columns:repeat(3,1fr);
  }

  .services-grid{
    grid-template-columns:repeat(4,1fr);
  }
}

/* ============================= */
/* CARDS */
/* ============================= */

.card{
  padding:25px;
  border-radius:20px;
  background:rgba(0,0,0,0.05);
  transition:.3s ease;
}

.card:hover{
  transform:translateY(-6px);
}

/* ============================= */
/* INVERTED SECTIONS */
/* ============================= */

.inverted{
  background:#006e6d;
  color:#c6f3e6;
}

.inverted .card,
.inverted .service-group{
  background:rgba(255,255,255,0.08);
}

/* ============================= */
/* SERVICES */
/* ============================= */

.service-group{
  padding:25px;
  border-radius:20px;
  text-align:left;
}

.service-item{
  margin-bottom:14px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,0.2);
}

.section:not(.inverted) .service-item{
  border-bottom:1px solid rgba(0,0,0,0.1);
}

.service-item:last-child{
  border-bottom:none;
}

/* ============================= */
/* VIDEO SYSTEM (VERTICAL SAFE) */
/* ============================= */

.video-card{
  position:relative;
  margin:40px auto;
  max-width:420px;
}

video{
  width:100%;
  aspect-ratio:9/16;
  object-fit:cover;
  border-radius:22px;
  background:#006e6d;
}

/* Tablet */
@media (min-width:768px){
  .video-card{
    max-width:380px;
  }
}

/* Desktop side-by-side doctors */
@media (min-width:1024px){
  .section.inverted .video-card{
    display:inline-block;
    width:45%;
    margin:20px;
    vertical-align:top;
  }
}

/* ============================= */
/* VIDEO BUTTON ICON FIX */
/* ============================= */

.video-btn{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:65px;
  height:65px;
  border-radius:50%;
  border:none;
  background:#006e6d;
  color:#c6f3e6;
  cursor:pointer;
}

.video-btn .pause-icon{
  display:none;
}

.video-btn.playing .play-icon{
  display:none;
}

.video-btn.playing .pause-icon{
  display:block;
}

/* ============================= */
/* MAP */
/* ============================= */

.map-container{
  width:180px;
  height:180px;
  margin:0 auto 25px;
  overflow:hidden;
  border-radius:22px;
  transition:.4s ease;
}

.map-container iframe{
  width:100%;
  height:100%;
  border:none;
}

/* Expand only on desktop */
@media (min-width:1024px){
  .map-container:hover{
    width:100%;
    height:300px;
  }
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer{
  padding:60px 20px;
  text-align:center;
}

/* ============================= */
/* WHATSAPP FLOAT */
/* ============================= */

.whatsapp-float{
  position:fixed;
  bottom:25px;
  right:25px;
  width:65px;
  height:65px;
  border-radius:50%;
  background:#006e6d;
  color:#c6f3e6;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}
/* =============================
   PREMIUM LOADER
============================= */

.loader{
  position:fixed;
  inset:0;
  background:#006e6d;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  transition:opacity .6s ease, visibility .6s ease;
}

.loader.hide{
  opacity:0;
  visibility:hidden;
}

.loader-text{
  font-size:52px;
  font-weight:700;
  letter-spacing:10px;
  color:#c6f3e6;
  animation:loaderReveal 1.2s ease forwards;
}

@keyframes loaderReveal{
  0%{
    opacity:0;
    letter-spacing:25px;
    transform:translateY(10px);
  }
  100%{
    opacity:1;
    letter-spacing:10px;
    transform:translateY(0);
  }
}
body{
  opacity:0;
  transition:opacity .8s ease;
}

body.loaded{
  opacity:1;
}