/**
 * AirSync AIM (Collins Pro Line flight data) product page styles.
 * Ported from the dylan-draft.com /aim.html reference. Every rule is scoped
 * under .aim-page so nothing leaks into or collides with the global theme /
 * other page styles. Nav comes from the shared theme header; this page
 * builds its own simple footer inline (see template-aim.php).
 */

.aim-page {
    background: #fff;
    color: #231F20;
}

.aim-page *,
.aim-page *::before,
.aim-page *::after {
    box-sizing: border-box;
}

.aim-page .btn-blue {
    display: inline-block;
    background: #307FE2;
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(48, 127, 226, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.aim-page .btn-blue:hover {
    background: #1f6dd4;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(48, 127, 226, 0.5);
}

.aim-page .btn-outline-white {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.aim-page .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ── HERO ── */
.aim-page .aim-hero {
    position: relative;
    min-height: 59vh;
    padding-top: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #162640;
}

.aim-page .aim-hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.aim-page .aim-hero-content {
    flex: 1;
    text-align: center;
    max-width: 520px;
}

.aim-page .aim-hero-img-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aim-page .aim-hero-img-col img {
    width: 272px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) brightness(0.75);
    transform: rotate(1deg);
}

.aim-page .aim-hero-eyebrow {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #307FE2;
    margin-bottom: 20px;
}

.aim-page .aim-hero-h1 {
    text-align: center;
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.aim-page .aim-hero-h1 span {
    color: #307FE2;
}

.aim-page .aim-hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 580px;
    margin: 0 auto 40px;
}

.aim-page .aim-hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── SECTION HEADINGS ── */
.aim-page .aim-section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.aim-page .aim-section-inner-narrow {
    max-width: 900px;
}

.aim-page .aim-section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #307FE2;
    margin-bottom: 12px;
    display: block;
}

.aim-page .aim-section-h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #0d1f3c;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.aim-page .aim-section-sub {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(7, 21, 56, 0.6);
    max-width: 560px;
    margin: 0;
}

.aim-page .aim-features .aim-section-eyebrow,
.aim-page .aim-features .aim-section-h2 {
    text-align: center;
}

.aim-page .aim-features .aim-section-sub {
    text-align: center;
    margin: 0 auto;
}

/* ── FEATURES ── */
.aim-page .aim-features {
    padding: 80px 0 100px;
    background: #f9fbff;
}

.aim-page .aim-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 56px;
    justify-content: center;
}

.aim-page .aim-feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 12px 32px rgba(48, 127, 226, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aim-page .aim-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(48, 127, 226, 0.12);
}

.aim-page .aim-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(48, 127, 226, 0.1);
    margin-bottom: 20px;
}

.aim-page .aim-feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0d1f3c;
    margin: 0 0 10px;
}

.aim-page .aim-feature-card p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(7, 21, 56, 0.6);
    margin: 0;
}

/* ── COMPATIBILITY ── */
.aim-page .aim-compat {
    padding: 100px 0;
    background: #fff;
}

.aim-page .aim-compat-card-wrap {
    margin-top: 48px;
}

.aim-page .aim-compat-card {
    background: #f9fbff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    padding: 40px 44px;
    text-align: center;
}

.aim-page .aim-compat-icon {
    width: 56px;
    height: 56px;
    background: #307FE2;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.aim-page .aim-compat-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0d1f3c;
    margin: 0 0 12px;
}

.aim-page .aim-compat-card p {
    font-size: 16px;
    color: rgba(7, 21, 56, 0.6);
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.aim-page .aim-compat-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #307FE2;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
}

/* ── HOW TO PURCHASE ── */
.aim-page .aim-purchase {
    padding: 100px 0;
    background: #f9fbff;
}

.aim-page .aim-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 48px;
}

.aim-page .aim-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 0 0 40px;
}

.aim-page .aim-step:last-child {
    padding-bottom: 0;
}

.aim-page .aim-step-num {
    width: 48px;
    height: 48px;
    background: #307FE2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.aim-page .aim-step-body {
    padding-top: 10px;
}

.aim-page .aim-step-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0d1f3c;
    margin: 0 0 8px;
}

.aim-page .aim-step-body p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(7, 21, 56, 0.65);
    margin: 0;
}

.aim-page .aim-inline-link {
    color: #307FE2;
    font-weight: 600;
    text-decoration: none;
}

/* ── DEALER FINDER ── */
.aim-page .aim-dealer-finder {
    margin-top: 20px;
}

.aim-page .aim-dealer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid #307FE2;
    color: #307FE2;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.aim-page .aim-dealer-toggle:hover {
    background: #307FE2;
    color: #fff;
}

.aim-page .aim-dealer-panel {
    display: none;
    margin-top: 16px;
    border: 1.5px solid #e1e8f4;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(13, 31, 60, 0.08);
}

.aim-page .aim-dealer-search-row {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e1e8f4;
}

.aim-page .aim-dealer-search-inner {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aim-page .aim-zip-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #d0d9ea;
    border-radius: 100px;
    font-size: 14px;
    font-family: inherit;
    color: #0d1f3c;
    outline: none;
    transition: border 0.2s;
}

.aim-page .aim-zip-input:focus {
    border-color: #307FE2;
}

.aim-page .aim-dealer-search-btn {
    background: #307FE2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.2s;
}

.aim-page .aim-dealer-search-btn:hover {
    background: #1a63c4;
}

.aim-page .aim-zip-error {
    display: none;
    color: #EB262A;
    font-size: 13px;
    margin-top: 8px;
    padding-left: 4px;
}

.aim-page .aim-dealer-map {
    height: 360px;
    width: 100%;
}

.aim-page .aim-dealer-list {
    display: none;
    max-height: 260px;
    overflow-y: auto;
    border-top: 1px solid #e1e8f4;
}

/* ── CTA ── */
.aim-page .aim-cta {
    background: linear-gradient(135deg, #0a1628 0%, #112240 100%);
    padding: 100px 24px;
    text-align: center;
}

.aim-page .aim-cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.aim-page .aim-cta h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.aim-page .aim-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.aim-page .aim-cta-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.aim-page .aim-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #307FE2;
    color: #fff;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(48, 127, 226, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aim-page .aim-cta-btn:hover {
    transform: translateY(-2px);
}

/* ── FOOTER ── */
.aim-page .aim-footer {
    background: #162640;
    padding: 40px 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.aim-page .aim-footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

@media (max-width: 860px) {
    .aim-page .aim-hero-inner {
        flex-direction: column-reverse;
        padding: 40px 24px;
        text-align: center;
    }

    .aim-page .aim-hero-content {
        max-width: 100%;
    }

    .aim-page .aim-compat-card {
        padding: 32px 24px;
    }
}
