/*
Theme Name: Astra Child
Template: astra
Version: 1.4
Author: William Paquette
*/

/* =========================
   PRS Theme Variables
========================= */

:root {
    --prs-navy: #1F3364;
    --prs-rust: #C94F2F;
    --prs-white: #FFFFFF;
    --prs-light: #F5F7FA;
    --prs-border: #E0E0E0;
    --prs-text: #1B1B1E;
    --prs-muted: #555555;

    /* Override Astra palette */
    --ast-global-color-0: var(--prs-navy);
    --ast-global-color-1: var(--prs-rust);
    --ast-global-color-2: var(--prs-text);
    --ast-global-color-3: var(--prs-muted);
    --ast-global-color-4: var(--prs-light);
    --ast-global-color-5: var(--prs-border);
    --ast-global-color-6: var(--prs-white);
}

/* =========================
   Shared Layout / Type
========================= */
.site-header {
    border-bottom: 3px solid var(--prs-rust);
}

.prs-listings-home,
.prs-category-listings {
    max-width: 1100px;
    margin: 0 auto;
}

.prs-listing-detail {
    max-width: 900px;
    margin: 0 auto;
}

.prs-listing-detail h1 {
    font-size: 28px;
    margin-bottom: 6px;
    color: var(--prs-navy);
}

.prs-detail-meta,
.prs-listing-meta,
.prs-listing-excerpt,
.prs-detail-notes,
.prs-detail-contact {
    font-size: 15px;
}

.prs-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: var(--prs-navy);
    color: #ffffff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
}

.prs-button:hover {
    background: var(--prs-rust);
}

ul {
    margin: 10px 0 18px 22px !important;
}

.site-footer {
    margin-top: 40px;
}

/* =========================
   Header / Navigation
========================= */

body.home .site-header {
    background: rgba(31, 51, 100, 0.88) !important;
}

.main-header-menu .menu-link {
    border-bottom: 2px solid transparent;
    padding-bottom: 1px;
}

.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link,
.main-header-menu .current-page-ancestor > .menu-link {
    border-bottom-color: var(--prs-rust);
}

body:has(.prs-listing-detail) .main-header-menu #menu-item-80 > .menu-link {
    border-bottom-color: var(--prs-rust);
}

/* =========================
   Header Dropdown Menu
========================= */

.main-header-menu .sub-menu {
    background: #ffffff;
    border: 1px solid var(--prs-border);
    border-radius: 6px;
    padding: 6px 0;
    min-width: 180px;
}

.main-header-menu .sub-menu .menu-link {
    color: var(--prs-navy) !important;
    padding: 10px 16px;
    border-bottom: none !important;
    display: block;
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
}

.main-header-menu .sub-menu .menu-link:hover {
    background: rgba(31, 51, 100, 0.06);
    color: var(--prs-rust) !important;
}

/* =========================
   Shared PRS Hero Styles
========================= */

.prs-hero {
    max-width: 700px;
    min-height: 175px !important;
    margin: 28px auto 22px;
    border-radius: 8px;
    overflow: hidden;
}

.prs-hero .wp-block-cover__background {
    background-color: rgba(31, 51, 100, 0.70) !important;
    opacity: 1 !important;
}

.prs-hero .wp-block-cover__inner-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 42px;
}

.prs-hero .has-large-font-size {
    font-size: 42px !important;
    line-height: 1.05;
    margin: 0;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* =========================
   Hero Variants
========================= */

.prs-hero-standard .wp-block-cover__image-background {
    object-fit: cover !important;
    object-position: center !important;
}

.prs-hero-railcar .wp-block-cover__image-background {
    object-fit: contain !important;
    object-position: center !important;
}

/* =========================
   Search / Filters
========================= */

.prs-listings-search {
    display: block;
    margin: 24px 0 36px;
}

.prs-search-top-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) 0.7fr 0.7fr 0.7fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.prs-search-top-row input,
.prs-search-top-row select,
.prs-search-actions button,
.prs-search-actions .prs-clear-filters {
    height: 44px;
    box-sizing: border-box;
    border-radius: 6px;
    font-size: 14px;
}

