/*
 Theme Name:   Peace Lutheran Astra Child
 Theme URI:    https://peacelutheranseattle.org
 Description:  Child theme for Astra – Peace Lutheran Church, West Seattle
 Author:       Peace Lutheran Web Team
 Template:     astra
 Version:      1.0.0
 Text Domain:  peace-lutheran
*/

:root {
  --plc-navy: #2d3492;
}

/* --- Header / Logo --- */
.ast-site-identity .site-title {
	line-height: 0;
}
.ast-site-identity .site-title a {
  font-family: 'Playfair', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--plc-navy);
  margin: 0;
  padding: 0;
}

.site-header .site-description {
	font-family: 'Playfair', Georgia, serif;
	font-style: italic;
	color: var(--plc-navy);
}

/* --- Headers --- */
.single-post .entry-content h3.wp-block-heading {
  margin-top: 1.5em;
}

/* Page header hero — mobile centering & overflow fix */
@media (max-width: 781px) {
  .wp-block-spectra-container .wp-block-heading {
    text-align: center;
    font-size: clamp(36px, 10vw, 76px) !important;
    letter-spacing: -1px !important;
  }
}

/* --- Fonts --- */
@media (max-width: 544px) {
  h1,.entry-content :where(h1) {
    font-size: 34px;
  }

  h2,.entry-content :where(h2) {
    font-size: 30px;
  }
}

@media (max-width: 921px) {
  h1,.entry-content :where(h1) {
    font-size: 38px;
  }

  h2,.entry-content :where(h2) {
    font-size: 30px;
  }
}

/* --- Navigation: animated underline --- */
.main-header-menu .menu-item > .menu-link {
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.main-header-menu .menu-item > .menu-link::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 1em;
  right: 1em;
  width: auto;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ease;
}

.main-header-menu .menu-item > .menu-link:hover::after,
.main-header-menu .menu-item > .menu-link:focus::after {
  transform: scaleX(1);
}

.main-header-menu .sub-menu .menu-item > .menu-link::after {
  display: none;
}

/* --- Layout --- */
.ast-theme-transparent-header #masthead {
  position: relative;
}

.ast-container,
.ast-container-fluid {
  padding-left: 5%;
  padding-right: 5%;
}

.wp-block-spectra-container {
    padding: 0;
}

/* --- Responsive flex columns (hero) --- */
.flex-columns {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--50, 2rem);
  align-items: center;
}
.flex-columns > * {
  flex: 1 1 0%;
  min-width: 280px;
}
.flex-columns > *:last-child {
  flex: 1.4 1 0%;
  min-width: 320px;
}
@media (max-width: 650px) {
  .flex-columns > *:last-child {
    order: -1;
  }
}

/* --- Mobile nav toggle --- */
.ast-mobile-menu-trigger-minimal {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem;
  color: #333 !important;
  cursor: pointer;
}
.ast-mobile-menu-trigger-minimal:hover,
.ast-mobile-menu-trigger-minimal:focus {
  background: transparent !important;
  color: #000 !important;
}
.ast-mobile-menu-trigger-minimal .ast-mobile-svg,
.ast-theme-transparent-header [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
  width: 24px;
  height: 24px;
  fill: #333 !important;
}
.ast-theme-transparent-header [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-wrap .mobile-menu {
  color: #333 !important;
}

/* --- Submenu: solid white background --- */
.ast-theme-transparent-header .ast-builder-menu .main-header-menu .sub-menu {
  background-color: #ffffff !important;
}

.ast-builder-menu-1 .sub-menu,
.ast-builder-menu-1 .inline-on-mobile .sub-menu {
  border-top-width: 0 !important;
}

.sunday-announcement .announcement-text h2 {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: normal;
}

.home .entry-content .wp-block-latest-posts__post-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ast-global-color-0);
  text-decoration: none;
}

.home .entry-content .wp-block-latest-posts__post-title:hover,
.home .entry-content .wp-block-latest-posts__post-title:focus {
  color: var(--ast-global-color-1);
}

.single-post .entry-content p {
  margin-bottom: 1.5em;
}
