/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Iron Oak Martial Arts (fictional business)
    Filename:   styles.css

    Theme: the training floor. The header is a black belt wrapped
    across the page with a square knot and two hanging ends near the
    name, and a red rank bar at one end. The hero sits on practice
    mats: interlocking puzzle-mat squares in red and black (a
    conic-gradient checker). The signature is the belt ladder: seven
    belts drawn as cloth strips in rank colors, each with a black tip
    and white stripe tabs, beside what it takes to earn it. Class
    times are a weekly board with color-coded age groups. The footer
    is a wood-plank floor edge.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #1A0606 text on #FFF7F7 page (19.0:1)
      #B91C1C red text and buttons (6.2:1; white on it 6.5:1)
      #FFFFFF on #111827 black belt (17.7:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Clean white-gi page. */
body {
    background-color: #FFF7F7;
    color: #1A0606;
    font-family: "Barlow", Arial, sans-serif;
    font-size: 1.04rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Strong squared headings. */
h1,
h2 {
    font-family: "Kanit", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 4.8vw, 2.7rem);
    color: #B91C1C;
    margin-bottom: 10px;
}

/* Links in red. */
a {
    color: #B91C1C;
}

/* Black outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.board-wrap:focus-visible,
.menu-check:focus-visible + .belt-row .menu-icon {
    outline: 3px solid #111827;
    outline-offset: 3px;
}

/* ----- Black belt header (class) ----- */

