/* ==============================
   Clínica Sorriso Moderno - styles.css
   Paleta: Azul (#0ea5e9), Branco (#ffffff), Verde (#22c55e)
   Tipografia: Inter + fallback system
================================= */

/* ==============================
   Variáveis globais
================================= */
:root {
  --blue: #0ea5e9;
  --blue-900: #0b3c59;
  --green: #0b3c59;
  --bg: #002a6d;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --shadow: 0 12px 35px rgba(14, 165, 233, 0.1);
  --radius: 18px;
}

/* ==============================
   Reset e base
================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  padding-top: 183px;
}
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, 92%); margin-inline: auto; }

/* ==============================
   Tipografia
================================= */
.kicker {
  display: inline-block;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: .5rem;
}
h1 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; margin: 0 0 1rem; color: var(--blue-900); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.2; margin: 0 0 .75rem; color: var(--blue-900); }
h3 { font-size: 1.1rem; margin: .25rem 0; }
p { color: #0b3c59; }

/* ==============================
   Seções
================================= */
.section { padding: 64px 0; }
.section--alt { background: var(--bg); }

/* ==============================
   Header
================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: saturate(1.5) blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 6px 16px;
  transition: all 0.3s ease;
}
.header__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8rem;
  text-decoration: none;
  color: #0b3c59;
  text-shadow: 2px 2px 6px rgba(41, 68, 136, 0.6);
  font-weight: 600;
  font-size: 1.2rem;
  margin-left: -10px;
}
.logo img {
  height: 150px;
  width: auto;
  border-radius: var(--radius);
}
@media (max-width: 1024px) {
  .logo img { height: 110px; }
}
.nav__list {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.nav__list a:hover,
.nav__list a:focus {
  color: #fff;
  background: var(--blue);
}

/* ==============================
   Botões
================================= */
.btn--primary {
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(14,165,233,0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn--primary:hover {
  background: #0284c7;
  box-shadow: 0 10px 25px rgba(14,165,233,0.4);
  transform: translateY(-2px) scale(1.05);
}
.btn-scroll-bottom {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(14,165,233,0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-scroll-bottom:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 25px rgba(14,165,233,0.4);
  transform: translateY(-2px) scale(1.05);
}

/* ==============================
   Sobre a clínica & Carrossel
================================= */
.about {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.about__image {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 300px;
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0;
}
.about__image .carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.about__image .carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: rgba(0, 191, 166, 0.8);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.about__content { flex: 1; }
.about__content h2 { font-size: 1.8rem; margin-bottom: 10px; }
.about__content p,
.about__content .list li { font-size: 1rem; line-height: 1.5; }
.about__content .kicker {
  color: var(--blue-900);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
}

/* ==============================
   Serviços
================================= */
.services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.service__card {
  flex: 1 1 150px;
  max-width: 175px;
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.service__card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 25px rgba(3, 19, 85, 0.25);
}
.service__icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.service__icon:hover {
  transform: scale(1.2);
  background: var(--green);
}
.service__title { font-weight: 600; font-size: 1.05rem; color: var(--blue-900); margin-bottom: 6px; }
.service__desc { font-size: 0.9rem; color: var(--muted); }

/* ==============================
   Contato
================================= */
.contact__container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px auto;
  max-width: 1100px;
  padding: 20px;
}
.contact__map,
.contact__form {
  flex: 1;
  min-width: 350px;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.contact__form {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.contact__form h2 { text-align: center; margin-bottom: 20px; color: #0b3c59; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.contact__form button {
  width: 100%;
  padding: 14px;
  background: #0b3c59;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.contact__form button:hover { background: #09507a; }

/* ==============================
   Footer
================================= */
.footer {
  background-color: #f4f7f9;
  padding: 40px 20px;
  font-family: Inter, sans-serif;
  color: #000000;
}
.footer__developer {
  font-family: 'Inter', sans-serif;
  color: #000000;
  font-size: 12px;
  line-height: 1.8;
}
.footer__developer p {
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 2px 0 0 0;
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}
.footer__info { flex: 1 1 300px; }
.footer__info .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #030303;
  text-decoration: none;
  margin-bottom: 8px;
}
.footer__info p { font-size: 0.8rem; color: #000000; margin: 2px 0; }
.footer__links { flex: 1 1 150px; display: flex; flex-direction: column; gap: 6px; }
.footer__links a { color: #070707; text-decoration: none; font-weight: 500; font-size: 0.85rem; transition: color 0.3s ease; }
.footer__links a:hover { color: var(--green); }
.footer__social { flex: 1 1 150px; display: flex; gap: 12px; }
.footer__social img { width: 30px; height: 30px; transition: transform 0.3s ease; }
.footer__social img:hover { transform: scale(1.2); }
.footer__bottom { text-align: center; margin-top: 30px; font-size: 0.75rem; color: #64748b; }

/* ==============================
   Responsividade
================================= */
@media (max-width: 900px) {
  .about { flex-direction: column; align-items: center; gap: 20px; }
  .about__content { width: 100%; text-align: center; margin-top: -35px; }
  .about__content .list { text-align: left; }
  .contact__container { flex-direction: column; align-items: center; }
  .contact__map, .contact__form { width: 100%; max-width: 450px; }
  .services__grid { flex-direction: column; align-items: center; }
  .footer__grid { flex-direction: column; align-items: center; text-align: center; }
  .footer__links, .footer__social { align-items: center; justify-content: center; }
  .footer__social { margin-top: 10px; }
}
@media (max-width: 768px) {
  body { padding-top: 117px; }
  .logo img { height: 80px; margin-left: -19px; }
  .nav__list { flex-direction: row; gap: 1px; justify-content: flex-start; margin-left: -45px; }
  .nav__list a { font-size: 0.79rem; padding: 4px 8px; }
  .hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__content h1 { line-height: 1; letter-spacing: -1.5px; }
  .hero__content p { line-height: 1.2; letter-spacing: -1px; }
  .hero__content br { display: none; }
  .hero__actions { flex-direction: column; gap: 8px; }
  #servicos .container { margin-top: -60px; text-align: center; }
}
@media (max-width: 768px) {
  .nav__list {
    flex-direction: row;
    gap: 1px;
    justify-content: flex-start;
    margin-left: -20px; /* puxa mais pra direita */
  }

  .nav__list a {
    font-size: 0.79rem;
    padding: 4px 8px;
    letter-spacing: -0.5px; /* letras mais juntas */
  }
}
