/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra Child Theme — Instituto de Saúde Ocular
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Primary Palette */
  --iso-primary: #1565C0;
  --iso-primary-dark: #0D47A1;
  --iso-primary-light: #E3F2FD;
  --iso-primary-rgb: 21, 101, 192;

  /* Secondary / CTA */
  --iso-secondary: #00897B;
  --iso-secondary-dark: #00695C;
  --iso-secondary-light: #E0F2F1;

  /* Accent */
  --iso-accent: #FF6F00;
  --iso-accent-dark: #E65100;

  /* Neutrals */
  --iso-text: #212121;
  --iso-text-light: #616161;
  --iso-text-muted: #9E9E9E;
  --iso-bg: #FFFFFF;
  --iso-bg-alt: #F5F7FA;
  --iso-border: #E0E0E0;

  /* Functional */
  --iso-success: #2E7D32;
  --iso-whatsapp: #25D366;

  /* Spacing */
  --iso-section-py: 80px;
  --iso-gap: 24px;
  --iso-radius: 12px;
  --iso-radius-sm: 8px;

  /* Shadows */
  --iso-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --iso-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --iso-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  /* Transitions */
  --iso-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. GLOBAL RESETS & TYPOGRAPHY
   ========================================================================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 16px;
  line-height: 1.7;
  color: var(--iso-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.ast-archive-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
  color: var(--iso-text);
  line-height: 1.3;
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(24px, 3.5vw, 34px); }
h3 { font-size: clamp(20px, 3vw, 26px); }
h4 { font-size: clamp(18px, 2.5vw, 22px); }

p { margin-bottom: 1em; color: var(--iso-text-light); }

a {
  color: var(--iso-primary);
  transition: color var(--iso-transition);
}
a:hover { color: var(--iso-primary-dark); }

/* ==========================================================================
   3. TOP CONTACT BAR
   ========================================================================== */

.iso-top-bar {
  background: linear-gradient(135deg, var(--iso-primary-dark), var(--iso-primary));
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 100;
}

.iso-top-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.iso-top-bar__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.iso-top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color var(--iso-transition);
}
.iso-top-bar__item:hover { color: #fff; }

.iso-top-bar__item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.iso-top-bar__social {
  display: flex;
  gap: 10px;
}

.iso-top-bar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  transition: background var(--iso-transition);
}
.iso-top-bar__social a:hover { background: rgba(255,255,255,0.3); }
.iso-top-bar__social svg { width: 14px; height: 14px; fill: currentColor; }

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

.ast-primary-header-bar,
.site-header,
#masthead {
  background: var(--iso-bg) !important;
  box-shadow: var(--iso-shadow-sm);
  transition: box-shadow var(--iso-transition);
}

.main-header-bar {
  border-bottom: none !important;
}

/* Logo */
.site-branding .site-title a,
.ast-site-identity .site-title a {
  color: var(--iso-primary-dark) !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  letter-spacing: -0.5px;
}

/* Nav links */
.main-navigation a,
.ast-header-break-point .main-header-menu a,
.main-header-menu > .menu-item > a {
  color: var(--iso-text) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  padding: 10px 16px !important;
  transition: color var(--iso-transition) !important;
  position: relative;
}

.main-navigation a:hover,
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item.current-menu-item > a {
  color: var(--iso-primary) !important;
}

/* Active nav underline */
.main-header-menu > .menu-item.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--iso-primary);
  border-radius: 3px 3px 0 0;
}

