/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Mirror Finish Mobile Detailing (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, dark and glossy like fresh clear coat. The
    hero has a white "shine" band (a skewed ::after pseudo-element) that
    sweeps across with @keyframes, and stops for reduced motion. Sections
    are separated by slanted edges made with transform: skewY() on a
    ::before layer behind the content. Gloss levels are bars with the
    number written inside. Media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM checked, AA):
      #030712 black   #111827 graphite   #FB7185 rose (on dark only)
      #BE123C red (darker than #E11D48 for white text)   #F3F4F6 light
      #9CA3AF muted on dark
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Graphite page, light text, Rajdhani. */
body {
    background-color: #111827;
    color: #F3F4F6;
    font-family: Rajdhani, sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.55;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Wide futuristic headings. */
h1,
h2,
h3 {
    font-family: Orbitron, sans-serif;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
}

/* Rose links on dark. */
a {
    color: #FB7185;
    font-weight: 700;
}

/* Rose focus ring. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #FB7185;
    outline-offset: 3px;
}

/* Muted intro. */
.lead {
    color: #C7CCD4;
    max-width: 38rem;
    margin: 10px 0px 26px 0px;
}

/* Small notes. */
.small {
    font-size: 0.9rem;
    color: #C7CCD4;
}

/* ----- Header (class) ----- */

/* Sticky black header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #030712;
    border-bottom: 1px solid #1F2937;
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo in Orbitron. */
.logo {
    font-family: Orbitron, sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
}

/* Rose second word. */
.logo span {
    color: #FB7185;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    border: 1px solid #FB7185;
    padding: 4px 14px;
    font-weight: 700;
    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: #F3F4F6;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 9px 0px;
    border-top: 1px solid #1F2937;
}

/* Rose on hover. */
.site-nav a:hover {
    color: #FB7185;
}

/* Concept notice. */
.concept-note {
    background-color: #1F2937;
    font-size: 0.85rem;
    text-align: center;
    padding: 3px 16px;
}

/* ----- Hero (class) ----- */

/* Photo hero; parent for the shine band, which it clips. */
.hero {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(90deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0.65) 55%, rgba(3, 7, 18, 0.2) 100%), url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
}

/* The shine: a soft white band, skewed, sweeping left to right. */
.hero::after {
    content: "";
    position: absolute;
    top: 0px;
    left: -40%;
    width: 25%;
    height: 100%;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    animation: shine 6s ease-in-out infinite;
}

/* Sweep from off the left edge to off the right edge, then rest. */
@keyframes shine {
    0% {
        left: -40%;
    }
    50% {
        left: 120%;
    }
    100% {
        left: 120%;
    }
}

/* Text sits above the shine. */
.hero-text {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

/* Small line above the headline. */
.eyebrow {
    color: #FB7185;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2rem, 6.4vw, 4rem);
    margin-bottom: 16px;
}

/* Second line of the headline in rose. */
.hero h1 span {
    display: block;
    color: #FB7185;
}

/* Hero paragraph. */
.hero-text > p:not(.eyebrow) {
    margin-bottom: 24px;
    max-width: 30rem;
}

/* Red button with a sharp cut corner. */
.button,
button {
    display: inline-block;
    background-color: #BE123C;
    color: #FFFFFF;
    border: none;
    padding: 14px 28px;
    font-family: Orbitron, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    clip-path: polygon(0% 0%, 90% 0%, 100% 30%, 100% 100%, 10% 100%, 0% 70%);
    cursor: pointer;
}

/* Darker red on hover. */
.button:hover,
button:hover {
    background-color: #9F1239;
}

/* ----- Packages (class) ----- */

/* Section spacing. */
.packages {
    padding: 64px 20px;
}

/* Cards stack on phones. */
.pack-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* One package card with a thin gradient border look. */
.pack {
    position: relative;
    background-color: #1F2937;
    border: 1px solid #374151;
    padding: 26px;
}

/* Package name. */
.pack h3 {
    font-size: 1.3rem;
}

/* Big price. */
.price {
    font-family: Orbitron, sans-serif;
    font-weight: 900;
    font-size: 2.6rem;
    margin: 6px 0px;
}

/* Time line. */
.time {
    color: #C7CCD4;
    margin-bottom: 12px;
}

/* Feature list. */
.pack ul {
    list-style: none;
}

/* One feature with a rose dash. */
.pack li {
    padding: 4px 0px;
    border-top: 1px solid #374151;
}

/* Dash before each feature. */
.pack li::before {
    content: "\2014  ";
    color: #FB7185;
}

/* The best seller is lifted with a rose border. */
.pack-pro {
    border: 2px solid #FB7185;
    background-color: #2A1420;
}

/* Badge on the best seller. */
.badge {
    position: absolute;
    top: -13px;
    right: 20px;
    background-color: #BE123C;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 2px 10px;
}

/* ----- Paint correction (ID and class) ----- */

/* The section is the parent for its slanted background layer. */
#correction {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 80px 20px;
}

