/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Whirl & Fix Appliance Repair (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, clean and bright like a new appliance.
    The hero has a front-load washer built from boxes and circles: the
    drum is a circle with a conic-looking stripe pattern made from a
    repeating-linear-gradient, and it spins forever with @keyframes. A
    brands ticker slides sideways inside a window with overflow: hidden.
    Error codes are <kbd> elements styled like a seven-segment display.
    "Fix or replace" shows two bars whose widths are the two prices as
    percentages of the bigger one. Motion stops for prefers-reduced-motion.
    Media queries at 576px, 768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #0B1B2B ink   #0369A1 blue (5.9:1 with white)   #BE123C rose text
      (darker than #F43F5E)   #F3F8FC page   #4B5B6B muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Pale blue page, ink text. */
body {
    background-color: #F3F8FC;
    color: #0B1B2B;
    font-family: Outfit, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Heavy headings. */
h1,
h2 {
    font-weight: 800;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: 10px;
}

/* Blue links. */
a {
    color: #0369A1;
    font-weight: 600;
}

/* Rose focus ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #BE123C;
    outline-offset: 3px;
}

/* Lead paragraph. */
.lead {
    color: #4B5B6B;
    max-width: 44rem;
    margin-bottom: 24px;
}

/* ----- Header (class) ----- */

/* Sticky white header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #FFFFFF;
    border-bottom: 1px solid #D6E4F0;
}

/* Logo and menu row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo text. */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.5rem;
}

/* Rose ampersand. */
.logo .amp {
    color: #BE123C;
}

/* Little dial in the logo, a ring with a pointer. */
.logo-dial {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 4px solid #0369A1;
    background-image: linear-gradient(90deg, transparent 45%, #0369A1 45%, #0369A1 55%, transparent 55%);
    background-size: 100% 50%;
    background-repeat: no-repeat;
}

/* Hidden menu checkbox, still keyboard reachable. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Rounded Menu button. */
.menu-icon {
    background-color: #0369A1;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 10px;
    padding: 5px 14px;
    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: #0B1B2B;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #E2ECF5;
}

/* Blue on hover. */
.site-nav a:hover {
    color: #0369A1;
}

/* Concept notice. */
.concept-note {
    background-color: #E2ECF5;
    font-size: 0.8rem;
    text-align: center;
    padding: 3px 16px;
}

/* ----- Hero (class) ----- */

/* Text then washer on phones. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 44px 20px 56px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.1rem, 5.6vw, 3.6rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.hero-text p {
    max-width: 34rem;
    margin-bottom: 22px;
}

/* Rounded blue button. */
.button,
button {
    display: inline-block;
    background-color: #0369A1;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    margin: 0px 8px 10px 0px;
    font-family: Outfit, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* Darker on hover. */
.button:hover,
button:hover {
    background-color: #075985;
}

/* Soft secondary button. */
.button-soft {
    background-color: #DCEBF7;
    color: #0B1B2B;
}

/* Soft hover. */
.button-soft:hover {
    background-color: #C3DCF0;
}

/* Washer and the note about its code, side by side on phones. */
.diagnose {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #FFFFFF;
    border: 2px solid #E2ECF5;
    border-radius: 14px;
    padding: 14px;
}

/* The note about the code. */
.diagnose figcaption {
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Code question in bold on its own line. */
.diagnose strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

/* The washer cabinet, small on phones. */
.washer {
    flex: 0 0 128px;
    width: 128px;
    margin: 0px auto;
    background-color: #FFFFFF;
    border: 3px solid #CBD5E1;
    border-radius: 18px;
    box-shadow: 0px 10px 24px rgba(11, 27, 43, 0.15);
    padding-bottom: 12px;
}

/* Control panel strip across the top. */
.panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-bottom: 3px solid #E2ECF5;
}

/* Round knob. */
.knob {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #94A3B8;
    background-color: #E2ECF5;
}

/* Little display showing a code. */
.screen {
    background-color: #0B1B2B;
    color: #FDA4AF;
    font-family: "Courier New", monospace;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 1px 6px;
    border-radius: 4px;
}

/* Blinking status light. */
.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #BE123C;
    animation: blink 1.2s steps(2, start) infinite;
}

/* Light on and off. */
@keyframes blink {
    to {
        visibility: hidden;
    }
}

/* Round door with a chrome ring. */
.door {
    width: 92px;
    height: 92px;
    margin: 12px auto 0px auto;
    border-radius: 50%;
    border: 7px solid #CBD5E1;
    background-color: #0B1B2B;
    padding: 6px;
}

/* The drum: striped circle that turns. */
.drum {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #38BDF8;
    background-image: repeating-linear-gradient(45deg, #38BDF8 0px, #38BDF8 12px, #0369A1 12px, #0369A1 24px);
    animation: spin 2.4s linear infinite;
}

/* One full turn. */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ----- Brands ticker (class) ----- */

/* Dark strip. */
.ticker {
    display: flex;
    align-items: center;
    background-color: #0B1B2B;
    color: #FFFFFF;
}

/* Label stays still on the left. */
.ticker-label {
    flex: 0 0 auto;
    background-color: #BE123C;
    font-weight: 600;
    padding: 10px 14px;
}

/* Window hides the row that slides out of view. */
.ticker-window {
    flex: 1 1 auto;
    overflow: hidden;
}

/* The row is wider than the window and slides left. */
.ticker-row {
    white-space: nowrap;
    padding: 10px 0px;
    animation: slide 26s linear infinite;
}

/* Slide one half of the row, which repeats, so it loops smoothly. */
@keyframes slide {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ----- What we fix (class) ----- */

/* Section spacing. */
.fix {
    padding: 56px 20px;
}

/* Tiles wrap. */
.tiles {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0px 26px 0px;
}

/* Each tile is a white rounded square. */
.tiles li {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 20px 10px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0px 4px 14px rgba(11, 27, 43, 0.08);
}

/* Big blue icons. */
.tiles i {
    font-size: 1.8rem;
    color: #0369A1;
}

/* Photos stack on phones. */
.fix-photos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Rounded photos. */
.fix-photos img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
}

/* ----- Error codes (ID) ----- */

/* White band. */
#codes {
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* Code table. */
#codes table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

/* Caption. */
#codes caption {
    text-align: left;
    color: #4B5B6B;
    padding-bottom: 8px;
}

/* Cells. */
#codes th,
#codes td {
    text-align: left;
    vertical-align: top;
    padding: 12px 8px;
    border-bottom: 1px solid #E2ECF5;
}

/* Header row. */
#codes thead th {
    border-bottom: 3px solid #0369A1;
}

/* Codes look like the washer's display. */
kbd {
    display: inline-block;
    background-color: #0B1B2B;
    color: #FDA4AF;
    font-family: "Courier New", monospace;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    padding: 3px 9px;
    border-radius: 6px;
    box-shadow: inset 0px -3px 0px #334155;
}

/* Rows highlight on hover. */
#codes tbody tr:hover {
    background-color: #F3F8FC;
}

