@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=League+Spartan:wght@500;600;700&display=swap');

:root {
  --igea-navy: #234d73;
  --igea-teal: #23796f;
  --igea-mist: #effaf9;
  --igea-border: #d8e7ea;
}

body { color: var(--igea-navy); background: #fff; }
body, p, input, select, textarea, button, .sf-menu a, .mobile-menu a {
  font-family: 'DM Sans', system-ui, sans-serif !important;
}
body p, body li, body td { font-size: 1rem; line-height: 1.65; }
h1, h2, h3, h4, h5, h6, .box-header {
  font-family: 'League Spartan', system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -.025em;
}
.theme-page h1, .theme-page h2, .theme-page h3, .theme-page h4 { color: var(--igea-navy); }
.theme-page h1 { font-size: clamp(2.35rem, 5vw, 4.4rem); line-height: 1.04; }
.theme-page h2 { font-size: clamp(1.8rem, 3.2vw, 3.1rem); line-height: 1.1; }
.header-container { background: #fff !important; box-shadow: 0 1px 0 var(--igea-border), 0 12px 40px #162b5010; }
.header .sf-menu > li > a { color: var(--igea-navy); font-weight: 700; }
.header .sf-menu a:hover, .theme-page a:not([class]) { color: var(--igea-teal); }
.page-header { background: var(--igea-mist); border-bottom: 1px solid var(--igea-border); }
.theme-page .services-list > li, .theme-page .team-box, .theme-page .blog .post {
  border-radius: 18px;
}
.theme-page .service-details { background: var(--igea-mist); border-radius: 0 0 16px 16px; }
.theme-page .post-content a, .theme-page .wpb_text_column a { text-underline-offset: .2em; }
.theme-page .more, .theme-page .vc_btn3, .theme-page input[type='submit'] {
  background: var(--igea-teal) !important;
  border-color: var(--igea-teal) !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
}
.theme-page img { max-width: 100%; height: auto; }
.footer-container { background: #e4f2f8 !important; }
.footer-container p, .footer-container a, .footer-container h2, .footer-container h3,
.footer-container h4, .footer-container li, .footer-container address { color: var(--igea-navy) !important; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid #118984;
  outline-offset: 3px;
}

.header a:hover, .header .sf-menu > li.current-menu-item > a {
  background-color: var(--igea-mist) !important;
  color: var(--igea-navy) !important;
}
.header .sf-menu > li > a { border-radius: 6px; }
.theme-page .blog h2 a { color: var(--igea-navy); }
.theme-page .blog h2 a:hover { color: var(--igea-teal); }
@media (max-width: 767px) {
  .theme-page h1, .theme-page h2 { overflow-wrap: break-word; }
}

/* Shared surfaces and spacing */
body { background: #f5fafc; }
.site-container { background: #f5fafc; }
.header-container { border-top: 4px solid #8edbd1; }
.header-container .header { min-height: 0; padding-top: 20px; padding-bottom: 20px; }
.header-container .header .logo img { max-width: min(190px, 42vw); height: auto; }
.header .sf-menu > li > a { border-radius: 999px; }
.theme-page .page-header {
  background: #e0f2fa;
  color: var(--igea-navy);
  padding-block: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 2rem;
}
.theme-page .page-header h1, .theme-page .page-header h2,
.theme-page .page-header a, .theme-page .page-header li { color: var(--igea-navy); }
.theme-page .service-details { background: white; padding: 1.25rem; }
.theme-page .services-list > li > ul > li {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 #d8e7ea, 0 8px 26px #162b5012;
}
.footer-container { border-top: 7px solid #49bdb3; }
.igea-location-phone, .igea-map-contact a { font-weight: 700; white-space: nowrap; }
.igea-map-contact { display: block; margin: .55rem 0 0; }

/* Homepage and location navigation */
.igea-hero, .igea-locations {
  width: min(92%, 1180px);
  margin-inline: auto;
}
.igea-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6rem);
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4rem);
}
.igea-hero .igea-hero-name, .igea-locations .igea-location-intro {
  color: var(--igea-teal);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  padding: 0;
}
.igea-hero .igea-hero-title {
  color: var(--igea-navy);
  font-family: 'League Spartan', system-ui, sans-serif !important;
  font-size: clamp(3rem, 6.25vw, 6.2rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.048em;
  max-width: 13ch;
  padding: 0;
  margin: .7rem 0 1.35rem;
}
.igea-hero .igea-hero-description {
  color: #36566c;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 43ch;
  margin-top: 1.15rem;
  padding: 0;
}
.igea-hero-actions, .igea-location-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}
.igea-hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .15rem 1.15rem;
  border: 1px solid var(--igea-border);
  border-radius: 7px;
  font-weight: 700;
}
.igea-primary-link { background: #bde9e1; color: #184644; }
.igea-secondary-link { background: #fff; color: var(--igea-navy); }
.igea-hero-actions a:hover { background: #e3f5f1; color: #184644; }
.igea-hero-portrait {
  position: relative;
  margin: 0;
  background: #e8f5f7;
  border-radius: 16px;
  overflow: hidden;
}
.igea-hero-portrait > a { display: block; }
.igea-hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.igea-hero-portrait figcaption {
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--igea-border);
  border-radius: 0 0 16px 16px;
}
.igea-text-link {
  color: var(--igea-teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.igea-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  scroll-margin-top: 8rem;
}
.igea-location-intro { grid-column: 1 / -1; margin: 0 0 .7rem; }
.igea-locations article {
  background: #fff;
  border: 1px solid var(--igea-border);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 10px;
}
.igea-locations article + article { margin-left: .8rem; }
.igea-locations h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); margin: 0 0 .55rem; }
.igea-locations .igea-location-role { font-weight: 600; padding: 0; }
.igea-locations .igea-location-address { padding: .25rem 0 .7rem; }
.home .theme-page .igea-quiet-section,
.home .theme-page .igea-quiet-contact {
  background: #f2f8fa !important;
  background-image: none !important;
}
.home .theme-page .igea-quiet-section::before,
.home .theme-page .igea-quiet-section::after { background: transparent !important; }
.home .theme-page .igea-quiet-section :is(h2, h3, p),
.home .theme-page .igea-quiet-contact h2 { color: var(--igea-navy) !important; }
.home .igea-home-resources { margin-top: 3rem; }
.footer-container .footer-banner-box { background: #eef7fa !important; }
.home .igea-home-panels .wpb_wrapper > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
}
.home .igea-home-panels .wpb_wrapper > ul > li.home-box-container {
  display: block;
  float: none;
  width: auto;
  border: 1px solid #d8e7ea;
  border-radius: 16px;
  background: #fff !important;
  overflow: hidden;
}
.home .igea-home-panels .wpb_wrapper > ul > li .home-box {
  padding: clamp(1.2rem, 2.1vw, 2rem);
  min-height: 0;
  background: #fff !important;
  color: var(--igea-navy) !important;
}
.home .igea-home-panels .home-box :is(h2, h3, p, li, .text, .text a) { color: var(--igea-navy) !important; }
.home .igea-home-panels .home-box h2 { font-size: clamp(1.52rem, 2.3vw, 2.1rem); }
.home .igea-home-panels .home-box .more { color: #fff !important; }

@media (max-width: 860px) {
  .home .igea-home-panels .wpb_wrapper > ul { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .igea-hero, .igea-locations { grid-template-columns: 1fr; }
  .igea-hero { gap: 1.5rem; }
  .igea-hero .igea-hero-title { font-size: clamp(2.7rem, 9.8vw, 4.5rem); }
  .igea-hero-portrait { max-width: 29rem; }
  .igea-locations { gap: .7rem; }
  .igea-locations article + article { margin-left: 0; }
}
.home .igea-home-panels .home-box-container { opacity: 1 !important; visibility: visible !important; transform: none !important; }

.igea-clinical-approach {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  width: min(92%, 1180px);
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--igea-border);
  border-radius: 14px;
}
.igea-clinical-approach h2.box-header { margin-top: .6rem; }
.igea-clinical-photo { margin: 0; }
.igea-clinical-photo .igea-clinical-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 10px;
}
.theme-page .igea-service-location {
  color: #185a54;
  background: #e4f6f2;
  display: inline-block;
  border-radius: 6px;
  margin: .55rem 0 0;
  padding: .25rem .6rem;
  font-weight: 700;
}
.igea-location-exam { padding: 0 0 .7rem; }
.igea-bes-location {
  width: min(92%, 1180px);
  box-sizing: border-box;
  margin: 0 auto 1.75rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid #59b9a9;
  background: #eaf8f5;
  border-radius: 6px;
}
.igea-bes-location strong { font-size: 1.1rem; }
.igea-bes-location p { padding: .35rem 0; }
@media (max-width: 720px) {
  .igea-clinical-approach { grid-template-columns: 1fr; }
  .igea-clinical-photo .igea-clinical-image { aspect-ratio: 4 / 3; }
}

.theme-page .igea-medical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  align-items: stretch;
  gap: 1.25rem;
  padding: 0;
}
.theme-page .igea-medical-grid > li {
  display: flex;
  flex-direction: column;
  float: none;
  width: auto;
  margin: 0;
  border: 1px solid var(--igea-border);
  background: #fff;
  overflow: hidden;
}
.igea-medical-grid > li > a { display: block; width: 100%; }
.theme-page .igea-medical-grid > li img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.theme-page .igea-medical-grid .service-details {
  display: grid;
  grid-template-rows: minmax(3.1rem, auto) auto 1fr;
  flex: 1;
  box-sizing: border-box;
  width: 100%;
}
.igea-medical-grid .box-header { margin: 0; }
.igea-medical-grid .igea-service-location { justify-self: start; }
.theme-page .igea-medical-grid .service-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.igea-medical-grid .box-header { min-height: 3.15rem; }
.igea-medical-grid .igea-service-location { order: 1; margin-top: auto; }

.theme-page .igea-home-medical-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .theme-page .igea-home-medical-grid { grid-template-columns: 1fr; }
}

#team .igea-team-portrait {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
}
