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

    Theme: the polish bar. The header is an emery board: a long pink
    file with rounded ends and a gritty speckled surface (tiny
    radial-gradient dots). The hero photo is shaped like a nail polish
    bottle: a rounded glass body under a tall black cap and a neck.
    The signature is a wall of twelve fall shades, each swatch shaped
    like a painted fingernail (a tall rounded oval with a glossy
    highlight) with its shade name. "How long it lasts" lines up four
    polish bottles filled to the number of days each service lasts.
    The footer is a white marble counter with gray veins.

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

    Colors (WebAIM contrast checked, AA):
      #2A0B1C text on #FFF6FA page (17.6:1)
      #BE185D pink text and buttons (5.9:1; white on it 6.2:1)
      #6D5AA2 lilac 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) ----- */

/* Blush page. */
body {
    background-color: #FFF6FA;
    color: #2A0B1C;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

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

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

/* Section titles. */
h2 {
    font-size: clamp(2rem, 5.2vw, 3rem);
    color: #BE185D;
    margin-bottom: 10px;
}

/* Links in pink. */
a {
    color: #BE185D;
}

/* Lilac outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .file-row .menu-icon {
    outline: 3px solid #6D5AA2;
    outline-offset: 3px;
}

/* ----- Emery board header (class) ----- */

/* Page strip that holds the file. */
.file {
    position: relative;
    background-color: #FFFFFF;
    padding: 14px 16px;
}

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

/* The board itself: pink, gritty, rounded ends. */
.file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F9A8C9;
    background-image: radial-gradient(circle, rgba(42, 11, 28, 0.18) 0px, rgba(42, 11, 28, 0.18) 1px, transparent 1px), radial-gradient(circle, rgba(255, 255, 255, 0.5) 0px, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 5px 5px, 7px 7px;
    background-position: 0px 0px, 2px 3px;
    border-radius: 40px;
    padding: 8px 10px 8px 24px;
}

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

/* Second part. */
.logo span {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Menu button. */
.menu-icon {
    background-color: #2A0B1C;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 30px;
    padding: 4px 14px;
    cursor: pointer;
}

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

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

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

/* Nav links. */
.file-nav a {
    color: #2A0B1C;
    font-weight: 700;
    text-decoration: none;
}

/* Hover: pink. */
.file-nav a:hover {
    color: #BE185D;
}

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

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

/* ----- Polish bottle hero (class) ----- */

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

/* The bottle stacks cap, neck and glass body. */
.bottle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 340px;
}

/* Tall black cap with ridges. */
.cap {
    display: block;
    width: 34%;
    height: 110px;
    border-radius: 10px 10px 4px 4px;
    background-color: #2A0B1C;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 3px, transparent 3px, transparent 7px);
}

/* Glass neck. */
.neck {
    display: block;
    width: 44%;
    height: 16px;
    background-color: #F9A8C9;
}

/* Rounded glass body holding the photo, with a white shine. */
.bottle img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 40px 40px 60px 60px;
    border: 8px solid #F9A8C9;
    box-shadow: inset 0px 0px 0px 2px #FFFFFF;
}

/* Words. */
.bottle-text {
    max-width: 560px;
}

/* Headline. */
.bottle-text h1 {
    font-size: clamp(2.4rem, 6.5vw, 4rem);
    margin-bottom: 14px;
}

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

/* Glossy pink pill button. */
.gloss-btn,
button {
    display: inline-block;
    background-color: #BE185D;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
    color: #FFFFFF;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 40px;
    padding: 13px 28px;
    cursor: pointer;
}

/* Button hover. */
.gloss-btn:hover,
button:hover {
    background-color: #2A0B1C;
}

/* ----- Shade wall (ID) ----- */

/* Pale lilac band. */
#shades {
    background-color: #F1ECFB;
    padding: 56px 16px;
}

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

/* Swatches wrap in rows. */
.nail-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 22px 10px;
}

/* One swatch: nail then its name. */
.nail {
    flex: 1 1 28%;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Painted fingernail with a glossy highlight. */
.tip {
    display: block;
    width: 52px;
    height: 76px;
    margin: 0px auto 8px auto;
    border-radius: 26px 26px 12px 12px;
    background-color: var(--shade);
    background-image: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.45) 22%, rgba(255, 255, 255, 0.45) 30%, transparent 32%);
    box-shadow: 0px 3px 0px rgba(42, 11, 28, 0.15);
}

