/* About.css — Die Brücke German Language School
   Architecture: mobile-first base → min-width breakpoints
   ─────────────────────────────────────────────────────── */

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════
   BASE  (320px — all phones)
══════════════════════════════════════════════ */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #0d0e10;
    overflow-x: hidden;   /* prevent horizontal scroll on any viewport */
}

/* ─── NAV ─── */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;   /* was 1.2rem 0 — added horizontal padding */
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;   /* logo left, actions right */
    width: 100%;
    max-width: 1200px;
    position: relative;              /* anchor for the mobile dropdown */
}

.logo {
    height: 44px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.school-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;        /* scaled down for mobile; restored at 900px */
    font-weight: 200;
    color: #e5a900;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.3;
}

.school-sub {
    display: block;
    font-size: 0.78em;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin-top: -1px;
    margin-left: 2px;
}

/* Nav links — hidden on mobile, shown inline on desktop */
.nav-links {
    display: none;               /* hidden by default */
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;

    /* Mobile: absolute dropdown panel below nav */
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: #000000;
    border-top: 1px solid rgba(229, 169, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);

    /* Smooth slide */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.nav-links.active {
    display: flex;
    max-height: 360px;
    opacity: 1;
}

.nav-links a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: #e9e9e9;
    padding: 1rem 1.5rem;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.nav-links a:last-child {
    border-bottom: none;
}

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #e5a900;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: 0;
}

.nav-links a:hover {
    color: #e5a900;
    background: rgba(229, 169, 0, 0.05);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Nav actions wrapper */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Enroll button — hidden on small mobile to save space */
.enroll-btn {
    display: none;       /* shown from 480px */
    background: linear-gradient(90deg, #e5a900 0%, #e7ae0f 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 183, 221, 0.08);
    transition: background 0.2s, transform 0.2s;
    outline: none;
    white-space: nowrap;
}

.enroll-btn:hover {
    background: linear-gradient(90deg, #e7ae0f 0%, #e5a900 100%);
    transform: translateY(-2px) scale(1.04);
}

/* ─── HAMBURGER ─── */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 7px;
    background: none;
    border: 1px solid rgba(229, 169, 0, 0.35);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #e5a900;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animated X state */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── MAIN / HERO ─── */
main {
    text-align: center;
    padding: 2.5rem 1.25rem 2rem;
}

h1 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);   /* was fixed 2.5rem */
    color: #e5a900;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

/* Global p — intentionally grey for feature cards;
   overridden by more-specific selectors below */
p {
    color: #667085;
    font-size: 1rem;
    line-height: 1.6;
}

main > p {
    color: #ebe8e8;       /* hero subtitle stays white */
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── JOURNEY SECTION ─── */
.journey-section {
    padding: 2.5rem 1.25rem;
    display: flex;
    justify-content: center;
}

.journey-container {
    display: flex;
    flex-direction: column;   /* stack on mobile */
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

/* Image side */
.journey-image {
    position: relative;
    width: 100%;
}

.journey-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Stats box — static on mobile so it doesn't overlap the image */
.stats-box {
    position: static;       /* was absolute — overlapped on small screens */
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 1rem;
    display: inline-block;   /* shrink-wrap to content */
    align-self: flex-start;
}

.stats-box h2 {
    font-size: 1.75rem;
    color: #345cbb;
    margin: 0 0 0.25rem;
}

.stats-box p {
    color: #2474e4;
    font-size: 0.9rem;
    margin: 0;
}

/* Text side */
.journey-content {
    width: 100%;
}

.journey-content h2 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e5a900;
    text-align: left;
}

.journey-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #eaebec;
    margin-bottom: 1.5rem;
    text-align: left;
}

.journey-content ul {
    padding-left: 1.25rem;   /* was browser default 40px — overflows on 320px */
    margin-bottom: 1.5rem;
    text-align: left;
}

.journey-content ul li {
    list-style: disc inside;
    margin-bottom: 0.75rem;
    color: #ebebeb;
    font-size: 0.97rem;
    line-height: 1.55;
}

/* CTA button */
.cta-btn {
    display: inline-block;
    background-color: #f1dd28;
    color: #1a1a00;           /* was white — nearly invisible on yellow */
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.cta-btn:hover {
    background-color: #e5a900;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
    transform: translateY(-3px);
}

/* ─── POPUP ─── */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 9999;
}

.popup-overlay.active {
    display: flex;
}

.popup-box {
    background: #474642;
    width: min(92%, 520px);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 16px 48px rgba(16, 43, 77, 0.18);
    position: relative;
}

.close-btn {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 1.6rem;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    background: transparent;
    border: none;
    padding: 6px;
}

.popup-box h2 {
    color: #f0f0f0;
    margin-top: 0;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.popup-box > p {
    color: #ccc;
}

.popup-box form {
    display: block;
    margin-top: 0.5rem;
}

.popup-box label {
    display: block;
    font-size: 0.95rem;
    color: #e0e0e0;
    margin: 0.6rem 0 0.35rem;
    font-weight: 500;
}

.popup-box input[type="text"],
.popup-box input[type="email"],
.popup-box input[type="tel"],
.popup-box textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #e3e7eb;
    background: #fff;
    font-size: 1rem;
    color: #222;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    outline: none;
}

.popup-box input:focus,
.popup-box textarea:focus {
    border-color: #00b4d8;
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.08);
}

.submit-btn {
    display: inline-block;
    margin-top: 0.8rem;
    background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
    color: #fff;
    border: none;
    padding: 0.68rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.98;
}

.success-e {
    display: none;
    margin-top: 1rem;
    background: #e9f9ef;
    color: #0a7a3a;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
}

.success-e.visible {
    display: block;
}

/* ─── FEATURES ─── */
.features {
    display: flex;
    flex-direction: column;   /* stack on mobile */
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.feature-box {
    background: #797979;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 360px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.icon {
    background: #fff4ee;
    color: #f27b35;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.feature-box p {
    color: #e8e8e8;
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
}

/* ─── FOOTER ─── */
.site-footer {
    background: #0f2236;
    color: #fff;
    padding: 2rem 1.25rem;
    margin-top: 2.5rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 44px;
    display: block;
}

.footer-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #cfe8f7;
    text-decoration: none;
    font-weight: 500;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-end;
}

.footer-contact a {
    color: #e6f6ff;
    text-decoration: none;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.95rem;
}

.footer-contact .social {
    margin-top: 0.25rem;
}

.footer-contact .social a {
    color: #ffcc80;
    margin-left: 0.5rem;
    font-size: 1.05rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    color: #b9d8ee;
}

/* ══════════════════════════════════════════════
   BREAKPOINT — 480px  (large phones)
══════════════════════════════════════════════ */
@media (min-width: 480px) {
    nav {
        padding: 1rem 1.75rem;
    }

    .enroll-btn {
        display: block;    /* show on larger phones */
    }

    main {
        padding: 3rem 1.5rem 2rem;
    }

    .journey-section {
        padding: 3rem 1.5rem;
    }

    /* Stats box can go back to absolute on larger phones
       since the image is tall enough */
    .journey-image {
        min-height: 260px;
    }

    .stats-box {
        position: absolute;
        bottom: 20px;
        left: 20px;
        margin-top: 0;
        display: block;
    }

    .features {
        padding: 3rem 1.5rem;
        gap: 2rem;
    }
}

/* ══════════════════════════════════════════════
   BREAKPOINT — 640px  (phablets)
══════════════════════════════════════════════ */
@media (min-width: 640px) {
    .features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
    }

    .feature-box {
        max-width: 280px;
    }

    .journey-content h2 {
        font-size: 1.6rem;
    }
}