/* ----- Fix or replace (class) ----- */

/* Photo then text on phones. */
.replace {
    display: flex;
    flex-direction: column;
}

/* Photo crop. */
.replace > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Text area. */
.replace-text {
    padding: 44px 20px 56px 20px;
}

/* Comparison card. */
.compare {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    margin-top: 22px;
    box-shadow: 0px 4px 14px rgba(11, 27, 43, 0.08);
}

/* Card label. */
.compare-label {
    font-weight: 600;
    margin-bottom: 12px;
}

/* A bar with its name above. */
.bar-row {
    margin-bottom: 12px;
}

/* Bar name. */
.bar-name {
    display: block;
    font-size: 0.9rem;
    color: #4B5B6B;
}

/* A price bar. */
.bar {
    display: block;
    height: 34px;
    line-height: 34px;
    border-radius: 8px;
    padding-left: 12px;
    font-weight: 800;
    color: #FFFFFF;
}

/* New price is the full width. */
.bar-new {
    width: 100%;
    background-color: #4B5B6B;
}

/* Repair is 165 / 700, about 24 percent. */
.bar-fix {
    width: 24%;
    min-width: 70px;
    background-color: #0369A1;
}

/* Verdict line. */
.verdict {
    font-weight: 600;
    color: #15803D;
    margin-top: 6px;
}

