/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Ridgeline Auto Repair (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, dark "garage" style. Base rules are the
    phone layout; media queries at 576px, 768px, 992px and 1200px add to
    it. Flexbox for layout, a sticky header, a fixed call bar on phones
    (position: fixed, from the travel blog), and <details> for the
    "What's that noise?" answers.

    Colors (WebAIM checked, AA):
      #0E0F11 black   #17191C panel   #2A2D32 edge   #FFD000 yellow   #E53935 red   #C9CCD1 text   #9AA0A8 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Near-black page, light grey text, Rubik font. The bottom padding
   leaves room for the fixed call bar on phones. */
body {
    background-color: #0E0F11;
    color: #C9CCD1;
    font-family: Rubik, sans-serif;
    font-size: 1.03rem;
    line-height: 1.6;
    padding: 0px 0px 56px 0px;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Squared-off techy headings in Chakra Petch. */
h1,
h2,
h3 {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFFFFF;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin: 0px 0px 10px 0px;
}

/* The second half of each section title in yellow. */
h2 span,
h1 span {
    color: #FFD000;
}

/* Yellow focus ring. */
a:focus-visible,
summary:focus-visible {
    outline: 3px solid #FFD000;
    outline-offset: 3px;
}

/* Muted intro under section titles. */
.lead {
    color: #9AA0A8;
    max-width: 34rem;
    margin: 0px 0px 30px 0px;
}

/* ----- Banner and header (class) ----- */

/* Yellow strip labeling the concept. */
.concept-banner {
    background-color: #FFD000;
    color: #000000;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
}

/* Sticky dark header with a hairline under it. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 10;
    background-color: #0E0F11;
    border-bottom: 1px solid #2A2D32;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

/* White logo text. */
.logo {
    font-family: "Chakra Petch", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Two slanted bars (yellow and red) as the logo mark. transform: skewX
   slants the box; the box-shadow copies it in red 14px to the right. */
.slash {
    width: 10px;
    height: 26px;
    background-color: #FFD000;
    transform: skewX(-18deg);
    box-shadow: 14px 0px 0px #E53935;
}

/* Nav and "open now" are hidden on phones; shown at 992px. */
.site-nav,
.open-now {
    display: none;
}

/* ----- Hero (class) ----- */

/* The mechanic photo behind a dark layer. On phones the photo spans the
   full width at the top (100% auto) and the dark layer covers the whole
   hero, getting darker toward the bottom where the text sits. */
.hero {
    background-color: #0E0F11;
    background-image: linear-gradient(180deg, #0E0F1166 0%, #0E0F11E6 45%, #0E0F11 70%), url("images/hero.jpg");
    background-size: cover, 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
}

/* Text block, pushed down so the photo shows above it on phones. */
.hero-text {
    max-width: 1240px;
    margin: 0px auto;
    padding: 220px 20px 56px 20px;
}

/* Small yellow line above the headline. */
.kicker {
    color: #FFD000;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Big headline. */
.hero h1 {
    font-size: clamp(2.8rem, 5.6vw, 5rem);
    margin: 12px 0px 16px 0px;
}

/* "old part." on its own line. */
.hero h1 span {
    display: block;
}

/* Hero paragraph. */
.hero-text > p:not(.kicker) {
    font-size: 1.15rem;
    max-width: 32rem;
    margin: 0px 0px 26px 0px;
}

/* Slanted buttons. clip-path cuts the left and right ends at an angle,
   matching the slanted logo bars. */
.button {
    display: inline-block;
    font-family: "Chakra Petch", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9em 1.6em;
    margin: 0px 6px 10px 0px;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

/* Yellow main button. */
.button-yellow {
    background-color: #FFD000;
    color: #000000;
}

/* Dark second button. */
.button-dark {
    background-color: #2A2D32;
    color: #FFFFFF;
}

/* Both buttons turn white on hover. */
.button:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* Three "gauge" facts in a row. */
.gauges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    list-style: none;
    margin: 30px 0px 0px 0px;
    font-size: 0.85rem;
    color: #9AA0A8;
}

/* The big word of each fact. */
.gauges strong {
    display: block;
    font-family: "Chakra Petch", sans-serif;
    font-size: 1.8rem;
    color: #FFFFFF;
}

/* ----- Text approvals (ID and class) ----- */

/* Section spacing; text then phone mockup on phones. */
#approvals {
    max-width: 1240px;
    margin: 0px auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

/* No bullets; the numbers are drawn with ::before below. */
.steps {
    list-style: none;
}

/* One step: room on the left for the yellow number, line under it.
   position: relative anchors the number. */
.steps li {
    position: relative;
    padding: 16px 0px 16px 52px;
    border-bottom: 1px solid #2A2D32;
}

/* Yellow step number from the list's own counter, padded to two digits
   with a leading zero. */
.steps li::before {
    content: "0" counter(list-item);
    position: absolute;
    left: 0px;
    top: 14px;
    color: #FFD000;
    font-family: "Chakra Petch", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

/* Step title in normal case. */
.steps h3 {
    font-family: Rubik, sans-serif;
    font-size: 1.05rem;
    text-transform: none;
}

/* The phone mockup: black screen in a thick grey frame with round
   corners. */
.phone {
    max-width: 360px;
    background-color: #000000;
    border: 10px solid #222222;
    border-radius: 44px;
    padding: 16px;
    box-shadow: 0px 40px 80px #00000099, 0px 0px 0px 1px #333333;
}

/* Contact name at the top of the phone screen. */
.phone figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: #9AA0A8;
    padding: 0px 0px 10px 0px;
    border-bottom: 1px solid #222222;
    margin: 0px 0px 12px 0px;
}

/* One text bubble. */
.msg {
    max-width: 84%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 8px 0px;
}

/* Incoming message: dark grey, square bottom-left corner. */
.msg-in {
    background-color: #26282C;
    color: #EEEEEE;
    border-bottom-left-radius: 4px;
}

/* Outgoing message: blue, pushed right with margin-left: auto. */
.msg-out {
    background-color: #1565C0;
    color: #FFFFFF;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

/* Photo sent in the conversation. */
.msg-photo {
    width: 84%;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
}

/* Total line inside a bubble, with a divider above. */
.total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #FFFFFF33;
    margin: 8px 0px 0px 0px;
    padding: 6px 0px 0px 0px;
    font-weight: 700;
}

/* ----- Service menu (ID and class) ----- */

/* Section spacing. */
#services {
    max-width: 1240px;
    margin: 0px auto;
    padding: 20px 20px 60px 20px;
}

/* Service cards stack on phones; the 2px gap shows the edge color
   between them, like panel seams. */
.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    background-color: #2A2D32;
    border: 1px solid #2A2D32;
}

/* One service card. position: relative anchors its icon. */
.menu article {
    flex: 1 1 100%;
    position: relative;
    background-color: #17191C;
    padding: 26px;
}

/* Faded icon in the card's top-right corner. */
.menu i {
    position: absolute;
    right: 22px;
    top: 24px;
    font-size: 1.5rem;
    color: #9AA0A8;
}

/* Service name. */
.menu h3 {
    font-size: 1.3rem;
}

/* Ballpark price in yellow. */
.price {
    color: #FFD000;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    margin: 4px 0px 8px 0px;
}

/* Service description in muted text. */
.menu article p:last-child {
    color: #9AA0A8;
    font-size: 0.95rem;
}

/* Small note under the menu. */
.note {
    color: #9AA0A8;
    font-size: 0.85rem;
    margin: 12px 0px 0px 0px;
}

/* ----- What's that noise (ID and element) ----- */

/* Panel-colored band with lines above and below. */
#noise {
    background-color: #17191C;
    border-top: 1px solid #2A2D32;
    border-bottom: 1px solid #2A2D32;
    padding: 60px 20px;
}

/* Answer list kept to a readable width. */
.answers {
    max-width: 50rem;
}

/* Each question box: dark with a yellow bar on the left. */
.answers details {
    background-color: #0E0F11;
    border-left: 4px solid #FFD000;
    margin: 0px 0px 10px 0px;
    padding: 14px 18px;
}

/* The question text in white. */
.answers summary {
    color: #FFFFFF;
    font-weight: 500;
    cursor: pointer;
}

/* The answer text. */
.answers details p {
    margin: 10px 0px 0px 0px;
}

/* ----- Shop photos (class) ----- */

/* Photos stacked on phones. */
.shop-photos {
    max-width: 1240px;
    margin: 0px auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cropped, slightly desaturated shop photos. */
.shop-photos img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: saturate(0.85);
}

/* ----- Fixed call bar (class) ----- */

/* Two big buttons fixed to the bottom of the phone screen. */
.call-bar {
    position: fixed;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 20;
    display: flex;
}

/* Each call bar button takes half the width. */
.call-bar a {
    flex: 1 1 0px;
    text-align: center;
    padding: 16px;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

/* Yellow "Call" button. */
.call-bar a:first-child {
    background-color: #FFD000;
    color: #000000;
}

/* Dark red "Schedule" button (darker than the logo red so white text
   passes contrast). */
.call-bar a:last-child {
    background-color: #B71C1C;
    color: #FFFFFF;
}

/* ----- Footer (class) ----- */

/* Muted footer with a line above. */
.site-footer {
    border-top: 1px solid #2A2D32;
    color: #9AA0A8;
    font-size: 0.875rem;
    padding: 26px 20px;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Shop photos sit side by side. */
    .shop-photos {
        flex-direction: row;
    }

    /* Each photo takes a third. */
    .shop-photos img {
        flex: 1 1 0px;
        min-width: 0px;
    }

    /* Two service cards per row. */
    .menu article {
        flex-basis: 40%;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* The call bar is a phone feature, so it hides on bigger screens. */
    .call-bar {
        display: none;
    }

    /* No space needed for the call bar any more. */
    body {
        padding: 0px;
    }

    /* Show the "Open now" line in the header. */
    .open-now {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.875rem;
    }

    /* Green glowing "open" dot. */
    .green-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-color: #2ECC71;
        box-shadow: 0px 0px 10px #2ECC71;
    }

    /* Footer lines at the edges. */
    .site-footer {
        display: flex;
        justify-content: space-between;
    }
}

/* ===== Large screens and up: 992px ===== */

@media (min-width: 992px) {

    /* Show the nav links between the logo and the open sign. */
    .site-nav {
        display: flex;
        gap: 28px;
        list-style: none;
    }

    /* Nav links. */
    .site-nav a {
        color: #C9CCD1;
        text-decoration: none;
    }

    /* Yellow on hover. */
    .site-nav a:hover {
        color: #FFD000;
        text-decoration: underline;
    }

    /* Hero photo moves to the right half, angled. The dark layer now
       fades from left (solid, behind the text) to right (clear). */
    .hero {
        background-image: linear-gradient(90deg, #0E0F11 40%, #0E0F1180 62%, #0E0F1100 85%), url("images/hero.jpg");
        background-size: 100% 100%, 60% auto;
        background-position: left top, right center;
    }

    /* Normal padding now that the photo is beside the text. */
    .hero-text {
        padding: 100px 24px 110px 24px;
    }

    /* Text and phone mockup side by side. */
    #approvals {
        flex-direction: row;
        align-items: center;
        gap: 70px;
    }

    /* The text column takes the remaining room. */
    .approvals-text {
        flex: 1 1 0px;
    }

    /* The phone keeps its own width. */
    .phone {
        flex: 0 0 360px;
    }

    /* Three service cards per row. */
    .menu article {
        flex-basis: 30%;
    }

    /* Wider padding on the noise band. */
    #noise {
        padding: 80px 4vw;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* Taller shop photos. */
    .shop-photos img {
        height: 280px;
    }
}
