﻿/* Buttons, cards, nav tweaks, forms, accordions */
.btn-brand {
    --bs-btn-bg: var(--awc-brand);
    --bs-btn-border-color: var(--awc-brand);
    --bs-btn-hover-bg: #155e5a;
    --bs-btn-hover-border-color: #155e5a;
    --bs-btn-color: #fff;
    border-radius: var(--awc-radius);
    padding: .65rem 1.1rem;
    z-index: 9999 !important;
}

.btn-outline-brand {
    --bs-btn-color: var(--awc-brand);
    --bs-btn-border-color: var(--awc-brand);
    --bs-btn-hover-bg: var(--awc-brand);
    --bs-btn-hover-color: #fff;
    border-radius: var(--awc-radius);
    padding: .65rem 1.1rem;
}

.btn-brand:hover {
    color: #fff !important;
    z-index: 9999 !important;
}

.awc-card {
    background: #fff;
    border: 1px solid #e7ecec;
    border-radius: var(--awc-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.navbar-toggler {
    border: 0;
}

/* ==========================================================================
   Our Process (component module)
   Structure:
     .awc-process               -> section wrapper (semantic grouping)
       .awc-process__steps      -> flex container for steps
         .awc-process__item     -> individual step card
           .awc-process__icon   -> circular step marker (01, 02, 03)
           .awc-process__title  -> step title
           .awc-process__text   -> step description
   -------------------------------------------------------------------------- */

/* Steps container: horizontal layout with connecting line on desktop,
   vertical stack on mobile for readability. */
.awc-process__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

    /* Connector line behind the circles (desktop only) */
    .awc-process__steps::before {
        content: "";
        position: absolute;
        top: 55px; /* aligns with the center of the icons */
        left: 0;
        right: 0;
        height: 2px;
        background: rgba(0, 102, 204, 0.2); /* subtle brand line */
        z-index: 0; /* sits behind the step cards */
    }

/* Each step card */
.awc-process__item {
    position: relative;
    padding-top: 0.5rem; /* room above the icon */
    z-index: 1; /* above connector line */
    text-align: center;
}

/* Circular step marker with large number */
.awc-process__icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: var(--awc-font-serif); /* Montserrat per your typography setup */
    font-size: 1.5rem;
    color: #fff;
    background: #0066cc; /* brand blue */
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.25);
}

/* Titles & text for steps */
.awc-process__title {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.awc-process__text {
    margin: 0 auto;
    max-width: 38ch; /* comfortable line length */
    color: var(--awc-text);
}

.awc-hlink {
    text-decoration: none;
    cursor: pointer;
}

    .awc-hlink:hover {
        color: #155e5a;
        text-decoration: underline;
    }

/* Hover polish (desktop) */
@media (hover: hover) and (pointer: fine) {
    .awc-process__item:hover .awc-process__icon {
        transform: translateY(-2px);
        transition: transform 180ms ease;
    }
}

/* -----------------------------
   Responsive adjustments
   ----------------------------- */

/* Tablet: add breathing room and reduce circle a bit */
@media (max-width: 992px) {
    .awc-process__steps {
        gap: 1.5rem;
    }

    .awc-process__icon {
        width: 84px;
        height: 84px;
        font-size: 1.25rem;
    }

    .awc-process__steps::before {
        top: 42px;
    }
}

/* Mobile: stack vertically, remove the horizontal connector, left-align text */
@media (max-width: 768px) {
    .awc-process__steps {
        grid-template-columns: 1fr;
    }

        .awc-process__steps::before {
            display: none;
        }

    .awc-process__item {
        text-align: left;
    }

    .awc-process__icon {
        margin-left: 0; /* align circle with text block */
    }

    .awc-process__text {
        max-width: 46ch;
    }
}

/* Card polish (non-breaking): smooth hover + elevation tokens if present */
.awc-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

    .awc-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--awc-shadow-md, 0 10px 28px rgba(0,0,0,.08));
    }