.prs-search-top-row input,
.prs-search-top-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--prs-border);
}

.prs-search-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.prs-search-actions button,
.prs-search-actions .prs-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    text-decoration: none;
    white-space: nowrap;
}

.prs-search-actions button {
    background: var(--prs-navy);
    color: var(--prs-white);
    border: none;
    cursor: pointer;
}

.prs-search-actions button:hover {
    background: var(--prs-rust);
}

.prs-search-actions .prs-clear-filters {
    border: 1px solid var(--prs-border);
    color: var(--prs-text);
    background: var(--prs-white);
}

.prs-search-actions .prs-clear-filters:hover {
    border-color: var(--prs-navy);
    color: var(--prs-navy);
}

.prs-advanced-filters {
    margin-top: 6px;
}

.prs-advanced-filters summary {
    cursor: pointer;
    color: var(--prs-navy);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.prs-advanced-filters[open] {
    margin-bottom: 12px;
}

.prs-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.prs-filter-row input[type="number"] {
    width: 130px;
    height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--prs-border);
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}

.prs-filter-row select {
    width: 180px;
    height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--prs-border);
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}

.prs-filter-label-inline {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--prs-muted);
    padding-left: 6px;
}

.prs-search-results {
    margin-bottom: 40px;
}

.prs-search-results h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--prs-navy);
}

.prs-pdf-download {
    display: inline-block;
    font-size: 16px;
    padding: 10px 16px;
    background: #1f3364;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1;
}

.prs-pdf-download:hover {
    background: var(--prs-rust);
    color: #fff !important;
}

.prs-pdf-download-wrap {
    margin-top: 15px;
    text-align: right;
}

/* =========================
   Active Filters
========================= */

.prs-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--prs-muted);
}

.prs-active-filters strong {
    color: var(--prs-navy);
}

.prs-active-filters span {
    background: var(--prs-light);
    border: 1px solid var(--prs-border);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--prs-text);
}

/* =========================
   Category Cards
========================= */

.prs-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
}

.entry-content a.prs-category-card {
    display: block;
    text-align: center;
    color: var(--prs-navy) !important;
    text-decoration: none !important;
    border: 1px solid var(--prs-border);
    border-radius: 10px;
    padding: 22px 18px;
    background: var(--prs-white);
    transition: all 0.2s ease;
}

