/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Comfort Line Heating & Air (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, clean "app" look. Base rules are the phone
    layout; media queries at 576px, 768px, 992px and 1200px add to it.
    Flexbox for layout, sticky floating header, absolute-positioned cards
    over the hero photo. The Heating / Cooling switch uses two radio
    buttons and the :checked selector (same idea as the hamburger menu
    checkbox from the responsive lab), so it works with no JavaScript.

    Colors (WebAIM checked, AA):
      #0F1A2C ink   #1A5FD6 blue   #C2410C ember   #E8F1FF ice   #FFF0E8 warm   #4A5870 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Very light blue-grey page, dark ink text, Plus Jakarta Sans. */
body {
    background-color: #F6F8FC;
    color: #0F1A2C;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 1.03rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Tight, bold headings. */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Blue focus ring for keyboard users. */
a:focus-visible {
    outline: 3px solid #1A5FD6;
    outline-offset: 3px;
}

/* ----- Concept banner (class) ----- */

/* White strip labeling the concept. */
.concept-banner {
    background-color: #FFFFFF;
    color: #4A5870;
    text-align: center;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-bottom: 1px solid #0F1A2C14;
}

/* "Concept design" in blue. */
.concept-banner strong {
    color: #1A5FD6;
}

/* ----- Floating header (class) ----- */

/* A rounded white bar that floats above the page and stays pinned near
   the top with position: sticky. */
.site-header {
    position: sticky;
    top: 8px;
    z-index: 10;
    margin: 10px 12px 0px 12px;
    background-color: #FFFFFFF0;
    border: 1px solid #0F1A2C14;
    border-radius: 999px;
    box-shadow: 0px 10px 30px #0F1A2C14;
    padding: 8px 8px 8px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Business name with a half-orange, half-blue dot logo. */
.logo {
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The two-color dot: a linear-gradient with a hard stop at 50% makes the
   left half orange (heat) and the right half blue (cool). */
.logo-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-image: linear-gradient(90deg, #C2410C 50%, #1A5FD6 50%);
}

/* Nav links hidden on phones; they show at 992px. */
.site-nav {
    display: none;
}

/* Dark rounded phone button. */
.phone-pill {
    background-color: #0F1A2C;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Blue on hover. */
.phone-pill:hover {
    background-color: #1A5FD6;
}

/* ----- Heating / Cooling switch (class) ----- */

/* The real radio buttons are moved off screen but stay keyboard
   reachable (arrow keys switch between them). */
.mode-radio {
    position: absolute;
    opacity: 0;
}

/* The main content area. Its accent color depends on which radio is
   checked; the next two rules set it. */
.page {
    max-width: 1220px;
    margin: 0px auto;
    padding: 0px 20px;
}

/* Heating mode (checked by default). The ~ selector reaches .content
   because it comes after the radio buttons inside <main>. */
#heat:checked ~ .content h1 span,
#heat:checked ~ .content .float-card strong {
    color: #C2410C;
}

/* Cooling mode swaps the accent to blue. */
#cool:checked ~ .content h1 span,
#cool:checked ~ .content .float-card strong {
    color: #1A5FD6;
}

/* The heading and paragraph for each mode start hidden... */
.show-heat,
.show-cool {
    display: none;
}

/* ...and the ones for the checked mode are shown. */
#heat:checked ~ .content .show-heat,
#cool:checked ~ .content .show-cool {
    display: block;
}

/* The pill-shaped switch that holds the two labels. */
.switch {
    display: inline-flex;
    background-color: #FFFFFF;
    border: 1px solid #0F1A2C14;
    border-radius: 999px;
    padding: 5px;
    margin: 0px 0px 22px 0px;
    box-shadow: 0px 4px 14px #0F1A2C0D;
}

/* One half of the switch. */
.switch label {
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: #4A5870;
    cursor: pointer;
}

/* The checked side fills with its color. */
#cool:checked ~ .content .switch-cool {
    background-color: #1A5FD6;
    color: #FFFFFF;
}

/* Heating side when heating is checked. */
#heat:checked ~ .content .switch-heat {
    background-color: #C2410C;
    color: #FFFFFF;
}

/* Keyboard focus on a radio shows a ring around its matching label. */
#cool:focus-visible ~ .content .switch-cool,
#heat:focus-visible ~ .content .switch-heat {
    outline: 3px solid #0F1A2C;
    outline-offset: 2px;
}

/* ----- Hero (class) ----- */

/* Text above the photo on phones. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 36px 0px 20px 0px;
}

/* Large headline. */
.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
}