/* ══════════════════════════════════════════════
   BREAKPOINT — 900px  (tablet landscape / desktop nav)
══════════════════════════════════════════════ */
@media (min-width: 900px) {
    nav {
        padding: 1.2rem 2rem;
    }

    /* Show desktop nav links inline; hide hamburger */
    .nav-links {
        display: flex !important;    /* override mobile hidden */
        flex-direction: row;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        max-height: none;
        opacity: 1;
        overflow: visible;
        gap: 2.7rem;
    }

    .nav-links a {
        padding: 0;
        border-bottom: none;
        font-size: 1rem;
    }

    .nav-links a:hover {
        background: none;
    }

    .hamburger {
        display: none;
    }

    /* Restore desktop logo sizing */
    .logo {
        height: 52px;
    }

    .logo-group {
        gap: 1.2rem;
        margin-right: 3.5rem;  /* original desktop value */
    }

    .school-name {
        font-size: 1.5rem;     /* original desktop value */
    }

    .enroll-btn {
        display: block;
        margin-left: 3.5rem;   /* original desktop value */
        padding: 0.7rem 1.7rem;
        font-size: 1.1rem;
    }

    /* Journey side by side */
    .journey-section {
        padding: 4rem 2rem;
    }

    .journey-container {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .journey-image {
        flex: 1 1 45%;
    }

    .journey-content {
        flex: 1 1 50%;
    }

    .journey-content h2 {
        font-size: 2rem;
    }

    /* Features row on desktop */
    .features {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 3rem;
        padding: 4rem 2rem;
    }

    .feature-box {
        max-width: 320px;
    }

    main {
        padding: 4rem 1rem 2rem;
    }
}

/* ══════════════════════════════════════════════
   BREAKPOINT — 1200px  (wide desktop)
══════════════════════════════════════════════ */
@media (min-width: 1200px) {
    nav {
        padding: 1.2rem 3rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .journey-content h2 {
        font-size: 2rem;
    }

    .icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* ══════════════════════════════════════════════
   Small phone edge cases  (max-width: 420px)
══════════════════════════════════════════════ */
@media (max-width: 420px) {
    .popup-box {
        padding: 1rem;
        border-radius: 12px;
    }
    .close-btn {
        right: 8px;
        top: 6px;
    }
    .cta-btn {
        display: block;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════
   Footer small screen stack
══════════════════════════════════════════════ */
@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-contact {
        align-items: center;
    }
    .footer-nav {
        justify-content: center;
    }
}
