/* ============================================
   Dr. Paulo Henrique — Design System
   ============================================ */

:root {
  --navy: #0f2b4a;
  --navy-light: #1a3d66;
  --teal: #2aabbb;
  --teal-light: #3ecdd4;
  --teal-dark: #1e8a98;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-100: #eef2f7;
  --gray-200: #d8e0ea;
  --gray-400: #8a9bb0;
  --gray-600: #4a5f78;
  --gray-800: #2a3f58;
  --gold: #d4a853;
  --shadow-sm: 0 2px 8px rgba(15, 43, 74, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 43, 74, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 43, 74, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.65rem 0;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  justify-self: start;
  color: var(--navy);
}

.logo-brand-mobile {
  display: none;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.logo-brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo-brand-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.logo-brand-text small {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gray-600);
}

.logo-img {
  height: 78px;
  width: auto;
  max-width: min(340px, 72vw);
  display: block;
  object-fit: contain;
  mix-blend-mode: normal;
}

.header:not(.scrolled) .logo-img-light {
  mix-blend-mode: screen;
}

.header.scrolled .logo {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  padding: 0.35rem 0.65rem;
}

.header.scrolled .logo-img {
  height: 52px;
  max-width: min(240px, 66vw);
  mix-blend-mode: normal;
}

.logo-desktop {
  display: block;
}

.logo-img-dark {
  display: none;
}

.header:not(.scrolled) .logo-desktop.logo-img-light {
  display: block;
}

.header:not(.scrolled) .logo-desktop.logo-img-dark {
  display: none;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.header.scrolled .nav-desktop a {
  color: var(--gray-600);
}

.nav-desktop a:hover {
  color: var(--teal);
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.menu-icon-close {
  display: none;
}

.menu-toggle.active .menu-icon-open {
  display: none;
}

.menu-toggle.active .menu-icon-close {
  display: block;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--navy);
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  visibility: hidden;
  z-index: 999;
}

.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
}

.nav-mobile a:not(.btn) {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.875rem 1.75rem;
  border-bottom: none;
  font-size: 0.95rem;
  text-align: center;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1e5a7a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(42, 171, 187, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vh, 2rem);
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 1.5rem;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--teal-light);
  margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  color: var(--white);
  margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
}

.hero h1 em {
  font-style: normal;
  color: var(--teal-light);
}

.hero-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: clamp(1.25rem, 2.5vh, 1.75rem);
  max-width: 520px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: min(380px, 90vw);
  max-height: calc(100dvh - 7rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid rgba(42, 171, 187, 0.4);
  border-radius: var(--radius-lg);
  z-index: 2;
  pointer-events: none;
}

.hero-image-wrapper picture,
.about-image picture {
  display: block;
  width: 100%;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 7rem);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}

