/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Clearwater Family Eye Care (fictional business)
    Filename:   styles.css

    Theme: the exam room. The header logo is a pair of glasses drawn
    in CSS: two round lenses joined by a bridge. The hero photo sits
    inside one big round lens with a thick blue rim and a white glare
    streak across it. The signature is a Snellen eye chart on a lit
    white box: seven rows of letters getting smaller, row numbers on
    the left, acuity (20/200 to 20/20) on the right, and a red line
    under the 20/20 row. The frames section draws four frame shapes
    (round, rectangle, cat eye, aviator) with borders and border-radius.
    The footer is a microfiber cleaning cloth.

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

    Colors (WebAIM contrast checked, AA):
      #071D2E text on #F3F9FD page (16.9:1)
      #0369A1 blue text and buttons (5.9:1; white on it 6.2:1)
      #A84E0F orange text (5.6: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) ----- */

/* Clear light-blue page. */
body {
    background-color: #F3F9FD;
    color: #071D2E;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

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

/* Easy-to-read headings. */
h1,
h2,
h3 {
    font-family: "Lexend", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.12;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    color: #0369A1;
    margin-bottom: 12px;
}

/* Links in blue. */
a {
    color: #0369A1;
}

/* Orange outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .specs-row .menu-icon {
    outline: 3px solid #A84E0F;
    outline-offset: 3px;
}

/* ----- Glasses header (class) ----- */

/* White header with a thin blue line. */
.specs {
    position: relative;
    background-color: #FFFFFF;
    border-bottom: 3px solid #0369A1;
    padding: 12px 16px;
}

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

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

/* Logo: glasses then name. */
.logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px 10px;
    font-family: "Lexend", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #0369A1;
}

/* Small part of the name. */
.logo .sub {
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #071D2E;
}

/* The glasses. */
.frames {
    display: flex;
    align-items: center;
}

/* One round lens. */
.lens {
    width: 26px;
    height: 26px;
    border: 4px solid #071D2E;
    border-radius: 50%;
    background-color: #E0F2FE;
}

/* Bridge between the lenses. */
.bridge {
    width: 8px;
    height: 8px;
    border-top: 3px solid #071D2E;
    border-radius: 50% 50% 0px 0px;
}

/* Menu button. */
.menu-icon {
    background-color: #0369A1;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
}

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

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

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

/* Nav links. */
.specs-nav a {
    color: #071D2E;
    font-weight: 700;
    text-decoration: none;
}

/* Hover: blue. */
.specs-nav a:hover {
    color: #0369A1;
}

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

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

/* ----- Lens hero (class) ----- */

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

/* One big lens with a thick blue rim. */
.big-lens {
    position: relative;
    width: 100%;
    max-width: 380px;
    border: 14px solid #0369A1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0px 8px 24px rgba(7, 29, 46, 0.2);
}

/* Photo cut to the circle. */
.big-lens img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* White glare streak across the lens. */
.glare {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(130deg, transparent 18%, rgba(255, 255, 255, 0.45) 20%, rgba(255, 255, 255, 0.45) 26%, transparent 28%, transparent 32%, rgba(255, 255, 255, 0.3) 33%, rgba(255, 255, 255, 0.3) 35%, transparent 36%);
}

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

/* Headline. */
.lens-text h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.5rem);
    margin-bottom: 14px;
}

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

/* Blue button. */
.clear-btn,
button {
    display: inline-block;
    background-color: #0369A1;
    color: #FFFFFF;
    font-family: "Lexend", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    padding: 12px 26px;
    cursor: pointer;
}

/* Button hover. */
.clear-btn:hover,
button:hover {
    background-color: #071D2E;
}

/* ----- Eye chart (ID) ----- */

/* Dim exam room band. */
#chart {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #E2EEF6;
    padding: 56px 16px;
}

/* Lit chart box. */
.snellen-wrap {
    background-color: #FFFFFF;
    border: 6px solid #071D2E;
    box-shadow: 0px 0px 30px rgba(255, 255, 255, 0.9);
    padding: 20px 10px;
    max-width: 460px;
}

/* Rows. */
.snellen {
    list-style: none;
}

/* One row: number, letters, acuity. */
.snellen li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0px;
}

/* Row number. */
.row-num {
    flex: 0 0 22px;
    font-size: 0.75rem;
    color: #576975;
}

