/* =====================================================
   About page styles, merged with the group's main.css
   Same class names as before, so the HTML does not change.
   ===================================================== */


/* ---------- Colors (change them here and they change everywhere) ---------- */

:root {
    --blue: #234466;
    --dark: #0A141E;
    --cyan: #00FFFF;
    --light-blue: #4B75FF;
    --corner: 10px;
}


/* ---------- Page basics ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;   /* so the nav bar doesn't cover headings we jump to */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: white;
    background: linear-gradient(180deg, var(--dark) 0%, var(--blue) 55%, var(--dark) 100%);
}

a {
    color: white;
    text-decoration: none;
}

h1 {
    margin: 0;
    color: var(--cyan);
    text-align: center;
    font-size: 3rem;
    line-height: 1.15;
}

h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.3;
}
.story p{
   text-indent:50px;
}

/* Hides text visually but keeps it for screen readers. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}


/* ---------- Nav bar ---------- */
/* The navigation bar is the part that sticks to the top (sticky only works
   on the outer element, not on the nav inside it). */

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 32px;
    background: rgba(10, 20, 30, 0.85);
    backdrop-filter: blur(8px);
    top: 0;
    z-index: 10;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--dark);
    background: var(--cyan);
    border-radius: var(--corner);
}


/* ---------- Search bar ---------- */
.search-form {
    display: flex;
    width: min(100%, 320px);
}

.search-form input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    font: inherit;
    font-size: 1rem;
    background: white;
    color: var(--dark);
    border: none;
    border-radius: var(--corner) 0 0 var(--corner);
}

.search-form button {
    border-radius: 0 var(--corner) var(--corner) 0;
}


/* ---------- Buttons ---------- */
.search-form button,
.card-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.4;
    background: var(--cyan);
    color: var(--dark);
    border: none;
    border-radius: var(--corner);
    cursor: pointer;
}

.search-form button:hover,
.card-link:hover {
    background: white;
    color: var(--dark);
}

.card-link {
    max-width: 100%;
}


/* ---------- Page spacing and headings ---------- */
.page-container {
    width: min(1150px, 92%);
    margin: 0 auto;
    padding: 48px 0 60px;
}

.intro-text {
    margin: 12px 0 50px;
    text-align: center;
}

.section-title {
    margin: 0 0 40px;
    text-align: center;
}

.page-container section {
    margin-bottom: 70px;
}


/* ---------- Mission statement panel ---------- */
.mission {
    padding: 40px 32px;
    text-align: center;
    background: var(--dark);
    border-radius: var(--corner);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--cyan);
}

.mission h2 {
    margin: 0 0 16px;
}

.mission-statement {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.35rem;
    line-height: 1.6;
}


/* ---------- Story text ---------- */
.story {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.story h2 {
    margin: 0 0 20px;
    text-align: center;
}

.story p {
    margin: 0 0 18px;
}


/* ---------- Cards ---------- */
/* Place the three cards side by side on larger screens. */
.cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 28px;
}

.card {
    flex: 1;
    min-width: 0;
    max-width: 340px;
    overflow: hidden;
    background: white;
    border-radius: var(--corner);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--cyan);
}

.card-content {
    padding: 34px 22px 36px;
    text-align: center;
}

.card h3 {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 1.45rem;
    font-weight: 700;
}

.card p {
    margin: 0;
    color: var(--dark);
    line-height: 1.55;
}

/* Highlight the middle card. */
.featured-card {
    transform: translateY(-20px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.35);
}

.featured-card h3 {
    color: var(--dark);
}


/* ---------- Values list ---------- */
.values-list {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.values-list li {
    margin-bottom: 14px;
    padding: 18px 22px;
    background: var(--dark);
    border-left: 6px solid var(--cyan);
    border-radius: var(--corner);
}


/* ---------- Call to action ---------- */
.cta {
    text-align: center;
}

.cta h2 {
    margin: 0 0 10px;
}

.cta p {
    margin: 0 0 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}


/* ---------- Footer ---------- */
footer {
    padding: 40px 32px;
    text-align: center;
}

footer p {
    margin: 0;
}


/* ---------- Accessibility ---------- */
/* thick cyan outline when using the keyboard */
:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* no animations for people who turned them off on their computer */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* ---------- Phones and small screens ---------- */
/* Stack the cards vertically when the screen gets smaller. */
@media (max-width: 850px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card,
    .featured-card {
        width: min(100%, 420px);
        max-width: 420px;
        flex: none;
        transform: none;
    }
}

@media (max-width: 800px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Make the navigation fit on narrow phone screens. */
@media (max-width: 480px) {
    .top-nav {
        align-items: stretch;
        flex-direction: column;
        padding: 12px 16px;
    }

    .search-form {
        width: 100%;
    }

    .page-container {
        padding-top: 32px;
    }

    .mission {
        padding: 30px 20px;
    }

    .mission-statement {
        font-size: 1.15rem;
    }
}