.entry-content a.prs-category-card:hover {
    border-color: var(--prs-navy);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.prs-category-image {
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.prs-category-image img {
    width: 165px;
    height: 80px;
    object-fit: contain;
}

/* =========================
   Listing Cards
========================= */

.prs-listing-card {
    display: block;
    border: 1px solid var(--prs-border);
    border-radius: 10px;
    background: var(--prs-white);
    padding: 18px 20px;
    margin-bottom: 14px;
}

.prs-listing-card:hover {
    border-color: var(--prs-navy);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.prs-listing-card h4 {
    font-size: 18px;
    color: var(--prs-navy);
    margin-bottom: 6px;
}

.prs-listing-meta {
    margin-bottom: 10px;
    color: var(--prs-muted);
}

.prs-hidden-note {
    font-style: italic;
    color: var(--prs-muted);
}

.prs-listing-action {
    margin-top: 12px;
}

.prs-listing-action a {
    font-size: 13px;
    padding: 8px 12px;
    background: var(--prs-navy);
    color: var(--prs-white) !important;
    border-radius: 6px;
    text-decoration: none !important;
}

.prs-listing-action a:hover {
    background: var(--prs-rust);
}

.prs-card-specs {
    margin: -4px 0 10px;
    font-size: 14px;
    color: var(--prs-navy);
    font-weight: 600;
}

/* =========================
   Collapsible Subgroups
========================= */

.prs-listing-subgroup {
    margin: 18px 0;
    border: 1px solid var(--prs-border);
    border-radius: 8px;
    background: var(--prs-white);
    overflow: hidden;
}

.prs-subgroup-title {
    cursor: pointer;
    color: var(--prs-navy);
    padding: 14px 18px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    list-style: none;
}

.prs-subgroup-title::-webkit-details-marker {
    display: none;
}

.prs-subgroup-title::before {
    content: "+";
    display: inline-block;
    width: 20px;
    margin-right: 8px;
    color: var(--prs-rust);
    font-weight: 700;
}

.prs-listing-subgroup[open] .prs-subgroup-title::before {
    content: "–";
}

.prs-subgroup-count {
    color: var(--prs-muted);
    font-size: 15px;
    font-weight: 400;
}

.prs-listing-subgroup .prs-listing-card {
    margin: 14px 18px;
}

/* =========================
   Detail Page - Specs
========================= */

.prs-detail-specs {
    background: var(--prs-light);
    border: 1px solid var(--prs-border);
    border-left: 4px solid var(--prs-navy);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 20px 0;
    max-width: 700px;
}

.prs-detail-specs h2,
.prs-detail-notes h2 {
    font-size: 19px;
    margin: 0 0 14px;
    color: var(--prs-navy);
}

.prs-spec-section {
    margin-bottom: 18px;
    padding-top: 4px;
}

.prs-spec-section:last-child {
    margin-bottom: 0;
}

.prs-listing-detail .prs-detail-specs .prs-spec-section h3 {
    font-size: 15px !important;
    line-height: 1.2;
    margin: 0 0 7px;
    color: var(--prs-rust) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    border-bottom: 1px solid var(--prs-border);
    padding-bottom: 4px;
}

.prs-detail-specs dl {
    margin: 0;
}

.prs-spec-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    margin: 0;
}

.prs-spec-row dt,
.prs-spec-row dd {
    padding: 5px 8px;
    font-size: 14px;
    line-height: 1.3;
}

.prs-spec-row dt {
    background: transparent;
    font-weight: 600;
    color: var(--prs-navy);
}

.prs-spec-row dd {
    background: transparent;
    color: var(--prs-text);
    margin: 0;
}

/* =========================
   Detail Page - Notes / Contact / Actions
========================= */

.prs-detail-notes {
    background: var(--prs-light);
    border: 1px solid var(--prs-border);
    border-left: 4px solid var(--prs-rust);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 20px 0;
    max-width: 700px;
    line-height: 1.45;
    font-size: 14px;
}

.prs-detail-notes br {
    line-height: 1.2;
}

.prs-detail-contact {
    background: var(--prs-white);
    border: 1px solid var(--prs-border);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 30px;
    max-width: 700px;
}

.prs-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.prs-detail-button {
    background: var(--prs-navy);
    color: var(--prs-white) !important;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
}

.prs-detail-button:hover {
    background: var(--prs-rust);
}

/* =========================
   Breadcrumbs
========================= */

.prs-breadcrumbs {
    font-size: 14px;
    margin-bottom: 18px;
    color: var(--prs-muted);
}

.prs-breadcrumbs a {
    color: var(--prs-navy);
    text-decoration: none;
}

.prs-breadcrumbs a:hover {
    color: var(--prs-rust);
}

.prs-breadcrumbs span {
    margin: 0 6px;
}

/* =========================
   Pagination
========================= */

.prs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.prs-pagination a,
.prs-pagination span {
    padding: 7px 11px;
    border: 1px solid var(--prs-border);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.prs-pagination a {
    color: var(--prs-navy);
    background: var(--prs-white);
}

.prs-pagination a:hover,
.prs-page-current {
    background: var(--prs-navy);
    color: var(--prs-white);
}

.prs-page-nav {
    font-weight: 600;
}

/* =========================
   Newsletter Signup
========================= */

.prs-newsletter-signup {
    max-width: 700px;
    margin: 40px auto;
    background: var(--prs-light);
    border: 1px solid var(--prs-border);
    border-left: 4px solid var(--prs-rust);
    border-radius: 8px;
    padding: 24px;
}

.prs-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prs-newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.prs-newsletter-form input[type="text"],
.prs-newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--prs-border);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.prs-newsletter-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--prs-text);
}