/* Optional: explicitly hoverable variant if you don't want all cards to lift */
.awc-card--hoverable:hover {
    transform: translateY(-2px);
    box-shadow: var(--awc-shadow-md, 0 10px 28px rgba(0,0,0,.08));
}

/* Chip/Pill for small highlights like "Cohorts forming now" */
.awc-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .9rem;
    border-radius: var(--awc-radius-pill, 999px);
    background: var(--awc-accent-bg, #eef7f6);
    color: var(--awc-dark);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    border: 1px solid var(--awc-border, #e7ecec);
}

/* Circular icon badge used at the top-left of cards */
.awc-iconpill {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--awc-brand);
    color: #fff;
    box-shadow: var(--awc-shadow-sm, 0 2px 8px rgba(0,0,0,.06));
    flex: 0 0 auto;
}

/* List pattern used inside cards (benefits, bullets, checks) */
.awc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}

    .awc-list li {
        display: flex;
        align-items: flex-start;
        gap: .625rem;
    }

        .awc-list li i,
        .awc-list li svg {
            margin-top: .2rem; /* aligns icons with first text line */
        }

/* Button—brand version stays as-is; add a pill variant if needed */
.btn-brand--pill {
    border-radius: var(--awc-radius-pill, 999px);
    font-weight: 700;
    padding: .75rem 1.25rem;
}

/* Subtle bordered panel if you want a non-elevated card option */
.awc-panel {
    background: var(--awc-surface, #fff);
    border: 1px solid var(--awc-border, #e7ecec);
    border-radius: var(--awc-radius);
    padding: var(--awc-space-4);
}

/* Compact product tile (if you later show small device/product items) */
.awc-product-tile {
    display: grid;
    gap: .5rem;
    background: var(--awc-surface, #fff);
    border: 1px solid var(--awc-border, #e7ecec);
    border-radius: var(--awc-radius);
    padding: var(--awc-space-3);
}

.awc-product-tile__title {
    font-weight: 600;
}

.awc-product-tile__meta {
    color: var(--awc-muted);
    font-size: .95rem;
}

.awc-book-home-btn {
    width: 60px !important;
    height: 60px !important;
    line-height: 30px !important;
    border-radius: 30px !important;
    text-align: center !important;
    padding: 0 !important;
    padding-top: 15px !important;
    background-color: #6494c4 !important;
}

    .awc-book-home-btn:hover {
        background-color: #155e5a !important;
    }

/* Mobile: make it a primary, full-width CTA */
@media (max-width: 576px) {
    .awc-book-home-btn {
        width: 100% !important;
        height: auto !important;
        line-height: 1.2 !important;
        padding: 0.85rem 1.25rem !important;
        border-radius: 999px !important; /* pill */
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
        font-weight: 600;
        font-size: 1rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 576px) {
    .awc-process__steps {
        grid-template-columns: 1fr; /* stack */
        gap: 1.75rem;
        justify-items: center; /* center each card in the grid */
    }

    .awc-process__item {
        display: flex;
        flex-direction: column;
        align-items: center; /* center icon + text as a group */
        text-align: center;
        width: 100%;
    }

    .awc-process__icon {
        margin: 0 auto 0.75rem auto; /* hard-center the circle */
        width: 80px;
        height: 80px;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative; /* 🔑 anchor for the lines */
    }

        /* Left line */
        .awc-process__icon::before {
            content: "";
            position: absolute;
            top: 50%;
            right: 100%; /* extend out to the left */
            margin-right: 4px; /* gap between circle and line */
            width: 70px; /* line length */
            height: 2px;
            background: rgba(0, 102, 204, 0.5);
            transform: translateY(-50%);
        }

        /* Right line */
        .awc-process__icon::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 100%; /* extend out to the right */
            margin-left: 4px; /* gap between circle and line */
            width: 70px;
            height: 2px;
            background: rgba(0, 102, 204, 0.5);
            transform: translateY(-50%);
        }

    .awc-process__text {
        max-width: 32ch;
        margin-inline: auto;
    }

    /* Still hide the original horizontal connector line on mobile */
    .awc-process__steps::before {
        display: none;
    }
}
