/* ==========================================================================
   About Page Template Styles (Matching Live Next.js Design)
   ========================================================================== */

/* 1. Hero Section Root */
.about-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  background-color: #252525;
  color: #ffffff;
  padding: 0;
  margin: 0;
}

/* Themes */
.about-hero.bg-darkgray,
.about-hero.morae-theme-dark {
  background-color: #252525 !important;
  color: #ffffff !important;
}

.about-hero.morae-theme-light {
  background-color: #ffffff !important;
  color: #262626 !important;
}

.about-hero.morae-theme-natural {
  background-color: #f5f2ef !important;
  color: #0f0f0f !important;
}

/* 2. Inner Container */
.about-hero__container {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-top: 144px;
  padding-bottom: 144px;
  padding-left: 16px;
  padding-right: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .about-hero__container {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .about-hero__container {
    padding-left: 24px;
    padding-right: 24px;
    text-align: left;
  }
}

@media (min-width: 1440px) {
  .about-hero__container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* 3. Topline (if present) */
.about-hero__topline {
  color: #ff3600;
  margin-bottom: 12px;
}

/* 4. Heading */
.about-hero__heading {
  font-family: inherit;
  font-size: 52px !important;
  line-height: 64px !important;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  max-width: none;
}

.about-hero.morae-theme-light .about-hero__heading {
  color: #262626 !important;
}

.about-hero.morae-theme-natural .about-hero__heading {
  color: #0f0f0f !important;
}

@media (min-width: 1024px) {
  .about-hero__heading {
    max-width: 600px;
  }
}

/* 5. Summary / Paragraph */
.about-hero__summary {
  margin-top: 56px;
  max-width: none;
  padding-right: 0;
}

@media (min-width: 1024px) {
  .about-hero__summary {
    max-width: 500px;
  }
}

@media (min-width: 1280px) {
  .about-hero__summary {
    padding-right: 64px;
  }
}

.about-hero__summary p {
  font-family: inherit;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem) !important;
  line-height: 1.5 !important;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.about-hero.morae-theme-light .about-hero__summary p {
  color: #262626 !important;
}

.about-hero.morae-theme-natural .about-hero__summary p {
  color: #0f0f0f !important;
}

@media (min-width: 90rem), (min-width: 1440px) {
  .about-hero__summary p {
    font-size: 1.3889vw !important;
    line-height: 1.5 !important;
  }
}

/* 6. Actions / Button Container */
.about-hero__actions {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .about-hero__actions {
    justify-content: flex-start;
  }
}

/* 7. Button Exact Sizing & Hover */
.about-hero__actions .morae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  position: relative;
  z-index: 0;
  overflow: hidden;
  text-decoration: none;
  box-sizing: border-box;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.9025rem + 0.1633vw, 1.04375rem) !important;
  height: 3.3533em !important;
  padding-left: 1em;
  padding-right: 1em;
  gap: 1.67665em;
  border-width: 0.05988024em;
  border-style: solid;
  border-color: #e03100;
  background-color: #e03100;
  color: #ffffff !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

@media (min-width: 90rem), (min-width: 1440px) {
  .about-hero__actions .morae-btn {
    font-size: 1.16vw !important;
  }
}

.about-hero__actions .morae-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(90deg, #e13000 52.63%, #ff3600 100.88%);
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.about-hero__actions .morae-btn:hover::before {
  opacity: 0;
}

.about-hero__actions .morae-btn svg,
.about-hero__actions .morae-btn .morae-btn-icon {
  width: 1em;
  height: 1em;
  min-width: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* 8. Background Image Display */
.about-hero__media-wrapper {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.about-hero__media {
  display: none !important;
}

@media (min-width: 1024px) {
  .about-hero__media {
    display: block !important;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }

  .about-hero__image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50% !important;
    color: transparent;
  }
}


/* ==========================================================================
   9. Location Section (About Us Template Specific)
   Applies only to Location Section within About Us template, never other pages
   ========================================================================== */
.page-template-page-about .morae-locations-section,
.page-template-page-about-php .morae-locations-section,
.about-content-blocks .morae-locations-section {
  padding-bottom: 5rem !important;
}