.prs-newsletter-form button {
    align-self: flex-start;
    background: var(--prs-navy);
    color: var(--prs-white);
    border: none;
    border-radius: 6px;
    padding: 11px 18px;
    font-size: 14px;
    cursor: pointer;
}

.prs-newsletter-form button:hover {
    background: var(--prs-rust);
}

.prs-newsletter-success,
.prs-newsletter-error {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.prs-newsletter-success {
    background: #eaf6ee;
    border: 1px solid #b8dfc5;
    color: #1d6b3c;
}

.prs-newsletter-error {
    background: #fdecec;
    border: 1px solid #efb6b6;
    color: #a12622;
}

.prs-newsletter-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--prs-navy);
}

.prs-newsletter-grid label strong {
    color: var(--prs-rust);
}

/* =========================
   Newsletter Archive
========================= */

.prs-newsletter-archive-content {
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    overflow-x: auto;
}

.prs-newsletter-archive-content table {
    max-width: 100%;
}

.prs-newsletter-archive-content img {
    max-width: 100%;
    height: auto;
}

.prs-newsletter-frame {
    width: 100%;
    max-width: 900px;
    height: 1200px;
    display: block;
    margin: 20px auto;
    border: none;
    background: #ffffff;
}

.prs-newsletter-archive-toolbar form {
    display: inline-block;
}

.prs-newsletter-archive-toolbar select {
    width: auto;
    min-width: 260px;
    max-width: 320px;
}

/* =========================
   About Page
========================= */

.page-id-219 .entry-content > *:not(.wp-block-cover) {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.page-id-219 h2 {
    font-size: 36px;
    line-height: 1.15;
    margin: 26px 0 18px;
    color: var(--prs-navy);
    text-align: center;
}

.page-id-219 p {
    font-size: 18px;
    line-height: 1.75;
}

.prs-about-callout {
    max-width: 850px;
    margin: 20px auto 32px;
    padding: 12px 24px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--prs-navy);
    border-left: 4px solid var(--prs-rust);
    border-right: 4px solid var(--prs-rust);
    border-radius: 6px;
    background: rgba(31, 51, 100, 0.03);
}

/* =========================
   PRS Values Section
========================= */

.prs-values-section {
    margin: 42px 0;
    padding: 12px 0;
}

.prs-values-section h2 {
    text-align: center;
    margin-bottom: 28px;
}

.prs-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.prs-value-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 8px;
    border-top: 4px solid var(--prs-rust);
}

.prs-value-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--prs-navy);
}

.prs-value-card p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* =========================
   Contact Page
========================= */

.page-id-254 .entry-content > *:not(.wp-block-cover) {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.prs-contact-intro {
    font-size: 18px;
    line-height: 1.7;
    margin: 26px auto 28px;
    text-align: center;
    color: var(--prs-text);
}

.prs-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin: 28px auto;
}

.prs-contact-card,
.prs-contact-callout {
    background: var(--prs-white);
    border: 1px solid var(--prs-border);
    border-top: 4px solid var(--prs-rust);
    border-radius: 8px;
    padding: 24px;
}

.prs-contact-callout {
    border-top: 4px solid var(--prs-navy);
}

.prs-contact-card h2,
.prs-contact-callout h2 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--prs-navy);
}

.prs-contact-card p,
.prs-contact-callout p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.prs-contact-card p:last-child,
.prs-contact-callout p:last-child {
    margin-bottom: 0;
}

.prs-contact-card a,
.prs-contact-callout a {
    color: var(--prs-navy);
    text-decoration: none !important;
    font-weight: 600;
}

.prs-contact-card a:hover,
.prs-contact-callout a:hover {
    color: var(--prs-rust);
}

/* =========================
   Policy Sections
========================= */

