/*
 * Theme enhancements — development phase
 * Loaded AFTER style.css and custom.css so these refinements take precedence.
 * Scope: single-post hero. Compact, centered, cohesive with the blue/white palette.
 * Safe to remove: delete this file + its wp_enqueue_style in functions.php.
 */

/* ============================================================
   HERO — shorter, centered composition
============================================================ */
.hero-section {
    padding: 56px 0 30px !important;
}

.hero-container {
    padding: 34px 24px 20px;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.herotop {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.hero-content {
    margin-inline: auto;
    gap: 14px;
}

.hero-title {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: clamp(32px, 4.6vw, 52px);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 22px rgba(2, 6, 23, 0.5);
}

.hero-description {
    margin-inline: auto;
    margin-bottom: 0;
    text-shadow: 0 1px 12px rgba(2, 6, 23, 0.45);
}

.hero-buttons {
    justify-content: center;
    margin-top: 4px;
}

/* keep the price card inside the centered flow at every breakpoint.
   the base stylesheet sets `align-self: flex-start` under 992px, which in RTL
   pins it to the right — override it so it stays centered. */
.price-info-card {
    position: static;
    inset: auto;
    align-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ============================================================
   HERO — refined price / payment card
============================================================ */
.price-row {
    width: auto;
    margin-inline: auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 16px 36px -18px rgba(2, 6, 23, .6);
}

.price-item {
    padding: 16px 32px;
    align-items: center;
    text-align: center;
    gap: 4px;
    min-width: 150px;
    background: #133893;
}

.price-item + .price-item {
    border-inline-start: 1px solid rgba(255, 255, 255, .16);
}

.price-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2px;
}

.price-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .82;
    margin-bottom: 0;
}

/* ============================================================
   HERO — CTA button (white + brand-blue, hero-scoped)
============================================================ */
.hero-buttons .btn-download {
    padding: 14px 42px;
    font-size: 16px;
    font-weight: 600;
    color: #133893;
    background: #ffffff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 12px 28px -12px rgba(2, 6, 23, .55);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* the base sheet gives #openPopupBtn spans `width: 100%` (meant for the
   project cards). In the hero that shoves the icon to the far edge — keep the
   icon and label together as one centered group instead. */
.hero-buttons .btn-download span {
    width: auto;
    display: inline-block;
}

.hero-buttons .btn-download svg {
    color: #133893;
    flex-shrink: 0;
}

.hero-buttons .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px rgba(2, 6, 23, .65);
}

.hero-buttons .btn-download:hover svg {
    transform: translateY(2px);
}

/* ============================================================
   HERO — gentle staggered entrance
============================================================ */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

.hero-content .hero-title,
.hero-content .hero-description,
.price-row,
.hero-buttons {
    animation: heroFadeUp .6s cubic-bezier(.22, .61, .36, 1) both;
}

.hero-content .hero-description { animation-delay: .10s; }
.price-row                      { animation-delay: .20s; }
.hero-buttons                   { animation-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
    .hero-content .hero-title,
    .hero-content .hero-description,
    .price-row,
    .hero-buttons { animation: none; }
}

/* ============================================================
   HERO — responsive
============================================================ */
@media (max-width: 768px) {
    .hero-container { padding: 26px 18px 18px; }
    .price-row { width: 100%; max-width: 340px; }
    .price-item { min-width: 0; flex: 1; }
    /* match the price card's width instead of stretching edge to edge */
    .hero-buttons .btn-download {
        width: 100%;
        max-width: 340px;
        margin-inline: auto;
        justify-content: center;
    }
}

/* ============================================================
   PROJECTS SECTION — even grid + refined cards
============================================================ */
/* only 3 cards show (the 4th is hidden) -> 3 columns so they fill evenly */
.projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: 14px;
    box-shadow: 0 12px 30px -16px rgba(2, 6, 23, .40);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px -18px rgba(2, 6, 23, .52);
}

/* brand-navy tinted base so the caption area ties into the palette */
.project-overlay {
    background: linear-gradient(
        to top,
        rgba(8, 32, 96, .92) 0%,
        rgba(8, 32, 96, .52) 32%,
        rgba(2, 6, 23, .26) 62%,
        rgba(2, 6, 23, .08) 100%
    );
}

.project-card:hover .project-overlay {
    background: linear-gradient(
        to top,
        rgba(8, 32, 96, .95) 0%,
        rgba(8, 32, 96, .60) 34%,
        rgba(2, 6, 23, .32) 64%,
        rgba(2, 6, 23, .14) 100%
    );
}

/* card CTA text in brand blue (consistent with the hero button) */
.project-card .btn-download {
    color: #133893;
}

/* section heading — subtle brand underline accent */
.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: #133893;
}

@media (max-width: 992px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAYMENT PLAN SECTION — simple + compact
============================================================ */
.payment-header {
    margin-bottom: 28px;
}

/* brand underline accent under the heading (matches the projects section) */
.payment-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: #133893;
}

/* tighter cards — horizontal padding stays 30px because the full-bleed
   label bar depends on it via its negative margins */
.payment-card {
    padding-top: 26px;
    padding-bottom: 22px;
    border-radius: 14px;
    border-color: #e2e5ec;
    box-shadow: 0 10px 26px -18px rgba(2, 6, 23, .35);
}