/* A black layer behind the section, skewed so the top and bottom edges
   slant. z-index -1 puts it behind the content. */
#correction::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #030712;
    transform: skewY(-3deg);
    z-index: -1;
}

/* Space under the heading. */
.correction-text h2 {
    margin-bottom: 12px;
}

/* Gloss bars list. */
.gloss {
    list-style: none;
    margin: 22px 0px 10px 0px;
}

/* One row: label then bar. */
.gloss li {
    margin-bottom: 10px;
}

/* Row label. */
.g-label {
    display: block;
    font-weight: 700;
}

/* The bar with its value written inside. */
.g-bar {
    display: block;
    padding: 4px 10px;
    font-family: Orbitron, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #030712;
}

/* Before: short and dull grey. */
.g-before {
    width: 62%;
    background-color: #9CA3AF;
}

/* One step: longer, light rose. */
.g-one {
    width: 84%;
    background-color: #FDA4AF;
}

/* Two step: nearly full and bright with a glossy gradient. */
.g-two {
    width: 93%;
    background-image: linear-gradient(90deg, #FB7185, #FFE4E6);
}

/* Glossy car photo. */
#correction img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ----- We come to you (class) ----- */

/* Section spacing. */
.mobile {
    padding: 64px 20px;
}

/* Things we bring. */
.bring {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 22px 0px 26px 0px;
}

/* One item card. */
.bring li {
    flex: 1 1 230px;
    background-color: #1F2937;
    border-left: 4px solid #FB7185;
    padding: 16px;
}

/* Item icon. */
.bring i {
    color: #FB7185;
    font-size: 1.4rem;
    margin-right: 6px;
}

/* Item title on its own line. */
.bring strong {
    display: block;
    font-size: 1.2rem;
    margin-top: 4px;
}

/* Two photos side by side. */
.mobile-photos {
    display: flex;
    gap: 12px;
}

/* Each photo. */
.mobile-photos img {
    width: 50%;
    height: 200px;
    object-fit: cover;
}

/* ----- Booking (class) ----- */

/* Black band. */
.book {
    background-color: #030712;
    padding: 64px 20px;
}

/* Form columns stack on phones. */
.book-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

/* Labels. */
.book-form label {
    display: block;
    font-weight: 700;
    margin-top: 10px;
}

/* Inputs and select on dark. */
.book-form input[type="text"],
.book-form input[type="tel"],
.book-form select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    background-color: #111827;
    color: #F3F4F6;
    border: 1px solid #4B5563;
    font-family: Rajdhani, sans-serif;
    font-size: 1.1rem;
}

/* Placeholder text readable on dark. */
.book-form input::placeholder {
    color: #9CA3AF;
}

/* Add-ons box. */
.addons {
    border: 1px solid #374151;
    padding: 14px;
}

/* Add-ons title. */
.addons legend {
    font-family: Orbitron, sans-serif;
    font-weight: 700;
    padding: 0px 6px;
}

/* Add-on rows. */
.addons label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Rose checkboxes. */
.addons input {
    width: 18px;
    height: 18px;
    accent-color: #FB7185;
}

/* Price pushed right. */
.addons span {
    margin-left: auto;
    color: #FB7185;
    font-weight: 700;
}

/* Space above the button. */
.book-form button {
    margin-top: 20px;
}

/* Phone line. */
.call {
    margin-top: 16px;
}

/* ----- Footer (class) ----- */

/* Footer. */
.site-footer {
    background-color: #030712;
    color: #9CA3AF;
    text-align: center;
    font-size: 0.9rem;
    padding: 0px 20px 24px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller mobile photos. */
    .mobile-photos img {
        height: 260px;
    }

    /* Gloss rows: label beside the bar. */
    .gloss li {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Fixed-width labels. */
    .g-label {
        flex: 0 0 90px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .packages,
    #correction,
    .mobile,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Taller hero. */
    .hero {
        padding-top: 130px;
        padding-bottom: 130px;
    }

    /* Package cards in a row. */
    .pack-row {
        flex-direction: row;
        align-items: stretch;
    }

    /* Equal widths. */
    .pack {
        flex: 1 1 30%;
    }

    /* The best seller pokes up above the others. */
    .pack-pro {
        transform: translateY(-14px);
    }

    /* Form columns side by side. */
    .book-form {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Three equal columns. */
    .col {
        flex: 1 1 30%;
    }
}

/* ----- 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;
    }

    /* Correction text and photo side by side. */
    #correction {
        flex-direction: row;
        align-items: center;
        gap: 50px;
        padding-top: 110px;
        padding-bottom: 110px;
    }

    /* Each half. */
    .correction-text,
    #correction img {
        flex: 1 1 50%;
    }

    /* Photo matches the half width. */
    #correction img {
        width: 50%;
        height: 380px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .packages,
    #correction,
    .mobile,
    .book {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* No sweeping shine. */
    .hero::after {
        animation: none;
        display: none;
    }
}
