/* =========================================
   SILMAPE CLÍNICA DE FISIOTERAPIA
   style.css — Main Stylesheet
   ========================================= */

/* =========================================
   1. FONTS (@font-face)
   ========================================= */
@font-face {
  font-family: 'Poppins';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Poppins-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Poppins-Bold.woff2') format('woff2');
}

/* =========================================
   2. CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  /* Colors */
  --primary:         #1a6b8a;
  --primary-dark:    #124f68;
  --primary-light:   #e8f4f8;
  --accent:          #2bb5a0;
  --accent-dark:     #1e9080;
  --white:           #ffffff;
  --grey-50:         #f8fafc;
  --grey-100:        #f1f5f9;
  --grey-200:        #e2e8f0;
  --grey-400:        #94a3b8;
  --grey-600:        #475569;
  --text:            #1e293b;
  --text-muted:      #64748b;
  --whatsapp:        #25d366;
  --whatsapp-dark:   #128c4e;
  --instagram:       #e1306c;

  /* Typography */
  --font:            'Poppins', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-py:      5rem;

  /* Border Radius */
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       32px;
  --radius-full:     9999px;

  /* Shadows */
  --shadow-sm:       0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:       0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:       0 8px 40px rgba(0,0,0,0.12);
  --shadow-primary:  0 8px 32px rgba(26,107,138,0.25);
  --shadow-green:    0 4px 24px rgba(37,211,102,0.45);

  /* Transitions */
  --trans-fast:      0.2s ease;
  --trans-normal:    0.35s ease;

  /* Layout */
  --container-max:   1200px;
  --nav-height:      76px;
}

/* =========================================
   3. RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================
   4. UTILITY CLASSES
   ========================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  padding: 0.3rem 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================
   5. BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,107,138,0.35);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* =========================================
   6. FLOATING WHATSAPP BUTTON
   ========================================= */
#whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--whatsapp);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: var(--shadow-green);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
  animation: pulse-ring 2.8s ease-in-out infinite;
}

#whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 36px rgba(37,211,102,0.6);
  animation: none;
}

#whatsapp-float .whatsapp-tooltip {
  display: none;
  position: absolute;
  right: 72px;
  background: var(--text);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

#whatsapp-float .whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--text);
}

#whatsapp-float:hover .whatsapp-tooltip {
  display: block;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =========================================
   7. NAVBAR
   ========================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  height: var(--nav-height);
  transition: background var(--trans-normal), box-shadow var(--trans-normal);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Transparent state (on hero) */
.navbar .nav-logo img {
  height: 52px;
  width: auto;
  transition: height var(--trans-normal);
}

.navbar .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  position: relative;
  transition: color var(--trans-fast);
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform var(--trans-fast);
}

.navbar:not(.navbar--scrolled) .nav-link:hover,
.navbar:not(.navbar--scrolled) .nav-link.nav-link--active {
  color: var(--white);
}

.navbar:not(.navbar--scrolled) .nav-link:hover::after,
.navbar:not(.navbar--scrolled) .nav-link.nav-link--active::after {
  transform: scaleX(1);
}

/* Scrolled state */
.navbar--scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar--scrolled .nav-logo img {
  height: 46px;
}

.navbar--scrolled .nav-link {
  color: var(--text-muted);
}

.navbar--scrolled .nav-link::after {
  background: var(--primary);
}

.navbar--scrolled .nav-link:hover,
.navbar--scrolled .nav-link.nav-link--active,
.navbar--scrolled .nav-link.nav-link--active:hover {
  color: var(--primary);
}

/* Nav links layout */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--trans-fast);
  transform-origin: center;
}

.navbar--scrolled .nav-toggle span {
  background: var(--text);
}

.nav-toggle--active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle--active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle--active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   8. HERO SECTION
   ========================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../imagens/img8.jpeg') center 20% / cover no-repeat;
  padding-top: var(--nav-height);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18, 79, 104, 0.88) 0%,
    rgba(26, 107, 138, 0.80) 50%,
    rgba(43, 181, 160, 0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge i {
  color: #ffd700;
  font-size: 0.75rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: #7ee8d8;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  padding: 1.25rem 2rem;
  display: inline-flex;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
}

.stat-item strong {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

.hero-scroll-cta {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
  transition: color var(--trans-fast);
}

.hero-scroll-cta:hover {
  color: var(--white);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =========================================
   9. ABOUT SECTION
   ========================================= */
.about-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-text p strong {
  color: var(--primary);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.about-highlights li i {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.about-image-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
}

.about-image-badge i {
  font-size: 1.75rem;
  color: #ffd700;
}

.about-image-badge strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.about-image-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================
   10. SPECIALTIES SECTION
   ========================================= */
.specialties-section {
  padding: var(--section-py) 0;
  background: var(--grey-50);
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.specialty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}

.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.specialty-card .card-image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.specialty-card .card-image:not(.card-image--collage) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.specialty-card:hover .card-image:not(.card-image--collage) img {
  transform: scale(1.06);
}

.card-image--collage {
  display: flex;
  gap: 2px;
  background: #1a6b8a;
}

.card-image--collage .collage-img {
  flex: 1 1 0%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  display: block;
}

.card-image--collage .collage-img--last {
  object-position: center center;
}

.specialty-card:hover .card-image--collage .collage-img {
  transform: scale(1.06);
}

.card-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(26,107,138,0.4);
}

.specialty-card .card-body {
  padding: 1.5rem;
}

.specialty-card .card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.specialty-card .card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =========================================
   11. PROFESSIONALS SECTION
   ========================================= */
.professionals-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.professional-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}

.professional-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-primary);
}

