/* BluePieApps home page - first redesign draft */

/* ---------- Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #263238;
    background: #f6f8f9;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    color: #003f80;
    text-decoration: underline;
}

/* External-link marker retained from the existing stylesheet */
a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6' stroke='currentColor' fill='none' stroke-width='2'/%3E%3Cpath d='M15 3h6v6' stroke='currentColor' fill='none' stroke-width='2'/%3E%3Cpath d='M10 14L21 3' stroke='currentColor' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ---------- Existing banner ---------- */
.site-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 175;
    overflow: hidden;
    background-color: #000;
    flex: 0 0 auto;
    padding: 0;
}

.site-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: white;
    margin: 0;
    z-index: 1;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

/* ---------- Main ---------- */
main {
    flex: 1 0 auto;
}

.hero-copy,
.section-block {
    padding-left: clamp(1.25rem, 5vw, 4rem);
    padding-right: clamp(1.25rem, 5vw, 4rem);
}

.hero-copy {
    padding-top: clamp(2.5rem, 6vw, 4.75rem);
    padding-bottom: clamp(2.75rem, 6vw, 5rem);
    text-align: center;
    background: #ffffff;
}

.eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #087f65;
}

.hero-copy h2,
.section-heading h2,
.bleconnect-section h2 {
    line-height: 1.12;
}

.hero-copy h2 {
    font-size: clamp(1.7rem, 4vw, 3.2rem);
    color: #173f49;
    margin-bottom: 1rem;
}

.hero-lead {
    max-width: 790px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #4c5c61;
}

.hero-actions {
    margin-top: 1.75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    display: inline-block;
    padding: 0.72rem 1.15rem;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.3;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button-primary {
    color: #ffffff;
    background: #087f65;
    box-shadow: 0 4px 14px rgba(8, 127, 101, 0.18);
}

.button-primary:hover {
    color: #ffffff;
    background: #066b56;
}

.button-secondary {
    color: #174b57;
    background: #edf4f3;
    border: 1px solid #c8dcda;
}

.button-secondary:hover {
    color: #103a43;
    background: #e3efed;
}

/* ---------- App cards ---------- */
.section-block {
    padding-top: clamp(2.75rem, 6vw, 4.5rem);
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.section-heading {
    margin-bottom: 1.75rem;
}

.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    color: #173f49;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.app-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: #ffffff;
    border: 1px solid #dce4e6;
     border-top: 4px solid #087f65;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(27, 56, 64, 0.07);
}


.card-topline {
    margin-bottom: 0.45rem;
    color: #65777c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.app-card h3 {
    margin-bottom: 0.55rem;
    color: #173f49;
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.card-hook {
    margin-bottom: 0.85rem;
    color: #203d45;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.app-card > p:not(.card-hook):not(.card-note) {
    color: #4f6065;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.1rem 0 0.3rem;
}

.feature-list span {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #edf5f3;
    color: #315b56;
    font-size: 0.82rem;
    font-weight: 700;
}

.card-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.42rem;
    margin-top: 1.35rem;
}

.card-links .text-link {
    margin-bottom: 0.25rem;
    font-weight: 700;
    font-size: 1.03rem;
}

.card-note {
    margin-top: auto;
    padding-top: 1.3rem;
    color: #69787c;
    font-size: 0.88rem;
}

/* ---------- BLEConnect / consulting ---------- */
.bleconnect-section {
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
    color: #eaf4f3;
    background: #173f49;
}

.eyebrow-light {
    color: #63dfae;
}

.bleconnect-intro {
    max-width: 850px;
}

.bleconnect-intro h2 {
    margin-bottom: 0.35rem;
    color: #ffffff;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.bleconnect-hook {
    margin-bottom: 1rem;
    color: #63dfae;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
}

.bleconnect-intro > p:last-child {
    max-width: 800px;
    color: #d2e1e2;
    font-size: 1.05rem;
}

.bleconnect-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.service-tile {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
}

.service-tile h3 {
    margin-bottom: 0.45rem;
    color: #ffffff;
    font-size: 1.05rem;
}

.service-tile p {
    color: #d2e1e2;
    font-size: 0.94rem;
}

.engagement-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: 10px;
    background: #0f3038;
    border-left: 4px solid #63dfae;
}

.engagement-box h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1.3rem;
}

.engagement-box p {
    max-width: 760px;
    color: #d2e1e2;
}

.engagement-box p + p {
    margin-top: 0.7rem;
}

.button-light {
    white-space: nowrap;
    color: #123d47;
    background: #ffffff;
}

.button-light:hover {
    color: #123d47;
    background: #eaf4f3;
}

/* ---------- Footer ---------- */
footer {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1.15rem clamp(1rem, 4vw, 2rem);
    border-top: 1px solid #dde4e5;
    background: #ffffff;
    font-size: 0.9rem;
    color: #66767a;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .app-grid,
    .bleconnect-features,
    .engagement-box {
        grid-template-columns: 1fr;
    }

    .engagement-action {
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .hero-copy {
        text-align: left;
    }

    .hero-lead {
        margin-left: 0;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .section-block,
    .bleconnect-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .app-card {
        border-radius: 9px;
    }
}
