/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Back Roads Chiropractic (fictional business)
    Filename:   styles.css

    Theme: posture and alignment. On laptops the header is a fixed dark
    rail down the left side; its links sit on a vertical spine line with
    a vertebra dot at each stop (the Nature Conservation sidebar layout,
    with the page pushed over by the rail's width). On phones it is a
    sticky top bar. "Where it hurts" lays a side-view spine across the
    page: 24 bones that grow from neck to low back, colored by zone.
    The first visit is three stops with round photos joined by a line.
    Booking uses day chips made from radio buttons.

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

    Colors (WebAIM contrast checked, AA):
      #0B2730 text on #F3FAFB page (14.9:1)
      #0E718C teal text (5.3:1 on the page)
      #FFFFFF on #0B2730 rail (15.7:1)
      #84CC16 lime on the rail, for marks and links (8.0:1)
      #0B2730 on #84CC16 chips (8.0:1)
*/

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

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

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

/* Cool clinic white. */
body {
    background-color: #F3FAFB;
    color: #0B2730;
    font-family: "Lato", Arial, sans-serif;
    font-size: 1.04rem;
    line-height: 1.65;
}

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

/* Headings in heavy geometric caps-friendly font. */
h1,
h2,
h3 {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    margin-bottom: 10px;
}

/* Links in readable teal. */
a {
    color: #0E718C;
}

/* Lime outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #0E718C;
    outline-offset: 3px;
}

/* ----- Rail (class) ----- */

/* Sticky dark bar on phones. */
.rail {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #0B2730;
    color: #FFFFFF;
}

/* Name and menu button in a row. */
.rail-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
}

/* Name in caps with the town under it. */
.mark {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

/* Second line of the name in lime. */
.mark span {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: #84CC16;
    letter-spacing: 0.12em;
}

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

/* Menu button, lime outline. */
.menu-icon {
    border: 2px solid #84CC16;
    color: #FFFFFF;
    padding: 4px 12px;
    font-weight: 700;
    cursor: pointer;
}

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

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

/* Links along a vertical spine line. */
.spine-nav ul {
    list-style: none;
    margin: 14px 0px 4px 8px;
    border-left: 3px solid #84CC16;
}

/* Each stop on the spine. */
.spine-nav li {
    position: relative;
    padding-left: 22px;
}

/* A vertebra dot at each stop. */
.spine-nav li::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 13px;
    width: 15px;
    height: 11px;
    border-radius: 4px;
    background-color: #84CC16;
}

/* Link text. */
.spine-nav a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    padding: 7px 0px;
}

/* Lime on hover. */
.spine-nav a:hover {
    color: #84CC16;
    text-decoration: underline;
}

/* Phone line, hidden on phones (they have the hero button). */
.rail-phone {
    display: none;
}

/* ----- Concept notice (class) ----- */

/* Thin strip at the top of the page column. */
.notice {
    background-color: #E1EFF2;
    font-size: 0.8rem;
    padding: 4px 18px;
}

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

/* Words then photo on phones. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 40px 18px 50px 18px;
}

/* Small kicker. */
.kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0E718C;
}

/* Oversized headline. */
.hero h1 {
    font-size: clamp(2.2rem, 6.5vw, 4rem);
    margin: 8px 0px 16px 0px;
}

/* Hero paragraph. */
.hero-words p:not(.kicker) {
    max-width: 34rem;
    margin-bottom: 20px;
}

/* Arrow link button: lime bar with dark text. */
.go,
button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #84CC16;
    color: #0B2730;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    padding: 13px 22px;
    cursor: pointer;
}

/* Arrow slides on hover. */
.go:hover,
button:hover {
    background-color: #0B2730;
    color: #84CC16;
}

/* Tall rounded photo. */
.hero > img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 40px 4px 40px 4px;
}

/* ----- Where it hurts (ID) ----- */

/* White band. */
#hurts {
    background-color: #FFFFFF;
    padding: 56px 18px;
}

/* Intro line. */
.intro {
    max-width: 40rem;
    margin-bottom: 26px;
}

/* Side-view spine: bones in a row, growing toward the low back. */
.side-spine {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 16px 0px;
    border-top: 2px dashed #D0DADD;
    border-bottom: 2px dashed #D0DADD;
    margin-bottom: 24px;
}

/* One bone. */
.seg {
    flex: 1 1 0px;
    border-radius: 4px;
}

/* Neck bones: small, teal. */
.neck {
    height: 16px;
    background-color: #0E7490;
}

/* Mid back: medium, gray-blue. */
.mid {
    height: 24px;
    background-color: #5B8FA0;
}

/* Low back: biggest, lime. */
.low {
    height: 34px;
    background-color: #84CC16;
}

/* Zone cards stack on phones. */
.zones {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* One zone card with a color bar matching its bones. */
.zone {
    border-top: 8px solid #0E7490;
    background-color: #F3FAFB;
    padding: 16px;
}

/* Mid zone bar color. */
.z-mid {
    border-top-color: #5B8FA0;
}

/* Low zone bar color. */
.z-low {
    border-top-color: #84CC16;
}

/* Zone heading with the bone count. */
.zone h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

/* Bone count small. */
.zone h3 span {
    display: block;
    font-family: "Lato", Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0E718C;
}

/* ----- First visit (class) ----- */

/* Section spacing. */
.first {
    padding: 56px 18px;
}

/* Stops down a line on phones. */
.stops {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 18px;
    border-left: 4px solid #84CC16;
    padding-left: 20px;
}

/* One stop. */
.stops li {
    counter-increment: stop;
}

/* Round photo per stop. */
.stops img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #FFFFFF;
    box-shadow: 0px 0px 0px 3px #0E7490;
    margin-bottom: 10px;
}

