/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Spark Plug Small Engine Repair (fictional business)
    Filename:   styles.css

    Theme: the repair bench. The logo is a spark plug lying on its
    side: a steel terminal, a white ceramic insulator with ribs that
    carries the name, a hex nut, and threads (a repeating gradient).
    In the hero a pull-start cord drops from the top of the photo with
    a black T-handle on the end. The signature is a fuel-age gauge: a
    half-circle dial in green, yellow and red (conic-gradient) with its
    needle in the red, explaining why old gas keeps mowers from
    starting. The repair section is a manila claim tag on a twisted
    wire with the machine, problem, fix and total. The footer is a
    concrete shop floor with an oil drip.

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

    Colors (WebAIM contrast checked, AA):
      #1A1405 text on #FEFCF3 page (18.4:1)
      #885D03 gold text (5.8:1 on the page)
      #1A1405 on #CA8A04 gold buttons (7.1:1)
      #B91C1C red text (6.3: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) ----- */

/* Warm off-white page. */
body {
    background-color: #FEFCF3;
    color: #1A1405;
    font-family: "Barlow", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

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

/* Heavy slab headings. */
h1,
h2 {
    font-family: "Alfa Slab One", Georgia, serif;
    font-weight: 400;
    line-height: 1.08;
}

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

/* Links in gold. */
a {
    color: #885D03;
}

/* Red outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-check:focus-visible + .plug-row .menu-icon {
    outline: 3px solid #B91C1C;
    outline-offset: 3px;
}

/* ----- Spark plug header (class) ----- */

/* Dark bench header. */
.plug {
    position: relative;
    background-color: #1A1405;
    color: #FFFFFF;
    padding: 14px 16px;
}

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

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

/* The plug: parts in a row, then the subtitle under. */
.plug-body {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Steel terminal cap. */
.terminal {
    width: 14px;
    height: 18px;
    background-color: #9CA3AF;
    border-radius: 4px 0px 0px 4px;
}

/* White ceramic insulator with ribs, carrying the name. */
.insulator {
    background-color: #F8F8F4;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 14px, rgba(0, 0, 0, 0.06) 14px, rgba(0, 0, 0, 0.06) 16px);
    color: #1A1405;
    font-family: "Alfa Slab One", Georgia, serif;
    font-size: 1.15rem;
    padding: 4px 14px;
    border-radius: 6px;
}

/* Hex nut. */
.hex {
    width: 26px;
    height: 34px;
    background-color: #CA8A04;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Threads. */
.threads {
    width: 30px;
    height: 18px;
    background-image: repeating-linear-gradient(80deg, #9CA3AF 0px, #9CA3AF 3px, #4B5563 3px, #4B5563 5px);
    border-radius: 0px 4px 4px 0px;
}

/* Subtitle under the plug. */
.sub {
    flex: 1 1 100%;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #FACC15;
    padding-top: 4px;
}

/* Menu button. */
.menu-icon {
    background-color: #CA8A04;
    color: #1A1405;
    font-weight: 600;
    padding: 4px 12px;
    cursor: pointer;
}

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

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

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

/* Nav links white. */
.plug-nav a {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}

/* Hover: yellow. */
.plug-nav a:hover {
    color: #FACC15;
}

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

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

/* ----- Pull cord hero (class) ----- */

/* Words then photo. */
.pull {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 24px 16px 60px 16px;
}

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

/* Hero words. */
.pull-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Photo with the pull cord. */
.pull-photo {
    position: relative;
}

/* Photo. */
.pull-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border: 6px solid #1A1405;
}

/* Cord. */
.cord {
    position: absolute;
    top: 0px;
    right: 60px;
    width: 3px;
    height: 120px;
    background-color: #F8F8F4;
    border-left: 1px solid #1A1405;
    z-index: 2;
}

/* T-handle at the end of the cord. */
.grip {
    position: absolute;
    top: 118px;
    right: 36px;
    width: 52px;
    height: 16px;
    border-radius: 8px;
    background-color: #1A1405;
    border: 2px solid #CA8A04;
    z-index: 2;
}

/* Gold button. */
.spark-btn,
button {
    display: inline-block;
    background-color: #CA8A04;
    color: #1A1405;
    font-family: "Barlow", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-bottom: 5px solid #885D03;
    padding: 12px 24px;
    cursor: pointer;
}

/* Button hover. */
.spark-btn:hover,
button:hover {
    background-color: #FACC15;
}

/* ----- Fuel gauge (ID) ----- */

/* Pale band. */
#gas {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #F5EED7;
    padding: 56px 16px;
}

/* Gauge box. */
.gauge-box {
    background-color: #1A1405;
    border-radius: 14px;
    padding: 24px;
    color: #FFFFFF;
    max-width: 380px;
}

/* Half-circle dial: green, yellow, red. */
.dial {
    position: relative;
    width: 240px;
    height: 120px;
    margin: 0px auto 18px auto;
    border-radius: 120px 120px 0px 0px;
    background-image: conic-gradient(from 270deg at 50% 100%, #22C55E 0deg 60deg, #FACC15 60deg 120deg, #DC2626 120deg 180deg, transparent 180deg);
    overflow: hidden;
}

/* Dark inner cutout to make the dial a ring. */
.dial::after {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 0px;
    height: 90px;
    border-radius: 90px 90px 0px 0px;
    background-color: #1A1405;
}

/* Needle pointing into the red. */
.needle {
    position: absolute;
    left: 50%;
    bottom: 0px;
    width: 4px;
    height: 104px;
    margin-left: -2px;
    background-color: #FFFFFF;
    transform-origin: 50% 100%;
    transform: rotate(60deg);
    z-index: 2;
}

/* Needle hub. */
.hub {
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-radius: 50%;
    background-color: #CA8A04;
    z-index: 3;
}

/* Key under the dial. */
.dial-key {
    list-style: none;
}

/* One key line with a color chip. */
.dial-key li {
    padding: 4px 0px 4px 22px;
    position: relative;
    font-size: 0.95rem;
}

/* Color chip. */
.dial-key li::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--kc);
}

/* Fresh. */
.k-fresh {
    --kc: #22C55E;
}

/* Stale. */
.k-stale {
    --kc: #FACC15;
}

/* Varnish. */
.k-varnish {
    --kc: #DC2626;
}

/* Gauge words. */
.gas-text {
    max-width: 520px;
}

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

/* ----- Repair tag (class) ----- */

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

/* Tag then photos. */
.tag-row {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Manila tag with a clipped corner and a reinforced hole. */
.repair-tag {
    position: relative;
    max-width: 380px;
    background-color: #EAD9AE;
    padding: 50px 22px 22px 22px;
    clip-path: polygon(14% 0%, 86% 0%, 100% 10%, 100% 100%, 0% 100%, 0% 10%);
    font-size: 0.95rem;
}

/* Twisted wire through the hole. */
.wire {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    border: 3px solid #6B7280;
    box-shadow: 0px 0px 0px 5px #C9B47A;
    background-color: #FEFCF3;
}

/* Tag number. */
.tag-no {
    font-family: "Alfa Slab One", Georgia, serif;
    font-size: 1.3rem;
    color: #B91C1C;
    border-bottom: 2px solid #1A1405;
    margin-bottom: 6px;
}

/* Tag lines. */
.repair-tag p {
    padding: 4px 0px;
    border-bottom: 1px solid #B9A26A;
}

/* Field names. */
.field {
    display: inline-block;
    width: 74px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

/* Total line. */
.tag-total {
    display: flex;
    justify-content: space-between;
    font-family: "Alfa Slab One", Georgia, serif;
    font-size: 1.4rem;
}

/* Ready stamp. */
.tag-done {
    display: inline-block;
    margin-top: 8px;
    border: 3px solid #B91C1C;
    color: #B91C1C;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 10px;
    transform: rotate(-6deg);
}

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

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

/* ----- Drop off (class) ----- */

/* Dark band. */
.drop {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #1A1405;
    padding: 56px 16px;
}

/* Riding mower photo. */
.drop img {
    height: 260px;
    object-fit: cover;
}

/* Form box. */
.drop-form fieldset {
    border: none;
    background-color: #FEFCF3;
    padding: 24px;
    border-top: 8px solid #CA8A04;
}

/* Form title. */
.drop-form legend {
    font-family: "Alfa Slab One", Georgia, serif;
    font-size: 1.4rem;
    float: left;
    width: 100%;
}

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

/* Text inputs and select. */
.drop-form input[type="text"],
.drop-form input[type="tel"],
.drop-form select {
    width: 100%;
    font-family: "Barlow", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #6B6455;
}

/* Pickup checkbox line. */
.pick {
    margin-top: 12px;
}

/* Checkbox label inline. */
.pick label {
    display: inline;
}

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

/* ----- Shop floor footer (class) ----- */

/* Concrete with an oil drip. */
.floor {
    background-color: #78716C;
    background-image: radial-gradient(ellipse 60px 26px at 85% 50%, rgba(20, 10, 4, 0.55), transparent), radial-gradient(circle, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 6px 6px;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

/* Footer text on a dark strip so it reads over the concrete. */
.floor p {
    display: inline-block;
    background-color: #1A1405;
    padding: 2px 8px;
    margin: 2px 0px;
}

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

@media (min-width: 576px) {

    /* Taller photo. */
    .pull-photo img {
        height: 380px;
    }
}

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

@media (min-width: 768px) {

    /* Gauge beside the words. */
    #gas {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 50px;
    }

    /* Tag beside the photos. */
    .tag-row {
        flex-direction: row;
        align-items: center;
    }

    /* Tag column. */
    .repair-tag {
        flex: 0 0 360px;
    }

    /* Photo column. */
    .tag-photos {
        flex: 1 1 auto;
    }

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

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

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

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

@media (min-width: 992px) {

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

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

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

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

    /* Words beside the photo. */
    .pull {
        flex-direction: row;
        align-items: center;
        padding: 40px 40px 70px 40px;
    }

    /* Each half. */
    .pull-text,
    .pull-photo {
        flex: 1 1 50%;
    }

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

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

@media (min-width: 1200px) {

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