.prs-policy-section {
    border-top: 1px solid rgba(31, 51, 100, 0.12);
    padding-top: 22px;
    margin-top: 22px;
}

/* =========================
   Login Page
========================= */

.page-id-277 .entry-content {
    max-width: 520px;
    margin: 40px auto;
}

.page-id-277 h1 {
    text-align: center;
    font-size: 42px;
    color: var(--prs-navy);
    margin-bottom: 24px;
}

.page-id-277 .tml {
    background: var(--prs-white);
    border: 1px solid var(--prs-border);
    border-top: 4px solid var(--prs-rust);
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.page-id-277 .tml-field-wrap {
    margin-bottom: 18px;
}

.page-id-277 .tml-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--prs-navy);
}

.page-id-277 .tml-field {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--prs-border);
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.page-id-277 .tml-rememberme-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-id-277 .tml-button {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 6px;
    background: var(--prs-navy);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.page-id-277 .tml-button:hover {
    background: var(--prs-rust);
}

.page-id-277 .tml-links {
    list-style: none;
    margin: 16px 0 0 !important;
    padding: 0;
    text-align: center;
}

.page-id-277 .tml-links a {
    color: var(--prs-navy);
    font-size: 14px;
    text-decoration: none !important;
}

.page-id-277 .tml-links a:hover {
    color: var(--prs-rust);
}

/* =========================
   Lost Password Page
========================= */

.tml-lostpassword {
    max-width: 520px;
    margin: 40px auto;
    background: var(--prs-white);
    border: 1px solid var(--prs-border);
    border-top: 4px solid var(--prs-rust);
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.tml-lostpassword .tml-message {
    font-size: 15px;
    line-height: 1.55;
    color: var(--prs-muted);
    margin-bottom: 18px;
}

.tml-lostpassword .tml-field-wrap {
    margin-bottom: 18px;
}

.tml-lostpassword .tml-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--prs-navy);
}

.tml-lostpassword .tml-field {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--prs-border);
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.tml-lostpassword .tml-button {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 6px;
    background: var(--prs-navy);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.tml-lostpassword .tml-button:hover {
    background: var(--prs-rust);
}

.tml-lostpassword .tml-links {
    list-style: none;
    margin: 16px 0 0 !important;
    padding: 0;
    text-align: center;
}

.tml-lostpassword .tml-links a {
    color: var(--prs-navy);
    font-size: 14px;
    text-decoration: none !important;
}

.tml-lostpassword .tml-links a:hover {
    color: var(--prs-rust);
}

/* =========================
   Homepage Hero
========================= */

body.home {
    overflow-x: clip;
}

body.home .entry-content > .prs-home-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.prs-home-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    margin-top: -32px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.prs-home-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2.2s ease-in-out;
    transform: scale(1.02);
}

.prs-home-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.prs-home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.20),
            rgba(31,51,100,0.58)
        );
    z-index: 2;
}

.prs-home-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
}

.prs-home-hero-content h1 {
    color: #ffffff;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.02;
    margin-bottom: 22px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.prs-home-hero-content p {
    color: rgba(255,255,255,0.94);
    font-size: 21px;
    line-height: 1.6;
    max-width: 760px;
    margin-bottom: 34px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.prs-home-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.prs-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;
    height: 52px;
    padding: 0 28px;

    border-radius: 6px;

    background: rgba(201, 79, 47, 0.76);
    border: 1px solid rgba(255,255,255,0.12);

    backdrop-filter: blur(3px);

    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.prs-home-button:hover {
    background: rgba(201, 79, 47, 0.94);
    border-color: rgba(255,255,255,0.24);
    transform: translateY(-2px);
}
.prs-home-button-secondary {
    background: rgba(31, 51, 100, 0.72);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(2px);
}

.prs-home-button-secondary:hover {
    background: rgba(31, 51, 100, 0.92);
}

/* =========================
   Homepage Intro
========================= */

.prs-home-intro {
    max-width: 850px;
    margin: 56px auto 48px;
    padding: 0 24px;
    text-align: center;
}

.prs-home-intro h2 {
    color: var(--prs-navy);
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.prs-home-intro p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--prs-text);
}

/* =========================
   PRS Footer
========================= */

.prs-footer {
    background: var(--prs-rust);
    color: #ffffff;
    padding: 28px 28px 22px;
}

.site-above-footer-wrap {
    border-top: 3px solid var(--prs-navy);
}

.prs-footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px;
}

