/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Iron Grove Fitness (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, black and loud with tall condensed type.
    The hero photo is a background-image under a dark gradient, and under
    the headline sits a loaded barbell built from spans: plates are
    rounded boxes whose heights match their weight (45, 25, 10), held on a
    thin bar by collars, all lined up with Flexbox. The membership switch
    is two radio buttons; the checked one decides whether each price card
    shows its monthly or yearly <span>, using the ~ sibling selector. The
    class board is a row of day columns (flex-wrap) with class blocks
    color coded and labeled in words, plus a legend. Media queries at
    576px, 768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #0A0A0A black   #F4F4F5 light text   #DC2626 red (white text 4.8:1)
      #A3E635 lime (on black only, 13:1)   #A1A1AA muted on black
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Black page, light text. */
body {
    background-color: #0A0A0A;
    color: #F4F4F5;
    font-family: Barlow, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Tall condensed headings. */
h1,
h2,
h3 {
    font-family: Teko, sans-serif;
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
}

/* Section titles. */
h2 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 12px;
}

/* Lime links on black. */
a {
    color: #A3E635;
    font-weight: 600;
}

/* Lime focus ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #A3E635;
    outline-offset: 3px;
}

/* Lead text. */
.lead {
    color: #D4D4D8;
    max-width: 40rem;
    margin-bottom: 24px;
}

/* Small notes. */
.small {
    font-size: 0.85rem;
    color: #A1A1AA;
    margin-top: 16px;
}

/* ----- Header (class) ----- */

/* Sticky black header with a red bottom edge. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #0A0A0A;
    border-bottom: 3px solid #DC2626;
}

/* Logo and menu row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}

/* Condensed logo. */
.logo {
    font-family: Teko, sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1;
    text-transform: uppercase;
}

/* Second word in lime. */
.logo span {
    color: #A3E635;
}

/* Hidden menu checkbox, still keyboard reachable. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Red menu button. */
.menu-icon {
    background-color: #DC2626;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Checked menu shows the nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Big condensed phone links. */
.site-nav a {
    display: block;
    color: #F4F4F5;
    font-family: Teko, sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 4px 0px;
    border-top: 1px solid #27272A;
}

/* Lime on hover. */
.site-nav a:hover {
    color: #A3E635;
}

/* Concept notice. */
.concept-note {
    background-color: #18181B;
    color: #D4D4D8;
    font-size: 0.8rem;
    text-align: center;
    padding: 3px 16px;
}

/* ----- Hero (class) ----- */

/* Photo background under a dark fade so the text stays readable. */
.hero {
    background-color: #0A0A0A;
    background-image: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.8) 55%, rgba(10, 10, 10, 0.35) 100%), url("images/hero.jpg");
    background-size: cover;
    background-position: center right;
    padding: 60px 20px 70px 20px;
}

/* Small label. */
.tag {
    color: #A3E635;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* Huge headline. */
.hero h1 {
    font-size: clamp(3.6rem, 12vw, 7.5rem);
    margin-bottom: 16px;
}

/* Second line in lime. */
.hero h1 span {
    display: block;
    color: #A3E635;
}

/* Hero paragraph. */
.hero-text > p:not(.tag) {
    max-width: 32rem;
    margin-bottom: 24px;
}

/* Red button. */
.button,
button {
    display: inline-block;
    background-color: #DC2626;
    color: #FFFFFF;
    border: none;
    padding: 12px 28px;
    font-family: Teko, sans-serif;
    font-size: 1.6rem;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

/* Darker red on hover. */
.button:hover,
button:hover {
    background-color: #B91C1C;
}

/* The barbell: everything lined up on the bar's center line. */
.barbell {
    display: flex;
    align-items: center;
    max-width: 420px;
    margin-top: 40px;
}

/* A plate: a rounded slab seen from the side. */
.plate {
    flex: 0 0 auto;
    border-radius: 4px;
    background-color: #27272A;
    border: 2px solid #52525B;
}

/* 45 lb plate: biggest and red. */
.p45 {
    width: 18px;
    height: 110px;
    background-color: #DC2626;
    border-color: #991B1B;
}

/* 25 lb plate. */
.p25 {
    width: 14px;
    height: 84px;
    background-color: #A3E635;
    border-color: #65A30D;
}

/* 10 lb plate. */
.p10 {
    width: 10px;
    height: 58px;
}

/* Collar holding the plates on. */
.collar {
    flex: 0 0 auto;
    width: 10px;
    height: 22px;
    background-color: #A1A1AA;
    border-radius: 2px;
}

/* The bar grows to fill the space between the collars. */
.bar {
    flex: 1 1 auto;
    height: 8px;
    background-image: linear-gradient(180deg, #E4E4E7 0%, #71717A 100%);
}

/* ----- Memberships (class) ----- */

/* Section spacing. */
.plans {
    padding: 60px 20px;
}

/* Radios hidden but focusable. */
.bill-radio {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* The switch is two labels side by side. */
.switch {
    display: inline-flex;
    border: 2px solid #3F3F46;
    margin-bottom: 26px;
}

/* Each half of the switch. */
.switch label {
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    color: #D4D4D8;
}

/* Monthly half lit when picked. */
#bill-month:checked ~ .switch label[for="bill-month"],
#bill-year:checked ~ .switch label[for="bill-year"] {
    background-color: #A3E635;
    color: #0A0A0A;
}

/* Keyboard focus on the switch. */
#bill-month:focus-visible ~ .switch label[for="bill-month"],
#bill-year:focus-visible ~ .switch label[for="bill-year"] {
    outline: 3px solid #A3E635;
    outline-offset: 3px;
}

/* Cards stack on phones. */
.plan-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* A plan card. */
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #18181B;
    border: 2px solid #27272A;
    padding: 26px 22px;
}

/* The best plan has a red border. */
.plan.best {
    border-color: #DC2626;
}

/* Flag on the best plan. */
.flag {
    position: absolute;
    top: -14px;
    left: 20px;
    background-color: #DC2626;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 2px 10px;
}

/* Plan name. */
.plan h3 {
    font-size: 2.2rem;
}

/* Big price. */
.price {
    font-family: Teko, sans-serif;
    font-size: 3.4rem;
    line-height: 1;
    color: #A3E635;
    margin: 6px 0px 14px 0px;
}

/* Per-month or per-year after the number. */
.price small {
    font-size: 1.3rem;
    color: #A1A1AA;
}

/* Yearly price hidden by default. */
.price .y {
    display: none;
}

/* Yearly picked: hide monthly prices. */
#bill-year:checked ~ .plan-row .price .m {
    display: none;
}

