/* Home "Your Personalized Roadmap" section (template-parts/home/report.php). Fonts, buttons and --amh-* colours:
   home-hero.css. --amb-background and --amb-photo: inline style of Amerlink_Genesis_Home_Report::enqueue_assets(). */

.amb-section {
    --amb-navy: #021a62;
    --amb-text: #12285e;
    --amb-blue: #0e86f8;
    --amb-pink: #f50a55;
    --amb-line: #e3ecf7;
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 5vw, 96px) 0;
    background: var(--amb-background, none) center / cover no-repeat, linear-gradient(180deg, #eef7fe 0%, #e2f0fd 100%);
    color: var(--amb-text);
}

.amb-inner {
    display: grid;
    grid-template-areas: "copy report card";
    grid-template-columns: minmax(0, 42fr) minmax(0, 30fr) minmax(0, 26fr);
    align-items: center;
    gap: clamp(20px, 2.2vw, 44px);
    width: min(100% - 64px, 1510px);
    margin-inline: auto;
}

/* Texts */
.amb-copy {
    grid-area: copy;
    min-width: 0;
}

/* Small heading, as in the other sections (.amw-eyebrow); with it the heading goes without its pink bar. */
.amb-eyebrow {
    margin: 0 0 clamp(8px, .7vw, 12px);
    color: var(--amb-blue);
    font-size: clamp(14px, 1.05vw, 19px);
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
    text-wrap: balance;
}

.amb-title::before {
    display: block;
    width: 52px;
    height: 5px;
    margin-bottom: clamp(20px, 1.8vw, 34px);
    border-radius: 3px;
    background: var(--amb-pink);
    content: '';
}

.amb-eyebrow + .amb-title::before {
    display: none;
}

.amb-title {
    margin: 0;
    padding: 0;
    color: var(--amb-navy);
    font-family: inherit;
    font-size: clamp(28px, 2vw, 42px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.13;
}

.amb-features {
    display: grid;
    gap: clamp(10px, .9vw, 18px);
    margin: clamp(20px, 1.7vw, 32px) 0 0;
    padding: 0;
    list-style: none;
}

.amb-features li {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1vw, 18px);
    margin: 0;
    font-size: clamp(16px, 1.15vw, 21px);
    line-height: 1.35;
}

.amb-check {
    width: clamp(24px, 1.75vw, 32px);
    height: clamp(24px, 1.75vw, 32px);
    flex: 0 0 auto;
}

.amb-check circle {
    fill: var(--amb-blue);
}