/* Second line of the headline on its own line. */
.hero h1 span {
    display: block;
}

/* Intro paragraph in muted text. */
.lead {
    font-size: 1.15rem;
    color: #4A5870;
    margin: 18px 0px 24px 0px;
    max-width: 32rem;
}

/* White availability card. */
.next-opening {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    background-color: #FFFFFF;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0px 6px 20px #0F1A2C10;
    margin: 0px 0px 22px 0px;
}

/* Green "open" dot with a soft halo made by box-shadow. */
.green-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #1F9D57;
    box-shadow: 0px 0px 0px 6px #1F9D572A;
}

/* Small grey "sample" note. */
.sample-note {
    flex-basis: 100%;
    padding: 0px 0px 0px 22px;
    font-size: 0.85rem;
    color: #4A5870;
}

/* Rounded square button in ink. */
.button {
    display: inline-block;
    background-color: #0F1A2C;
    color: #FFFFFF;
    padding: 0.9em 1.4em;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    margin: 0px 8px 10px 0px;
}

/* White outlined second button. */
.button-plain {
    background-color: #FFFFFF;
    color: #0F1A2C;
    border: 1px solid #0F1A2C30;
}

/* Blue on hover for both. */
.button:hover {
    background-color: #1A5FD6;
    color: #FFFFFF;
}

/* position: relative is the anchor for the two floating cards. */
.hero-visual {
    position: relative;
}

/* Rounded photo with a square-ish crop. */
.hero-visual img {
    width: 100%;
    aspect-ratio: 4 / 4.3;
    object-fit: cover;
    object-position: 30% 75%;
    border-radius: 32px;
}

/* White card that floats over the photo. */
.float-card {
    position: absolute;
    background-color: #FFFFFF;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0px 20px 40px #0F1A2C22;
    font-size: 0.9rem;
}

/* Big colored word in each floating card. No display value here, so
   the heat/cool show and hide rules above stay in charge of the two
   temperatures. */
.float-card strong {
    font-size: 1.6rem;
}

/* "Upfront" sits on its own line above "price before work". */
.float-price strong {
    display: block;
}

/* "Upfront price" card near the bottom left. */
.float-price {
    left: 12px;
    bottom: 24px;
}

/* Temperature card near the top right. */
.float-temp {
    right: 12px;
    top: 20px;
    text-align: center;
}

/* ----- Section shared (class) ----- */

/* Space above and below each section. */
.symptoms,
.plans,
.team {
    padding: 56px 0px;
}

/* Section titles. */
.symptoms h2,
.plans h2,
.team h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin: 0px 0px 10px 0px;
}

/* Muted intro under each section title. */
.sub {
    color: #4A5870;
    max-width: 36rem;
    margin: 0px 0px 28px 0px;
}

/* ----- Emergency checker (ID and class) ----- */

/* Cards stack on phones; two per row at 576px; three at 992px. */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* One white symptom card. */
.card {
    flex: 1 1 100%;
    background-color: #FFFFFF;
    border: 1px solid #0F1A2C14;
    border-radius: 22px;
    padding: 22px;
}

/* Symptom name. */
.card h3 {
    font-size: 1.1rem;
    margin: 10px 0px 4px 0px;
}

/* Symptom advice in muted text. */
.card p:last-child {
    color: #4A5870;
    font-size: 0.95rem;
}

/* Small pill showing how urgent it is. The words say the urgency; color
   backs it up. */
