/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Still Water Massage Therapy (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, slow and quiet: lots of space, a light
    serif and muted sage. The hero has a breathing circle that grows and
    shrinks on an 8-second @keyframes loop while the words "breathe in"
    and "breathe out" fade in turn. In "your first visit" the round photo
    is floated right in a display: flow-root section (the float technique
    from the travel blog) so the paragraphs wrap beside it. Session bars are as long as the
    session (30, 60, 90 minutes). The pressure scale is five radio
    buttons drawn as dots that grow from light to deep. Motion stops for
    prefers-reduced-motion. Media queries at 576px, 768px, 992px and
    1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #22302A deep green text   #4F6354 sage (darker than #5F7464 for
      small text, 6.3:1)   #C9A27E sand (decoration and dark text only)
      #F6F4EF linen page   #5B5F57 muted
*/

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

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

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

/* Linen page with deep green text. */
body {
    background-color: #F6F4EF;
    color: #22302A;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
}

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

/* Light serif headings. */
h1,
h2,
h3 {
    font-family: Cormorant, serif;
    font-weight: 500;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 18px;
}

/* Sage links. */
a {
    color: #4F6354;
    font-weight: 600;
}

/* Sage focus ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #4F6354;
    outline-offset: 3px;
}

/* Small notes. */
.small {
    font-size: 0.85rem;
    color: #5B5F57;
    margin-top: 14px;
}

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

/* Sticky linen header with a thin line. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #F6F4EF;
    border-bottom: 1px solid #DDD6C8;
}

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

/* Serif logo. */
.logo {
    font-family: Cormorant, serif;
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1;
}

/* Small spaced line under the logo. */
.logo small {
    display: block;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #4F6354;
    margin-top: 4px;
}

/* Hidden menu checkbox, still keyboard reachable. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Quiet menu button. */
.menu-icon {
    color: #4F6354;
    font-weight: 600;
    padding: 4px 0px;
    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;
}

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

/* Sage on hover. */
.site-nav a:hover {
    color: #4F6354;
}

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

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

/* Text then circle on phones, lots of air. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 60px 20px 70px 20px;
}

/* Small label above the headline. */
.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4F6354;
    margin-bottom: 16px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    margin-bottom: 20px;
}

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

/* Soft sage pill button. */
.button,
button {
    display: inline-block;
    background-color: #4F6354;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 12px 30px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
}

/* Deeper on hover. */
.button:hover,
button:hover {
    background-color: #22302A;
}

/* Breathing area centers the circle and its words. */
.breathe {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Soft circle that grows and shrinks. */
.circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: #C9A27E;
    box-shadow: 0px 0px 0px 18px rgba(201, 162, 126, 0.3), 0px 0px 0px 40px rgba(201, 162, 126, 0.15);
    animation: breathe 8s ease-in-out infinite;
}

/* In for four seconds, out for four. */
@keyframes breathe {
    0% {
        transform: scale(0.7);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(0.7);
    }
}

/* Words sit on the circle. */
.cue {
    position: absolute;
    font-family: Cormorant, serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #22302A;
}

/* Both words stack in the same spot. */
.cue span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

/* "breathe in" shows for the first half. */
.cue .in {
    animation: cue-in 8s ease-in-out infinite;
}

/* "breathe out" shows for the second half. */
.cue .out {
    animation: cue-out 8s ease-in-out infinite;
}

