/*
 * OurHOAPage — Main Portal / Marketing Site Styles v1.0.5
 *
 * FULL-WIDTH BREAKOUT STRATEGY:
 * Most WordPress themes constrain page content to a narrow column with
 * padding, max-width, and sidebars. This file uses two techniques to escape:
 *
 * 1. FullWidthTemplate.php swaps in templates/full-width-page.php which
 *    calls get_header() / the_content() / get_footer() without any theme
 *    content wrappers, so the theme's column constraints are bypassed.
 *
 * 2. #ourhoa-full-width-content resets any remaining inherited margin/padding.
 *
 * 3. .ourhoa-portal uses negative margin / 100vw breakout as a fallback for
 *    themes that don't yield cleanly to the template override.
 */

/* ── Full-width wrapper reset ────────────────────────────────────────────── */
#ourhoa-full-width-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Remove theme content column constraints that survive the template swap */
.ourhoa-full-width-page #page,
.ourhoa-full-width-page #primary,
.ourhoa-full-width-page #content,
.ourhoa-full-width-page .site-content,
.ourhoa-full-width-page .content-area,
.ourhoa-full-width-page main,
.ourhoa-full-width-page article {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

/* Hide the theme's .entry-title / .page-title / wp block title on portal pages */
.ourhoa-full-width-page .entry-title,
.ourhoa-full-width-page .page-title,
.ourhoa-full-width-page h1.wp-block-post-title,
.ourhoa-full-width-page .entry-header,
.ourhoa-full-width-page .page-header {
    display: none !important;
}

/* Remove standard entry-content padding so hero starts at the very top */
.ourhoa-full-width-page .entry-content,
.ourhoa-full-width-page .page-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Portal wrapper ──────────────────────────────────────────────────────── */
.ourhoa-portal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1A1A1A;
    line-height: 1.6;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Fallback breakout for stubborn themes that constrain after the template swap */
.ourhoa-portal {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
}

/* ── Shared section layout ───────────────────────────────────────────────── */
.ourhoa-portal__section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 24px;
}

