/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Pirouette Dance Academy (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, graceful. The class schedule has a CSS-only
    filter: five hidden radio buttons sit before the table, and rules like
    "#age-mini:checked ~ .table-scroll tbody tr:not(.mini)" hide every row
    from another age group (the :not() pseudo-class). Age tags say the
    group in words as well as color. The recital section is a stage with
    velvet curtains drawn by repeating gradients. Media queries at 576px,
    768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #2E0F1F plum black   #9D174D berry   #6D28D9 violet (darker than
      #7C3AED for small text)   #FDF2F8 blush   #6B4E5E muted
      #7F1D1D velvet
*/

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

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

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

/* Blush page with plum text. */
body {
    background-color: #FDF2F8;
    color: #2E0F1F;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Thin, elegant Italiana headings. */
h1,
h2,
h3 {
    font-family: Italiana, serif;
    font-weight: 400;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

/* Berry links. */
a {
    color: #9D174D;
    font-weight: 600;
}

/* Violet focus ring, also on filter labels of a focused radio. */
a:focus-visible,
button:focus-visible,
.table-scroll:focus-visible,
.menu-check:focus-visible + .menu-icon,
#age-all:focus-visible ~ .filters .f-all,
#age-mini:focus-visible ~ .filters .f-mini,
#age-kids:focus-visible ~ .filters .f-kids,
#age-teen:focus-visible ~ .filters .f-teen,
#age-adult:focus-visible ~ .filters .f-adult {
    outline: 3px solid #6D28D9;
    outline-offset: 3px;
}

/* Muted intro text. */
.lead {
    color: #6B4E5E;
    max-width: 38rem;
    margin: 8px 0px 22px 0px;
}

/* Small print. */
.small {
    font-size: 0.85rem;
    color: #6B4E5E;
    margin-top: 14px;
}

/* Small spaced capitals above headings. */
.kicker {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9D174D;
    margin-bottom: 10px;
}

/* ----- Header (class) ----- */

/* White header with a thin berry line. */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #F5C6DD;
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

/* Logo. */
.logo {
    font-family: Italiana, serif;
    font-size: 2rem;
    line-height: 1;
}

/* Small line under it. */
.logo small {
    display: block;
    font-family: Montserrat, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #9D174D;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    border: 1px solid #9D174D;
    color: #9D174D;
    border-radius: 999px;
    padding: 5px 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Opened menu shows nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Phone nav links. */
.site-nav a {
    display: block;
    color: #2E0F1F;
    font-weight: 400;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #FCE7F3;
}

/* Berry on hover. */
.site-nav a:hover {
    color: #9D174D;
}

/* Concept notice. */
.concept-note {
    background-color: #FCE7F3;
    font-size: 0.8rem;
    text-align: center;
    padding: 4px 16px;
}

/* ----- Hero (class) ----- */

/* Phone hero stacks. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px 20px 60px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.2rem);
    margin-bottom: 16px;
}

/* Hero paragraph. */
.hero-text > p:not(.kicker) {
    max-width: 30rem;
    margin-bottom: 24px;
}

/* Berry pill button. */
.button,
button {
    display: inline-block;
    background-color: #9D174D;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 13px 28px;
    font-family: Montserrat, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
}

/* Darker on hover. */
.button:hover,
button:hover {
    background-color: #701136;
}

/* Tall arched photo like a theater window. */
.hero-photo {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 300px 300px 12px 12px;
}

/* ----- Schedule filter (class) ----- */

/* White band. */
.schedule {
    background-color: #FFFFFF;
    padding: 60px 20px;
}

/* The radios are hidden but keep keyboard focus. */
.age-radio {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Filter buttons wrap. */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

/* One filter button. */
.filters label {
    border: 1px solid #9D174D;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* The chosen filter is filled berry. */
#age-all:checked ~ .filters .f-all,
#age-mini:checked ~ .filters .f-mini,
#age-kids:checked ~ .filters .f-kids,
#age-teen:checked ~ .filters .f-teen,
#age-adult:checked ~ .filters .f-adult {
    background-color: #9D174D;
    color: #FFFFFF;
}

/* Hide every row that is not in the chosen age group. */
#age-mini:checked ~ .table-scroll tbody tr:not(.mini),
#age-kids:checked ~ .table-scroll tbody tr:not(.kids),
#age-teen:checked ~ .table-scroll tbody tr:not(.teen),
#age-adult:checked ~ .table-scroll tbody tr:not(.adult) {
    display: none;
}

/* Table scrolls inside its box on narrow phones. */
.table-scroll {
    overflow-x: auto;
}

/* Table. */
table {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
}

/* Caption hidden visually (the heading says it). */
caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Cells. */
th,
td {
    padding: 11px 10px;
    text-align: left;
    border-bottom: 1px solid #FCE7F3;
}

/* Header row. */
thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #6B4E5E;
}

/* Day names. */
tbody th {
    font-weight: 600;
}

/* Age tag pill. */
.tag {
    display: inline-block;
    border-radius: 999px;
    padding: 1px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Minis: pale pink with berry text. */
.tag-mini {
    background-color: #FCE7F3;
    color: #9D174D;
}

/* Kids: pale violet. */
.tag-kids {
    background-color: #EDE9FE;
    color: #5B21B6;
}

/* Teens: berry. */
.tag-teen {
    background-color: #9D174D;
    color: #FFFFFF;
}

/* Adults: plum black. */
.tag-adult {
    background-color: #2E0F1F;
    color: #FFFFFF;
}

/* ----- Styles (class) ----- */

/* Section spacing. */
.styles {
    padding: 60px 20px;
}

/* Figures wrap. */
.style-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
}

/* One style figure. */
.style-row figure {
    flex: 1 1 260px;
}

/* Photo. */
.style-row img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
}

/* Caption. */
.style-row figcaption {
    margin-top: 10px;
}

/* Style name in Italiana on its own line. */
.style-row strong {
    display: block;
    font-family: Italiana, serif;
    font-weight: 400;
    font-size: 1.8rem;
}

/* ----- Recital stage (ID and class) ----- */

/* A dark stage with curtains on both sides. */
#recital {
    display: flex;
    background-color: #2E0F1F;
    color: #FDF2F8;
    min-height: 460px;
}