.prof-photo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.prof-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-light);
  box-shadow: 0 4px 20px rgba(26,107,138,0.18);
  transition: border-color var(--trans-fast);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
}

.professional-card:hover .prof-photo {
  border-color: var(--primary);
}

.prof-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.prof-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.prof-title {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prof-credentials {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.prof-credentials li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.prof-credentials li i {
  color: var(--accent);
  font-size: 0.82rem;
  margin-top: 0.18rem;
  flex-shrink: 0;
}

.prof-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: left;
  border-top: 1px solid var(--grey-200);
  padding-top: 1rem;
  font-style: italic;
}

/* =========================================
   12. CTA SECTION
   ========================================= */
.cta-section {
  position: relative;
  padding: 6rem 0;
  background: url('../imagens/img6.jpeg') center center / cover no-repeat;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18, 79, 104, 0.92) 0%,
    rgba(43, 181, 160, 0.88) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.cta-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* =========================================
   13. CONTACT SECTION
   ========================================= */
.contact-section {
  padding: var(--section-py) 0;
  background: var(--grey-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans-fast), transform var(--trans-fast);
}

.contact-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-item--link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.contact-item--link:hover .contact-details span,
.contact-item--link:hover .contact-details strong {
  color: var(--primary);
}

.contact-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.contact-icon--green { background: #dcfce7; color: var(--whatsapp-dark); }
.contact-icon--blue  { background: #dbeafe; color: #2563eb; }
.contact-icon--pink  { background: #fce7f3; color: var(--instagram); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-details strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-details a,
.contact-details span {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-details a:not(.map-link):hover {
  color: var(--primary);
}

.contact-map-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  transition: background var(--trans-fast), color var(--trans-fast);
}

.map-link:hover {
  background: var(--primary);
  color: var(--white);
}

.phone-link {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--whatsapp-dark) !important;
}

.hours-highlight {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
  display: flex;
  flex-direction: column;
}

.contact-map iframe {
  display: block;
  border: 0;
  flex: 1;
  min-height: 400px;
}

/* =========================================
   14. FOOTER
   ========================================= */
.footer {
  background: var(--text);
  color: var(--white);
}

.footer-top {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--trans-fast), color var(--trans-fast);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-links h4,
.footer-specialties h4,
.footer-contact h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.footer-links ul li,
.footer-specialties ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-specialties ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--trans-fast);
}

.footer-links ul li a:hover,
.footer-specialties ul li a:hover {
  color: var(--white);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

.footer-contact ul li i {
  color: var(--accent);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-contact ul li a {
  color: rgba(255,255,255,0.55);
  transition: color var(--trans-fast);
}

.footer-contact ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* =========================================
   15. RESPONSIVE — TABLET (>= 640px)
   ========================================= */
@media (min-width: 640px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =========================================
   16. RESPONSIVE — TABLET-L (>= 768px)
   ========================================= */
@media (min-width: 768px) {

  /* Navbar */
  .nav-toggle { display: none; }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    padding: 0;
    gap: 2rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================
   17. RESPONSIVE — DESKTOP (>= 1024px)
   ========================================= */
@media (min-width: 1024px) {

  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  }

  .specialties-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .professionals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   18. MOBILE NAV (< 768px)
   ========================================= */
@media (max-width: 767px) {

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top: 1px solid var(--grey-200);
  }

  .nav-links.nav-links--open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .navbar .nav-link {
    color: var(--text-muted);
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--grey-100);
    font-size: 1rem;
  }

  .navbar .nav-link::after {
    display: none;
  }

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

  .nav-cta {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  /* Hero adjustments */
  .hero-stats {
    gap: 0;
    padding: 1rem 1rem;
  }

  .stat-item {
    padding: 0 0.75rem;
  }

  .stat-item strong {
    font-size: 1.4rem;
  }

  /* Sections */
  :root { --section-py: 3.5rem; }

  .about-image-badge {
    right: 0;
    bottom: -1rem;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* =========================================
   19. MOBILE SMALL (< 480px)
   ========================================= */
@media (max-width: 479px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    text-align: center;
  }

  .stat-divider {
    width: 80px;
    height: 1px;
  }

  .stat-item {
    padding: 0;
  }

  .contact-map-links {
    flex-direction: column;
  }

  #whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
  }
}

/* =========================================
   20. ACCESSIBILITY & MISC
   ========================================= */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: var(--nav-height);
}
