/*
 Theme Name:   Sde Peony
 Template:     astra
 Version:      1.0.0
*/

/* ============================================================
   Plugin overrides
   ============================================================ */

/* WPML — hide development site banner */
div.otgs-development-site-front-end {
  display: none !important;
}

/* Max Mega Menu — primary nav link weight */
#mega-menu-wrap-primary
  #mega-menu-primary
  > li.mega-menu-item
  > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link {
  font-weight: 500 !important;
}

/* Max Mega Menu — megamenu border */
#mega-menu-wrap-primary
  #mega-menu-primary
  > li.mega-menu-megamenu
  > ul.mega-sub-menu {
  border: 1px solid #f2f0e1 !important;
}

/* Max Mega Menu — inner background on home */
body.home
  #mega-menu-wrap-primary
  #mega-menu-primary
  li.mega-menu-megamenu
  > ul.mega-sub-menu
  > li.mega-menu-row,
body.home
  #mega-menu-wrap-primary
  #mega-menu-primary
  > li.mega-menu-flyout
  ul.mega-sub-menu
  li.mega-menu-item
  a.mega-menu-link {
  background-color: #fff;
}

/* WPML language switcher inside Max Mega Menu */
.mega-menu-item-type-wpml_ls_menu_item > ul.mega-sub-menu {
  width: 60px !important;
  min-width: unset !important;
  max-width: 80px;
  padding: 0 !important;
  text-align: center;
}

ul.mega-sub-menu li.mega-wpml-ls-menu-item a.mega-menu-link {
  text-align: center !important;
}

/* ============================================================
   Site header
   ============================================================ */

header.site-header span.site-logo-img a img {
  height: 100px;
  width: 100px;
  max-width: 100px;
  margin-top: -10px;
  margin-bottom: -10px;
}

body.home header.site-header span.site-logo-img a img {
  position: relative;
  top: 73px;
  height: 130px;
  width: 130px;
  max-width: 130px;
  margin-top: -40px;
}

.ast-primary-header-bar {
  background-color: #f0f7fa;
}

/* ============================================================
   Page entry header
   ============================================================ */

div.site > header.entry-header {
  background: #fff;
  padding-top: 24px;
  padding-bottom: 0;
  margin-bottom: 0;
}

header.entry-header .entry-title {
  margin-bottom: 5px;
}

/* ============================================================
   Section titles (entry title + .sectionTitle decorative lines)
   ============================================================ */

.entry-title,
body.home .sectionTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  position: relative;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0 !important;
}

.sectionTitle {
  text-transform: none;
  font-size: 36px !important;
}

.sectionTitle::before,
.sectionTitle::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #2f4f4f;
  transform: translateY(2px);
}

.sectionTitle::before {
  margin-right: 1rem;
}

.sectionTitle::after {
  margin-left: 1rem;
}

/* ============================================================
   Home cover block
   ============================================================ */

body.home div.wp-block-cover h2,
body.home div.wp-block-cover h3 {
  font-size: 26px;
  display: block;
}

body.home .wp-block-cover__inner-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 3px;
}

@media (min-width: 993px) {
  body.home .wp-block-cover__inner-container {
    width: 550px !important;
    max-width: 80% !important;
    left: 20%;
  }
}

@media (max-width: 768px) {
  body.home .wp-block-cover__inner-container {
    width: 90% !important;
    max-width: 90% !important;
    left: 5%;
  }
}

/* ============================================================
   Body text
   ============================================================ */

p {
  color: #3c2a11;
}

.address-block {
  margin-bottom: 5px !important;
}

/* ============================================================
   Hero block
   ============================================================ */

h2.heroTitle {
  color: #083335;
  font-weight: 300;
  font-size: 26px;
}

h2.heroTitle span {
  font-weight: 600;
}

p.cormorant.heroLocations {
  font-size: 24px !important;
  color: #083335;
  font-weight: 600;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

.heroEmail {
  margin-bottom: 0 !important;
  font-size: 17px !important;
}

.heroEmailContact {
  font-size: 22px !important;
}

/* ============================================================
   WhatsApp contact
   ============================================================ */

.whatsapp-contact {
  margin-top: 5px !important;
  text-align: center;
}

.whatsapp-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none !important;
  font-size: 17px;
  color: inherit;
  font-weight: 500;
}

div.whatsapp-contact a {
  background: rgb(69, 90, 100);
  padding: 15px 30px 15px 35px;
  border-radius: 30px;
}

.whatsapp-contact i {
  color: #25d366;
  font-size: 1.4em;
}

.whatsapp-contact .label {
  color: #fff;
  font-weight: 600;
}

.whatsapp-contact .number {
  color: #333;
}

.whatsapp-contact a:hover i {
  transform: scale(1.1);
}

/* ============================================================
   Diagnostic / patient cards
   ============================================================ */

.diagnostic-card,
.patient-card {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.diagnostic-card:hover,
.patient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.diagnostic-card p,
.patient-card p {
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   Archive / blog
   ============================================================ */

body.archive .site-content,
body.blog .site-content {
  background-color: #ffffff;
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.archive .site-content {
  padding-top: 15px;
}

body.archive .ast-container {
  max-width: 1140px;
  margin: 0 auto;
}

body.archive .site {
  background-color: #f4f0dc;
}

.site-content .ast-single-post-featured-section img {
  border-radius: 3px;
  max-width: 96%;
  margin-right: auto;
  margin-left: auto;
}

/* ============================================================
   Contact Form 7 — submit button
   ============================================================ */

input[type="submit"].wpcf7-form-control.wpcf7-submit.has-spinner {
  background-color: rgb(213, 229, 233);
  width: 100%;
  border-radius: 30px;
  color: #000000;
  font-weight: bold;
  text-transform: uppercase;
}

/* ============================================================
   Essential Blocks accordion (FAQ)
   ============================================================ */

.esab-bvo76hvf.wp-block-esab-accordion
  .wp-block-esab-accordion-child
  > .esab__head,
.esab-bvo76hvf.wp-block-esab-accordion.nested-accordion
  .wp-block-esab-accordion-child
  > .esab__head {
  background-color: #fff !important;
  padding: 15px 20px !important;
}

.esab-bvo76hvf.wp-block-esab-accordion
  .esab__container
  > .wp-block-esab-accordion-child {
  border: 0 !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

.esab-bvo76hvf.wp-block-esab-accordion
  .wp-block-esab-accordion-child
  > .esab__active.esab__body {
  background-color: #fff !important;
}

.wp-block-esab-accordion .esab__heading_tag,
.wp-block-esab-accordion .esab__subheading_tag {
  color: #1a62b0 !important;
  font-size: 22px;
  font-weight: 400;
}

/* ============================================================
   Layout resets
   ============================================================ */

@media (min-width: 769px) {
  :root {
    --wp--custom--ast-default-block-top-padding: 5px;
    --wp--custom--ast-default-block-left-padding: 5px;
    --wp--custom--ast-default-block-right-padding: 5px;
  }

  .content-area {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .content-area .site-main {
    padding-right: 0;
  }
}

@media (min-width: 1200px) {
  .ast-plain-container.ast-no-sidebar #primary {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
}

/* ============================================================
   Mobile menu spacing
   ============================================================ */

@media (max-width: 544px) {
  .ast-header-break-point .ast-builder-menu-mobile .main-navigation {
    padding-top: 75px;
  }
}