.amb-check path {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.amb-button {
    margin-top: clamp(26px, 2.1vw, 40px);
    font-size: clamp(16px, 1.15vw, 21px);
}

.amb-button-arrow {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

/* The report: a cover in front of two pages, all sized in % of the picture (cqi), so it scales as one image. */
.amb-report {
    position: relative;
    grid-area: report;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 480 / 580;
    margin-inline: auto;
    container-type: inline-size;
}

.amb-page,
.amb-cover {
    position: absolute;
    box-sizing: border-box;
    border-radius: 2.4cqi;
    background: #fff;
    box-shadow: 0 2.5cqi 7cqi rgba(2, 26, 98, .16), 0 .4cqi 1cqi rgba(2, 26, 98, .06);
}

.amb-page {
    display: flex;
    flex-direction: column;
    gap: 3.4cqi;
    padding: 7cqi 5cqi 6cqi 16cqi;
}

/* The middle page shows only right of the cover: its content starts there. */
.amb-page-chart {
    padding-left: 33cqi;
}

/* The back page shows right of the middle one. */
.amb-page-photo {
    padding-left: 30cqi;
}

.amb-page-photo {
    top: 15%;
    left: 44%;
    width: 54%;
    height: 74%;
    transform: rotate(6deg);
}

.amb-page-chart {
    top: 9%;
    left: 31%;
    width: 56%;
    height: 82%;
    transform: rotate(2deg);
}

.amb-page-picture {
    display: block;
    height: 28%;
    border-radius: 1.8cqi;
    background: var(--amb-photo, #cfe0f5) 70% 40% / cover no-repeat;
}

.amb-lines {
    display: flex;
    flex-direction: column;
    gap: 2.4cqi;
}

.amb-lines i {
    display: block;
    width: 92%;
    height: 1.7cqi;
    border-radius: 1cqi;
    background: #dde7f5;
}

.amb-lines i:nth-child(even) {
    width: 68%;
}

.amb-lines-short i {
    width: 60%;
    height: 2.2cqi;
    background: #c9daf2;
}

.amb-bars {
    display: flex;
    align-items: flex-end;
    gap: 1.6cqi;
    height: 13cqi;
}

.amb-bars i {
    display: block;
    width: 3cqi;
    border-radius: .6cqi .6cqi 0 0;
    background: linear-gradient(180deg, #4b97f6, #1f74e8);
}

.amb-bars i:nth-child(1) { height: 38%; }
.amb-bars i:nth-child(2) { height: 58%; }
.amb-bars i:nth-child(3) { height: 80%; }
.amb-bars i:nth-child(4) { height: 100%; }

.amb-ring {
    display: block;
    width: 11cqi;
    height: 11cqi;
    border-radius: 50%;
    background: conic-gradient(#1f7ff2 0 70%, #dce7f6 70% 100%);
    -webkit-mask: radial-gradient(circle, transparent 50%, #000 51%);
    mask: radial-gradient(circle, transparent 50%, #000 51%);
}

/* Cover */
.amb-cover {
    z-index: 2;
    top: 6%;
    left: 1%;
    width: 66%;
    height: 87%;
    overflow: hidden;
    padding: 8cqi 7cqi 0;
    transform: rotate(-4.5deg);
}

/* Light-blue diagonal light in the top corner, as on the design's cover. */
.amb-cover::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 42%;
    background: linear-gradient(225deg, rgba(186, 214, 248, .7) 0%, rgba(186, 214, 248, .25) 35%, rgba(186, 214, 248, 0) 62%);
    content: '';
}

.amb-cover-logo {
    position: relative;
    display: block;
    width: 44%;
    height: auto;
}

.amb-cover-title {
    position: relative;
    margin: 9cqi 0 0;
    color: var(--amb-navy);
    font-size: 7.2cqi;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.08;
}

.amb-cover-title::after {
    display: block;
    width: 8cqi;
    height: .9cqi;
    margin-top: 3.4cqi;
    border-radius: 1cqi;
    background: var(--amb-pink);
    content: '';
}

.amb-cover-subtitle {
    position: relative;
    margin: 2.6cqi 0 0;
    color: #1d3a74;
    font-size: 3cqi;
    font-weight: 600;
    line-height: 1.4;
}

.amb-cover-photo {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 44%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
}

.amb-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 60%;
}

/* PDF badge */
.amb-pdf {
    position: absolute;
    z-index: 3;
    top: 4%;
    left: 53%;
    display: grid;
    width: 15%;
    aspect-ratio: .84;
    align-content: center;
    justify-items: center;
    gap: 1.6cqi;
    border-radius: 2.6cqi;
    background: #fff;
    box-shadow: 0 2cqi 5cqi rgba(2, 26, 98, .2);
    transform: rotate(-4.5deg);
}

.amb-pdf svg {
    width: 50%;
    height: auto;
    fill: none;
    stroke: #e2252b;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.amb-pdf b {
    padding: .7cqi 2.2cqi;
    border-radius: 1cqi;
    background: #e2252b;
    color: #fff;
    font-size: 3.4cqi;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
}

/* College list */
.amb-card {
    grid-area: card;
    min-width: 0;
    padding: clamp(18px, 1.6vw, 30px) clamp(16px, 1.4vw, 26px) clamp(10px, .9vw, 16px);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 44px rgba(2, 26, 98, .1);
}

.amb-card-title {
    margin: 0 0 clamp(6px, .6vw, 12px);
    padding: 0;
    color: var(--amb-navy);
    font-family: inherit;
    font-size: clamp(17px, 1.25vw, 23px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.amb-colleges {
    margin: 0;
    padding: 0;
    list-style: none;
}

.amb-college {
    display: grid;
    grid-template-columns: clamp(56px, 3.9vw, 74px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, .85vw, 16px);
    margin: 0;
    padding: clamp(8px, .75vw, 13px) 0;
    border-top: 1px solid var(--amb-line);
}

.amb-college:first-child {
    border-top: 0;
}

.amb-college-photo {
    overflow: hidden;
    aspect-ratio: 74 / 51;
    border-radius: 8px;
    background: #dbe8f7;
}

.amb-college-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amb-college-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.amb-college-copy strong {
    color: var(--amb-navy);
    font-size: clamp(13.5px, .86vw, 16px);
    font-weight: 700;
    line-height: 1.3;
}

.amb-college-copy span {
    color: #2a4b84;
    font-size: clamp(13px, .8vw, 15px);
    line-height: 1.3;
}

.amb-chevron {
    width: clamp(18px, 1.3vw, 24px);
    height: clamp(18px, 1.3vw, 24px);
    fill: none;
    stroke: var(--amb-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

/* Tablets: the texts and the list one under another, the report beside both. */
@media (max-width: 1179px) {
    .amb-inner {
        grid-template-areas:
            "copy report"
            "card report";
        grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
        row-gap: clamp(32px, 4vw, 44px);
    }

    .amb-report {
        align-self: center;
    }
}

/* Phones: one column. */
@media (max-width: 780px) {
    .amb-inner {
        grid-template-areas:
            "copy"
            "report"
            "card";
        grid-template-columns: minmax(0, 1fr);
        width: min(100% - 36px, 660px);
    }

    .amb-report {
        max-width: 400px;
    }

    .amb-button {
        width: 100%;
    }
}

/* Narrow text column (small tablets, phones): the line breaks typed in the panel would leave a single word on a line
   ("Your Personalized / Roadmap"); the heading wraps on its own, balanced. */
@media (max-width: 900px) {
    .amb-title {
        text-wrap: balance;
    }

    .amb-title br {
        display: none;
    }
}
