/* Podóloga Patrícia Martins - Estilos customizados */

:root {
  --color1: #5cbc9c;
  --color2: #94e4cc;
  --color3: #2c8c7b;
  --color4: #6ca45c;
  --color5: #accc9c;
  --navbar-height: 73px;
  --navbar-gap: 16px;
  --navbar-offset: calc(var(--navbar-height) + var(--navbar-gap));
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: var(--navbar-offset);
}

/* Logo — menu (desktop 100px, proporcional nos demais) */
.site-logo {
  display: block;
  height: var(--navbar-height);
  max-height: var(--navbar-height);
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(44, 140, 123, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo-link:hover .site-logo {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 12px rgba(44, 140, 123, 0.25));
}

.site-logo-footer {
  height: 5.5rem;
  max-height: 88px;
  filter: none;
}

@media (min-width: 640px) {
  :root {
    --navbar-height: 87px;
    --navbar-gap: 20px;
  }

  .site-logo-footer {
    height: 6.5rem;
    max-height: 104px;
  }
}

@media (min-width: 1024px) {
  :root {
    --navbar-height: 100px;
    --navbar-gap: 24px;
  }
}

.hero-with-navbar {
  padding-top: var(--navbar-offset);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0faf6;
}
::-webkit-scrollbar-thumb {
  background: var(--color1);
  border-radius: 4px;
}

/* Navbar */
.navbar-tight {
  padding: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--navbar-height);
  height: var(--navbar-height);
}

.navbar-mobile {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 16px rgba(44, 140, 123, 0.1);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 228, 204, 0.35);
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 4px 24px rgba(44, 140, 123, 0.12);
  backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color3);
  transition: width 0.3s ease;
}

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

/* Hero */
.hero-gradient {
  background: linear-gradient(135deg, #f0faf6 0%, #e8f7f2 40%, #d4f0e8 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-image-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(44, 140, 123, 0.2);
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--color2);
  border-radius: 24px;
  z-index: 2;
  pointer-events: none;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--color3), var(--color1));
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 140, 123, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 140, 123, 0.45);
}

.btn-outline {
  border: 2px solid var(--color3);
  color: var(--color3);
  transition: all 0.3s ease;
}

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

/* Section titles */
.section-badge {
  display: inline-block;
  background: var(--color2);
  color: var(--color3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
}

.section-title {
  color: var(--color3);
}

/* Cards */
.service-card,
.problem-card {
  transition: all 0.35s ease;
  border: 1px solid rgba(148, 228, 204, 0.4);
}

.service-card:hover,
.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(44, 140, 123, 0.15);
  border-color: var(--color1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color2), var(--color5));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Depoimentos carousel */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(44, 140, 123, 0.1);
  border: 1px solid rgba(148, 228, 204, 0.3);
  min-height: 220px;
}

.testimonial-stars {
  color: #f59e0b;
}

/* Gallery */
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--color3) 0%, var(--color1) 50%, var(--color4) 100%);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  transition: all 0.3s ease;
  animation: pulse-wpp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 32px rgba(37, 211, 102, 0.8), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Mobile menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 70;
  max-width: 100vw;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

/* Testimonials carousel */
#testimonials-viewport {
  overflow: hidden;
  width: 100%;
}

#testimonials-track .testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  #testimonials-track .testimonial-card {
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  #testimonials-track .testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    width: calc(33.333% - 16px);
  }
}

/* Mobile buttons */
.btn-mobile-full {
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .btn-mobile-full {
    width: auto;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form */
.form-input:focus {
  outline: none;
  border-color: var(--color1);
  box-shadow: 0 0 0 3px rgba(92, 188, 156, 0.25);
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Professional section */
.professional-photo {
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(44, 140, 123, 0.2);
  border: 4px solid var(--color2);
}

.professional-badge {
  background: linear-gradient(135deg, var(--color3), var(--color4));
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Footer */
.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color2);
}

.footer-credit {
  text-align: center;
}

.footer-f5-link {
  display: inline-block;
  line-height: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-f5-link:hover {
  opacity: 1;
}

.footer-f5-logo {
  height: 2rem;
  width: auto;
}

/* Performance — renderização abaixo da dobra */
section:not(#inicio) {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.site-logo-link picture {
  display: flex;
  align-items: center;
  line-height: 0;
}
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color3), var(--color1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: var(--navbar-offset);
  }

  .hero-gradient {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-blob {
    opacity: 0.25;
  }

  .hero-image-frame::before {
    border-width: 2px;
    border-radius: 16px;
  }

  .hero-image-frame {
    border-radius: 16px;
  }

  .hero-badge-float {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 1rem;
    max-width: 100%;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .testimonial-card {
    padding: 1.25rem;
    min-height: auto;
  }

  .professional-badge-float {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin-top: 1rem;
    max-width: 100%;
  }

  .section-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.75rem;
  }

  .gallery-item:hover {
    transform: none;
  }

  .service-card:hover,
  .problem-card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  .whatsapp-float {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    width: 54px;
    height: 54px;
    z-index: 50;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 380px) {
  .stat-number {
    font-size: 1.5rem;
  }

  .hero-stats-label {
    font-size: 0.65rem;
  }
}
