/*
Theme Name: Magnolia ASC Divi Child
Theme URI: https://preview--woodland-healing-hub.lovable.app/
Description: Divi child theme styling for the Magnolia Ambulatory Surgery Center recreated website. Requires the Divi parent theme by Elegant Themes.
Author: Manus
Template: Divi
Version: 1.1.0
Text Domain: magnolia-asc-divi
*/

:root {
  --mags-bg: #f5f9fc;
  --mags-surface: #ffffff;
  --mags-primary: #075da8;
  --mags-primary-dark: #024f93;
  --mags-primary-deep: #073f75;
  --mags-primary-light: #e8f4ff;
  --mags-accent: #0f83ca;
  --mags-text: #121a24;
  --mags-muted: #647484;
  --mags-border: #d6e2ee;
  --mags-shadow: 0 22px 55px rgba(7, 63, 117, 0.16);
  --mags-heading: 'Outfit', 'Inter', Arial, sans-serif;
  --mags-body: 'Inter', Arial, sans-serif;
}

body, .et_pb_text, .et_pb_blurb_description, .et_pb_button, .et_pb_module {
  font-family: var(--mags-body);
}

h1, h2, h3, h4, h5, h6, .et_pb_module_header {
  font-family: var(--mags-heading);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--mags-text);
}

#main-header {
  box-shadow: 0 1px 0 rgba(214, 226, 238, 0.85) !important;
}

.mags-hero {
  min-height: 840px;
  background-image: linear-gradient(90deg, rgba(2, 61, 112, 0.91) 0%, rgba(5, 86, 150, 0.84) 48%, rgba(11, 125, 174, 0.72) 100%), url('assets/images/magnolia-medical-specialists-building.jpg') !important;
  background-position: center center !important;
  background-size: cover !important;
  color: #fff;
  overflow: visible !important;
}

.mags-hero .et_pb_row {
  min-height: 650px;
  display: flex;
  align-items: center;
}

.mags-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 700;
}

.mags-hero-title h1 {
  color: #fff !important;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  max-width: 690px;
}

.mags-hero-copy p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 20px;
  line-height: 1.65;
}

.mags-btn-white .et_pb_button,
.mags-btn-white.et_pb_button {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--mags-primary) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.17);
}

.mags-btn-outline .et_pb_button,
.mags-btn-outline.et_pb_button {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.43) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.mags-info-section {
  margin-top: -102px;
  z-index: 5;
  position: relative;
  background: transparent !important;
}

.mags-info-row {
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--mags-shadow);
  padding: 28px !important;
}

.mags-card,
.mags-info-card,
.mags-contact-card {
  border: 1px solid var(--mags-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #f3f8fd);
  padding: 24px !important;
  box-shadow: 0 14px 36px rgba(7, 63, 117, 0.08);
}

.mags-card h3,
.mags-info-card h3,
.mags-contact-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.mags-card p,
.mags-info-card p,
.mags-contact-card p,
.mags-copy p {
  color: var(--mags-muted);
  line-height: 1.7;
}

.mags-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--mags-primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(7, 93, 168, 0.2);
}

.mags-eyebrow {
  color: var(--mags-primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mags-heading h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  margin-top: 10px;
}

.mags-image-rounded img {
  border-radius: 28px;
  box-shadow: var(--mags-shadow);
}

.mags-check {
  color: var(--mags-primary);
  font-weight: 900;
}

.mags-contact-section {
  background: linear-gradient(135deg, var(--mags-primary-deep), var(--mags-primary)) !important;
}

.mags-contact-section .mags-eyebrow,
.mags-contact-section h2,
.mags-contact-section p {
  color: #fff !important;
}

.mags-contact-section .mags-contact-card h3,
.mags-contact-section .mags-contact-card p {
  color: var(--mags-text) !important;
}

@media (max-width: 980px) {
  .mags-hero {
    min-height: auto;
  }
  .mags-hero .et_pb_row {
    min-height: 560px;
  }
  .mags-info-section {
    margin-top: -72px;
  }
  .mags-info-row {
    padding: 18px !important;
  }
}

@media (max-width: 767px) {
  .mags-hero-title h1 {
    font-size: 42px;
  }
  .mags-hero-copy p {
    font-size: 17px;
  }
}


.brand-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.site-footer .brand-logo-img {
  width: 56px;
  height: 56px;
}


.mags-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}


