/* ========================================
   Santuario de As Ermitas — Custom Design
   Paleta: Piedra, Dorado, Crema, Verde Salvia
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* === Global === */
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2C3E50;
  background-color: #FAF8F0;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #2C3E50;
  font-weight: 600;
}

a { color: #B8860B; transition: color 0.3s ease; }
a:hover { color: #8B6508; }

/* === Header/Nav === */
.ast-primary-header, .site-header {
  background: rgba(44, 62, 80, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #B8860B;
}
.site-header .site-title,
.site-header .site-title a,
.ast-site-identity .site-title a {
  font-family: 'Playfair Display', serif !important;
  color: #FAF8F0 !important;
  font-size: 1.4rem !important;
  letter-spacing: 0.5px;
}
.main-header-menu .menu-link,
.ast-nav-menu a {
  color: #FAF8F0 !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  font-size: 0.75rem !important;
  letter-spacing: 0.8px;
  padding: 0 8px !important;
}
.main-header-menu .menu-link:hover,
.ast-nav-menu a:hover {
  color: #B8860B !important;
}
.ast-primary-header .ast-builder-menu .menu-item.current-menu-item > .menu-link,
.ast-nav-menu .current-menu-item > a {
  color: #B8860B !important;
}

/* === Hero (first image on homepage) === */
.page-id-6 .entry-content > .wp-block-image:first-child {
  margin: -2rem -2rem 0 -2rem;
  position: relative;
  overflow: hidden;
  max-height: 70vh;
}
.page-id-6 .entry-content > .wp-block-image:first-child img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  filter: brightness(0.7);
}
.page-id-6 .entry-content > .wp-block-image:first-child figcaption {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  color: #FAF8F0;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  background: none;
  padding: 0;
}

/* === Page Title (H1) === */
.page-id-6 .entry-content h1 {
  font-size: 3rem;
  color: #2C3E50;
  margin: 2rem 0 0.5rem;
  position: relative;
  letter-spacing: 1px;
}
.page-id-6 .entry-content h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #B8860B, #D4A84B);
  margin: 15px auto 0;
}

/* === Subtitle paragraph === */
.page-id-6 .entry-content > .has-large-font-size {
  font-family: 'Source Sans 3', sans-serif;
  color: #5C7A5C;
  font-weight: 300;
  font-size: 1.25rem !important;
  max-width: 700px;
  margin: 1rem auto 2rem;
}

/* === Separators === */
.wp-block-separator {
  border: none !important;
  background: linear-gradient(90deg, transparent, #B8860B, transparent) !important;
  height: 1px !important;
  max-width: 200px;
  margin: 2.5rem auto !important;
  opacity: 0.6;
}

/* === H2 headings === */
.entry-content h2 {
  font-size: 1.8rem;
  color: #2C3E50;
  position: relative;
  margin-bottom: 1.2rem;
}
.entry-content h2.has-text-align-center::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: #B8860B;
  margin: 12px auto 0;
}

/* === H3 headings === */
.entry-content h3 {
  font-size: 1.3rem;
  color: #B8860B;
}

/* === Columns/Cards === */
.wp-block-columns {
  gap: 2.5rem !important;
}
.wp-block-column {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(184, 134, 11, 0.1);
}
.wp-block-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(44, 62, 80, 0.12);
}

/* Images in cards */
.wp-block-column .wp-block-image {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}
.wp-block-column .wp-block-image img {
  border-radius: 8px;
  transition: transform 0.5s ease;
}
.wp-block-column .wp-block-image:hover img {
  transform: scale(1.03);
}

/* === Lists === */
.entry-content ul {
  list-style: none;
  padding-left: 0;
}
.entry-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}
.entry-content ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #B8860B;
  font-size: 0.7rem;
  top: 4px;
}
.entry-content ul li strong {
  color: #2C3E50;
}

