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

    Theme: a calm room under a willow. The header is a pale branch
    with a fringe of long, thin willow leaves hanging down from it
    (narrow ellipses repeated with radial gradients). The hero photo is
    a circle inside soft breathing rings (repeating-radial-gradient).
    The signature is a box-breathing square: a teal outline with
    "breathe in, hold, breathe out, hold" written along its four sides
    and a dot gliding around the corners (an animation that turns off
    for reduced motion). Classes are yoga mats laid side by side, each
    a rounded mat with a rolled end and a five-dot level. The footer
    is still water.

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

    Colors (WebAIM contrast checked, AA):
      #0B2420 text on #F5FBF9 page (16.3:1)
      #0F766E teal text and buttons (5.3:1; white on it 5.5:1)
      #914C9C orchid text (5.7: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) ----- */

/* Soft green-white page. */
body {
    background-color: #F5FBF9;
    color: #0B2420;
    font-family: "Karla", Arial, sans-serif;
    font-size: 1.04rem;
    line-height: 1.7;
}

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

/* Light, airy headings. */
h1,
h2 {
    font-family: "Josefin Sans", Arial, sans-serif;
    font-weight: 300;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    color: #0F766E;
    margin-bottom: 12px;
}

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

/* Orchid outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .willow-row .menu-icon {
    outline: 3px solid #914C9C;
    outline-offset: 3px;
}

/* ----- Willow header (class) ----- */

/* Pale header with the branch along the bottom edge. */
.willow {
    position: relative;
    background-color: #F5FBF9;
    border-bottom: 3px solid #8C7A5B;
    padding: 16px 16px 14px 16px;
    margin-bottom: 50px;
}

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

/* Logo and menu in a row. */
.willow-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Lowercase light logo. */
.logo {
    font-family: "Josefin Sans", Arial, sans-serif;
    font-weight: 300;
    font-size: 1.7rem;
    letter-spacing: 0.04em;
    color: #0F766E;
}

/* "yoga" in orchid, bolder. */
.logo span {
    font-weight: 600;
    color: #914C9C;
}

/* Menu button. */
.menu-icon {
    border: 1px solid #0F766E;
    color: #0F766E;
    border-radius: 20px;
    padding: 3px 14px;
    cursor: pointer;
}

/* Hanging willow leaves under the branch. */
.leaves {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 100%;
    height: 46px;
    background-image: radial-gradient(ellipse 3px 20px at 50% 20px, #6AA88F 0px, #6AA88F 95%, transparent 100%), radial-gradient(ellipse 3px 14px at 50% 14px, #8FC2AC 0px, #8FC2AC 95%, transparent 100%);
    background-size: 22px 46px, 15px 46px;
    background-position: 0px 0px, 7px 0px;
    background-repeat: repeat-x;
    pointer-events: none;
}

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

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

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

/* Nav links. */
.willow-nav a {
    color: #0B2420;
    text-decoration: none;
    letter-spacing: 0.06em;
}

/* Hover: orchid. */
.willow-nav a:hover {
    color: #914C9C;
}

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

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

/* ----- Calm hero (class) ----- */

/* Rings then words. */
.calm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 16px 60px 16px;
}

/* Breathing rings around the round photo. */
.rings {
    width: 320px;
    max-width: 100%;
    padding: 34px;
    border-radius: 50%;
    background-image: repeating-radial-gradient(circle, transparent 0px, transparent 10px, rgba(15, 118, 110, 0.14) 10px, rgba(15, 118, 110, 0.14) 12px);
}

/* Round photo. */
.rings img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

/* Words centered. */
.calm-text {
    text-align: center;
    max-width: 560px;
}

/* Headline. */
.calm-text h1 {
    font-size: clamp(2.3rem, 6vw, 3.8rem);
    margin-bottom: 14px;
}

/* Hero words. */
.calm-text p {
    margin-bottom: 22px;
}

/* Soft pill button. */
.soft-btn,
button {
    display: inline-block;
    background-color: #0F766E;
    color: #FFFFFF;
    font-family: "Karla", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 40px;
    padding: 13px 28px;
    cursor: pointer;
}

/* Button hover. */
.soft-btn:hover,
button:hover {
    background-color: #914C9C;
}

/* ----- Box breathing (ID) ----- */

/* Pale teal band. */
#breathe {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    background-color: #E3F1EC;
    padding: 60px 16px;
}

/* Room around the square for its side labels. */
.box-wrap {
    padding: 34px 40px;
}

/* The breathing square. */
.box {
    position: relative;
    width: 220px;
    height: 220px;
    border: 4px solid #0F766E;
    border-radius: 6px;
}

/* Shared side label. */
.side {
    position: absolute;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F766E;
    white-space: nowrap;
}