/* Cranberry Bog. */
.n1 {
    --shade: #9F1239;
}

/* Pumpkin Spice. */
.n2 {
    --shade: #C2410C;
}

/* Mulled Wine. */
.n3 {
    --shade: #7F1D1D;
}

/* Taupe Latte. */
.n4 {
    --shade: #A8927E;
}

/* Forest Floor. */
.n5 {
    --shade: #365314;
}

/* Midnight Plum. */
.n6 {
    --shade: #4C1D45;
}

/* Copper Penny. */
.n7 {
    --shade: #B45F2A;
}

/* Ballet Slipper. */
.n8 {
    --shade: #F5D0DC;
}

/* Smoky Sage. */
.n9 {
    --shade: #8FA58A;
}

/* Black Cherry. */
.n10 {
    --shade: #3B0A1A;
}

/* Ozark Fog. */
.n11 {
    --shade: #B8BEC9;
}

/* Gold Leaf. */
.n12 {
    --shade: #C9A23A;
}

/* ----- How long it lasts (class) ----- */

/* Section spacing. */
.lasts {
    padding: 56px 16px;
}

/* Shelf of bottles. */
.shelf {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 14px;
    border-bottom: 10px solid #E8D5DE;
    padding-bottom: 18px;
    margin-bottom: 28px;
}

/* One bottle and its words. */
.jar {
    flex: 1 1 40%;
    text-align: center;
}

/* Glass bottle: clear outline with a cap on top. */
.glass {
    position: relative;
    width: 80px;
    height: 120px;
    margin: 30px auto 10px auto;
    border: 3px solid #2A0B1C;
    border-radius: 16px 16px 22px 22px;
    background-color: #FFFFFF;
    overflow: hidden;
}

/* Cap above the glass. */
.glass::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 25px;
    width: 24px;
    height: 10px;
    background-color: #2A0B1C;
    z-index: 2;
}

/* Polish inside, filled to the number of days. */
.fill {
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: var(--days);
    background-color: #BE185D;
    background-image: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 22%, rgba(255, 255, 255, 0.35) 30%, transparent 32%);
}

/* 5 days of 28. */
.f5 {
    --days: 18%;
}

/* 14 days. */
.f14 {
    --days: 50%;
}

/* 21 days. */
.f21 {
    --days: 75%;
}

/* 28 days. */
.f28 {
    --days: 96%;
}

/* Service name. */
.jar h3 {
    font-size: 1.6rem;
}

/* Days line. */
.days {
    font-weight: 700;
    color: #6D5AA2;
}

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

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

/* ----- Book (class) ----- */

/* Photo then form. */
.book {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #FCE7F0;
    padding: 56px 16px;
}

/* Manicure photo. */
.book img {
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
}

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

/* Form title. */
.book-form legend {
    font-family: "Italiana", Georgia, serif;
    font-size: 1.8rem;
    color: #BE185D;
    float: left;
    width: 100%;
}

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

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

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

/* ----- Marble footer (class) ----- */

/* White marble with soft gray veins. */
.marble {
    background-color: #F4F2F3;
    background-image: linear-gradient(115deg, transparent 30%, rgba(120, 110, 115, 0.18) 31%, transparent 33%), linear-gradient(160deg, transparent 55%, rgba(120, 110, 115, 0.14) 56%, transparent 58%), linear-gradient(80deg, transparent 70%, rgba(120, 110, 115, 0.12) 71%, transparent 72%);
    border-top: 1px solid #E5DDE1;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

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

@media (min-width: 576px) {

    /* Four swatches per row. */
    .nail {
        flex: 1 1 20%;
    }
}

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

@media (min-width: 768px) {

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

    /* Bottle column. */
    .bottle {
        flex: 0 0 320px;
    }

    /* Six swatches per row. */
    .nail {
        flex: 1 1 14%;
    }

    /* Four bottles in a row. */
    .jar {
        flex: 1 1 20%;
    }

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

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

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

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

@media (min-width: 992px) {

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

    /* The file runs the width; nav sits on it. */
    .file {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* File row holds the nav too. */
    .file-row {
        padding-right: 30px;
    }

    /* Nav laid over the right side of the file. */
    .file-nav {
        display: block;
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
    }

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

    /* Wider sections. */
    #shades,
    .lasts,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

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