/* Stop title with its number. */
.stops h3::before {
    content: counter(stop) ". ";
    color: #0E718C;
}

/* ----- Prices (class) ----- */

/* Teal band. */
.prices {
    background-color: #0B2730;
    color: #FFFFFF;
    padding: 56px 18px;
}

/* Appointment cards. */
.appts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

/* One card with a punched side, like an appointment reminder. */
.appts li {
    background-color: #FFFFFF;
    color: #0B2730;
    padding: 16px 16px 16px 100px;
    position: relative;
    border-radius: 6px;
}

/* Price on the lime stub. */
.amt {
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    width: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #84CC16;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 6px 0px 0px 6px;
    border-right: 3px dashed #0B2730;
}

/* Visit name. */
.appts strong {
    display: block;
}

/* Fine print on the dark band. */
.fine {
    font-size: 0.85rem;
    color: #ADBBBE;
    margin-top: 12px;
}

/* ----- Booking (class) ----- */

/* Section spacing. */
.book {
    padding: 56px 18px 60px 18px;
}

/* Fieldsets without the default border. */
.book fieldset {
    border: none;
    margin-bottom: 18px;
}

/* Fieldset titles. */
.book legend {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Radio circles hidden but still focusable. */
.days input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Day chips. */
.days label {
    display: inline-block;
    min-width: 62px;
    text-align: center;
    border: 2px solid #0B2730;
    padding: 8px 6px;
    margin: 0px 6px 8px 0px;
    font-weight: 700;
    cursor: pointer;
}

/* The chosen day fills in lime. */
.days input:checked + label {
    background-color: #84CC16;
}

/* Keyboard focus on a day chip. */
.days input:focus-visible + label {
    outline: 3px solid #0E718C;
    outline-offset: 2px;
}

/* Labels above the text fields. */
.you label {
    display: block;
    font-weight: 700;
}

/* Fields with a thick left edge. */
.you input,
.you select {
    width: 100%;
    font: inherit;
    padding: 9px 12px;
    border: 1px solid #D0DADD;
    border-left: 6px solid #0E7490;
    background-color: #FFFFFF;
    margin: 2px 0px 12px 0px;
}

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

/* Small gray footer. */
.foot {
    border-top: 1px solid #D0DADD;
    font-size: 0.82rem;
    color: #5B6C71;
    padding: 24px 18px;
}

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

@media (min-width: 576px) {

    /* Bigger bones. */
    .neck {
        height: 22px;
    }

    /* Bigger mid bones. */
    .mid {
        height: 32px;
    }

    /* Bigger low bones. */
    .low {
        height: 46px;
    }
}

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

@media (min-width: 768px) {

    /* Zones side by side under the spine. */
    .zones {
        flex-direction: row;
    }

    /* Neck zone narrow, low zone wide, like the bones. */
    .z-neck {
        flex: 7 1 0px;
    }

    /* Mid zone. */
    .z-mid {
        flex: 12 1 0px;
    }

    /* Low zone. */
    .z-low {
        flex: 8 1 0px;
    }

    /* Stops across the page joined by a top line. */
    .stops {
        flex-direction: row;
        border-left: none;
        padding-left: 0px;
        border-top: 4px solid #84CC16;
        padding-top: 0px;
    }

    /* Each stop takes a third and pulls its photo onto the line. */
    .stops li {
        flex: 1 1 33%;
        margin-top: -62px;
    }

    /* Room above the stops for the photos on the line. */
    .first ol {
        margin-top: 90px;
    }

    /* Appointment cards in a row. */
    .appts {
        flex-direction: row;
    }

    /* Each card a third. */
    .appts li {
        flex: 1 1 33%;
    }

    /* Day chips and fields side by side. */
    .book form {
        display: flex;
        flex-wrap: wrap;
        gap: 0px 40px;
    }

    /* Each fieldset half. */
    .book fieldset {
        flex: 1 1 40%;
    }
}

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

@media (min-width: 992px) {

    /* The rail becomes a fixed left column. */
    .rail {
        position: fixed;
        top: 0px;
        left: 0px;
        bottom: 0px;
        width: 230px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 30px 10px 24px 10px;
    }

    /* Name and nav stack in the column. */
    .rail-top {
        flex-direction: column;
        align-items: flex-start;
    }

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

    /* Spine nav always shown. */
    .spine-nav {
        display: block;
        margin-top: 30px;
    }

    /* More room between stops on the spine. */
    .spine-nav a {
        padding: 12px 0px;
    }

    /* Dots line up with the taller links. */
    .spine-nav li::before {
        top: 18px;
    }

    /* Phone at the bottom of the rail. */
    .rail-phone {
        display: block;
        padding: 0px 18px;
        font-weight: 700;
    }

    /* Phone link in lime. */
    .rail-phone a {
        color: #84CC16;
    }

    /* Page sits to the right of the rail. */
    .page {
        margin-left: 230px;
    }

    /* Hero words beside the photo. */
    .hero {
        flex-direction: row;
        align-items: center;
        padding: 70px 50px;
    }

    /* Words column. */
    .hero-words {
        flex: 1 1 55%;
    }

    /* Photo column. */
    .hero > img {
        width: 40%;
        height: 480px;
    }

    /* Wider section padding. */
    #hurts,
    .first,
    .prices,
    .book {
        padding-left: 50px;
        padding-right: 50px;
    }
}

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

@media (min-width: 1200px) {

    /* Keep line lengths in check on very wide screens. */
    .hero,
    #hurts,
    .first,
    .prices,
    .book,
    .foot {
        padding-left: calc((100% - 1000px) / 2);
        padding-right: calc((100% - 1000px) / 2);
    }
}
