/* =========================================================
   FIRSTTECH HUB — MAIN STYLES
   Edit this file to customize colors, spacing and layout.
   ========================================================= */

:root {
    --blue: #1545c9;
    --blue-dark: #09298c;
    --blue-deep: #06153d;
    --blue-soft: #eaf0ff;
    --ink: #0a1224;
    --muted: #64708a;
    --white: #ffffff;
    --line: #e4e9f2;
    --surface: #f6f8fc;
    --shadow: 0 20px 55px rgba(10, 27, 71, .10);
    --radius: 24px;
    --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow.light { color: #bcd0ff; }

h1, h2, h3, h4 {
    font-family: "Manrope", sans-serif;
    line-height: 1.12;
    letter-spacing: -.035em;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

p { color: var(--muted); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 54px;
    padding: 0 23px;
    border-radius: 100px;
    font-weight: 800;
    transition: .25s ease;
}

.btn span { font-size: 1.2em; }

.btn-primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 12px 30px rgba(21, 69, 201, .30);
}

.btn-primary:hover { transform: translateY(-2px); background: #2054df; }

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover { background: rgba(255,255,255,.15); }

.btn-dark { color: white; background: var(--ink); }

.btn-light { color: var(--blue-deep); background: white; }

.btn-light:hover, .btn-dark:hover { transform: translateY(-2px); }

/* HEADER */
.site-header {
    position: absolute;
    z-index: 20;
    inset: 0 0 auto;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(4, 14, 42, .22);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 35px;
}

.brand img {
    width: 132px;
    height: 72px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    color: rgba(255,255,255,.82);
    font-size: .92rem;
    font-weight: 700;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: white;
    transition: .25s;
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.nav-cta {
    padding: 11px 17px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 100px;
    color: white;
    font-size: .84rem;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    margin: 5px;
    background: white;
}

/* HERO */
.hero {
    position: relative;
    min-height: 790px;
    display: grid;
    align-items: center;
    isolation: isolate;
    background:
        linear-gradient(100deg, rgba(3,12,37,.94) 0%, rgba(4,17,54,.72) 48%, rgba(8,35,103,.45) 100%),
        url("hero.jpg")
        center/cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -180px;
    bottom: -220px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(93,142,255,.2);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(93,142,255,.035), 0 0 0 180px rgba(93,142,255,.025);
}

.hero-content { max-width: 800px; padding-top: 90px; }

.hero h1 {
    max-width: 850px;
    color: white;
    font-size: clamp(3.4rem, 7vw, 6.7rem);
    text-transform: capitalize;
}

.hero h1 span {
    text-transform: lowercase;
}

.hero p {
    max-width: 690px;
    margin: 25px 0 33px;
    color: rgba(255,255,255,.76);
    font-size: 1.06rem;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.62);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-scroll span { margin-left: 8px; }

/* SECTION HEADING */
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 52px;
}

.section-heading > p { max-width: 470px; }

.section-heading.centered {
    display: block;
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

/* PATHWAYS */
.pathway-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pathway-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 10px 30px rgba(15,35,75,.05);
    transition: .3s ease;
}

.pathway-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.pathway-card:hover .card-image img { transform: scale(1.06); }

.age-badge {
    position: absolute;
    left: 15px;
    bottom: 15px;
    padding: 7px 11px;
    border-radius: 100px;
    color: white;
    background: rgba(5,19,57,.82);
    backdrop-filter: blur(8px);
    font-size: .72rem;
    font-weight: 800;
}

.card-body { position: relative; padding: 27px 25px 30px; }

.card-number {
    color: #9aa7c0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.card-body h3 {
    margin: 8px 0 12px;
    font-size: 1.45rem;
}

.card-body p { min-height: 80px; font-size: .9rem; }

.text-link {
    display: inline-flex;
    gap: 10px;
    margin-top: 19px;
    color: var(--blue);
    font-size: .83rem;
    font-weight: 800;
}

/* ADVANTAGE */
.advantage-section { background: var(--surface); }

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.advantage-item {
    min-height: 145px;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 22px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
}

.advantage-image {
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background:
        linear-gradient(135deg, rgba(21,69,201,.92), rgba(6,21,61,.92)),
        url("https://images.unsplash.com/photo-1516321165247-4aa89a48be28?auto=format&fit=crop&w=500&q=80")
        center/cover;
}

.advantage-image span {
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.advantage-item h3 { margin-bottom: 7px; font-size: 1.08rem; }
.advantage-item p { font-size: .86rem; }

/* PROFILE */
.profile-section { background: white; }

.profile-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
    align-items: center;
}

.profile-logo {
    position: relative;
    min-height: 470px;
    display: grid;
    place-items: center;
    border-radius: 36px;
    background: radial-gradient(circle, #edf3ff 0%, #f8faff 58%, white 100%);
    overflow: hidden;
}

.profile-logo::before,
.profile-logo::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(21,69,201,.13);
    border-radius: 50%;
}

.profile-logo::before { width: 370px; height: 370px; }
.profile-logo::after { width: 520px; height: 520px; }

.profile-logo img {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 20px 25px rgba(12,43,133,.18));
}

.accordion {
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.accordion details { border-bottom: 1px solid var(--line); }

.accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary span {
    color: var(--blue);
    font-size: 1.4rem;
    transition: .2s;
}

.accordion details[open] summary span { transform: rotate(45deg); }

.details-content {
    padding: 0 30px 23px 0;
    font-size: .9rem;
}

/* TESTIMONIALS */
.testimonials-section { background: var(--surface); }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.testimonial-card {
    position: relative;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.quote {
    color: var(--blue);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: .55;
}

.testimonial-text {
    max-width: 530px;
    min-height: 90px;
    margin: 17px 0 25px;
    font-size: .95rem;
}

.student {
    display: flex;
    align-items: center;
    gap: 13px;
}

.student-photo {
    width: 49px;
    height: 49px;
    overflow: hidden;
    border-radius: 50%;
}

.student-photo img { width: 100%; height: 100%; object-fit: cover; }

.student strong, .student span { display: block; }
.student strong { font-size: .88rem; }
.student span { color: var(--blue); font-size: .75rem; font-weight: 700; }

/* TEAM */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.team-card {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: white;
}

.team-photo { height: 390px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-info { padding: 25px; }
.team-info span {
    color: var(--blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.team-info h3 { margin: 7px 0; font-size: 1.35rem; }
.team-info p { font-size: .86rem; }

/* EVENTS */
.events-section { background: var(--surface); }

.events-placeholder {
    min-height: 190px;
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow);
}

.event-icon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: white;
    background: var(--blue);
    font-size: 2rem;
}

.events-placeholder h3 { margin: 4px 0 8px; font-size: 1.5rem; }
.events-placeholder p { font-size: .87rem; }

/* COMMUNITY */
.community-section {
    padding: 80px 0;
    color: white;
    background-image: url("contact.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.community-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.community-inner h2 {
    max-width: 680px;
    margin-bottom: 13px;
}

.community-inner p { color: rgba(255,255,255,.68); }

/* FOOTER */
.site-footer {
    padding: 75px 0 20px;
    color: white;
    background: #040b1d;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 45px;
    padding-bottom: 60px;
}

.footer-brand img {
    width: 145px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 17px;
}

.footer-brand p {
    max-width: 330px;
    color: #8995af;
    font-size: .86rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-column h4 { margin-bottom: 8px; font-size: .95rem; }
.footer-column a, .footer-column p {
    color: #8995af;
    font-size: .81rem;
}
.footer-column a:hover { color: white; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #65728d;
    font-size: .74rem;
}

.footer-bottom div { display: flex; gap: 20px; }

/* ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE DESIGN
   Desktop → Tablet → Mobile → Small Mobile
   ========================================================= */

/* Large tablets / smaller desktops */
@media (max-width: 1100px) {
    :root { --container: 1000px; }

    .nav-wrap { gap: 22px; }
    .main-nav { gap: 20px; }

    .hero h1 { font-size: clamp(3.2rem, 6.8vw, 5.5rem); }

    .pathway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-layout {
        grid-template-columns: .9fr 1.1fr;
        gap: 45px;
    }

    .footer-grid {
        grid-template-columns: minmax(200px, 1.4fr) repeat(4, minmax(0, 1fr));
        gap: 28px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .site-header {
        position: fixed;
        background: rgba(4, 14, 42, .88);
    }

    .nav-wrap {
        min-height: 76px;
    }

    .brand img {
        width: 112px;
        height: 62px;
    }

    .nav-cta { display: none; }

    .menu-toggle {
        display: block;
        margin-left: auto;
        width: 42px;
        height: 42px;
        padding: 5px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 10px;
        background: rgba(255,255,255,.06);
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 18px;
        right: 18px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 18px;
        background: rgba(4, 14, 42, .98);
        box-shadow: 0 20px 50px rgba(0,0,0,.25);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: .25s ease;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-nav a {
        padding: 14px 15px;
        border-radius: 10px;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(255,255,255,.08);
    }

    .main-nav a::after { display: none; }

    .hero {
        min-height: 720px;
        padding-top: 76px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .section {
        padding: 82px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }

    .section-heading > p {
        max-width: 650px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .profile-logo {
        min-height: 380px;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 10px);
        margin-inline: auto;
    }

    .events-placeholder {
        grid-template-columns: 80px 1fr;
    }

    .events-placeholder .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-socials {
        grid-column: 1 / -1;
    }
}

/* Phones */
@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    .section {
        padding: 65px 0;
    }

    .nav-wrap {
        min-height: 70px;
    }

    .brand img {
        width: 100px;
        height: 56px;
    }

    .hero {
        min-height: 690px;
        background-position: 62% center;
    }

    .hero-content {
        padding-top: 55px;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.65rem, 13vw, 4rem);
        line-height: 1.04;
    }

    .hero p {
        margin: 20px 0 26px;
        font-size: .92rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 330px;
    }

    .btn {
        width: 100%;
        min-height: 52px;
    }

    .hero-scroll {
        display: none;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading.centered {
        margin-bottom: 35px;
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .pathway-grid,
    .testimonial-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-image {
        height: 220px;
    }

    .card-body p {
        min-height: auto;
    }

    .advantage-grid {
        gap: 12px;
    }

    .advantage-item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 15px;
        min-height: 120px;
        padding: 12px;
        border-radius: 17px;
    }

    .advantage-image {
        height: 78px;
    }

    .advantage-item h3 {
        font-size: 1rem;
    }

    .advantage-item p {
        font-size: .8rem;
    }

    .profile-logo {
        min-height: 300px;
        border-radius: 25px;
    }

    .profile-logo::before {
        width: 250px;
        height: 250px;
    }

    .profile-logo::after {
        width: 340px;
        height: 340px;
    }

    .profile-logo img {
        width: 185px;
        height: 185px;
    }

    .profile-intro {
        font-size: .9rem;
    }

    .accordion summary {
        gap: 20px;
        padding: 19px 0;
        font-size: .9rem;
    }

    .details-content {
        padding-right: 0;
        font-size: .84rem;
    }

    .testimonial-card {
        padding: 25px;
        border-radius: 20px;
    }

    .testimonial-text {
        min-height: auto;
        font-size: .88rem;
    }

    .team-card:last-child {
        grid-column: auto;
        width: 100%;
        margin-inline: 0;
    }

    .team-photo {
        height: 330px;
    }

    .events-placeholder {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px;
        border-radius: 22px;
    }

    .events-placeholder .btn {
        grid-column: auto;
        width: 100%;
    }

    .community-section {
        padding: 62px 0;
    }

    .community-inner {
        display: block;
    }

    .community-inner h2 {
        font-size: 2.2rem;
    }

    .community-inner .btn {
        width: 100%;
        margin-top: 25px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column a,
    .footer-column p {
        overflow-wrap: anywhere;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .container {
        width: calc(100% - 22px);
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .hero p {
        font-size: .87rem;
    }

    .eyebrow {
        font-size: .66rem;
    }

    .advantage-item {
        grid-template-columns: 65px minmax(0, 1fr);
    }

    .advantage-image {
        height: 65px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* Accessibility: reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* DEFINITIVE MINIMAL FOOTER SOCIAL ICONS */
.footer-socials 
.social-logo-row{
    display:flex!important;align-items:center;gap:6px;flex-wrap:nowrap}\n
    
.footer-socials 
.social-logo-row a{display:inline-flex!important;width:20px!important;height:20px!important;padding:0!important;margin:0!important;flex:0 0 20px;align-items:center;justify-content:center}\n
.footer-socials .social-logo-row img{display:block!important;width:10px!important;height:10px!important;max-width:10px!important;max-height:10px!important;object-fit:contain;margin:0!important}\n
@media(max-width:600px){
    .footer-socials .social-logo-row{gap:4px}.footer-socials .social-logo-row a{width:10px!important;height:10px!important;flex-basis:10px}
.footer-socials .social-logo-row img{width:10px!important;height:10px!important;max-width:10px!important;max-height:10px!important}}\n