/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Momentum Physical Therapy (fictional business)
    Filename:   styles.css

    Theme: measured progress. The header is a teal resistance band
    stretched tight across the page, with a foam handle at the left
    end. In the hero a dashed coral arc swings over the photo like the
    path of a moving limb. The signature is a goniometer protractor: a
    half circle with tick marks, and three colored wedges
    (conic-gradient) showing how far a new knee bends at week 1, 4 and
    8. The pain section is a 0 to 10 scale of chips that shade from
    green through yellow to red, with what the clinic does in each
    zone. The footer is a ribbed foam roller.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #08221F text on #F2FBFA page (16.6:1)
      #0A7369 teal text (5.7:1 on the page)
      #FFFFFF on #0B8277 buttons (4.6:1)
      #BD3149 coral text (5.4:1 on the page)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Clean clinic page. */
body {
    background-color: #F2FBFA;
    color: #08221F;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Heavy modern headings. */
h1,
h2 {
    font-weight: 800;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    color: #0A7369;
    margin-bottom: 12px;
}

/* Links in teal. */
a {
    color: #0A7369;
}

/* Coral outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .band-row .menu-icon {
    outline: 3px solid #BD3149;
    outline-offset: 3px;
}

/* ----- Resistance band header (class) ----- */

/* White header with the band stretched across its middle. */
.band {
    position: relative;
    background-color: #FFFFFF;
    background-image: linear-gradient(180deg, transparent 38%, #5EEAD4 38%, #2DD4BF 50%, #5EEAD4 62%, transparent 62%);
    padding: 12px 16px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Handle, logo and menu in a row. */
.band-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Foam handle: a dark rounded grip. */
.handle {
    flex: 0 0 22px;
    height: 46px;
    border-radius: 11px;
    background-color: #08221F;
    background-image: repeating-linear-gradient(180deg, transparent 0px, transparent 5px, rgba(255, 255, 255, 0.15) 5px, rgba(255, 255, 255, 0.15) 7px);
}

/* Logo on a white tag over the band. */
.logo {
    flex: 1 1 auto;
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.05;
}

/* Logo words sit on white so they read over the band. */
.logo,
.logo span {
    background-color: #FFFFFF;
}

/* Second line. */
.logo span {
    display: block;
    width: fit-content;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0A7369;
}

/* Logo is a tight box, not the full row. */
.logo {
    flex: 0 1 auto;
    padding: 2px 8px;
    margin-right: auto;
}

/* Menu button. */
.menu-icon {
    background-color: #0B8277;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.band-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .band-nav {
    display: block;
    background-color: #FFFFFF;
}

/* Nav list. */
.band-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links. */
.band-nav a {
    color: #08221F;
    font-weight: 700;
    text-decoration: none;
}

/* Hover: coral. */
.band-nav a:hover {
    color: #BD3149;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Motion hero (class) ----- */

/* Words then photo. */
.motion {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 16px 60px 16px;
}

/* Headline. */
.motion-text h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.5rem);
    margin-bottom: 14px;
}

/* Hero words. */
.motion-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Photo with an arc above. */
.arc-photo {
    position: relative;
    padding-top: 30px;
}

/* Photo. */
.arc-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
}

/* Dashed coral arc like a limb's path of motion. */
.arc {
    position: absolute;
    top: 0px;
    left: 10%;
    width: 80%;
    height: 160px;
    border: 4px dashed #F43F5E;
    border-bottom: none;
    border-radius: 50% 50% 0px 0px / 100% 100% 0px 0px;
    z-index: 2;
}

/* Teal button with a band stripe. */
.band-btn,
button {
    display: inline-block;
    background-color: #0B8277;
    color: #FFFFFF;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    box-shadow: inset 0px -5px 0px #2DD4BF;
    padding: 13px 26px;
    cursor: pointer;
}

/* Button hover. */
.band-btn:hover,
button:hover {
    background-color: #08221F;
}

/* ----- Protractor (ID) ----- */

/* Pale teal band. */
#bend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: #DDF2EF;
    padding: 56px 16px;
}

/* Room around the protractor. */
.protractor-wrap {
    padding: 0px 30px 30px 30px;
}