/* v1.1 installed-site parity fixes: keep Divi header visible and force preview typography/spacing. */
html body {
  font-family: var(--mags-body) !important;
  background: var(--mags-bg) !important;
}

#page-container #main-header,
#main-header {
  display: block !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 1px 0 rgba(214, 226, 238, 0.9) !important;
}

#main-header .container {
  width: min(calc(100% - 32px), 1250px) !important;
  max-width: 1250px !important;
}

#logo {
  max-height: 58px !important;
  width: auto !important;
}

.et_header_style_left #et-top-navigation,
.et_header_style_split #et-top-navigation {
  padding-top: 24px !important;
}

#top-menu li a {
  font-family: var(--mags-body) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #26323d !important;
}

#top-menu li.current-menu-item > a,
#top-menu li a:hover {
  color: var(--mags-primary) !important;
}

body #page-container .mags-hero.et_pb_section {
  min-height: 840px !important;
  background-image: linear-gradient(90deg, rgba(2, 61, 112, 0.91) 0%, rgba(5, 86, 150, 0.84) 48%, rgba(11, 125, 174, 0.72) 100%), url('assets/images/magnolia-medical-specialists-building.jpg') !important;
  background-position: center center !important;
  background-size: cover !important;
  padding-top: 110px !important;
  padding-bottom: 170px !important;
}

body #page-container .mags-hero .et_pb_row {
  width: min(calc(100% - 32px), 1250px) !important;
  max-width: 1250px !important;
  min-height: 650px !important;
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body #page-container .mags-hero .et_pb_column {
  max-width: 650px !important;
  width: 650px !important;
  float: none !important;
}

body #page-container .mags-badge {
  font-family: var(--mags-body) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

body #page-container .mags-hero-title,
body #page-container .mags-hero-title .et_pb_text_inner,
body #page-container .mags-hero-title h1 {
  text-align: left !important;
}

body #page-container .mags-hero-title h1,
body #page-container .mags-hero-title .et_pb_text_inner h1 {
  color: #ffffff !important;
  font-family: var(--mags-heading) !important;
  font-size: clamp(48px, 6vw, 86px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.055em !important;
  line-height: 1.03 !important;
  max-width: 690px !important;
  margin: 0 0 22px 0 !important;
  padding: 0 !important;
}

body #page-container .mags-hero-copy,
body #page-container .mags-hero-copy .et_pb_text_inner,
body #page-container .mags-hero-copy p {
  text-align: left !important;
}

body #page-container .mags-hero-copy p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--mags-body) !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  max-width: 610px !important;
  margin: 0 0 26px 0 !important;
}

body #page-container .mags-btn-white,
body #page-container .mags-btn-outline {
  display: inline-block !important;
  margin-right: 14px !important;
}

body #page-container .mags-btn-white .et_pb_button,
body #page-container .mags-btn-outline .et_pb_button {
  font-family: var(--mags-body) !important;
  font-weight: 900 !important;
  border-radius: 999px !important;
  padding: 15px 24px !important;
  line-height: 1 !important;
}

body #page-container .mags-info-section.et_pb_section {
  margin-top: -102px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
  position: relative !important;
  z-index: 10 !important;
}

body #page-container .mags-info-row {
  width: min(calc(100% - 32px), 1250px) !important;
  max-width: 1250px !important;
  background: #ffffff !important;
  border-radius: 22px 22px 0 0 !important;
  box-shadow: var(--mags-shadow) !important;
  padding: 28px !important;
}

body #page-container .mags-info-card,
body #page-container .mags-card,
body #page-container .mags-contact-card {
  font-family: var(--mags-body) !important;
  border: 1px solid var(--mags-border) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #f8fbff, #f3f8fd) !important;
}

body #page-container .mags-heading h2,
body #page-container .mags-card h3,
body #page-container .mags-info-card h3,
body #page-container .mags-contact-card h3 {
  font-family: var(--mags-heading) !important;
  font-weight: 900 !important;
}

@media (max-width: 980px) {
  body #page-container .mags-hero.et_pb_section {
    min-height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 130px !important;
  }
  body #page-container .mags-hero .et_pb_row {
    min-height: 560px !important;
    display: block !important;
  }
  body #page-container .mags-hero .et_pb_column {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  body #page-container .mags-hero-title h1,
  body #page-container .mags-hero-title .et_pb_text_inner h1 {
    font-size: 42px !important;
  }
  body #page-container .mags-hero-copy p {
    font-size: 17px !important;
  }
}