/* Fade in, hold, fade out. */
@keyframes cue-in {
    0% {
        opacity: 1;
    }
    45% {
        opacity: 1;
    }
    55% {
        opacity: 0;
    }
    95% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* The opposite timing. */
@keyframes cue-out {
    0% {
        opacity: 0;
    }
    45% {
        opacity: 0;
    }
    55% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ----- What to expect (class) ----- */

/* White band; display flow-root contains the float. */
.expect {
    display: flow-root;
    background-color: #FFFFFF;
    padding: 60px 20px;
}

/* Round photo floats right and the text wraps beside it. */
.round {
    float: right;
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0px 0px 10px 18px;
}

/* Paragraph spacing. */
.expect p {
    margin-bottom: 16px;
}

/* License line. */
.sign {
    font-family: Cormorant, serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #4F6354;
}

/* ----- Sessions (ID and class) ----- */

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

/* Cards stack on phones. */
.cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Each card is a soft linen box. */
.card {
    background-color: #FFFFFF;
    border: 1px solid #E6E0D3;
    border-radius: 20px;
    padding: 24px 22px;
}

/* Card title is a big italic word. */
.card h3 {
    font-style: italic;
    font-size: 2.2rem;
}

/* Time bar track. */
.time {
    display: block;
    height: 6px;
    border-radius: 999px;
    background-color: #ECE7DC;
    margin: 12px 0px 14px 0px;
}

/* 30 minutes is a third of the track. */
.t30 {
    background-image: linear-gradient(90deg, #C9A27E 33%, transparent 33%);
}

/* 60 minutes is two thirds. */
.t60 {
    background-image: linear-gradient(90deg, #C9A27E 67%, transparent 67%);
}

/* 90 minutes fills it. */
.t90 {
    background-color: #C9A27E;
}

/* Price line. */
.price {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Minutes after the price. */
.price span {
    font-weight: 400;
    font-size: 0.95rem;
    color: #5B5F57;
}

/* ----- The room (class) ----- */

/* Deep green band, photo first on phones. */
.room {
    display: flex;
    flex-direction: column;
    background-color: #22302A;
    color: #F6F4EF;
}

/* Candle photo. */
.room > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Text area. */
.room-text {
    padding: 50px 20px;
}

/* Room list. */
.room-list {
    list-style: none;
}

/* Each line. */
.room-list li {
    padding: 10px 0px;
    border-bottom: 1px solid #3A4A41;
}

/* Sand icons (on dark). */
.room-list i {
    width: 30px;
    color: #C9A27E;
}

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

/* Photo and form stack on phones. */
.book {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 60px 20px;
}

/* Arch-shaped photo. */
.book-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 200px 200px 16px 16px;
}

/* Labels. */
.book label {
    display: block;
    font-weight: 600;
    margin-top: 14px;
}

/* Fields with a soft underline. */
.book input[type="text"],
.book input[type="tel"],
.book select {
    width: 100%;
    font: inherit;
    padding: 9px 4px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #8C9A8F;
    margin-top: 2px;
}

/* Pressure scale row. */
.pressure {
    border: none;
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

/* Legend above the dots. */
.pressure legend {
    font-weight: 600;
    margin-bottom: 8px;
}

/* Radios hidden but focusable. */
.pressure input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Each choice is a dot with its word under it. */
.pressure label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    font-size: 0.85rem;
    margin-top: 0px;
    cursor: pointer;
}

/* The dot, small for light pressure. */
.pressure label::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #4F6354;
}

/* Bigger dot for gentle. */
.pressure label[for="p2"]::before {
    width: 22px;
    height: 22px;
}

/* Bigger for medium. */
.pressure label[for="p3"]::before {
    width: 26px;
    height: 26px;
}

/* Bigger for firm. */
.pressure label[for="p4"]::before {
    width: 30px;
    height: 30px;
}

/* Biggest for deep. */
.pressure label[for="p5"]::before {
    width: 34px;
    height: 34px;
}

/* Picked dot fills in sage. */
.pressure input:checked + label::before {
    background-color: #4F6354;
}

/* Picked word in bold. */
.pressure input:checked + label {
    font-weight: 700;
}

/* Keyboard focus outlines the choice. */
.pressure input:focus-visible + label {
    outline: 3px solid #4F6354;
    outline-offset: 3px;
}

/* Space above the button. */
.book button {
    margin-top: 24px;
}

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

/* Footer. */
.site-footer {
    background-color: #ECE7DC;
    color: #3D463F;
    font-size: 0.85rem;
    text-align: center;
    padding: 26px 16px;
}

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

@media (min-width: 576px) {

    /* Bigger round photo. */
    .round {
        width: 230px;
        height: 230px;
    }

    /* Taller room photo. */
    .room > img {
        height: 340px;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .expect,
    #sessions,
    .book {
        padding-left: 48px;
        padding-right: 48px;
    }

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

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

    /* Room photo beside the text. */
    .room {
        flex-direction: row;
    }

    /* Photo half. */
    .room > img {
        width: 50%;
        height: auto;
    }

    /* Text half. */
    .room-text {
        flex: 1 1 50%;
        padding: 70px 48px;
    }

    /* Photo beside the form. */
    .book {
        flex-direction: row;
        align-items: center;
        gap: 56px;
    }

    /* Photo column. */
    .book-photo {
        flex: 1 1 42%;
    }

    /* Form column. */
    .book form {
        flex: 1 1 58%;
    }

    /* Taller arch. */
    .book-photo img {
        height: 460px;
    }
}

/* ----- 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: 28px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Hero text beside the breathing circle. */
    .hero {
        flex-direction: row;
        align-items: center;
        padding-top: 90px;
        padding-bottom: 100px;
    }

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

    /* Circle column. */
    .breathe {
        flex: 1 1 42%;
        height: 380px;
    }

    /* Bigger circle. */
    .circle {
        width: 200px;
        height: 200px;
    }

    /* Bigger round photo with more room beside it. */
    .round {
        width: 300px;
        height: 300px;
        margin-left: 30px;
    }

    /* Narrower reading column for the wrapped text. */
    .expect p {
        max-width: 46rem;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1040px, a little narrower for calm. */
    .header-inner,
    .hero,
    .expect,
    #sessions,
    .book {
        padding-left: calc((100% - 1040px) / 2);
        padding-right: calc((100% - 1040px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* Circle holds still. */
    .circle {
        animation: none;
    }

    /* Only "breathe in" shows. */
    .cue .in,
    .cue .out {
        animation: none;
    }

    /* Hide "breathe out" when there's no motion. */
    .cue .out {
        opacity: 0;
    }
}