/* Yearly picked: show yearly prices. */
#bill-year:checked ~ .plan-row .price .y {
    display: inline;
}

/* Feature list with lime dashes. */
.plan ul {
    list-style: none;
}

/* Each feature. */
.plan li {
    padding: 6px 0px 6px 22px;
    position: relative;
    border-top: 1px solid #27272A;
}

/* Dash before each feature. */
.plan li::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 50%;
    width: 12px;
    height: 3px;
    background-color: #A3E635;
}

/* ----- Class board (ID and class) ----- */

/* Light band for contrast with the rest of the page. */
#classes {
    background-color: #F4F4F5;
    color: #0A0A0A;
    padding: 60px 20px;
}

/* Lead text is dark on the light band. */
#classes .lead {
    color: #3F3F46;
}

/* Day columns wrap. */
.board {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Each day column. */
.day {
    flex: 1 1 45%;
    background-color: #FFFFFF;
    border-top: 6px solid #0A0A0A;
    padding: 10px;
}

/* Day name. */
.day h3 {
    font-size: 1.9rem;
    margin-bottom: 6px;
}

/* A class block. */
.cls {
    font-size: 0.92rem;
    padding: 6px 8px;
    margin-bottom: 6px;
    border-left: 6px solid #0A0A0A;
}

/* Class time on its own line. */
.cls strong {
    display: block;
}

/* Strength classes: pale red with a red edge. */
.strength {
    background-color: #FEE2E2;
    border-left-color: #DC2626;
}

/* Conditioning classes: pale lime with a green edge. */
.cardio {
    background-color: #ECFCCB;
    border-left-color: #4D7C0F;
}

/* Mobility classes: pale gray with a gray edge. */
.mobility {
    background-color: #E4E4E7;
    border-left-color: #52525B;
}

/* Legend row. */
.legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
    font-weight: 600;
}

/* Color swatch in the legend. */
.sw {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    border-left-width: 6px;
    border-left-style: solid;
}

/* ----- The floor (class) ----- */

/* Section spacing. */
.floor {
    padding: 60px 20px;
}

/* Photos stack on phones. */
.floor-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Photos in grayscale until hovered. */
.floor-row img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.3s;
}

/* Color comes back on hover. */
.floor-row figure:hover img {
    filter: none;
}

/* Caption in condensed type. */
.floor-row figcaption {
    font-family: Teko, sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    padding-top: 6px;
}

/* ----- Free week (class) ----- */

/* Red band. */
.trial {
    background-color: #DC2626;
    color: #FFFFFF;
    padding: 60px 20px;
}

/* Fields wrap. */
.t-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 20px 0px 22px 0px;
}

/* Each field full width on phones. */
.t-fields div {
    flex: 1 1 100%;
}

/* Labels. */
.t-fields label {
    display: block;
    font-weight: 700;
}

/* Inputs. */
.t-fields input,
.t-fields select {
    width: 100%;
    font: inherit;
    padding: 10px 12px;
    border: none;
    margin-top: 4px;
}

/* Black button on red. */
.trial button {
    background-color: #0A0A0A;
}

/* Hover on red. */
.trial button:hover {
    background-color: #27272A;
}

/* Focus ring is white on red. */
.trial input:focus-visible,
.trial select:focus-visible,
.trial button:focus-visible {
    outline-color: #FFFFFF;
}

/* ----- Footer (class) ----- */

/* Footer. */
.site-footer {
    color: #A1A1AA;
    font-size: 0.85rem;
    text-align: center;
    padding: 24px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Three days per row. */
    .day {
        flex: 1 1 30%;
    }

    /* Fields side by side. */
    .t-fields div {
        flex: 1 1 30%;
    }

    /* Wider barbell plates. */
    .p45 {
        width: 22px;
        height: 130px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .plans,
    #classes,
    .floor,
    .trial {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Plan cards in a row. */
    .plan-row {
        flex-direction: row;
    }

    /* Each card a third. */
    .plan {
        flex: 1 1 33%;
    }

    /* Photos in a row. */
    .floor-row {
        flex-direction: row;
    }

    /* Each photo a third. */
    .floor-row figure {
        flex: 1 1 33%;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No Menu button. */
    .menu-icon {
        display: none;
    }

    /* Nav in the header row. */
    .site-nav {
        display: block;
        width: auto;
    }

    /* Links in a row. */
    .site-nav ul {
        display: flex;
        gap: 26px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
        font-size: 1.5rem;
    }

    /* Taller hero. */
    .hero {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    /* Six days in one row. */
    .day {
        flex: 1 1 14%;
    }

    /* Taller photos. */
    .floor-row img {
        height: 320px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .plans,
    #classes,
    .floor,
    .trial {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* No fade on the photos. */
    .floor-row img {
        transition: none;
    }
}
