/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Main Street Pharmacy (fictional business)
    Filename:   styles.css

    Theme: the hometown drugstore. The header is a white prescription
    label with a blue rule along the top and bottom and a red "Rx"
    stamp. The hero is the shop window: the storefront photo behind a
    dark glass panel with "Main Street Pharmacy, Est. 1952" painted in
    gold leaf (a gold gradient with a dark outline shadow). The
    signature is a big prescription bottle label with numbered red
    pins beside matching explanations, and a yellow warning sticker
    on the side. The pill pack section draws a seven-day pill
    organizer with colored lids and pills inside. The footer is a
    white paper pharmacy bag folded and stapled.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #0B1530 text on #F5F8FF page (17.3:1)
      #1E40AF blue text and buttons (8.1:1; white on it 8.7:1)
      #C02121 red text (5.8:1 on the page)
      #FFFFFF on #C02121 Rx stamp (6.0:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Clean pale-blue page. */
body {
    background-color: #F5F8FF;
    color: #0B1530;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Classic serif headings. */
h1,
h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
}

/* Section titles. */
h2 {
    font-size: clamp(1.6rem, 4.3vw, 2.4rem);
    color: #1E40AF;
    margin-bottom: 12px;
}

/* Links in blue. */
a {
    color: #1E40AF;
}

/* Red outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .label-row .menu-icon {
    outline: 3px solid #C02121;
    outline-offset: 3px;
}

/* ----- Prescription label header (class) ----- */

/* White label with blue rules top and bottom. */
.label-head {
    position: relative;
    background-color: #FFFFFF;
    border-top: 6px solid #1E40AF;
    border-bottom: 3px double #1E40AF;
    padding: 12px 16px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Logo and menu in a row. */
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo with an Rx stamp. */
.logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px 10px;
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    font-size: 1.3rem;
}