/* Top side. */
.top {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Right side, turned to read down. */
.right {
    right: -34px;
    top: 50%;
    transform: translate(50%, -50%) rotate(90deg);
}

/* Bottom side. */
.bottom {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Left side, turned to read up. */
.left {
    left: -34px;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* Words in the middle. */
.center {
    position: absolute;
    top: 50%;
    left: 0px;
    width: 100%;
    text-align: center;
    margin-top: -14px;
    font-family: "Josefin Sans", Arial, sans-serif;
    font-size: 1.3rem;
    color: #914C9C;
}

/* The dot that travels the square. */
.dot {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #E879F9;
    border: 3px solid #FFFFFF;
    animation: around 16s linear infinite;
}

/* The dot goes in for 4, holds for 4, out for 4, holds for 4. */
@keyframes around {
    0% {
        top: -12px;
        left: -12px;
    }
    25% {
        top: -12px;
        left: calc(100% - 8px);
    }
    50% {
        top: calc(100% - 8px);
        left: calc(100% - 8px);
    }
    75% {
        top: calc(100% - 8px);
        left: -12px;
    }
    100% {
        top: -12px;
        left: -12px;
    }
}

/* Words beside the square. */
.breathe-text {
    max-width: 520px;
}

/* Paragraph spacing. */
.breathe-text p {
    margin-bottom: 12px;
}

/* ----- Yoga mats (class) ----- */

/* Section spacing. */
.mats {
    padding: 60px 16px;
}

/* Intro. */
.intro {
    margin-bottom: 24px;
}

/* Mats stacked on phones. */
.mat-row {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

/* One mat: rounded rectangle with a rolled-up end. */
.mat {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--mat);
    border-radius: 10px;
    padding: 14px 16px 14px 0px;
}

/* Rolled end of the mat. */
.roll {
    flex: 0 0 34px;
    align-self: stretch;
    border-radius: 10px 50% 50% 10px;
    background-image: repeating-radial-gradient(circle at 0% 50%, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 2px, transparent 2px, transparent 6px);
    background-color: var(--mat);
    box-shadow: 3px 0px 4px rgba(0, 0, 0, 0.15);
}

/* Class words. */
.mat-words {
    flex: 1 1 auto;
    font-size: 0.92rem;
}

/* Class name. */
.mat-words strong {
    display: block;
    font-family: "Josefin Sans", Arial, sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Level dots. */
.level {
    color: #0B2420;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

/* Yin mat: lavender. */
.m-yin {
    --mat: #EBDDF5;
}

/* Gentle mat: sage. */
.m-gentle {
    --mat: #D6EBDD;
}

/* Slow flow mat: sky. */
.m-slow {
    --mat: #D3E8F2;
}

/* Vinyasa mat: peach. */
.m-vin {
    --mat: #F8DCC8;
}

/* Warm power mat: coral. */
.m-power {
    --mat: #F6C9CF;
}

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

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

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

/* Photo then form. */
.first {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #F1E3F2;
    padding: 60px 16px;
}

/* Meditation photo. */
.first img {
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
}

/* Form box. */
.first-form fieldset {
    border: none;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
}

/* Form title. */
.first-form legend {
    font-family: "Josefin Sans", Arial, sans-serif;
    font-size: 1.5rem;
    color: #914C9C;
    float: left;
    width: 100%;
}

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

/* Inputs. */
.first-form input,
.first-form select {
    width: 100%;
    font-family: "Karla", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #5C6B68;
    border-radius: 10px;
}

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

/* ----- Still water footer (class) ----- */

/* Deep teal with long gentle ripples. */
.still {
    background-color: #0B2420;
    background-image: repeating-linear-gradient(180deg, transparent 0px, transparent 14px, rgba(143, 194, 172, 0.12) 14px, rgba(143, 194, 172, 0.12) 15px);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 30px 16px;
}

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

@media (min-width: 576px) {

    /* Bigger rings. */
    .rings {
        width: 400px;
    }
}

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

@media (min-width: 768px) {

    /* Square beside the words. */
    #breathe {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    /* Mats side by side, standing up. */
    .mat-row {
        flex-direction: row;
    }

    /* Each mat a tall column. */
    .mat {
        flex: 1 1 20%;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px 14px 16px 14px;
        min-height: 260px;
    }

    /* Roll at the top of a standing mat. */
    .roll {
        flex: 0 0 30px;
        align-self: stretch;
        margin: 0px -14px;
        border-radius: 10px 10px 50% 50%;
        background-image: repeating-radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 2px, transparent 2px, transparent 6px);
        box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.15);
    }

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

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

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

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

@media (min-width: 992px) {

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

    /* Logo left, nav right. */
    .willow {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .willow-nav {
        display: block;
    }

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

    /* Rings beside the words. */
    .calm {
        flex-direction: row;
        justify-content: center;
        gap: 60px;
    }

    /* Words left-aligned beside the circle. */
    .calm-text {
        text-align: left;
    }

    /* Wider sections. */
    .mats,
    .first {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .mats,
    .first {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion ----- */

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

    /* The breathing dot stays still. */
    .dot {
        animation: none;
    }
}
