
:root {
    --gold: #d4ad55;
    --gold-light: #f0d995;
    --black: #111;
    --gray: #626262;
    --light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--black);
    line-height: 1.6;
}

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

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.section {
    padding: 75px 0;
}

.section-light,
.resources-section {
    background: #fff;
}

h1, h2, h3 {
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 15px;
}

.eyebrow {
    color: #a77920;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading {
    max-width: 750px;
    text-align: center;
    margin: 0 auto 35px;
}

.section-heading > p:last-child {
    color: var(--gray);
}

/* Header and transparent FP logo */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #fff;
    background: #111;
    border-bottom: 2px solid var(--gold);
}

.header-content {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fplogo-fix{

  height: 60px;
  width:10%;
  background-image:url(https://codehs.com/uploads/157288ff4e039a90ca6da852b852e27d);
  object-fit:fill;
  background-position:center;
  background-repeat:no-repeat;
  /* border: 3px dashed #999; */
  border-radius: 10px;

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 0px 0;
  font-size: 20px;
  color: #666;
}
}

.fp-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    background: transparent;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 1.55rem;
    line-height: 1.1;
}

.brand-text small {
    color: #ddd;
    font-size: .67rem;
    letter-spacing: 4px;
    margin-top: 5px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navigation a {
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 0;
    border-bottom: 3px solid transparent;
}

.navigation a:hover,
.navigation a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 7px 11px;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

/* Hero background image */
.hero {
    min-height: 365px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.30)),
        linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.35)),
        url("school-background.jpg"),
        linear-gradient(120deg, #171717, #39342b);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(0,0,0,.22), transparent 75%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 35px 0;
}

.hero .eyebrow {
    color: var(--gold-light);
}

.hero h1 {
    font-size: clamp(2.7rem, 5.5vw, 4.2rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: .98;
    margin-bottom: 15px;
    max-width: 620px;
}

.hero h1 span {
    color: var(--gold);
}

.gold-line {
    width: 65px;
    height: 6px;
    background: var(--gold);
    margin: 16px 0;
}

.hero-description {
    max-width: 470px;
    color: #eee;
    font-size: 1.05rem;
    line-height: 1.45;
    margin-bottom: 22px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-block;
    padding: 12px 23px;
    border: 2px solid transparent;
    border-radius: 4px;
    text-align: center;
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: .2s;
}

.button-gold {
    background: var(--gold);
    color: #111;
}

.button-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.button-outline {
    min-width: 175px;
    color: #fff;
    border-color: var(--gold);
}

.button-outline:hover {
    color: var(--gold);
    background: rgba(0,0,0,.35);
}

/* Large transparent FP logo */
.hero-logo {
    position: absolute;
    z-index: 1;
    width: clamp(125px, 17vw, 220px);
    height: auto;
    max-height: 85%;
    object-fit: contain;
    top: 50%;
    right: 27%;
    transform: translate(50%, -50%);
    background: transparent;
    filter: drop-shadow(0 7px 9px rgba(0,0,0,.7));
}

/* Three values */
.values-strip {
    background: linear-gradient(100deg, #e4c16e, #f0d38b, #dfba61);
    color: #111;
    padding: 12px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.value-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 5px 20px;
    border-right: 1px solid rgba(90,65,15,.3);
}

.value-item:last-child {
    border-right: none;
}

.value-number {
    color: rgba(104,76,23,.35);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
}

.value-item h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.value-item p {
    font-size: .85rem;
}

/* About section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 55px;
}

.about-grid > div:first-child p:not(.eyebrow) {
    color: var(--gray);
    margin-bottom: 15px;
}

.about-card {
    text-align: center;
    padding: 30px;
    background: #111;
    color: #fff;
    border-bottom: 5px solid var(--gold);
}

.about-card img {
    display: block;
    width: 100px;
    height: 90px;
    object-fit: contain;
    background: transparent;
    margin: 0 auto 15px;
}

.about-card h3 {
    margin-bottom: 10px;
}

.about-card p {
    color: #ccc;
}

/* Resource cards */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
    min-height: 220px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,.09);
}

.resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #f7e6bf;
    color: #222;
    font-size: 1.8rem;
    font-weight: 700;
}