/* Header CTA button */
.iso-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--iso-accent) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all var(--iso-transition) !important;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
  white-space: nowrap;
}
.iso-header-cta:hover {
  background: var(--iso-accent-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
}
.iso-header-cta svg { width: 16px; height: 16px; fill: currentColor; }

/* ==========================================================================
   5. HERO SECTION OVERRIDES
   ========================================================================== */

.uagb-section__wrap .uagb-ifb-title-prefix {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.uagb-section__wrap .uagb-ifb-desc {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Fix: hero title being clipped by overflow hidden on desktop & mobile */
.uagb-block-917c30e3 .uagb-section__inner-wrap {
  overflow: visible !important;
}
.uagb-block-1a0de539.uagb-infobox__content-wrap {
  overflow: visible !important;
}

/* ==========================================================================
   6. SECTION STYLES
   ========================================================================== */

.iso-section {
  padding: var(--iso-section-py) 0;
}
.iso-section--alt { background: var(--iso-bg-alt); }

.iso-section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.iso-section__badge {
  display: inline-block;
  background: var(--iso-primary-light);
  color: var(--iso-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.iso-section__title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--iso-text);
  margin-bottom: 12px;
}

.iso-section__subtitle {
  font-size: 17px;
  color: var(--iso-text-light);
  line-height: 1.6;
}

.iso-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   7. SPECIALTY CARDS
   ========================================================================== */

.iso-specialties__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--iso-gap);
}

.iso-card {
  background: var(--iso-bg);
  border-radius: var(--iso-radius);
  padding: 32px 28px;
  box-shadow: var(--iso-shadow-sm);
  border: 1px solid var(--iso-border);
  transition: all var(--iso-transition);
  position: relative;
  overflow: hidden;
}

.iso-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--iso-primary), var(--iso-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--iso-transition);
}

.iso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--iso-shadow-md);
  border-color: transparent;
}
.iso-card:hover::before { transform: scaleX(1); }

.iso-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--iso-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--iso-transition);
}
.iso-card:hover .iso-card__icon { background: var(--iso-primary); }
.iso-card__icon svg { width: 28px; height: 28px; fill: var(--iso-primary); transition: fill var(--iso-transition); }
.iso-card:hover .iso-card__icon svg { fill: #fff; }

.iso-card__title {
  font-size: 19px;
  font-weight: 600;
  color: var(--iso-text);
  margin-bottom: 10px;
}

.iso-card__desc {
  font-size: 15px;
  color: var(--iso-text-light);
  line-height: 1.6;
}

/* ==========================================================================
   8. TEAM SECTION
   ========================================================================== */

.iso-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--iso-gap);
}

.iso-team-card {
  background: var(--iso-bg);
  border-radius: var(--iso-radius);
  overflow: hidden;
  box-shadow: var(--iso-shadow-sm);
  border: 1px solid var(--iso-border);
  text-align: center;
  transition: all var(--iso-transition);
}
.iso-team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--iso-shadow-md);
}

.iso-team-card__photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--iso-bg-alt);
}

.iso-team-card__info { padding: 24px; }

.iso-team-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--iso-text);
  margin-bottom: 4px;
}

.iso-team-card__crm {
  font-size: 13px;
  color: var(--iso-text-muted);
  margin-bottom: 8px;
}

.iso-team-card__specialty {
  display: inline-block;
  background: var(--iso-primary-light);
  color: var(--iso-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ==========================================================================
   9. TESTIMONIALS
   ========================================================================== */

.iso-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--iso-gap);
}

.iso-testimonial {
  background: var(--iso-bg);
  border-radius: var(--iso-radius);
  padding: 32px;
  box-shadow: var(--iso-shadow-sm);
  border: 1px solid var(--iso-border);
  position: relative;
}