/* ----- Booking (class) ----- */

/* Intro and form stack on phones. */
.book {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background-color: #0B1B2B;
    color: #F3F8FC;
    padding: 56px 20px;
}

/* Intro photo. */
.book-intro img {
    margin-top: 20px;
    border-radius: 16px;
    height: 220px;
    width: 100%;
    object-fit: cover;
}

/* Form card. */
.book form {
    background-color: #FFFFFF;
    color: #0B1B2B;
    border-radius: 18px;
    padding: 24px 20px;
}

/* Labels. */
.book label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
}

/* Fields. */
.book input[type="text"],
.book input[type="tel"],
.book select {
    width: 100%;
    font: inherit;
    padding: 10px 12px;
    border: 2px solid #CBD5E1;
    border-radius: 10px;
    margin-top: 4px;
}

/* Time window picker. */
.window-pick {
    border: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

/* Legend. */
.window-pick legend {
    font-weight: 600;
    margin-bottom: 6px;
}

/* Radios hidden but focusable. */
.window-pick input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Window buttons. */
.window-pick label {
    flex: 1 1 20%;
    text-align: center;
    margin-top: 0px;
    border: 2px solid #CBD5E1;
    border-radius: 10px;
    padding: 8px 4px;
    cursor: pointer;
}

/* Picked window. */
.window-pick input:checked + label {
    background-color: #0369A1;
    border-color: #0369A1;
    color: #FFFFFF;
}

/* Keyboard focus. */
.window-pick input:focus-visible + label {
    outline: 3px solid #BE123C;
    outline-offset: 2px;
}

/* Space above the button. */
.book button {
    margin-top: 18px;
}

/* ----- Footer (class) ----- */

/* Footer. */
.site-footer {
    background-color: #0B1B2B;
    color: #B6C6D6;
    border-top: 1px solid #1E3A52;
    font-size: 0.85rem;
    text-align: center;
    padding: 24px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Three tiles per row. */
    .tiles li {
        flex: 1 1 28%;
    }

    /* Photos side by side. */
    .fix-photos {
        flex-direction: row;
    }

    /* Each photo half. */
    .fix-photos img {
        width: 50%;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .fix,
    #codes,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Photo beside the replace text. */
    .replace {
        flex-direction: row;
    }

    /* Photo column. */
    .replace > img {
        width: 42%;
        height: auto;
    }

    /* Text column. */
    .replace-text {
        flex: 1 1 58%;
        padding: 56px 40px;
    }

    /* Intro beside the form. */
    .book {
        flex-direction: row;
        gap: 40px;
    }

    /* Intro column. */
    .book-intro {
        flex: 1 1 42%;
    }

    /* Form column. */
    .book form {
        flex: 1 1 58%;
    }
}

/* ----- 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: 24px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Hero text and washer side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 60px;
        padding-top: 70px;
        padding-bottom: 76px;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 60%;
    }

    /* Washer above its note on laptops. */
    .diagnose {
        flex: 0 0 340px;
        flex-direction: column;
        padding: 22px;
    }

    /* Bigger washer. */
    .washer {
        flex: 0 0 auto;
        width: 230px;
        padding-bottom: 20px;
    }

    /* Bigger knob. */
    .knob {
        width: 26px;
        height: 26px;
    }

    /* Bigger panel. */
    .panel {
        padding: 10px 14px;
    }

    /* Bigger door. */
    .door {
        width: 170px;
        height: 170px;
        border-width: 11px;
        padding: 10px;
    }

    /* Six tiles in a row. */
    .tiles li {
        flex: 1 1 14%;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .fix,
    #codes,
    .book {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Ticker label lines up with the content. */
    .ticker-label {
        margin-left: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* Drum, light and ticker hold still. */
    .drum,
    .light,
    .ticker-row {
        animation: none;
    }
}