.hero-float-card {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.hero-float-card .stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.hero-float-card p {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.3;
}

.hero-float-card strong {
  color: var(--navy);
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .container {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }

  :root {
    --header-mobile-height: calc(4.25rem + env(safe-area-inset-top, 0px));
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    position: relative;
    width: 100%;
    max-width: 100%;
  }

  body:has(> .header) {
    padding-top: var(--header-mobile-height);
  }

  .header,
  .header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    padding: 0.75rem 0;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transition: none;
    will-change: auto;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    isolation: isolate;
  }

  .header.scrolled .logo {
    background: none;
    padding: 0;
    border-radius: 0;
  }

  .logo-brand-mobile {
    display: flex;
  }

  .logo-desktop,
  .logo-img,
  .header.scrolled .logo-desktop {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .header-actions .nav-desktop,
  .header-actions .nav-cta {
    display: none !important;
  }

  .menu-toggle {
    display: flex !important;
    color: var(--navy);
  }

  .hero {
    height: auto;
    min-height: calc(100dvh - var(--header-mobile-height));
    max-height: none;
    align-items: flex-start;
    overflow: hidden;
  }

  .hero-grid {
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.15rem);
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .hero-image {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-image-wrapper {
    width: min(300px, 88vw);
    max-height: none;
  }

  .hero-image-wrapper img {
    max-height: none;
    height: auto;
  }

  .hero-float-card {
    position: static;
    margin-top: 0.75rem;
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  section {
    padding: 3.5rem 0;
  }

  section[id] {
    scroll-margin-top: var(--header-mobile-height);
  }

  .about-intro {
    gap: 1.75rem;
  }

  .about-image {
    max-width: none;
    width: 100%;
  }

  .about-content .section-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-header .section-subtitle {
    font-size: 0.95rem;
  }

  .hero-badge {
    border-color: rgba(255, 255, 255, 0.28);
  }

  .hero-image-wrapper {
    border: 3px solid rgba(42, 171, 187, 0.35);
  }

  .hero-float-card {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
  }

  .about-image {
    border: 1px solid var(--gray-200);
  }

  .about-feature {
    border: 1px solid var(--gray-200);
    box-shadow: none;
  }

  .service-card::before {
    transform: scaleX(1);
  }

  .services-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    flex: 0 0 min(88vw, 340px);
    scroll-snap-align: center;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
  }

  .tip-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 1.5rem;
  }

  .tips-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tips-grid::-webkit-scrollbar {
    display: none;
  }

  .tip-card {
    flex: 0 0 min(88vw, 320px);
    scroll-snap-align: center;
  }

  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 min(88vw, 340px);
    scroll-snap-align: center;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
  }

  .google-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
  }

  .contact-info {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
  }

  .contact-item {
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--gray-200);
  }

  .contact-info .contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .contact-map {
    border: 1px solid var(--gray-200);
  }

  .footer-grid {
    text-align: center;
  }

  .footer .logo {
    display: inline-flex;
    justify-content: center;
  }

  .footer-desc {
    max-width: none;
    margin: 0 auto;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links a,
  .footer-social {
    justify-content: center;
  }

  .footer-social {
    display: flex;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-credit {
    text-align: center;
  }
}

/* ---- Sections ---- */
section {
  padding: 5rem 0;
}

section.hero {
  padding: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---- About ---- */
.about {
  background: var(--off-white);
}

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 340px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.about-content .section-title {
  margin-bottom: 1.25rem;
}

.about-content p {
  margin-bottom: 1.25rem;
  color: var(--gray-600);
  font-size: 1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

.about-feature h4 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.about-feature p {
  font-size: 0.85rem;
  margin: 0;
}

/* ---- Clinic Gallery ---- */
.clinic {
  background: var(--white);
}

.clinic-slider-controls {
  display: none;
}

.clinic-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.clinic-gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.clinic-img-link {
  display: block;
  cursor: zoom-in;
}

.clinic-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.clinic-gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 767px) {
  .clinic-gallery-viewport {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
  }

  .clinic-gallery {
    display: flex;
    gap: 0;
    transition: transform 0.4s ease;
  }

  .clinic-gallery-item {
    flex: 0 0 100%;
    min-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .clinic-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
  }

  .clinic-slider-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .clinic-slider-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .clinic-slider-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
  }

  .clinic-slider-counter {
    min-width: 3.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(15, 43, 74, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.lightbox-img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 639px) {
  .lightbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 0.5rem 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-img {
    max-height: calc(100vh - 7rem);
  }
}

/* ---- Services ---- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.service-card {
  flex: 0 0 100%;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--gray-100);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  stroke: var(--white);
}

.service-card h3 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---- Tips ---- */
.tips {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}

.tips .section-label {
  color: var(--teal-light);
}

.tips .section-title {
  color: var(--white);
}

.tips .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tip-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.tip-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.tip-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tip-card h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.tip-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.tips-cta {
  text-align: center;
  margin-top: 3rem;
}

.tips-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-avatar--j { background: #0d9488; }
.testimonial-avatar--b { background: #4d7c0f; }
.testimonial-avatar--d { background: #7c3aed; }
.testimonial-avatar--a { background: #4338ca; }

.testimonial-rating-note {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  transition: var(--transition);
}

.google-badge:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
}

.google-badge strong {
  color: var(--navy);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
}

.contact-item h4 {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.contact-item a:hover {
  color: var(--teal);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer .logo {
  margin-bottom: 1rem;
}

.footer .logo-img {
  height: 56px;
  max-width: 240px;
  mix-blend-mode: screen;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer h4 {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--teal);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
}

.footer-credit {
  margin: 0;
}

.footer-credit a {
  color: var(--teal-light);
  transition: var(--transition);
}

.footer-credit a:hover {
  color: var(--white);
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .about-features {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    gap: 1.5rem;
  }

  .service-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    width: calc((100% - 1.5rem) / 2);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }

  .logo-brand-mobile {
    display: none !important;
  }

  .logo-desktop {
    display: block;
  }

  .header.scrolled .logo-desktop.logo-img-light {
    display: block !important;
  }

  .header.scrolled .logo-desktop.logo-img-dark {
    display: none !important;
  }

  .header.scrolled .logo-img {
    height: 52px;
    max-width: min(260px, 40vw);
  }

  .nav-desktop {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    padding-top: 5.5rem;
    padding-bottom: 1.5rem;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .hero-image-wrapper {
    width: min(360px, 38vw);
    max-height: calc(100dvh - 6.5rem);
  }

  .hero-image-wrapper img {
    max-height: calc(100dvh - 6.5rem);
  }

  .about-intro {
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 3rem;
  }

  .about-image {
    margin: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
  }

  .footer-bottom > div {
    text-align: left;
  }

  .footer-credit {
    text-align: right;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .service-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    width: calc((100% - 3rem) / 3);
  }

  .tips-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-features {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
