/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Roadside Rescue Towing (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first and emergency-first: the call button is the
    biggest thing on the page. A light bar across the top of the header
    flashes amber and red with @keyframes (and holds still for reduced
    motion). The response area is three nested circles (border-radius 50%,
    position absolute, centered with translate) with town labels placed
    by percent. High contrast black, white and hazard yellow throughout.
    Media queries at 576px, 768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #0A0A0A black   #FACC15 hazard yellow (behind black text only)
      #B91C1C red (darker than #DC2626 for white text)   #FAFAFA white
      #525252 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* White page with black text, condensed body font. */
body {
    background-color: #FAFAFA;
    color: #0A0A0A;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.1rem;
    line-height: 1.55;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Stencil-style headings. */
h1,
h2,
h3 {
    font-family: "Black Ops One", sans-serif;
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
}

/* Section titles. */
h2 {
    font-size: clamp(1.9rem, 4.4vw, 3rem);
}

/* Black underlined links. */
a {
    color: #0A0A0A;
    font-weight: 700;
}

/* Thick yellow-and-black focus ring. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 4px solid #0A0A0A;
    box-shadow: 0px 0px 0px 8px #FACC15;
}

/* Muted intro text. */
.lead {
    color: #525252;
    margin: 8px 0px 20px 0px;
}

/* ----- Header (class) ----- */

/* Sticky black header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #0A0A0A;
    color: #FAFAFA;
}

/* Light bar: four lamps in a row across the top. */
.lightbar {
    display: flex;
    height: 6px;
}

/* One lamp, flashing. */
.lightbar span {
    flex: 1 1 25%;
    background-color: #FACC15;
    animation: flash 1.2s steps(1) infinite;
}

/* Lamps two and four flash red, out of step with the others. */
.lightbar span:nth-child(even) {
    background-color: #DC2626;
    animation-delay: 0.6s;
}

/* On, then off. */
@keyframes flash {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* Stencil logo. */
.logo {
    font-family: "Black Ops One", sans-serif;
    font-size: 1.4rem;
    line-height: 1.1;
}

/* Yellow second line. */
.logo small {
    display: block;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #FACC15;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    background-color: #FACC15;
    color: #0A0A0A;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Opened menu shows 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: #FAFAFA;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #262626;
}

/* Yellow on hover. */
.site-nav a:hover {
    color: #FACC15;
}

/* Concept notice. */
.concept-note {
    background-color: #262626;
    font-size: 0.85rem;
    text-align: center;
    padding: 3px 16px;
}

/* ----- Hero (class) ----- */

/* Tow truck photo under a strong dark gradient. */
.hero {
    background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.92) 70%), url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    color: #FAFAFA;
    padding: 130px 20px 50px 20px;
}

/* Live status line. */
.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0A0A0A;
    border: 1px solid #FACC15;
    padding: 3px 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Green "on call" dot. */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22C55E;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.6rem, 8vw, 5rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.hero-text > p:not(.status) {
    max-width: 34rem;
    margin-bottom: 24px;
}

/* The giant call button: full width on phones, hazard stripes on its
   left edge. */
.call-big {
    display: block;
    background-color: #FACC15;
    color: #0A0A0A;
    text-align: center;
    text-decoration: none;
    font-family: "Black Ops One", sans-serif;
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    padding: 18px 20px 18px 40px;
    border-left: 24px solid #0A0A0A;
    background-image: repeating-linear-gradient(135deg, #0A0A0A 0px, #0A0A0A 8px, #FACC15 8px, #FACC15 16px);
    background-size: 24px 100%;
    background-repeat: no-repeat;
}

/* White on hover. */
.call-big:hover {
    background-color: #FFFFFF;
}

/* ----- Stay safe (class) ----- */

/* Section spacing. */
.safe {
    padding: 56px 20px;
}

/* Numbered steps with big yellow numbers from a counter. */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 22px 0px;
}

/* One step. */
.steps li {
    counter-increment: step;
    position: relative;
    padding: 12px 0px 12px 64px;
    border-bottom: 2px solid #E5E5E5;
}

/* The step number in a black square. */
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0px;
    top: 8px;
    width: 46px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    background-color: #0A0A0A;
    color: #FACC15;
    font-family: "Black Ops One", sans-serif;
    font-size: 1.5rem;
}

/* Two photos. */
.safe-photos {
    display: flex;
    gap: 12px;
}

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

/* ----- Response area (ID and class) ----- */

/* Yellow band. */
#area {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #FACC15;
    padding: 56px 20px;
}

/* Space under heading. */
.area-text h2 {
    margin-bottom: 10px;
}

/* Zone list. */
.zones {
    list-style: none;
    margin-top: 16px;
}

/* One zone with a black edge. */
.zones li {
    border-left: 6px solid #0A0A0A;
    padding: 6px 12px;
    margin-bottom: 8px;
    background-color: #FEF08A;
}

/* The rings: a square box, parent for the circles and labels. */
.rings {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0px auto;
}

/* Every ring is centered in the box. */
.ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px dashed #0A0A0A;
}

/* Outer ring: 35 to 50 minutes. */
.ring-3 {
    width: 300px;
    height: 300px;
    background-color: #FEF08A;
}

/* Middle ring: 20 to 35 minutes. */
.ring-2 {
    width: 200px;
    height: 200px;
    background-color: #FDE047;
}