.level {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Red "Call now" pill. */
.level-now {
    background-color: #FFE1E1;
    color: #A11A1A;
}

/* Amber "Today or tomorrow" pill. */
.level-soon {
    background-color: #FFF1D1;
    color: #7A4F00;
}

/* Green "Book a visit" pill. */
.level-ok {
    background-color: #DCF5E7;
    color: #126B3A;
}

/* ----- Plans (ID and class) ----- */

/* Plan cards stack on phones and sit in a row at 768px. */
.plan-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* One plan card. Flex column so the button can sit at the bottom. */
.plan {
    flex: 1 1 0px;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid #0F1A2C14;
    border-radius: 28px;
    padding: 28px;
}

/* Plan name in blue. */
.plan h3 {
    color: #1A5FD6;
    font-size: 1rem;
}

/* Large price. */
.price {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* "/ month" in smaller muted text. */
.price span {
    font-size: 1rem;
    font-weight: 500;
    color: #4A5870;
}

/* Plan features list; flex-grow pushes the button to the bottom so all
   three buttons line up (the same trick as the SeaBubbles cards). */
.plan ul {
    list-style: none;
    margin: 14px 0px 22px 0px;
    flex-grow: 1;
}

/* One feature line with a dashed divider. */
.plan li {
    padding: 8px 0px;
    border-bottom: 1px dashed #0F1A2C1A;
    font-size: 0.95rem;
}

/* A blue check mark before each feature. */
.plan li::before {
    content: "\2713";
    color: #1A5FD6;
    font-weight: 800;
    margin: 0px 10px 0px 0px;
}

/* Plan button. */
.plan a {
    text-align: center;
    border-radius: 14px;
    padding: 14px;
    font-weight: 700;
    text-decoration: none;
    background-color: #E8F1FF;
    color: #0F1A2C;
}

/* Blue on hover. */
.plan a:hover {
    background-color: #1A5FD6;
    color: #FFFFFF;
}

/* The featured plan is dark to stand out. */
.plan-featured {
    background-color: #0F1A2C;
    color: #FFFFFF;
    box-shadow: 0px 30px 60px #0F1A2C33;
}

/* Lighter blue plan name on the dark card. */
.plan-featured h3 {
    color: #8DB7FF;
}

/* Light muted "/ month" on the dark card. */
.plan-featured .price span {
    color: #FFFFFFB3;
}

/* Light dividers on the dark card. */
.plan-featured li {
    border-color: #FFFFFF22;
}

/* Lighter checks on the dark card. */
.plan-featured li::before {
    color: #8DB7FF;
}

/* Solid blue button on the featured card. */
.plan-featured a {
    background-color: #1A5FD6;
    color: #FFFFFF;
}

/* Small centered note under the plans. */
.note {
    text-align: center;
    font-size: 0.85rem;
    color: #4A5870;
    margin: 16px 0px 0px 0px;
}

/* ----- Team band (ID) ----- */

/* Light blue rounded band. */
#team {
    background-color: #E8F1FF;
    border-radius: 36px;
    padding: 30px 22px;
    margin: 0px 0px 56px 0px;
}

/* Photos stack on phones. */
.team-photos {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 22px 0px 0px 0px;
}

/* Rounded cropped photos. */
.team-photos img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 22px;
}

/* ----- Footer (class) ----- */

/* Plain muted footer. */
.site-footer {
    max-width: 1220px;
    margin: 0px auto;
    padding: 30px 20px 40px 20px;
    color: #4A5870;
    font-size: 0.875rem;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Two symptom cards per row. */
    .card {
        flex-basis: 40%;
    }

    /* Team photos side by side. */
    .team-photos {
        flex-direction: row;
    }

    /* Each team photo takes half the row. */
    .team-photos img {
        flex: 1 1 0px;
        min-width: 0px;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* Plans in a row. */
    .plan-row {
        flex-direction: row;
        align-items: stretch;
    }

    /* The featured plan sits a little higher than the other two. */
    .plan-featured {
        transform: translateY(-12px);
    }

    /* 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 in the floating header. */
    .site-nav {
        display: flex;
        gap: 26px;
        list-style: none;
    }

    /* Muted nav links. */
    .site-nav a {
        color: #4A5870;
        font-weight: 500;
        text-decoration: none;
    }

    /* Darker and underlined on hover. */
    .site-nav a:hover {
        color: #0F1A2C;
        text-decoration: underline;
    }

    /* Header lines up with the page width. */
    .site-header {
        max-width: 1180px;
        margin: 12px auto 0px auto;
        padding-left: 24px;
    }

    /* Hero text and photo side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        padding: 60px 0px 40px 0px;
    }

    /* Each hero column takes half. */
    .hero-text,
    .hero-visual {
        flex: 1 1 0px;
    }

    /* Floating cards hang off the photo edges. */
    .float-price {
        left: -30px;
        bottom: 40px;
    }

    /* Temperature card past the right edge. */
    .float-temp {
        right: -14px;
        top: 30px;
    }

    /* Three symptom cards per row. */
    .card {
        flex-basis: 28%;
    }

    /* Team band: text and photos in one row. */
    #team {
        display: flex;
        align-items: center;
        gap: 24px;
        padding: 50px;
    }

    /* Team text column. */
    .team-text {
        flex: 1 1 0px;
    }

    /* Photos take two-thirds. */
    .team-photos {
        flex: 2 1 0px;
        margin: 0px;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* More space between sections on the widest screens. */
    .symptoms,
    .plans {
        padding: 80px 0px;
    }
}