/* Header: white gi cloth with the belt across the middle. */
.belt {
    position: relative;
    background-color: #FFFFFF;
    background-image: linear-gradient(180deg, transparent 18%, #111827 18%, #111827 82%, transparent 82%);
    padding: 12px 16px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Name, knot and menu along the belt. */
.belt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Name stitched on the belt in white, with a red rank bar before it. */
.logo {
    font-family: "Kanit", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.05;
    color: #FFFFFF;
    text-transform: uppercase;
    border-left: 16px solid #B91C1C;
    padding: 6px 0px 6px 12px;
}

/* Second line smaller. */
.logo span {
    display: block;
    font-family: "Barlow", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
}

/* Square knot with two ends hanging down below the belt. */
.knot {
    position: relative;
    flex: 0 0 34px;
    height: 34px;
    background-color: #1F2937;
    border: 2px solid #374151;
    transform: rotate(45deg);
}

/* Hanging belt ends. */
.knot::before,
.knot::after {
    content: "";
    position: absolute;
    top: 18px;
    width: 14px;
    height: 46px;
    background-color: #111827;
}

/* Left end. */
.knot::before {
    left: 2px;
    transform: rotate(-60deg);
}

/* Right end. */
.knot::after {
    left: 18px;
    transform: rotate(-30deg);
}

/* Menu button. */
.menu-icon {
    background-color: #B91C1C;
    color: #FFFFFF;
    font-weight: 600;
    padding: 4px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.belt-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .belt-nav {
    display: block;
    background-color: #111827;
    margin-top: 8px;
}

/* Nav list. */
.belt-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

/* Nav links white, uppercase. */
.belt-nav a {
    color: #FFFFFF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}

/* Hover: underline in red. */
.belt-nav a:hover {
    text-decoration: underline;
    text-decoration-color: #EF4444;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Mat hero (class) ----- */

/* Red and black puzzle mats under everything. */
.mat {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #111827;
    background-image: conic-gradient(#7F1D1D 0deg 90deg, #111827 90deg 180deg, #7F1D1D 180deg 270deg, #111827 270deg 360deg);
    background-size: 120px 120px;
    padding: 30px 16px 56px 16px;
}

/* Class photo. */
.mat img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 6px solid #FFFFFF;
}

/* Words on a white gi-cloth panel. */
.mat-text {
    background-color: #FFFFFF;
    padding: 24px;
    border-top: 10px solid #B91C1C;
}

/* Headline. */
.mat-text h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.5rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.mat-text p {
    margin-bottom: 22px;
}

/* Red button. */
.red-btn,
button {
    display: inline-block;
    background-color: #B91C1C;
    color: #FFFFFF;
    font-family: "Kanit", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: none;
    padding: 12px 26px;
    cursor: pointer;
}

/* Button hover. */
.red-btn:hover,
button:hover {
    background-color: #111827;
}

/* ----- Belt ladder (ID) ----- */

/* Section spacing. */
#ladder {
    padding: 56px 16px;
}

/* Intro. */
.intro {
    max-width: 44rem;
    margin-bottom: 24px;
}

/* Belt list. */
.belts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* One rank: belt strip then words. */
.rank {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Cloth belt strip with a stitched line and a black tip at the end. */
.strip {
    position: relative;
    display: block;
    height: 30px;
    background-color: var(--belt);
    background-image: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.12) 34%, transparent 34%, transparent 66%, rgba(0, 0, 0, 0.12) 66%, rgba(0, 0, 0, 0.12) 70%, transparent 70%);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-right: 50px solid #111827;
}

/* White stripe tabs on the black tip. */
.tabs {
    position: absolute;
    right: -42px;
    top: 0px;
    width: 34px;
    height: 100%;
    background-image: repeating-linear-gradient(90deg, #FFFFFF 0px, #FFFFFF 4px, transparent 4px, transparent 9px);
}

/* Rank words. */
.name strong {
    font-family: "Kanit", Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

/* White belt. */
.b-white {
    --belt: #FFFFFF;
}

/* Yellow belt. */
.b-yellow {
    --belt: #FACC15;
}

/* Orange belt. */
.b-orange {
    --belt: #F97316;
}

/* Green belt. */
.b-green {
    --belt: #16A34A;
}

/* Blue belt. */
.b-blue {
    --belt: #2563EB;
}

/* Brown belt. */
.b-brown {
    --belt: #78350F;
}

/* Black belt: a red tip instead of a black one. */
.b-black {
    --belt: #111827;
}

/* Black belt's tip is red. */
.b-black .strip {
    border-right-color: #B91C1C;
}

/* ----- Class board (class) ----- */

/* Dark band. */
.schedule {
    background-color: #111827;
    color: #FFFFFF;
    padding: 56px 16px;
}

/* Title in white on black. */
.schedule h2 {
    color: #FFFFFF;
}

/* Scroll box for the table on phones. */
.board-wrap {
    overflow-x: auto;
    margin-bottom: 26px;
}

/* The board. */
.board {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 4px;
}

/* Caption. */
.board caption {
    text-align: left;
    color: #D1D5DB;
    padding-bottom: 6px;
}

/* Cells. */
.board th,
.board td {
    padding: 10px 8px;
    text-align: left;
    font-size: 0.9rem;
}

/* Day and time headings. */
.board th {
    font-family: "Kanit", Arial, sans-serif;
    font-weight: 600;
}

/* Class blocks get a color per age group. */
.board td {
    background-color: var(--grp);
    color: #1A0606;
    font-weight: 600;
    border-radius: 4px;
}

/* Little Dragons. */
.c-tiny {
    --grp: #FDE68A;
}

/* Kids. */
.c-kids {
    --grp: #FDBA74;
}

/* Teens. */
.c-teen {
    --grp: #86EFAC;
}

/* Adults. */
.c-adult {
    --grp: #93C5FD;
}

/* Sparring. */
.c-spar {
    --grp: #FCA5A5;
}

/* Two photos. */
.sched-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.sched-photos img {
    width: 50%;
    height: 230px;
    object-fit: cover;
}

/* ----- Free class (class) ----- */

/* Photo then form. */
.trial {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 16px;
}

/* Stance photo. */
.trial img {
    height: 280px;
    object-fit: cover;
}

/* Form box with a red belt along the top. */
.trial-form fieldset {
    border: 2px solid #111827;
    border-top: 12px solid #B91C1C;
    padding: 22px;
    background-color: #FFFFFF;
}

/* Form title. */
.trial-form legend {
    font-family: "Kanit", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    padding: 0px 8px;
}

/* Labels. */
.trial-form label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
}

/* Inputs. */
.trial-form input {
    width: 100%;
    font-family: "Barlow", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #6A5C5C;
}

/* Submit spacing. */
.trial-form button {
    margin-top: 18px;
}

/* ----- Wood floor footer (class) ----- */

/* Long wood planks. */
.floor {
    background-color: #8C5A2B;
    background-image: repeating-linear-gradient(180deg, transparent 0px, transparent 22px, #5C3A1A 22px, #5C3A1A 24px), repeating-linear-gradient(90deg, transparent 0px, transparent 260px, #5C3A1A 260px, #5C3A1A 262px);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

/* Footer text on a dark strip so it reads over the planks. */
.floor p {
    display: inline-block;
    background-color: #1A0606;
    padding: 2px 8px;
    margin: 2px 0px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Belt and words side by side. */
    .rank {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    /* Belt strip fixed width. */
    .strip {
        flex: 0 0 200px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Photo beside the form. */
    .trial {
        flex-direction: row;
    }

    /* Each half. */
    .trial img,
    .trial-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .trial img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Belt row and nav share the belt. */
    .belt {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown, on the belt. */
    .belt-nav {
        display: block;
    }

    /* Nav in a row. */
    .belt-nav ul {
        flex-direction: row;
        gap: 24px;
        padding: 0px;
    }

    /* Photo beside the words on the mats. */
    .mat {
        flex-direction: row;
        align-items: center;
        padding: 56px 40px 70px 40px;
    }

    /* Photo column. */
    .mat img {
        width: 55%;
        height: 440px;
    }

    /* Words column. */
    .mat-text {
        flex: 1 1 45%;
    }

    /* Wider belts. */
    .strip {
        flex: 0 0 320px;
    }

    /* Wider sections. */
    #ladder,
    .schedule,
    .trial {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .mat,
    #ladder,
    .schedule,
    .trial {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