.iso-testimonial__stars {
  color: #FFC107;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.iso-testimonial__text {
  font-size: 15px;
  color: var(--iso-text-light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.iso-testimonial__author {
  font-size: 15px;
  font-weight: 600;
  color: var(--iso-text);
}

.iso-testimonial__quote {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 48px;
  color: var(--iso-primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ==========================================================================
   10. CTA SECTION
   ========================================================================== */

.iso-cta {
  background: linear-gradient(135deg, var(--iso-primary-dark), var(--iso-primary));
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.iso-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.iso-cta__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.iso-cta__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.iso-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--iso-transition);
}

.iso-btn--white {
  background: #fff;
  color: var(--iso-primary-dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.iso-btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  color: var(--iso-primary-dark);
}

.iso-btn--accent {
  background: var(--iso-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,111,0,0.3);
}
.iso-btn--accent:hover {
  background: var(--iso-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.iso-btn--secondary {
  background: var(--iso-secondary);
  color: #fff;
}
.iso-btn--secondary:hover {
  background: var(--iso-secondary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.iso-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   11. ENHANCED FOOTER
   ========================================================================== */

.iso-footer {
  background: #0D1B2A;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.iso-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.iso-footer__brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.iso-footer__brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.iso-footer__heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.iso-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.iso-footer__links li { margin-bottom: 10px; }

.iso-footer__links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--iso-transition);
}
.iso-footer__links a:hover { color: #fff; }

.iso-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.iso-footer__contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--iso-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.iso-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   12. WHATSAPP FLOATING BUTTON
   ========================================================================== */

.iso-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.iso-whatsapp__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--iso-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--iso-transition);
  animation: iso-pulse 2s infinite;
}

.iso-whatsapp__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.iso-whatsapp__btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.iso-whatsapp__tooltip {
  background: #fff;
  color: var(--iso-text);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--iso-shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--iso-transition);
  pointer-events: none;
}

.iso-whatsapp:hover .iso-whatsapp__tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes iso-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   13. FORMS (WPForms Enhancement)
   ========================================================================== */

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form textarea,
.wpforms-container .wpforms-form select {
  border: 2px solid var(--iso-border) !important;
  border-radius: var(--iso-radius-sm) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-family: 'Inter', sans-serif !important;
  transition: border-color var(--iso-transition) !important;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form textarea:focus {
  border-color: var(--iso-primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--iso-primary-rgb), 0.1) !important;
  outline: none !important;
}

.wpforms-container .wpforms-form button[type="submit"],
.wpforms-container .wpforms-form .wpforms-submit {
  background: var(--iso-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
  transition: all var(--iso-transition) !important;
}

.wpforms-container .wpforms-form button[type="submit"]:hover {
  background: var(--iso-primary-dark) !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   14. GOOGLE MAPS ENHANCEMENT
   ========================================================================== */

.uagb-google-map__wrap {
  border-radius: var(--iso-radius) !important;
  overflow: hidden;
  box-shadow: var(--iso-shadow-md);
  border: 1px solid var(--iso-border);
}

/* ==========================================================================
   15. ASTRA OVERRIDES & CONTENT
   ========================================================================== */

/* Boxed content style */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  border-radius: var(--iso-radius);
  box-shadow: var(--iso-shadow-sm);
  border: 1px solid var(--iso-border);
}

/* Buttons globally */
.wp-block-button__link,
.ast-button,
.button,
input[type="submit"] {
  border-radius: 50px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  transition: all var(--iso-transition) !important;
}

/* Remove Astra default footer */
.site-footer .site-info { display: none; }

/* ==========================================================================
   15b. SPECTRA (UAG) CONTENT FIXES — HIGH SPECIFICITY
   ========================================================================== */

/*
 * Spectra (UAG) uses block-specific selectors like .uagb-block-XXXXX
 * which have higher specificity. We use double-class + !important to override.
 */

/* --- SVG Icon Size Constraints --- */
/* Force all Spectra info-box SVGs to respect max dimensions */
.uagb-infobox__content-wrap.uagb-infobox__content-wrap .uagb-ifb-icon-wrap svg,
.uagb-infobox__content-wrap.uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-icon-wrap svg,
.uagb-infobox__content-wrap .uagb-ifb-content svg,
.uagb-ifb-content > svg,
.wp-block-uagb-info-box.wp-block-uagb-info-box .uagb-ifb-icon-wrap svg {
  max-width: 50px !important;
  max-height: 50px !important;
}

/* Constrain the icon wrapper itself */
.uagb-infobox__content-wrap.uagb-infobox__content-wrap .uagb-iconbox-icon-wrap {
  max-width: 60px !important;
  max-height: 60px !important;
}

/* --- Text/Description Size Fix --- */
/* The main culprit: Spectra sets .uagb-ifb-desc to 50px on some blocks */
.uagb-infobox__content-wrap.uagb-infobox__content-wrap .uagb-ifb-desc,
.wp-block-uagb-info-box.wp-block-uagb-info-box .uagb-ifb-desc,
[class*="uagb-block-"].uagb-infobox__content-wrap .uagb-ifb-desc,
[class*="uagb-block-"].wp-block-uagb-info-box .uagb-ifb-desc {
  font-size: clamp(14px, 2vw, 18px) !important;
  line-height: 1.6 !important;
}

/* Title sizes */
.uagb-infobox__content-wrap.uagb-infobox__content-wrap .uagb-ifb-title,
.wp-block-uagb-info-box.wp-block-uagb-info-box .uagb-ifb-title,
[class*="uagb-block-"].uagb-infobox__content-wrap .uagb-ifb-title,
[class*="uagb-block-"].wp-block-uagb-info-box .uagb-ifb-title {
  font-size: clamp(18px, 2.5vw, 24px) !important;
  line-height: 1.3 !important;
}

/* Title prefix */
.uagb-infobox__content-wrap.uagb-infobox__content-wrap .uagb-ifb-title-prefix,
[class*="uagb-block-"] .uagb-ifb-title-prefix {
  font-size: clamp(14px, 2vw, 18px) !important;
}

/* Prevent SVGs from inheriting fill from global rules */
.uagb-infobox__content-wrap svg {
  fill: currentColor;
}

/* Fix separator/divider lines inside Spectra blocks */
.entry-content .uagb-ifb-separator {
  max-width: 60px;
  margin: 10px auto;
}

/* ==========================================================================
   15b-ii. BLOCK-SPECIFIC OVERRIDES (Doenças Oculares & Exames pages)
   ========================================================================== */

/*
 * Block uagb-block-01eafc83 (Doenças Oculares — hero info-box)
 * Original: title-prefix 55px, desc 40px, mobile: title 35px, desc 30px
 */
.uagb-block-01eafc83 .uagb-ifb-desc {
  font-size: 16px !important;
}
.uagb-block-01eafc83 .uagb-ifb-title-prefix {
  font-size: 22px !important;
}
.uagb-block-01eafc83 .uagb-ifb-title {
  font-size: 20px !important;
}

/*
 * Block uagb-block-8aea7a9e (Doenças Oculares — contact info-boxes)
 * Original: desc 25px
 */
.uagb-block-8aea7a9e .uagb-ifb-desc {
  font-size: 16px !important;
}

/*
 * Block uagb-block-a6e11702 (Exames page — main info-box)
 * Original: title 30px, desc 50px
 */
.uagb-block-a6e11702 .uagb-ifb-title {
  font-size: 22px !important;
}
.uagb-block-a6e11702 .uagb-ifb-desc {
  font-size: 16px !important;
}

/*
 * Block uagb-block-4c0f1209 (Exames page — secondary info-box)
 * Original: desc 35px
 */
.uagb-block-4c0f1209 .uagb-ifb-desc {
  font-size: 16px !important;
}

/* ALL Spectra info-box SVGs — ultra-aggressive global constraint */
/* Target every possible wrapper pattern used by Spectra */
.uagb-ifb-content > svg,
.uagb-ifb-icon svg,
.uagb-ifb-icon-wrap svg,
.uagb-iconbox-icon-wrap svg,
.uagb-infobox__content-wrap .uagb-ifb-icon-wrap svg,
.uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-icon-wrap svg,
[class*="uagb-block-"] .uagb-ifb-icon-wrap svg,
[class*="uagb-block-"].uagb-infobox__content-wrap .uagb-ifb-icon-wrap svg,
[class*="uagb-block-"].uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-icon-wrap svg {
  width: 35px !important;
  height: 35px !important;
  max-width: 40px !important;
  max-height: 40px !important;
}

/* Also constrain the icon wrapper containers */
.uagb-ifb-icon,
.uagb-ifb-icon-wrap,
.uagb-iconbox-icon-wrap,
[class*="uagb-block-"] .uagb-iconbox-icon-wrap,
[class*="uagb-block-"] .uagb-ifb-icon {
  max-width: 60px !important;
  max-height: 60px !important;
}

/* ==========================================================================
   15c. DISEASES/EXAMES PAGE — OVERLAP FIX
   ========================================================================== */

/* Ensure page content sections don't overlap */
.entry-content .uagb-section__wrap {
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Fix the contact columns block overlapping the disease cards above */
/* Spectra sets margin-top: -30px on .uagb-block-41cb6184 */
.uagb-block-41cb6184.uagb-columns__wrap {
  margin-top: 20px !important;
}

/* Fix stacking context — CTA section and footer below content */
.iso-cta {
  position: relative;
  z-index: 2;
}

.iso-footer {
  position: relative;
  z-index: 2;
}

/* Ensure the contact/address info inside UAG sections stays contained */
.entry-content .uagb-section__inner-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Fix any Spectra columns layout that may cause overlap */
.entry-content .uagb-columns__wrap {
  position: relative;
  z-index: 1;
}

/* Ensure proper spacing between page sections */
.entry-content > .uagb-section__wrap,
.entry-content > .wp-block-uagb-section {
  margin-bottom: 0;
  clear: both;
}

/* Fix the info-box cards to not overflow their containers */
.entry-content .uagb-infobox__content-wrap {
  overflow: hidden;
}

/* Spectra section overlay fix — don't let overlays bleed */
.uagb-section__overlay {
  pointer-events: none;
}

/* Ensure proper whitespace for content blocks */
.entry-content .uagb-section__wrap + .uagb-section__wrap {
  margin-top: 0;
}

/* Fix Google Maps container on these pages */
.entry-content .uagb-google-map__wrap {
  position: relative;
  z-index: 1;
  clear: both;
}

/* ==========================================================================
   16. ACCESSIBILITY
   ========================================================================== */

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--iso-primary) !important;
  outline-offset: 2px !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .iso-whatsapp__btn { animation: none; }
}

/* High contrast */
@media (prefers-contrast: high) {
  :root {
    --iso-text: #000;
    --iso-border: #000;
  }
  .iso-card, .iso-team-card, .iso-testimonial {
    border-width: 2px;
    border-color: #000;
  }
}

/* ==========================================================================
   17. THREE.JS CONTAINER
   ========================================================================== */

.iso-threejs-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.iso-threejs-container canvas {
  display: block;
}

.iso-cta .iso-container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   18. RESPONSIVE — ENHANCED MOBILE
   ========================================================================== */

/* --- Tablet (max 921px) --- */
@media (max-width: 921px) {
  .iso-top-bar__inner { justify-content: center; text-align: center; }
  .iso-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  :root { --iso-section-py: 60px; }

  /* Fix Astra header on tablet */
  .main-header-bar .ast-container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* Spectra hero text sizing */
  .uagb-ifb-title-prefix {
    font-size: 36px !important;
  }
  .uagb-ifb-desc {
    font-size: 28px !important;
  }

  /* Spectra info-box icon/SVG fixes for tablet */
  .entry-content .uagb-ifb-icon svg,
  .entry-content .uagb-iconbox-icon-wrap svg {
    max-width: 40px !important;
    max-height: 40px !important;
  }

  .entry-content .uagb-ifb-title {
    font-size: 20px !important;
  }

  .entry-content .uagb-ifb-desc {
    font-size: 15px !important;
  }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  /* Hide header CTA on mobile */
  .iso-header-cta,
  .iso-header-cta-wrap { display: none !important; }

  /* Stack grids */
  .iso-specialties__grid,
  .iso-team__grid,
  .iso-testimonials__grid { grid-template-columns: 1fr; }

  /* Footer single column */
  .iso-footer__grid { grid-template-columns: 1fr; }
  :root { --iso-section-py: 50px; }

  /* WhatsApp button */
  .iso-whatsapp__tooltip { display: none; }
  .iso-whatsapp { bottom: 16px; right: 16px; }
  .iso-whatsapp__btn { width: 54px; height: 54px; }
  .iso-whatsapp__btn svg { width: 28px; height: 28px; }

  /* Fix Astra mobile header overlap */
  .ast-primary-header-bar .ast-container,
  .site-header .ast-container {
    padding: 8px 15px !important;
  }

  .site-branding .site-title a,
  .ast-site-identity .site-title a {
    font-size: 18px !important;
  }

  /* Mobile-friendly nav */
  .ast-header-break-point .main-header-menu a {
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* Ensure content doesn't overflow */
  .ast-container,
  .iso-container {
    padding: 0 16px !important;
    overflow-x: hidden;
  }

  /* Hero section adjustments */
  .uagb-section__wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .uagb-ifb-title-prefix {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .uagb-ifb-desc {
    font-size: 22px !important;
    line-height: 1.4 !important;
  }

  /* Cards mobile padding */
  .iso-card {
    padding: 24px 20px;
  }

  /* CTA section mobile */
  .iso-cta {
    padding: 50px 0;
  }
  .iso-cta__title {
    font-size: 22px;
  }
  .iso-cta__subtitle {
    font-size: 15px;
  }

  /* Footer mobile */
  .iso-footer {
    padding: 40px 0 0;
  }
  .iso-footer__grid {
    padding: 0 16px 30px;
    gap: 24px;
  }

  /* Section headers */
  .iso-section__header {
    margin-bottom: 30px;
  }

  /* Buttons full width on mobile */
  .iso-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  /* Team card images smaller */
  .iso-team-card__photo {
    height: 220px;
  }

  /* Google Maps responsive */
  .uagb-google-map__wrap {
    margin: 0 -16px;
    border-radius: 0 !important;
  }

  /* Fix: Botao "veja mais doencas oculares" quebrando em mobile */
  .wp-block-button.wp-block-button__width-50 {
    width: 100% !important;
    max-width: 100% !important;
  }
  .wp-block-button.wp-block-button__width-50 .wp-block-button__link {
    font-size: 16px !important;
    white-space: normal !important;
    word-break: keep-all !important;
    hyphens: none !important;
    padding: 14px 24px !important;
    line-height: 1.3 !important;
  }

  /* Fix: Hero title info-box — evita que texto fique cortado/isolado em mobile */
  .uagb-block-917c30e3.uagb-section__wrap {
    padding-top: 140px !important;
    padding-bottom: 60px !important;
  }
  .uagb-block-917c30e3 .uagb-section__inner-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }
  .uagb-block-1a0de539 .uagb-infobox-margin-wrapper {
    margin: 0 !important;
  }
  .uagb-block-1a0de539.uagb-infobox__content-wrap {
    margin: 0 !important;
    padding: 0 16px !important;
  }
  .uagb-block-1a0de539 .uagb-ifb-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
  }
  .uagb-block-1a0de539 .uagb-ifb-title-wrap {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ajuste geral para botoes largos no mobile */
  .wp-block-buttons .wp-block-button {
    width: 100%;
    max-width: 100%;
  }
  .wp-block-buttons .wp-block-button .wp-block-button__link {
    width: 100%;
    display: block;
    text-align: center;
  }

  /* Table/content overflow prevention */
  .entry-content,
  .page-content,
  .post-content {
    overflow-x: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Images never exceed viewport */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Spectra info-box fixes for mobile */
  .entry-content .uagb-ifb-icon svg,
  .entry-content .uagb-iconbox-icon-wrap svg,
  .entry-content .uagb-ifb-icon-wrap svg {
    max-width: 32px !important;
    max-height: 32px !important;
  }

  .entry-content .uagb-ifb-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  .entry-content .uagb-ifb-desc {
    font-size: 14px !important;
  }

  /* Spectra sections — prevent overlap on mobile */
  .entry-content .uagb-section__inner-wrap {
    padding: 16px !important;
  }

  /* Spectra columns stack on mobile */
  .entry-content .uagb-columns__wrap .uagb-column__wrap {
    padding: 12px 0 !important;
  }

  .entry-content .uagb-infobox__content-wrap {
    padding: 16px !important;
  }

  /* ===== FIX: Exames page — background-image columns collapsing on mobile ===== */
  /* When Spectra 2-column layouts stack on mobile, columns that use only a
     background-image (no inner content) collapse to ~24px. We give them a
     proper height and ensure the image displays correctly. */
  .entry-content .uagb-column__background-image.uagb-column__wrap {
    min-height: 250px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: var(--iso-radius) !important;
    margin: 8px 0 !important;
  }
}

/* --- Small Mobile (max 480px) --- */
@media (max-width: 480px) {
  .iso-top-bar { font-size: 11px; padding: 6px 0; }
  .iso-top-bar__contact { flex-direction: column; gap: 4px; align-items: center; }
  .iso-cta { padding: 40px 0; }

  .iso-section__title { font-size: 22px; }
  .iso-section__subtitle { font-size: 14px; }
  .iso-section__badge { font-size: 11px; padding: 5px 12px; }

  h1 { font-size: 26px !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 18px !important; }

  .iso-footer__brand-name { font-size: 18px; }
  .iso-footer__heading { font-size: 14px; }
}

/* --- Very Small (max 320px) --- */
@media (max-width: 320px) {
  .iso-top-bar__contact { font-size: 10px; }
  .iso-card { padding: 20px 16px; }
  .iso-btn { padding: 14px 16px; font-size: 14px; }
}