/* === Buttons / CTAs === */
.wp-block-button .wp-block-button__link,
.entry-content .wp-block-button__link {
  background: linear-gradient(135deg, #722F37, #8B3A44) !important;
  color: #FAF8F0 !important;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
}
.wp-block-button .wp-block-button__link:hover {
  background: linear-gradient(135deg, #8B3A44, #A04550) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114, 47, 55, 0.4);
}

/* === Blockquote (highlight banner) === */
.wp-block-quote, blockquote {
  background: linear-gradient(135deg, #5C7A5C, #4A6B4A);
  color: #FAF8F0;
  border: none !important;
  border-radius: 12px;
  padding: 2.5rem 3rem !important;
  margin: 3rem 0 !important;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  position: relative;
}
.wp-block-quote::before {
  content: '"';
  font-size: 5rem;
  color: rgba(255,255,255,0.15);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Playfair Display', serif;
}
.wp-block-quote p { color: #FAF8F0 !important; }
.wp-block-quote cite {
  color: rgba(250,248,240,0.7) !important;
  font-size: 0.9rem;
}

/* === Footer === */
.site-footer, .ast-footer {
  background: #2C3E50 !important;
  color: #C4C9CE;
  border-top: 3px solid #B8860B;
}
.site-footer a { color: #D4A84B !important; }
.site-footer a:hover { color: #FAF8F0 !important; }
.ast-footer-copyright { color: #8B99A6 !important; }

/* === Content area max-width === */
.ast-container, .site-content .ast-container {
  max-width: 1100px;
}

/* === Page content padding === */
.entry-content {
  padding: 0 1rem;
}

/* === Interior pages hero === */
.page:not(.page-id-6) .entry-header {
  background: linear-gradient(135deg, #2C3E50, #3D566E);
  padding: 3rem 2rem;
  margin: -2rem -2rem 2rem -2rem;
  text-align: center;
  border-bottom: 3px solid #B8860B;
}
.page:not(.page-id-6) .entry-header .entry-title {
  color: #FAF8F0 !important;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin: 0;
}
.page:not(.page-id-6) .entry-header .entry-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #B8860B;
  margin: 15px auto 0;
}

/* === Featured images on interior pages === */
.page:not(.page-id-6) .post-thumb-img-content img,
.page:not(.page-id-6) .entry-content > .wp-block-image:first-child img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(44,62,80,0.15);
}

/* === Responsive === */
@media (max-width: 768px) {
  .page-id-6 .entry-content h1 { font-size: 2rem; }
  .page-id-6 .entry-content > .wp-block-image:first-child { 
    margin: -1rem -1rem 0; 
    max-height: 50vh;
  }
  .page-id-6 .entry-content > .wp-block-image:first-child img {
    height: 50vh;
  }
  .wp-block-column { padding: 1rem; }
  blockquote, .wp-block-quote { padding: 1.5rem !important; }
  .page:not(.page-id-6) .entry-header {
    margin: -1rem -1rem 1.5rem;
    padding: 2rem 1rem;
  }
}

/* === Smooth scroll === */
html { scroll-behavior: smooth; }

/* === Selection color === */
::selection {
  background: #B8860B;
  color: #FAF8F0;
}

/* Force hide sidebar */
#secondary, .widget-area, .sidebar-main {
  display: none !important;
}
#primary {
  width: 100% !important;
  max-width: 100% !important;
}
.ast-separate-container #primary {
  margin: 0 auto;
}

/* Remove Astra page title bar on homepage */
.page-id-6 .ast-archive-description,
.page-id-6 .entry-header {
  display: none;
}

/* === Fix card images to fill width === */
.wp-block-column .wp-block-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* === Hero image full bleed === */
.page-id-6 .entry-content > .wp-block-image.alignwide {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

/* === Improve card text alignment === */
.wp-block-column h3.has-text-align-center {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.wp-block-column p.has-text-align-center {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* === Quote section full width === */
.wp-block-quote {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  max-width: 100vw !important;
  width: 100vw !important;
  border-radius: 0 !important;
  padding: 3rem 10% !important;
}

/* === Footer powered by text === */
.ast-footer-copyright .ast-footer-html-inner {
  font-size: 0.8rem;
}