/* fix: base hover border was white (invisible on the light section) */
.payment-card:hover {
    border-color: #133893;
    box-shadow: 0 20px 40px -20px rgba(2, 6, 23, .42);
}

.payment-percentage {
    color: #133893;
    margin-bottom: 16px;
}

/* brand-blue label bar + equal height so all three align */
.payment-label {
    background: #08277b;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
}

.payment-note {
    margin-top: 14px;
}

/* ============================================================
   AMENITIES SECTION — simple + compact
============================================================ */
.amenities-header {
    margin-bottom: 26px;
}

.amenities-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: #133893;
}

.amenities-grid {
    gap: 20px;
    margin-bottom: 26px;
}

.amenity-item {
    padding: 22px 14px;
    border-radius: 12px;
}

/* smaller icons in brand blue */
.amenity-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    color: #133893;
}

.amenity-item:hover .amenity-icon {
    color: #133893;
}

.amenity-name {
    font-size: 16px;
}

.amenities-cta {
    margin-top: 26px;
}

/* CTA in brand blue (was near-black) */
.btn-register {
    background: #133893;
}

.btn-register:hover {
    background: #08277b;
}

/* ============================================================
   VIDEO SECTION — refined frame + lively play button
============================================================ */
.video-header {
    margin-bottom: 40px;
}

.video-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: #133893;
}

.video-container {
    border-radius: 16px;
    box-shadow: 0 26px 60px -24px rgba(2, 6, 23, .55);
    border: 1px solid rgba(19, 56, 147, .12);
}

/* pulsing ring behind the play button */
.play-button {
    position: relative;
}

.play-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .55);
    animation: videoPulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes videoPulse {
    0%   { transform: translate(-50%, -50%) scale(.85); opacity: .7; }
    70%  { opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .play-button::before { animation: none; }
}

/* ============================================================
   CONTACT FORM SECTION — anchored panel + aligned row
============================================================ */
.contact-header {
    margin-bottom: 24px;
}

.contact-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: #133893;
}

/* soft panel so the form no longer floats on the plain white section */
.contact-form-inline {
    max-width: 820px;
    padding: 20px;
    background: #f3f6fd;
    border-radius: 14px;
}

/* fix: the button (no border) was ~7px shorter than the inputs (2px border).
   stretch makes it match the field height exactly. */
.form-row {
    align-items: stretch;
}

.contact-form-inline .form-input {
    background: #ffffff;
    border-color: #e3e9f6;
}

.form-input {
    border-radius: 10px;
}

.form-input:focus {
    border-color: #133893;
    box-shadow: 0 0 0 3px rgba(19, 56, 147, .12);
}

/* shared by the inline form AND the popup form */
.btn-form-submit {
    background: #133893;
    border-radius: 10px;
}

.btn-form-submit:hover {
    background: #08277b;
}

@media (max-width: 768px) {
    .contact-form-inline {
        margin: 0 20px;
        padding: 16px;
    }
}

/* ============================================================
   POPUP FORM — simple + compact
============================================================ */
.popup-container {
    padding: 30px 26px 26px;
}

.popup-header {
    margin-bottom: 20px;
}

.popup-title {
    color: #133893;
    font-size: 24px;
}

.popup-title::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: #133893;
}

.popup-form .form-group {
    margin-bottom: 14px;
}

.popup-close:hover {
    background: #e7eefb;
    color: #133893;
}

/* ============================================================
   FOOTER — brand logo + spacing
============================================================ */
.site-footer {
    padding: 34px 0;
}

.footer-logo {
    display: block;
    width: 72px;
    height: auto;
    margin: 0 auto 14px;
}

/* ============================================================
   MOBILE REFINEMENTS
============================================================ */
@media (max-width: 600px) {
    /* HERO — keep "Mountain View" from breaking mid-name */
    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    /* price card: tighter padding so the labels fit on one line */
    .price-item {
        padding: 14px 12px;
    }

    .price-value {
        font-size: 22px;
    }

    .price-label {
        font-size: 11px;
        letter-spacing: .4px;
    }

    /* CTA — tighter, less balloon-like */
    .hero-buttons .btn-download {
        padding: 13px 26px;
        font-size: 15px;
        gap: 8px;
        border-radius: 14px;
        box-shadow: 0 8px 20px -10px rgba(2, 6, 23, .5);
    }

    .hero-buttons .btn-download svg {
        width: 18px;
        height: 18px;
    }

    /* PAYMENT PLAN — the 3 stacked cards were far too tall */
    .payment-cards {
        gap: 12px;
    }

    .payment-card {
        padding-top: 20px;
        padding-bottom: 16px;
    }

    .payment-percentage {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .payment-label {
        min-height: 46px;
    }

    .payment-note {
        margin-top: 10px;
        font-size: 14px;
    }

    /* AMENITIES — smaller gap + tighter tiles */
    .amenities-grid {
        gap: 10px;
    }

    .amenity-item {
        padding: 16px 8px;
    }

    .amenity-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }

    .amenity-name {
        font-size: 14px;
    }

    /* POPUP */
    .popup-container {
        padding: 24px 20px 20px;
    }

    .popup-title {
        font-size: 21px;
    }
}