/* Small part of the name. */
.logo .sub {
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Red Rx stamp. */
.rx {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #C02121;
    color: #FFFFFF;
    font-style: italic;
    border-radius: 6px;
}

/* Menu button. */
.menu-icon {
    background-color: #1E40AF;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.label-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .label-nav {
    display: block;
}

/* Nav list. */
.label-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links. */
.label-nav a {
    color: #0B1530;
    font-weight: 700;
    text-decoration: none;
}

/* Hover: red underline. */
.label-nav a:hover {
    text-decoration: underline;
    text-decoration-color: #C02121;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Shop window hero (class) ----- */

/* Photo with the glass panel over it. */
.window {
    position: relative;
    background-color: #0B1530;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
}

/* Storefront photo behind the glass. */
.window img {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark glass panel with a reflection streak. */
.glass {
    position: relative;
    background-color: rgba(11, 21, 48, 0.86);
    background-image: linear-gradient(120deg, transparent 0%, transparent 60%, rgba(255, 255, 255, 0.07) 60%, rgba(255, 255, 255, 0.07) 70%, transparent 70%);
    color: #FFFFFF;
    margin: 120px 16px 30px 16px;
    padding: 26px 22px;
    border: 6px solid #3A2A12;
}

/* Gold leaf lettering on the glass. */
.gold {
    font-family: "Libre Baskerville", Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.1;
    color: #F2D27A;
    text-shadow: 1px 1px 0px #6B4E12, 2px 2px 0px #3A2A12;
    border-bottom: 2px solid #C9A23A;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

/* "Est. 1952" smaller on its own line. */
.gold span {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Headline. */
.glass h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    margin-bottom: 12px;
}

/* Glass words. */
.glass p {
    margin-bottom: 18px;
}

/* White button with blue text, like a counter sign. */
.rx-btn,
button {
    display: inline-block;
    background-color: #FFFFFF;
    color: #1E40AF;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid #1E40AF;
    border-radius: 4px;
    padding: 11px 22px;
    cursor: pointer;
}

/* Button hover. */
.rx-btn:hover,
button:hover {
    background-color: #1E40AF;
    color: #FFFFFF;
}

/* ----- Read your label (class) ----- */

/* Section spacing. */
.read {
    padding: 56px 16px;
}

/* Label then callouts. */
.label-row-wide {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Big bottle label: white, wrapped around an amber bottle edge. */
.bottle-label {
    position: relative;
    background-color: #FFFFFF;
    border: 2px solid #0B1530;
    border-left: 16px solid #D97706;
    border-right: 16px solid #D97706;
    padding: 16px 18px 50px 18px;
    font-size: 0.92rem;
}

/* Label top line. */
.bl-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-weight: 700;
    border-bottom: 2px solid #1E40AF;
    padding-bottom: 4px;
    margin-bottom: 8px;
    color: #1E40AF;
}

/* One label line. */
.bl-line,
.bl-drug {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0px;
}

/* Drug name bigger. */
.bl-drug {
    font-weight: 700;
    font-size: 1.15rem;
}

/* Red number pin. */
.pin {
    flex: 0 0 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #C02121;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Yellow warning sticker on the side of the label. */
.bl-sticker {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: #FDE047;
    color: #0B1530;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 2px 8px;
    transform: rotate(-3deg);
}

/* Callout list: numbers match the pins. */
.callouts {
    padding-left: 24px;
}

/* One callout. */
.callouts li {
    padding: 6px 0px;
}

/* Number markers in red. */
.callouts li::marker {
    color: #C02121;
    font-weight: 700;
}

/* ----- Pill organizer (ID) ----- */

/* Pale band. */
#pillbox {
    background-color: #E6ECFA;
    padding: 56px 16px;
}

/* Intro. */
.intro {
    max-width: 44rem;
    margin-bottom: 24px;
}

/* The organizer: a clear tray of seven compartments. */
.organizer {
    display: flex;
    gap: 4px;
    background-color: #CBD5E1;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 28px;
}

/* One day. */
.day {
    flex: 1 1 14%;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
}

/* Colored lid with the day letter. */
.lid {
    display: block;
    text-align: center;
    font-weight: 700;
    color: #0B1530;
    padding: 6px 0px;
    background-color: #93C5FD;
}

/* Alternate lid colors. */
.day:nth-child(even) .lid {
    background-color: #FDE68A;
}

/* Pills inside. */
.pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    min-height: 70px;
}

/* One pill: a capsule. */
.pill {
    display: block;
    width: 28px;
    height: 13px;
    border-radius: 7px;
}

/* White tablet. */
.p-a {
    background-color: #F1F5F9;
    border: 1px solid #94A3B8;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* Two-tone capsule. */
.p-b {
    background-image: linear-gradient(90deg, #C02121 50%, #FDE68A 50%);
}

/* Blue oval. */
.p-c {
    background-color: #3B82F6;
}

/* Two photos. */
.pill-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.pill-photos img {
    width: 50%;
    height: 230px;
    object-fit: cover;
}

/* ----- Refill (class) ----- */

/* Photo then form. */
.refill {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 16px;
}

/* Bottle photo. */
.refill img {
    height: 260px;
    object-fit: cover;
}

/* Form box like a counter slip. */
.refill-form fieldset {
    border: 2px solid #1E40AF;
    border-top: 10px solid #1E40AF;
    padding: 22px;
    background-color: #FFFFFF;
}

/* Form title. */
.refill-form legend {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0px 8px;
    background-color: #FFFFFF;
}

/* Labels. */
.refill-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.refill-form input,
.refill-form select {
    width: 100%;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #5B6475;
    border-radius: 4px;
}

/* Submit spacing. */
.refill-form button {
    margin-top: 18px;
}

/* ----- Paper bag footer (class) ----- */

/* White bag folded over with two staples. */
.bag {
    background-color: #FFFFFF;
    background-image: linear-gradient(90deg, transparent 30%, #94A3B8 30%, #94A3B8 34%, transparent 34%, transparent 66%, #94A3B8 66%, #94A3B8 70%, transparent 70%);
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: 0px 18px;
    border-top: 12px solid #E2E8F0;
    font-size: 0.82rem;
    text-align: center;
    padding: 34px 16px 26px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Bigger pills area. */
    .pills {
        min-height: 90px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Glass panel on the left of the photo. */
    .glass {
        max-width: 560px;
        margin: 80px 40px 50px 40px;
    }

    /* Label beside the callouts. */
    .label-row-wide {
        flex-direction: row;
        align-items: center;
    }

    /* Label column. */
    .bottle-label {
        flex: 1 1 50%;
    }

    /* Callout column. */
    .callouts {
        flex: 1 1 45%;
    }

    /* Photo beside the form. */
    .refill {
        flex-direction: row;
    }

    /* Each half. */
    .refill img,
    .refill-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .refill img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Logo left, nav right. */
    .label-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .label-nav {
        display: block;
    }

    /* Nav in a row. */
    .label-nav ul {
        flex-direction: row;
        gap: 26px;
        padding-top: 0px;
    }

    /* Wider sections. */
    .read,
    #pillbox,
    .refill {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .read,
    #pillbox,
    .refill {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Glass lines up with the column. */
    .glass {
        margin-left: calc((100% - 1140px) / 2);
    }
}
