/*
Theme Name: RISE PM
Template: twentytwentyfive
Description: Child theme for rise-pm.com (rebuild of the former archi layout with core blocks)
Version: 1.0.0
Text Domain: rise-pm
*/

body { background: var(--wp--preset--color--base); }
a { color: inherit; }

/* Header: dark translucent bar over the page hero */
.rp-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: rgba(0,0,0,.45); }
.rp-header-inner { min-height: 80px; }
.rp-header .wp-block-image { margin: 0; }
.rp-header .wp-block-image img { display: block; }
.rp-nav { font-family: var(--wp--preset--font-family--raleway); font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; }
.rp-nav .wp-block-navigation__container { gap: 0; }
.rp-nav .wp-block-navigation-item + .wp-block-navigation-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; display: inline-block; margin: 0 22px; vertical-align: middle; }
.rp-nav .wp-block-navigation-item__content:hover { opacity: .7; }
.rp-nav .wp-block-navigation__responsive-container.is-menu-open { background: #111; }
.admin-bar .rp-header { top: 32px; }

/* Page hero */
.rp-subheader { min-height: 278px !important; padding-top: 80px !important; padding-bottom: 0 !important; align-items: center; }
.rp-subheader-row { width: 100%; }
.rp-subheader .wp-block-post-title { font-family: var(--wp--preset--font-family--raleway); font-size: 32px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; margin: 0; }
.rp-crumb { font-family: var(--wp--preset--font-family--raleway); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin: 0; }
.rp-crumb a { text-decoration: none; }
.rp-crumb .wp-block-post-title, .rp-crumb-nav { font-family: var(--wp--preset--font-family--raleway); font-size: 10px !important; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; display: inline; }
.rp-crumb-nav .wp-block-navigation-item__content { padding: 0; }

/* Home hero with videos */
.rp-hero { min-height: calc(100vh - 80px) !important; }
.rp-hero .wp-block-cover__inner-container { max-width: 1300px !important; }
.rp-slide-title { font-family: var(--wp--preset--font-family--dosis); font-weight: 300; font-size: 32px; letter-spacing: 11px; white-space: nowrap; text-transform: uppercase; transition: opacity .6s; }
.rp-hero video { transition: opacity .6s; }

/* Content */
.rp-sep { border-top: 1px solid #b0b0b0 !important; opacity: .6; margin-top: 0 !important; margin-bottom: 0 !important; }
.rp-strong { font-weight: 700; }
.rp-cta { background: #fff; color: #111; }
.rp-cta .wp-block-button__link { border: 1px solid #333 !important; border-radius: 0; background: transparent; color: #111; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; padding: 10px 30px; }
.rp-cta .wp-block-button__link::after { content: "\203A"; font-size: 20px; line-height: 0; margin-left: 14px; font-weight: 700; position: relative; top: 2px; }
.rp-cta .wp-block-button__link:hover { background: #111; color: #fff; }
.rp-heading { font-family: var(--wp--preset--font-family--dosis); font-weight: 500; }
.rp-projects .wp-block-image { margin: 0; overflow: hidden; }
.rp-projects .wp-block-image img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform .4s; }
.rp-projects .wp-block-image:hover img { transform: scale(1.05); }
.rp-projects figcaption { font-size: 12px; text-align: left; padding: 8px 12px; margin: 0; }
.wp-block-column:has(> .rp-about-img) { flex: 0 0 41.67% !important; }
.wp-block-column:has(> .rp-about-img) + .wp-block-column { flex: 1 1 auto !important; }
.rp-contact hr { width: 136px; margin: 8px auto !important; border-top: 1px solid #fff; opacity: 1; }

/* Spacing between template parts and sections */
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-block-post-content > *:last-child { margin-block-end: 0; }
.wp-block-post-content > .rp-cta { margin-bottom: 0; }
.wp-block-post-content > .wp-block-columns:not(.alignfull) { padding: 18px 0; margin-block-start: 0; }
.wp-block-post-content > .rp-sep { margin-block-start: 0 !important; }
h3.rp-heading { font-weight: 400; font-size: 18px; }

/* Footer */
.rp-footer { background: #0b0b0b; }

@media (max-width: 781px) {
  .rp-slide-title { font-size: 18px; letter-spacing: 4px; white-space: normal; }
  .rp-subheader .wp-block-post-title { font-size: 22px; letter-spacing: 3px; }
  .rp-subheader-row { flex-direction: column; align-items: flex-start !important; gap: 6px; }
  .rp-about-img { min-height: 320px !important; }
  .wp-block-column:has(> .rp-about-img) { flex-basis: 100% !important; }
  .wp-block-column:has(> .rp-about-img) + .wp-block-column { padding: 30px 20px !important; }
  .rp-projects .wp-block-column:empty { display: none; }
  .rp-header .wp-block-navigation__responsive-container-open { color: #fff; }
  .rp-header-inner { min-height: 64px; }
}