/* Velvet curtain: folds from a repeating gradient. */
.curtain {
    flex: 0 0 40px;
    background-color: #7F1D1D;
    background-image: repeating-linear-gradient(90deg, #7F1D1D 0px, #991B1B 8px, #5F1414 16px, #7F1D1D 22px);
}

/* Left curtain gathers at the bottom like it is tied back. */
.curtain-left {
    clip-path: polygon(0% 0%, 100% 0%, 60% 70%, 100% 100%, 0% 100%);
}

/* Right curtain mirrors it. */
.curtain-right {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 40% 70%);
}

/* The stage area in the middle, lit by a spotlight gradient. */
.stage {
    flex: 1 1 auto;
    text-align: center;
    padding: 60px 20px;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(253, 242, 248, 0.18) 0%, rgba(46, 15, 31, 0) 60%);
}

/* Pale pink kicker on dark. */
.stage .kicker {
    color: #F9A8D4;
}

/* Big date. */
.date {
    font-family: Italiana, serif;
    font-size: 2.4rem;
    color: #F9A8D4;
    margin: 6px 0px 14px 0px;
}

/* Stage paragraph. */
.stage > p {
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
}

/* Key dates on the way to the recital. */
.countdown {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

/* One key date. */
.countdown li {
    border: 1px solid #F9A8D4;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.9rem;
}

/* Bold date inside. */
.countdown strong {
    color: #F9A8D4;
    margin-right: 4px;
}

/* ----- Enroll (class) ----- */

/* Section spacing. */
.enroll {
    padding: 60px 20px;
}

/* Form. */
.enroll-form {
    max-width: 560px;
    margin-top: 18px;
}

/* Labels. */
.enroll-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 14px;
}

/* Inputs and select with soft rounded corners. */
.enroll-form input,
.enroll-form select {
    width: 100%;
    padding: 10px 14px;
    margin-top: 4px;
    border: 1px solid #E9B7CF;
    border-radius: 999px;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

/* Space above the button. */
.enroll-form button {
    margin-top: 20px;
}

/* ----- Footer (class) ----- */

/* Footer. */
.site-footer {
    background-color: #2E0F1F;
    color: #F5C6DD;
    text-align: center;
    font-size: 0.8rem;
    padding: 22px 20px;
}

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

@media (min-width: 576px) {

    /* Wider curtains. */
    .curtain {
        flex: 0 0 70px;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .schedule,
    .styles,
    .enroll {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Even wider curtains. */
    .curtain {
        flex: 0 0 120px;
    }

    /* Enroll heading beside the form. */
    .enroll {
        display: flex;
        gap: 50px;
    }

    /* Heading column. */
    .enroll h2 {
        flex: 0 0 260px;
    }

    /* Form column. */
    .enroll-form {
        flex: 1 1 auto;
        margin-top: 0px;
    }
}

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

@media (min-width: 992px) {

    /* No Menu button on desktop. */
    .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;
    }

    /* Hero text and arched photo side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 55%;
    }

    /* Photo column. */
    .hero-photo {
        flex: 1 1 40%;
        width: 40%;
        height: 560px;
    }

    /* Wide curtains on desktop. */
    .curtain {
        flex: 0 0 180px;
    }

    /* Taller stage. */
    .stage {
        padding-top: 90px;
        padding-bottom: 90px;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .schedule,
    .styles,
    .enroll {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
