/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Upswing Garage Doors (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, tall condensed type like a work truck.
    The hero photo sits behind a garage door made from gradients. The
    door starts half open and rolls the rest of the way up with a
    transform transition on :hover or :focus-visible. The style picker
    uses four radio buttons; whichever is :checked changes the
    background-image on the preview door with the ~ sibling selector, so
    one door can show four looks. The spring warning has a hazard-stripe
    border made with border-image. Media queries at 576px, 768px, 992px
    and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #0F172A night text   #334155 slate (10.4:1 on white)
      #F97316 orange (backgrounds with dark text only)
      #C2410C orange text on light (5.2:1)   #F8FAFC page   #475569 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Light page, dark text. */
body {
    background-color: #F8FAFC;
    color: #0F172A;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Tall condensed headings. */
h1,
h2,
h3 {
    font-family: "Big Shoulders Display", sans-serif;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

/* Section titles. */
h2 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 10px;
}

/* Slate links. */
a {
    color: #334155;
    font-weight: 600;
}

/* Orange focus ring with a dark gap. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #C2410C;
    outline-offset: 3px;
}

/* Lead text. */
.lead {
    color: #475569;
    max-width: 40rem;
    margin-bottom: 24px;
}

/* Small notes. */
.small {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 12px;
}

/* ----- Header (class) ----- */

/* Sticky slate header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #0F172A;
    color: #F8FAFC;
}

/* Logo and menu row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* Condensed logo. */
.logo {
    font-family: "Big Shoulders Display", sans-serif;
    font-weight: 900;
    font-size: 1.9rem;
    text-transform: uppercase;
    line-height: 1;
}

/* Orange icon (on dark). */
.logo i {
    color: #F97316;
    font-size: 1.4rem;
}

/* Second logo line. */
.logo small {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: #CBD5E1;
}

/* Hidden menu checkbox, still keyboard reachable. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Orange menu button with dark text. */
.menu-icon {
    background-color: #F97316;
    color: #0F172A;
    font-weight: 700;
    padding: 5px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Checked menu shows the 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: #F8FAFC;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #1E293B;
}

/* Orange on hover. */
.site-nav a:hover {
    color: #FDBA74;
}

/* Concept notice. */
.concept-note {
    background-color: #1E293B;
    font-size: 0.8rem;
    text-align: center;
    padding: 3px 16px;
}

/* ----- Hero (class) ----- */

/* Stack on phones. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 44px 20px 56px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    margin-bottom: 16px;
}

/* Second line in orange text color. */
.hero h1 span {
    display: block;
    color: #C2410C;
}

/* Hero paragraph. */
.hero-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Orange button with dark text. */
.button,
button {
    display: inline-block;
    background-color: #F97316;
    color: #0F172A;
    border: none;
    padding: 13px 24px;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* Slate on hover. */
.button:hover,
button:hover {
    background-color: #334155;
    color: #FFFFFF;
}

/* The garage opening: a frame that hides the door as it rolls up. */
.garage {
    position: relative;
    display: block;
    overflow: hidden;
    border: 14px solid #334155;
    border-bottom: none;
    height: 300px;
}

/* Photo fills the opening behind the door. */
.garage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The door: four sections of raised panels drawn with gradients. */
.door {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #E2E8F0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0px, transparent 70px, #94A3B8 70px, #94A3B8 74px),
        repeating-linear-gradient(90deg, transparent 0px, transparent 10px, #CBD5E1 10px, #CBD5E1 86px, transparent 86px, transparent 96px);
    border-bottom: 8px solid #475569;
    transform: translateY(-82%);
    transition: transform 0.9s ease-in-out;
}

/* Hover or keyboard focus rolls the door all the way up. */
.garage:hover .door,
.garage:focus-visible .door {
    transform: translateY(-96%);
}

/* Tip along the bottom of the photo. */
.garage-tip {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(15, 23, 42, 0.85);
    color: #F8FAFC;
    font-size: 0.85rem;
    text-align: center;
    padding: 6px 10px;
}

/* ----- Style picker (ID and class) ----- */

/* White band. */
#styles {
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* Labels then preview on phones. */
.picker {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Radios hidden but focusable. */
.picker > input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Style choices stack. */
.style-labels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Each choice is a bordered card. */
.style-labels label {
    border: 2px solid #CBD5E1;
    border-left: 8px solid #CBD5E1;
    padding: 12px 14px;
    cursor: pointer;
    color: #475569;
}

/* Style name on its own line. */
.style-labels strong {
    display: block;
    font-family: "Big Shoulders Display", sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #0F172A;
    line-height: 1.1;
}

/* Picked style gets an orange edge. */
#st-raised:checked ~ .style-labels label[for="st-raised"],
#st-carriage:checked ~ .style-labels label[for="st-carriage"],
#st-modern:checked ~ .style-labels label[for="st-modern"],
#st-flush:checked ~ .style-labels label[for="st-flush"] {
    border-color: #334155;
    border-left-color: #F97316;
    background-color: #FFF7ED;
}

/* Keyboard focus on a style. */
#st-raised:focus-visible ~ .style-labels label[for="st-raised"],
#st-carriage:focus-visible ~ .style-labels label[for="st-carriage"],
#st-modern:focus-visible ~ .style-labels label[for="st-modern"],
#st-flush:focus-visible ~ .style-labels label[for="st-flush"] {
    outline: 3px solid #C2410C;
    outline-offset: 2px;
}

/* Preview: a house front in siding. */
.house-front {
    position: relative;
    height: 260px;
    background-color: #F1F5F9;
    background-image: repeating-linear-gradient(0deg, #F1F5F9 0px, #F1F5F9 14px, #CBD5E1 14px, #CBD5E1 16px);
    border-top: 26px solid #334155;
    padding: 50px 12% 0px 12%;
}

/* Preview door: raised panel look by default. */
.pdoor {
    height: 100%;
    background-color: #E2E8F0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0px, transparent 44px, #94A3B8 44px, #94A3B8 47px),
        repeating-linear-gradient(90deg, transparent 0px, transparent 8px, #CBD5E1 8px, #CBD5E1 56px, transparent 56px, transparent 64px);
    border: 6px solid #FFFFFF;
    border-bottom: none;
    box-shadow: 0px 0px 0px 2px #94A3B8;
}

/* Carriage house: center split and window dividers on top of a window row and wood boards. */
#st-carriage:checked ~ .preview .pdoor {
    background-color: #8B5A2B;
    background-image:
        linear-gradient(90deg, transparent 49.4%, #3F2716 49.4%, #3F2716 50.6%, transparent 50.6%),
        repeating-linear-gradient(90deg, transparent 0px, transparent 60px, #6F4520 60px, #6F4520 66px),
        linear-gradient(180deg, transparent 8%, #BFDBFE 8%, #BFDBFE 24%, transparent 24%),
        repeating-linear-gradient(90deg, #8B5A2B 0px, #8B5A2B 14px, #6F4520 14px, #6F4520 16px);
}

/* Modern: frosted glass panes in a black frame. */
#st-modern:checked ~ .preview .pdoor {
    background-color: #DDE6EE;
    background-image:
        repeating-linear-gradient(0deg, #111827 0px, #111827 6px, transparent 6px, transparent 46px),
        repeating-linear-gradient(90deg, #111827 0px, #111827 6px, transparent 6px, transparent 70px),
        linear-gradient(160deg, #F8FAFC 0%, #CBD5E1 100%);
    border-color: #111827;
}

/* Flush: smooth sections with thin lines. */
#st-flush:checked ~ .preview .pdoor {
    background-color: #F8FAFC;
    background-image: repeating-linear-gradient(0deg, transparent 0px, transparent 45px, #CBD5E1 45px, #CBD5E1 47px);
}

/* ----- Repairs (class) ----- */

/* Main list and warning stack on phones. */
.repair {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 56px 20px;
}

/* Repair price list. */
.repair-list {
    list-style: none;
    margin-top: 14px;
}

/* Each repair row with its price at the right. */
.repair-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0px;
    border-bottom: 2px solid #E2E8F0;
}

/* Price in bold. */
.repair-list li span:last-child {
    font-weight: 700;
    white-space: nowrap;
}

/* Warning box with a striped hazard border from border-image. */
.warning {
    background-color: #FFFFFF;
    border: 14px solid #F97316;
    border-image: repeating-linear-gradient(45deg, #F97316 0px, #F97316 12px, #0F172A 12px, #0F172A 24px) 14;
    padding: 22px 20px;
}

/* Warning title. */
.warning h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Warning icon in orange text color. */
.warning h3 i {
    color: #C2410C;
}

/* ----- Our work (class) ----- */

/* Dark band. */
.work {
    background-color: #0F172A;
    color: #F8FAFC;
    padding: 56px 20px;
}

/* Photos stack on phones. */
.work-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

/* Photo crop. */
.work-row img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Caption bar under each photo. */
.work-row figcaption {
    background-color: #334155;
    padding: 8px 12px;
    font-weight: 600;
}

/* ----- Quote (class) ----- */

/* Orange band with dark text. */
.quote {
    background-color: #F97316;
    color: #0F172A;
    padding: 56px 20px;
}

/* Fields wrap. */
.q-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin: 16px 0px 22px 0px;
}

/* Each field full width on phones. */
.q-fields div {
    flex: 1 1 100%;
}

/* Labels. */
.q-fields label {
    display: block;
    font-weight: 700;
}

/* Inputs. */
.q-fields input,
.q-fields select {
    width: 100%;
    font: inherit;
    padding: 10px 12px;
    border: 3px solid #0F172A;
    margin-top: 4px;
    background-color: #FFFFFF;
}

/* Dark button on the orange band. */
.quote button {
    background-color: #0F172A;
    color: #FFFFFF;
}

/* Hover on the orange band. */
.quote button:hover {
    background-color: #334155;
}

/* Focus ring is dark on orange. */
.quote input:focus-visible,
.quote select:focus-visible,
.quote button:focus-visible {
    outline-color: #0F172A;
}

/* ----- Footer (class) ----- */

/* Footer. */
.site-footer {
    background-color: #0F172A;
    color: #CBD5E1;
    font-size: 0.85rem;
    text-align: center;
    padding: 24px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller garage. */
    .garage {
        height: 380px;
    }

    /* Two fields per row. */
    .q-fields div {
        flex: 1 1 40%;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    #styles,
    .repair,
    .work,
    .quote {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Choices beside the preview. */
    .picker {
        flex-direction: row;
        align-items: center;
    }

    /* Choices column. */
    .style-labels {
        flex: 1 1 45%;
    }

    /* Preview column. */
    .preview {
        flex: 1 1 55%;
    }

    /* Taller preview. */
    .house-front {
        height: 320px;
    }

    /* Photos in a row. */
    .work-row {
        flex-direction: row;
    }

    /* Each photo a third. */
    .work-row figure {
        flex: 1 1 33%;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No Menu button. */
    .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;
    }

    /* Hero text and garage side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 50px;
        padding-top: 64px;
        padding-bottom: 70px;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 45%;
    }

    /* Garage column. */
    .garage {
        flex: 1 1 55%;
        height: 460px;
    }

    /* List beside the warning. */
    .repair {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    /* List column. */
    .repair-main {
        flex: 1 1 55%;
    }

    /* Warning column. */
    .warning {
        flex: 1 1 45%;
    }

    /* Four fields in a row. */
    .q-fields div {
        flex: 1 1 20%;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    #styles,
    .repair,
    .work,
    .quote {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* The door jumps instead of rolling. */
    .door {
        transition: none;
    }
}