.ourhoa-portal__section-title {
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    color: #1B3A5C;
    margin: 0 0 12px;
    line-height: 1.2;
}
.ourhoa-portal__section-title--light { color: #ffffff; }

.ourhoa-portal__section-sub {
    text-align: center;
    font-size: 18px;
    color: #6B7280;
    margin: 0 auto 48px;
    max-width: 640px;
    line-height: 1.6;
}
.ourhoa-portal__section-sub--light { color: rgba(255,255,255,0.8); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.ourhoa-portal__hero {
    background: linear-gradient(135deg, #1B3A5C 0%, #0F2340 100%);
    position: relative;
    overflow: hidden;
}

.ourhoa-portal__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.ourhoa-portal__hero::after {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,155,111,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.ourhoa-portal__hero-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 88px 24px 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ourhoa-portal__hero-logo {
    margin: 0 auto 36px;
    display: block;
    filter: brightness(0) invert(1);  /* white logo on dark background */
}

.ourhoa-portal__hero-headline {
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.ourhoa-portal__hero-sub {
    font-size: 20px;
    color: rgba(255,255,255,0.75);
    margin: 0 auto 44px;
    max-width: 580px;
    line-height: 1.6;
}

.ourhoa-portal__hero-finder { margin-bottom: 36px; }

.ourhoa-portal__hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Trust bar ───────────────────────────────────────────────────────────── */
.ourhoa-portal__trust-bar {
    background: rgba(255,255,255,0.06);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* ── HOA Finder ──────────────────────────────────────────────────────────── */
.ourhoa-finder {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.ourhoa-finder__heading {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
    text-align: left;
}

.ourhoa-finder__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ourhoa-finder__icon {
    position: absolute;
    left: 18px;
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

.ourhoa-finder__input {
    width: 100%;
    padding: 18px 20px 18px 52px;
    border-radius: 12px;
    border: none;
    font-size: 17px;
    background: #ffffff;
    color: #1A1A1A;
    box-shadow: 0 8px 32px rgba(0,0,0,0.24);
    outline: none;
    transition: box-shadow 150ms ease;
}
.ourhoa-finder__input:focus {
    box-shadow: 0 8px 32px rgba(0,0,0,0.24), 0 0 0 3px rgba(74,155,111,0.5);
}
.ourhoa-finder__input::placeholder { color: #9CA3AF; }

.ourhoa-finder__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.20);
    z-index: 200;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.ourhoa-finder__result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: #1A1A1A;
    border-bottom: 1px solid #F0EFEC;
    transition: background 100ms ease;
}
.ourhoa-finder__result:last-child { border-bottom: none; }
.ourhoa-finder__result:hover      { background: #F8F7F4; }

.ourhoa-finder__result-dot    { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.ourhoa-finder__result-name   { font-weight: 600; font-size: 15px; flex: 1; }
.ourhoa-finder__result-tag    { font-size: 12px; color: #6B7280; }
.ourhoa-finder__result-arrow  { color: #6B7280; font-size: 18px; margin-left: 4px; }
.ourhoa-finder__no-results    { padding: 24px; text-align: center; color: #6B7280; font-size: 14px; }

.ourhoa-finder__hint {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.50);
    text-align: center;
}
.ourhoa-finder__hint a { color: rgba(255,255,255,0.80); text-decoration: underline; }

/* ── Features ────────────────────────────────────────────────────────────── */
.ourhoa-portal__features { background: #F8F7F4; }

.ourhoa-portal__features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.ourhoa-portal__feature-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px 28px;
    border: 1.5px solid #E2E0DC;
    transition: box-shadow 150ms ease, transform 150ms ease;
    position: relative;
    overflow: hidden;
}
.ourhoa-portal__feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B3A5C, #4A9B6F);
    opacity: 0;
    transition: opacity 150ms ease;
}
.ourhoa-portal__feature-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.09); transform: translateY(-3px); }
.ourhoa-portal__feature-card:hover::before { opacity: 1; }

.ourhoa-portal__feature-icon  { font-size: 40px; margin-bottom: 18px; line-height: 1; display: block; }
.ourhoa-portal__feature-title { font-size: 18px; font-weight: 700; color: #1B3A5C; margin: 0 0 10px; }
.ourhoa-portal__feature-desc  { font-size: 14px; color: #6B7280; margin: 0; line-height: 1.7; }

/* ── How it works ────────────────────────────────────────────────────────── */
.ourhoa-portal__how { background: #ffffff; }

.ourhoa-portal__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    position: relative;
}
.ourhoa-portal__steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(16.66% + 16px);
    right: calc(16.66% + 16px);
    height: 2px;
    background: linear-gradient(90deg, #1B3A5C, #4A9B6F);
    opacity: 0.15;
}

.ourhoa-portal__step         { text-align: center; position: relative; }
.ourhoa-portal__step-num     { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #1B3A5C, #4A9B6F); color: #ffffff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative; z-index: 1; box-shadow: 0 4px 16px rgba(27,58,92,0.25); }
.ourhoa-portal__step-title   { font-size: 17px; font-weight: 700; color: #1B3A5C; margin: 0 0 8px; }
.ourhoa-portal__step-desc    { font-size: 14px; color: #6B7280; margin: 0; line-height: 1.6; }

/* ── HOA community list ──────────────────────────────────────────────────── */
.ourhoa-portal__communities { background: #F8F7F4; }

.ourhoa-hoa-list__search-wrap { display: flex; justify-content: center; margin-bottom: 36px; }
.ourhoa-hoa-list__search-wrap .ourhoa-input { max-width: 360px; border-radius: 8px; font-size: 15px; }

.ourhoa-hoa-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.ourhoa-hoa-card { display: flex; flex-direction: column; border-radius: 14px; border: 1.5px solid #E2E0DC; overflow: hidden; text-decoration: none; color: #1A1A1A; background: #ffffff; transition: box-shadow 150ms ease, transform 150ms ease; }
.ourhoa-hoa-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.10); transform: translateY(-3px); }

.ourhoa-hoa-card__bar       { height: 6px; flex-shrink: 0; }
.ourhoa-hoa-card__logo-wrap { padding: 20px 20px 0; }
.ourhoa-hoa-card__logo      { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #F8F7F4; padding: 4px; display: block; }
.ourhoa-hoa-card__body      { padding: 14px 20px; flex: 1; }
.ourhoa-hoa-card__name      { font-weight: 700; font-size: 16px; margin: 0 0 4px; color: #1A1A1A; }
.ourhoa-hoa-card__tagline   { font-size: 13px; color: #6B7280; margin: 0 0 6px; line-height: 1.4; }
.ourhoa-hoa-card__meta      { font-size: 12px; color: #9CA3AF; margin: 0; }
.ourhoa-hoa-card__cta       { padding: 12px 20px 18px; font-size: 13px; font-weight: 600; }

/* ── Get Started / Demo Form ─────────────────────────────────────────────── */
.ourhoa-portal__get-started {
    background: linear-gradient(135deg, #1B3A5C 0%, #0F2340 100%);
    position: relative;
    overflow: hidden;
}
.ourhoa-portal__get-started::before {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,155,111,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.ourhoa-demo-form { max-width: 640px; margin: 0 auto; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 36px; }
.ourhoa-demo-form .ourhoa-input { background: rgba(255,255,255,0.95); border-color: transparent; }
.ourhoa-demo-form .ourhoa-input:focus { border-color: #4A9B6F; box-shadow: 0 0 0 3px rgba(74,155,111,0.3); }
.ourhoa-demo-form .ourhoa-label { color: rgba(255,255,255,0.85); }
.ourhoa-demo-form__status { margin-bottom: 20px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ourhoa-portal__features-grid { grid-template-columns: repeat(2, 1fr); }
    .ourhoa-portal__steps         { grid-template-columns: 1fr; }
    .ourhoa-portal__steps::before { display: none; }
}

@media (max-width: 768px) {
    .ourhoa-portal__hero-headline { font-size: 36px; }
    .ourhoa-portal__hero-sub      { font-size: 17px; }
    .ourhoa-portal__section-title { font-size: 26px; }
    .ourhoa-portal__section-inner { padding: 52px 20px; }
    .ourhoa-demo-form             { padding: 24px 20px; }
}

@media (max-width: 600px) {
    .ourhoa-portal__features-grid { grid-template-columns: 1fr; }
    .ourhoa-portal__hero-inner    { padding: 60px 20px 52px; }
    .ourhoa-portal__hero-headline { font-size: 30px; }
    .ourhoa-portal__hero-actions  { flex-direction: column; align-items: center; }
    .ourhoa-btn--lg               { width: 100%; justify-content: center; }
    .ourhoa-hoa-list              { grid-template-columns: 1fr; }
}