/* Inner ring: under 20 minutes. */
.ring-1 {
    width: 100px;
    height: 100px;
    background-color: #0A0A0A;
}

/* The truck base in the middle. */
.base {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #FACC15;
    font-size: 1.8rem;
}

/* Town labels as small black tags. */
.town {
    position: absolute;
    background-color: #0A0A0A;
    color: #FAFAFA;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 1px 6px;
    white-space: nowrap;
}

/* Fair Grove, north. */
.town-a {
    left: 34%;
    top: 12%;
}

/* Springfield, west. */
.town-b {
    left: 2%;
    top: 46%;
}

/* Marshfield, east. */
.town-c {
    right: 0%;
    top: 30%;
}

/* Rogersville, south. */
.town-d {
    left: 46%;
    bottom: 12%;
}

/* ----- Rates (class) ----- */

/* Section spacing. */
.rates {
    padding: 56px 20px;
}

/* Rates table. */
.rates table {
    width: 100%;
    max-width: 520px;
    border-collapse: collapse;
    border: 3px solid #0A0A0A;
}

/* Caption hidden visually (the heading says it). */
.rates caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Cells. */
.rates th,
.rates td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #D4D4D4;
}

/* Header row. */
.rates thead th {
    background-color: #0A0A0A;
    color: #FACC15;
    font-family: "Black Ops One", sans-serif;
    font-weight: 400;
}

/* Prices bold and right aligned. */
.rates td {
    text-align: right;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Flatbed photo. */
.flatbed {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-top: 24px;
}

/* ----- Locate form (class) ----- */

/* Black band. */
.locate {
    background-color: #0A0A0A;
    color: #FAFAFA;
    padding: 56px 20px;
}

/* Form card. */
.locate-form {
    background-color: #FAFAFA;
    color: #0A0A0A;
    border-top: 10px solid #FACC15;
    padding: 22px;
    margin-top: 18px;
    max-width: 620px;
}

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

/* Text and tel inputs. */
.locate-form input[type="text"],
.locate-form input[type="tel"] {
    width: 100%;
    padding: 11px;
    margin-top: 4px;
    border: 2px solid #0A0A0A;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.05rem;
}

/* What happened group. */
.locate-form fieldset {
    border: none;
    margin-top: 14px;
}

/* Group title. */
.locate-form legend {
    font-weight: 700;
}

/* Radio options as boxes. */
.locate-form fieldset label {
    display: inline-block;
    border: 2px solid #0A0A0A;
    padding: 4px 10px;
    margin: 6px 6px 0px 0px;
    cursor: pointer;
}

/* Black radios. */
.locate-form input[type="radio"] {
    accent-color: #0A0A0A;
    margin-right: 4px;
}

/* Red submit button. */
.locate-form button {
    margin-top: 20px;
    background-color: #B91C1C;
    color: #FFFFFF;
    border: none;
    padding: 14px 26px;
    font-family: "Black Ops One", sans-serif;
    font-size: 1.15rem;
    cursor: pointer;
}

/* Darker red on hover. */
.locate-form button:hover {
    background-color: #7F1D1D;
}

/* ----- Footer (class) ----- */

/* Footer. */
.site-footer {
    background-color: #0A0A0A;
    color: #D4D4D4;
    border-top: 1px solid #262626;
    text-align: center;
    font-size: 0.85rem;
    padding: 22px 20px;
}

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

@media (min-width: 576px) {

    /* The call button no longer needs the full width. */
    .call-big {
        display: inline-block;
    }

    /* Taller safe photos. */
    .safe-photos img {
        height: 240px;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .safe,
    #area,
    .rates,
    .locate {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Taller hero. */
    .hero {
        padding-top: 180px;
        padding-bottom: 80px;
    }

    /* Rings and text side by side. */
    #area {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    /* Text column. */
    .area-text {
        flex: 1 1 50%;
    }

    /* Rings keep their size. */
    .rings {
        flex: 0 0 300px;
    }

    /* Table and photo side by side. */
    .rates {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        column-gap: 40px;
    }

    /* Heading and intro rows. */
    .rates h2,
    .rates .lead {
        flex: 1 1 100%;
    }

    /* Table column. */
    .rates table {
        flex: 1 1 45%;
    }

    /* Photo column. */
    .flatbed {
        flex: 1 1 45%;
        width: auto;
        height: 340px;
        margin-top: 0px;
    }
}

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

@media (min-width: 992px) {

    /* No Menu button on desktop. */
    .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;
    }

    /* Steps and photos side by side. */
    .safe {
        display: flex;
        flex-wrap: wrap;
        column-gap: 50px;
    }

    /* Heading row. */
    .safe h2 {
        flex: 1 1 100%;
    }

    /* Steps column. */
    .steps {
        flex: 1 1 50%;
    }

    /* Photos stack in their column. */
    .safe-photos {
        flex: 1 1 40%;
        flex-direction: column;
        margin-top: 22px;
    }

    /* Photos full column width. */
    .safe-photos img {
        width: 100%;
        height: 170px;
    }

    /* Bigger rings. */
    .rings {
        transform: scale(1.25);
        margin: 40px;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .safe,
    #area,
    .rates,
    .locate {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* The light bar stays lit instead of flashing. */
    .lightbar span {
        animation: none;
    }
}