.prs-footer-column h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.prs-footer-column,
.prs-footer-column p,
.prs-footer-column li,
.prs-footer-column a {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: rgba(255,255,255,0.92);
    text-decoration: none !important;
}

.prs-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prs-footer-column li {
    margin-bottom: 6px;
}

.prs-footer-column a {
    transition: color 0.2s ease;
}

.prs-footer-column a:hover {
    color: #1F3364 !important;
}

.prs-footer-links {
    columns: 2;
    column-gap: 28px;
}

.prs-footer-column:first-child,
.prs-footer-column:last-child {
    text-align: left;
}

.prs-footer-logo {
    max-width: 230px;
    height: auto;
    margin-top: -20px;
    margin-bottom: 2px;
}

.prs-footer-contact p {
    margin: 0 0 12px;
}

.prs-footer-contact p:last-child {
    margin-bottom: 0;
}

/* =========================
   Mobile
========================= */

/* Mobile - Search / Filters */

@media (max-width: 700px) {
    .prs-search-top-row {
        grid-template-columns: 1fr;
    }

    .prs-filter-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .prs-filter-row input[type="number"],
    .prs-filter-row select {
        width: 100%;
    }

    .prs-filter-label-inline {
        grid-column: auto;
        padding-left: 0;
        align-self: center;
    }

    .prs-search-actions {
        width: 100%;
    }

    .prs-search-actions button,
    .prs-search-actions .prs-clear-filters {
        flex: 1;
    }

    .prs-spec-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile - Hero */

@media (max-width: 768px) {
    .prs-hero .wp-block-cover__inner-container {
        justify-content: center;
        text-align: center;
        padding: 0 24px;
    }

    .prs-hero .has-large-font-size {
        font-size: 34px !important;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    body.home {
        overflow-x: hidden;
    }

    body.home .entry-content > .prs-home-hero {
        width: 100dvw !important;
        max-width: 100dvw !important;
        margin-left: calc(50% - 50dvw) !important;
        margin-right: calc(50% - 50dvw) !important;
    }

    .prs-home-hero {
        width: 100dvw !important;
        max-width: 100dvw !important;
        height: auto;
        min-height: 520px;
        margin-left: calc(50% - 50dvw) !important;
        margin-right: calc(50% - 50dvw) !important;
        overflow: hidden;
    }

    .prs-home-hero-content {
        min-height: 520px;
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .prs-home-hero-content h1 {
        font-size: 38px;
    }

    .prs-home-hero-content p {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .prs-home-button {
        height: 46px;
    }
}

/* Mobile - About / Values */

@media (max-width: 768px) {
    .prs-values-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile - Contact */

@media (max-width: 768px) {
    .prs-contact-layout {
        grid-template-columns: 1fr;
    }

    .prs-contact-intro {
        text-align: left;
    }
}

/* Mobile - Homepage Hero */

@media (max-width: 768px) {
    .prs-home-hero {
        min-height: 620px;
    }

    .prs-home-hero-content h1 {
        font-size: 42px;
    }

    .prs-home-hero-content p {
        font-size: 18px;
    }

    .prs-home-button {
        width: 100%;
        max-width: 280px;
    }
}

/* Mobile - Footer */

@media (max-width: 768px) {
    .prs-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* =========================
   Print
========================= */

@media print {
    .prs-detail-actions,
    header,
    footer,
    nav {
        display: none !important;
    }

    .prs-listing-detail {
        max-width: 100%;
    }

    .prs-detail-specs,
    .prs-detail-notes {
        border: 1px solid #000;
    }
}