/* Letters centered, in a blocky font. */
.letters {
    flex: 1 1 auto;
    text-align: center;
    font-family: "Lexend", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.1;
}

/* Acuity number. */
.acuity {
    flex: 0 0 56px;
    text-align: right;
    font-size: 0.75rem;
    color: #576975;
}

/* Row 1 biggest. */
.r1 .letters {
    font-size: 4.2rem;
}

/* Row 2. */
.r2 .letters {
    font-size: 2.8rem;
}

/* Row 3. */
.r3 .letters {
    font-size: 2.1rem;
}

/* Row 4. */
.r4 .letters {
    font-size: 1.6rem;
}

/* Row 5. */
.r5 .letters {
    font-size: 1.25rem;
}

/* Row 6. */
.r6 .letters {
    font-size: 1rem;
}

/* Row 7: 20/20, smallest, with a red line under it. */
.r7 .letters {
    font-size: 0.8rem;
}

/* The red 20/20 line. */
.line20 {
    border-bottom: 3px solid #DC2626;
}

/* Chart words. */
.chart-text p {
    margin-bottom: 12px;
    max-width: 34rem;
}

/* ----- Frames wall (class) ----- */

/* Section spacing. */
.frames-wall {
    padding: 56px 16px;
}

/* Frames wrap. */
.wall {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

/* One frame card. */
.pair {
    flex: 1 1 100%;
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
}

/* Pair title. */
.pair h3 {
    font-size: 1.2rem;
    margin: 14px 0px 4px 0px;
}

/* Two lenses side by side with a bridge between. */
.glasses {
    display: flex;
    justify-content: center;
    gap: 12px;
    height: 60px;
    align-items: center;
}

/* Shared lens look. */
.glasses span {
    display: block;
    width: 64px;
    height: 50px;
    border: 5px solid #071D2E;
    background-color: #E0F2FE;
}

/* Round frames. */
.round span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

/* Rectangle frames. */
.rect span {
    height: 40px;
    border-radius: 4px;
}

/* Cat-eye frames: swept up at the outer corners. */
.cat span {
    border-color: #A84E0F;
    border-top-width: 8px;
}

/* Left cat-eye lens. */
.cat span:first-child {
    border-radius: 40% 10% 50% 50%;
}

/* Right cat-eye lens. */
.cat span:last-child {
    border-radius: 10% 40% 50% 50%;
}

/* Aviator frames: teardrop lenses in thin metal. */
.avi span {
    border-width: 3px;
    border-color: #9A7B3A;
    height: 52px;
    background-color: #DCE6EE;
}

/* Left aviator lens. */
.avi span:first-child {
    border-radius: 20% 30% 50% 60%;
}

/* Right aviator lens. */
.avi span:last-child {
    border-radius: 30% 20% 60% 50%;
}

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

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

/* ----- Exam booking (class) ----- */

/* Blue band. */
.exam {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #0369A1;
    padding: 56px 16px;
}

/* Eye chart photo. */
.exam img {
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
}

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

/* Form title. */
.exam-form legend {
    font-family: "Lexend", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    float: left;
    width: 100%;
}

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

/* Inputs. */
.exam-form input,
.exam-form select {
    width: 100%;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #576975;
    border-radius: 8px;
}

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

/* ----- Cleaning cloth footer (class) ----- */

/* Soft microfiber with a fine weave. */
.cloth {
    background-color: #071D2E;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 4px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 4px);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

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

@media (min-width: 576px) {

    /* Two frame cards per row. */
    .pair {
        flex: 1 1 45%;
    }
}

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

@media (min-width: 768px) {

    /* Lens beside the words. */
    .lens-hero {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    /* Lens column. */
    .big-lens {
        flex: 0 0 360px;
    }

    /* Chart beside the words. */
    #chart {
        flex-direction: row;
        align-items: center;
    }

    /* Chart column. */
    .snellen-wrap {
        flex: 1 1 50%;
    }

    /* Words column. */
    .chart-text {
        flex: 1 1 45%;
    }

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

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

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

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

@media (min-width: 992px) {

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

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

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

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

    /* Four frame cards in a row. */
    .pair {
        flex: 1 1 22%;
    }

    /* Wider sections. */
    #chart,
    .frames-wall,
    .exam {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    #chart,
    .frames-wall,
    .exam {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