.resource-card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.resource-card p {
    color: var(--gray);
    font-size: .9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-link {
    color: #996400;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: auto;
}

/* SOP documents */
.document-list {
    max-width: 850px;
    margin: 0 auto;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-bottom: none;
}

.document-item:last-child {
    border-bottom: 1px solid #ddd;
}

.document-item h3 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.document-item p {
    color: var(--gray);
    font-size: .9rem;
}

.status {
    flex-shrink: 0;
    padding: 6px 10px;
    background: #f6edda;
    color: #77591f;
    border-radius: 3px;
    font-size: .75rem;
    font-weight: 800;
}

/* Events and teams */
.simple-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-top: 4px solid var(--gold);
    border-radius: 4px;
    padding: 25px;
    transition: transform .2s, box-shadow .2s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,.07);
}

.info-card .eyebrow {
    font-size: .7rem;
    letter-spacing: 2px;
}

.info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--gray);
    font-size: .92rem;
}

.team-number {
    display: inline-block;
    color: #a77920;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

/* Staff section */
.placeholder-card {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
    padding: 35px;
    background: var(--light);
    border: 1px solid #e3e3e3;
}

.placeholder-card img {
    width: 90px;
    height: 80px;
    object-fit: contain;
    background: transparent;
    margin-bottom: 15px;
}

.placeholder-card h3 {
    margin-bottom: 10px;
}

.placeholder-card p {
    color: var(--gray);
}

/* Closing banner */
.closing-banner {
    padding: 55px 0;
    background: #191919;
    color: #fff;
    text-align: center;
    border-top: 4px solid var(--gold);
}

.closing-banner .eyebrow {
    color: var(--gold);
}

.closing-banner h2 {
    margin-bottom: 22px;
}

/* Footer */
.site-footer {
    background: #111;
    color: #fff;
    border-top: 1px solid #333;
    padding: 25px 0 15px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand .fp-logo {
    width: 55px;
    height: 55px;
}

.footer-brand .brand-text strong {
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #eee;
    font-size: .85rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    width: 100%;
    padding-top: 15px;
    margin: 0;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: .75rem;
}

/* Tablet */
@media (max-width: 900px) {
    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-logo {
        right: 17%;
        opacity: .75;
    }

    .navigation {
        gap: 18px;
    }

    .brand-text strong {
        font-size: 1.25rem;
    }

    .brand-text small {
        letter-spacing: 2px;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .header-content {
        min-height: 72px;
    }

    .fp-logo {
        width: 48px;
        height: 48px;
    }

    .brand-text strong {
        font-size: 1.05rem;
    }

    .brand-text small {
        font-size: .58rem;
        letter-spacing: 1.5px;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 12px 5%;
        background: #111;
        border-bottom: 3px solid var(--gold);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        padding: 12px 0;
        border-bottom: 1px solid #333;
    }

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

    .hero {
        min-height: 400px;
    }

    .hero-content {
        padding: 45px 0;
    }

    .hero-logo {
        width: 105px;
        right: 12%;
        top: 20%;
        opacity: .45;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-description {
        max-width: 430px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item {
        justify-content: flex-start;
        padding: 15px 8%;
        border-right: none;
        border-bottom: 1px solid rgba(90,65,15,.25);
    }

    .value-item:last-child {
        border-bottom: none;
    }

    .value-number {
        min-width: 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .resource-grid,
    .simple-grid {
        grid-template-columns: 1fr;
    }

    .document-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        gap: 15px;
    }
}

/* Small phones */
@media (max-width: 420px) {
    .container {
        width: 92%;
    }

    .brand {
        gap: 8px;
    }

    .brand-text strong {
        font-size: .95rem;
    }

    .brand-text small {
        font-size: .52rem;
        letter-spacing: 1px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button-outline {
        width: 100%;
    }

    .section {
        padding: 55px 0;
    }

    .resource-card,
    .info-card {
        padding: 22px;
    }
}


/* Fix the header FP logo size */
.site-header .brand .fp-logo {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    flex: 0 0 60px;
    display: block;
}

/* Keep the logo smaller on phones */
@media (max-width: 760px) {
    .site-header .brand .fp-logo {
        width: 48px;
        height: 48px;
        max-width: 48px;
        max-height: 48px;
        flex-basis: 48px;
    }
}