/* ==========================================================================
   Afluex Contact and Summer Training pages — page-specific layouts.
   Loaded after assets/css/afluex.css by those pages only.
   ========================================================================== */

/* ======================================================================
   Contact: a tilted "reach us" plane — the office beacon with the four
   real ways to reach Afluex connected to it. Illustrative, not a map.
   ====================================================================== */

.beacon {
    position: relative;
    width: 100%;
    max-width: 560px;
    justify-self: center;
    aspect-ratio: 1.1;
    perspective: 1300px;
}

.beacon__plane {
    position: absolute;
    inset: 10% 6% 12%;
    border-radius: 28px;
    border: 1px solid var(--line-2);
    background:
        radial-gradient(rgba(140, 214, 224, 0.16) 1px, transparent 1.2px) 0 0 / 18px 18px,
        radial-gradient(circle at 50% 50%, rgba(107, 199, 209, 0.16), rgba(8, 17, 26, 0.95) 70%);
    transform: rotateX(52deg) rotateZ(-10deg);
    box-shadow: 0 60px 90px -40px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(107, 199, 209, 0.5);
}

.beacon__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.beacon__lines path {
    fill: none;
    stroke: var(--line-2);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.beacon__lines .flow {
    stroke: var(--aqua-2);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 4 90;
    animation: b-flow 2.6s linear infinite;
}

@keyframes b-flow {
    from {
        stroke-dashoffset: 94;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.beacon__pin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #c9fbff, var(--aqua) 55%, #2a6f7a);
    box-shadow: 0 0 40px rgba(107, 199, 209, 0.7);
}

.beacon__pin img {
    width: 36px;
    border-radius: 9px;
}

.beacon__pin::before,
.beacon__pin::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(156, 240, 246, 0.55);
    animation: b-ping 2.8s ease-out infinite;
}

.beacon__pin::after {
    animation-delay: 1.4s;
}

@keyframes b-ping {
    from {
        transform: scale(0.6);
        opacity: 1;
    }

    to {
        transform: scale(2.4);
        opacity: 0;
    }
}

.beacon__node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(9, 18, 27, 0.94);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    animation: b-bob 6s ease-in-out infinite;
}

.beacon__node:nth-of-type(2) {
    animation-delay: -1.5s;
}

.beacon__node:nth-of-type(3) {
    animation-delay: -3s;
}

.beacon__node:nth-of-type(4) {
    animation-delay: -4.5s;
}

@keyframes b-bob {
    50% {
        transform: translate(-50%, calc(-50% - 6px));
    }
}

.beacon__node svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--aqua-2);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.beacon__node small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: var(--text-3);
}

.beacon__city {
    position: absolute;
    left: 50%;
    top: calc(50% + 46px);
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aqua);
    white-space: nowrap;
}

/* the four ways to reach us */
.ways {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ways .card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ways h3 {
    font-size: 1.12rem;
}

.ways p {
    font-size: 15px;
}

.ways .btn {
    margin-top: auto;
    align-self: flex-start;
}

.ways .icon-tile {
    margin-bottom: 4px;
}

/* details + form */
.talk {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.talk__trust {
    margin-top: 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.facts {
    margin-top: 26px;
    display: grid;
    gap: 12px;
}

.facts li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
}

.facts .icon-tile {
    width: 46px;
    height: 46px;
}

.facts .icon-tile svg {
    width: 22px;
    height: 22px;
}

.facts h3 {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 3px;
}

.facts p,
.facts a {
    color: var(--text);
    font-size: 15px;
}

.facts a:hover {
    color: var(--aqua-2);
}

.talk .form {
    padding: clamp(22px, 3.5vw, 36px);
}

.form__title {
    font-size: 1.3rem;
    margin-bottom: 18px;
}

/* ======================================================================
   Summer Training
   ====================================================================== */

.career {
    position: relative;
    width: 100%;
    max-width: 520px;
    justify-self: center;
}

.career__img {
    position: relative;
    z-index: 1;
    width: 100%;
    animation: c-float 7s ease-in-out infinite;
}

@keyframes c-float {
    50% {
        transform: translateY(-10px);
    }
}

/* tilted orbit rings behind the photo-illustration */
.career__orbit {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 92%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(156, 240, 246, 0.3);
    transform: translate(-50%, -50%) rotateX(70deg);
    animation: c-orbit 26s linear infinite;
}

.career__orbit--b {
    width: 70%;
    border-style: solid;
    border-color: rgba(107, 199, 209, 0.18);
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes c-orbit {
    to {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg);
    }
}

.career__glow {
    position: absolute;
    inset: 12% 10% 6%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(107, 199, 209, 0.3), transparent);
    filter: blur(30px);
}

.tracks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tracks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--glass);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.tracks svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--aqua-2);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.skills li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--text-2);
}

.skills .icon-tile {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.skills .icon-tile svg {
    width: 15px;
    height: 15px;
}

/* programs as a three-step path */
.path [role="tablist"] {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.path [role="tab"] {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--ink-1);
    color: var(--text-2);
    text-align: left;
    font-weight: 700;
    font-size: 1.05rem;
    transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}

.path [role="tab"] .icon-tile {
    width: 42px;
    height: 42px;
}

.path [role="tab"] .icon-tile svg {
    width: 20px;
    height: 20px;
}

.path [role="tab"][aria-selected="true"] {
    color: var(--text);
    border-color: var(--aqua);
    background: linear-gradient(120deg, rgba(107, 199, 209, 0.16), var(--ink-1));
}

.path__panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: center;
    padding: clamp(18px, 3vw, 36px);
}

.path__panel[hidden] {
    display: none;
}

.path__media {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, rgba(107, 199, 209, 0.18), #050b10 70%);
    border: 1px solid var(--line);
}

.path__panel h3 {
    font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
    margin-bottom: 12px;
}

.path__panel .checks {
    margin-top: 20px;
}

.path__panel .btn {
    margin-top: 24px;
}

html:not(.enhanced) .path [role="tablist"] {
    display: none;
}

html:not(.enhanced) .path__panel[hidden] {
    display: grid;
    margin-top: 16px;
}

/* student voices */
.voices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* enquiry */
.enquire {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.enquire .form {
    padding: clamp(22px, 3.5vw, 36px);
}

.enquire__media {
    margin-top: 26px;
    width: min(100%, 340px);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text-2);
}

.check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--aqua);
    flex-shrink: 0;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {

    .ways {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .voices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {

    .talk,
    .enquire,
    .path__panel {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {

    .ways,
    .voices,
    .path [role="tablist"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .beacon__node {
        padding: 7px 9px;
        font-size: 11.5px;
    }

    .beacon__node small {
        display: none;
    }
}

/* ---------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {

    .beacon__lines .flow,
    .beacon__pin::before,
    .beacon__pin::after,
    .beacon__node,
    .career__img,
    .career__orbit {
        animation: none;
    }

    .beacon__pin::before,
    .beacon__pin::after {
        opacity: 0;
    }
}

.form .check {
    margin-top: 18px;
}

/* keep the turning orbit rings inside the column on every screen */
.career {
    overflow: hidden;
    border-radius: 50% 50% var(--r-lg) var(--r-lg);
}