/* Half circle with tick marks around its edge. */
.protractor {
    position: relative;
    width: 300px;
    height: 150px;
    border: 3px solid #08221F;
    border-bottom: 4px solid #08221F;
    border-radius: 150px 150px 0px 0px;
    background-color: #FFFFFF;
    background-image: repeating-conic-gradient(from 270deg at 50% 100%, #08221F 0deg 0.6deg, transparent 0.6deg 10deg);
    overflow: hidden;
}

/* One wedge, fanning from the left edge up and over. */
.wedge {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 0px;
    border-radius: 140px 140px 0px 0px;
    background-image: conic-gradient(from 270deg at 50% 100%, var(--wc) 0deg var(--deg), transparent var(--deg));
}

/* Week 8: 120 degrees, lightest, biggest. */
.w8 {
    --wc: #99F6E4;
    --deg: 120deg;
}

/* Week 4: 95 degrees. */
.w4 {
    --wc: #2DD4BF;
    --deg: 95deg;
    top: 40px;
    left: 40px;
    right: 40px;
}

/* Week 1: 60 degrees, darkest, smallest. */
.w1 {
    --wc: #0B8277;
    --deg: 60deg;
    top: 66px;
    left: 66px;
    right: 66px;
}

/* Degree labels under the edge. */
.deg {
    position: absolute;
    bottom: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    background-color: #FFFFFF;
    padding: 0px 2px;
}

/* 0 at the left. */
.d0 {
    left: 2px;
}

/* 90 at the top. */
.d90 {
    top: 2px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* 180 at the right. */
.d180 {
    right: 2px;
}

/* Words beside the protractor. */
.bend-text {
    max-width: 520px;
}

/* Week list. */
.weeks {
    list-style: none;
    margin-top: 12px;
}

/* One week with a color chip matching its wedge. */
.weeks li {
    padding: 8px 0px 8px 16px;
    border-left: 10px solid var(--wc);
    margin-bottom: 8px;
    background-color: #FFFFFF;
}

/* Week label. */
.weeks strong {
    display: block;
}

/* Week 1 chip. */
.k1 {
    --wc: #0B8277;
}

/* Week 4 chip. */
.k4 {
    --wc: #2DD4BF;
}

/* Week 8 chip. */
.k8 {
    --wc: #99F6E4;
}

/* ----- Pain scale (class) ----- */

/* Section spacing. */
.pain {
    padding: 56px 16px;
}

/* Scale of 11 chips. */
.scale {
    list-style: none;
    display: flex;
    gap: 3px;
    margin: 16px 0px 20px 0px;
}

/* One number chip. */
.scale li {
    flex: 1 1 9%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #08221F;
    background-color: var(--pc);
    border-radius: 6px;
}

/* 0 to 10, green to red. */
.p0 {
    --pc: #86EFAC;
}

/* 1. */
.p1 {
    --pc: #A7F3B5;
}

/* 2. */
.p2 {
    --pc: #BEF264;
}

/* 3. */
.p3 {
    --pc: #D9F99D;
}

/* 4. */
.p4 {
    --pc: #FDE68A;
}

/* 5. */
.p5 {
    --pc: #FCD34D;
}

/* 6. */
.p6 {
    --pc: #FDBA74;
}

/* 7. */
.p7 {
    --pc: #FB923C;
}

/* 8. */
.p8 {
    --pc: #FCA5A5;
}

/* 9. */
.p9 {
    --pc: #F87171;
}

/* 10. */
.p10 {
    --pc: #F15B5B;
}

/* Three zones. */
.zones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

/* One zone. */
.zone {
    padding: 14px 16px;
    border-radius: 10px;
    border-top: 8px solid var(--zc);
    background-color: #FFFFFF;
}

/* Green zone. */
.z-green {
    --zc: #86EFAC;
}

/* Yellow zone. */
.z-yellow {
    --zc: #FCD34D;
}

/* Red zone. */
.z-red {
    --zc: #EF4444;
}

/* Zone heading words. */
.zone strong {
    display: block;
}

/* Two photos. */
.pain-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.pain-photos img {
    width: 50%;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;
}

/* ----- First visit (class) ----- */

/* Teal band. */
.visit {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #0B8277;
    padding: 56px 16px;
}

/* Doctor photo. */
.visit img {
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
}

/* Form box. */
.visit-form fieldset {
    border: none;
    background-color: #FFFFFF;
    border-radius: 14px;
    padding: 24px;
}

/* Form title. */
.visit-form legend {
    font-weight: 800;
    font-size: 1.4rem;
    float: left;
    width: 100%;
}

/* Labels. */
.visit-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.visit-form input {
    width: 100%;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #586B68;
    border-radius: 8px;
}

/* Small note. */
.small {
    margin-top: 12px;
    font-size: 0.88rem;
}

/* Submit spacing. */
.visit-form button {
    margin-top: 16px;
}

/* ----- Foam roller footer (class) ----- */

/* Dark ribbed foam roller. */
.roller {
    background-color: #08221F;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 16px, rgba(45, 212, 191, 0.15) 16px, rgba(45, 212, 191, 0.15) 20px);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
    border-radius: 30px 30px 0px 0px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Bigger number chips. */
    .scale li {
        height: 64px;
        font-size: 1.3rem;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Protractor beside the words. */
    #bend {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }

    /* Zones in a row. */
    .zones {
        flex-direction: row;
    }

    /* Each zone. */
    .zone {
        flex: 1 1 33%;
    }

    /* Photo beside the form. */
    .visit {
        flex-direction: row;
    }

    /* Each half. */
    .visit img,
    .visit-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .visit img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Handle and logo left, nav right, all on the band. */
    .band {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .band-nav {
        display: block;
    }

    /* Nav in a row, each link on a white chip over the band. */
    .band-nav ul {
        flex-direction: row;
        gap: 14px;
        padding-top: 0px;
    }

    /* Link chips. */
    .band-nav a {
        display: block;
        background-color: #FFFFFF;
        padding: 2px 10px;
        border-radius: 12px;
    }

    /* Words beside the photo. */
    .motion {
        flex-direction: row;
        align-items: center;
        padding: 50px 40px 70px 40px;
    }

    /* Each half. */
    .motion-text,
    .arc-photo {
        flex: 1 1 50%;
    }

    /* Taller photo. */
    .arc-photo img {
        height: 420px;
    }

    /* Wider sections. */
    .pain,
    .visit {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .motion,
    .pain,
    .visit {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
