/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Keystone Storage (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, clean and blue. Each unit card has a
    roll-up door (horizontal ribs from a repeating gradient) positioned
    over the "what fits" text; on :hover or :focus-within the door slides
    up with transform: translateY(-100%), and the card's overflow: hidden
    hides it. The "size it up" plan draws all four units at one scale
    (14px per foot) from the same bottom-left corner with position:
    absolute. Media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM checked, AA):
      #0F172A night   #1E40AF keystone blue   #F59E0B amber (behind dark
      text only)   #92400E amber text   #F1F5F9 light   #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 with night text. */
body {
    background-color: #F1F5F9;
    color: #0F172A;
    font-family: Saira, sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Condensed headings. */
h1,
h2,
h3 {
    font-family: "Saira Condensed", sans-serif;
    font-weight: 800;
    line-height: 1.02;
    text-transform: uppercase;
}

/* Section titles. */
h2 {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

/* Blue links. */
a {
    color: #1E40AF;
    font-weight: 600;
}

/* Amber-and-night focus ring. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #0F172A;
    box-shadow: 0px 0px 0px 6px #F59E0B;
}

/* Muted intro text. */
.lead {
    color: #475569;
    max-width: 38rem;
    margin: 8px 0px 24px 0px;
}

/* ----- Header (class) ----- */

/* Sticky white header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #FFFFFF;
    border-bottom: 4px solid #1E40AF;
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* Logo. */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Saira Condensed", sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Keystone-shaped mark: a trapezoid cut with clip-path. */
.key {
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    background-color: #1E40AF;
    color: #FFFFFF;
    font-size: 1.2rem;
    clip-path: polygon(0% 0%, 100% 0%, 82% 100%, 18% 100%);
}

/* Small second word. */
.logo small {
    font-family: Saira, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    background-color: #1E40AF;
    color: #FFFFFF;
    padding: 6px 14px;
    font-weight: 600;
    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: #0F172A;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #E2E8F0;
}

/* Blue on hover. */
.site-nav a:hover {
    color: #1E40AF;
}

/* Concept notice. */
.concept-note {
    background-color: #DBE4FF;
    font-size: 0.85rem;
    text-align: center;
    padding: 4px 16px;
}

/* ----- Hero (class) ----- */

/* Colorful unit doors photo, with a blue panel on top. */
.hero {
    background-color: #1E40AF;
    background-image: url("images/hero.jpg");
    background-repeat: no-repeat;
    background-size: auto 440px;
    background-position: 72% -230px;
    padding: 200px 0px 0px 0px;
}

/* Blue text panel. */
.hero-text {
    background-color: #1E40AF;
    color: #FFFFFF;
    padding: 30px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    margin-bottom: 12px;
}

/* Amber second line. */
.hero h1 span {
    display: block;
    color: #FCD34D;
}

/* Hero paragraph. */
.hero-text > p {
    max-width: 34rem;
    margin-bottom: 18px;
}

/* Amber button with dark text. */
.button,
button {
    display: inline-block;
    background-color: #F59E0B;
    color: #0F172A;
    border: none;
    padding: 12px 26px;
    font-family: "Saira Condensed", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

/* Lighter amber on hover. */
.button:hover,
button:hover {
    background-color: #FCD34D;
}

/* Offer line. */
.first-month {
    margin-top: 16px;
}

/* ----- Units (class) ----- */

/* Section spacing. */
.units {
    padding: 56px 20px;
}

/* Doors wrap. */
.doors {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* One unit card: positioning parent for the door, which it clips. */
.unit {
    position: relative;
    overflow: hidden;
    flex: 1 1 220px;
    background-color: #FFFFFF;
    border: 3px solid #0F172A;
}

/* The inside of the unit, revealed when the door rolls up. */
.inside {
    height: 170px;
    background-color: #E2E8F0;
    padding: 20px;
}

/* What fits. */
.fits {
    font-weight: 600;
    margin-bottom: 10px;
}

/* The roll-up door: steel ribs from a repeating gradient. */
.door {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 170px;
    background-color: #64748B;
    background-image: repeating-linear-gradient(180deg, #94A3B8 0px, #94A3B8 10px, #64748B 10px, #64748B 13px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 12px;
    transition: transform 0.5s ease;
}

/* Size label on a handle bar at the bottom of the door. */
.door span {
    background-color: #0F172A;
    color: #FFFFFF;
    font-family: "Saira Condensed", sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 2px 14px;
}

/* Hover or keyboard focus inside the card rolls the door up. */
.unit:hover .door,
.unit:focus-within .door {
    transform: translateY(-100%);
}

/* Unit size heading under the door. */
.unit h3 {
    font-size: 1.8rem;
    padding: 12px 16px 0px 16px;
}

/* What size it compares to. */
.unit h3 small {
    font-family: Saira, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    color: #475569;
}

/* Price and availability. */
.price {
    padding: 0px 16px 14px 16px;
    font-weight: 600;
    color: #1E40AF;
}

/* ----- Size it up (ID and class) ----- */

/* Night band. */
#scale {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #0F172A;
    color: #FFFFFF;
    padding: 56px 20px;
}

/* Space under the heading. */
.scale-text h2 {
    margin-bottom: 10px;
}

/* Key list. */
.key-list {
    list-style: none;
    margin-top: 16px;
}

/* One key row. */
.key-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0px;
}

/* Color chip that matches the drawing. */
.chip {
    width: 18px;
    height: 18px;
    border: 2px solid #FFFFFF;
}

/* 5x5 chip. */
.chip-1 {
    background-color: #F59E0B;
}

/* 5x10 chip. */
.chip-2 {
    background-color: #60A5FA;
}

/* 10x10 chip. */
.chip-3 {
    background-color: #3B82F6;
}

/* 10x20 chip. */
.chip-4 {
    background-color: #1E3A8A;
}

/* The plan: a box 20 ft wide by 10 ft deep at 14px per foot, with a
   floor grid of one-foot lines. It is the parent for the units. */
.plan {
    position: relative;
    width: 280px;
    height: 140px;
    margin: 0px auto;
    border: 2px solid #FFFFFF;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 14px),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 14px);
}

/* Every unit drawing sits in the bottom-left corner. */
.u {
    position: absolute;
    left: 0px;
    bottom: 0px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid #FFFFFF;
}

/* 10x20: the whole plan. */
.u-4 {
    width: 280px;
    height: 140px;
    background-color: #1E3A8A;
    color: #FFFFFF;
}

/* 10x10: half of it. */
.u-3 {
    width: 140px;
    height: 140px;
    background-color: #3B82F6;
    color: #0F172A;
}

/* 5x10: 5 ft wide, 10 ft deep. */
.u-2 {
    width: 70px;
    height: 140px;
    background-color: #60A5FA;
    color: #0F172A;
}

/* 5x5. */
.u-1 {
    width: 70px;
    height: 70px;
    background-color: #F59E0B;
    color: #0F172A;
}

/* ----- Access (class) ----- */

/* Section spacing. */
.access {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 56px 20px;
}

/* Hours table. */
.access table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0px;
    background-color: #FFFFFF;
}

/* Caption. */
.access caption {
    text-align: left;
    font-weight: 600;
    padding-bottom: 6px;
}

/* Cells. */
.access th,
.access td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

/* Row heads. */
.access th {
    font-family: "Saira Condensed", sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    color: #1E40AF;
}

/* Perks list. */
.perks {
    list-style: none;
}

/* One perk. */
.perks li {
    padding: 4px 0px;
    font-weight: 600;
}

/* Amber-text icons. */
.perks i {
    color: #92400E;
    width: 26px;
}

/* Two photos. */
.access-photos {
    display: flex;
    gap: 12px;
}

/* Each photo. */
.access-photos img {
    width: 50%;
    height: 200px;
    object-fit: cover;
}

/* ----- Reserve (class) ----- */

/* Blue band, form then photo. */
.reserve {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #1E40AF;
    padding: 56px 20px;
}

/* White form card. */
.reserve-form {
    background-color: #FFFFFF;
    padding: 24px;
}

/* Space under heading. */
.reserve-form h2 {
    margin-bottom: 6px;
}

/* Size choices. */
.size-pick {
    border: none;
    margin-top: 12px;
}

/* Size legend. */
.size-pick legend {
    font-weight: 600;
}

/* Size options as boxed labels. */
.size-pick label {
    display: inline-block;
    border: 2px solid #CBD5E1;
    padding: 4px 10px;
    margin: 6px 6px 0px 0px;
    cursor: pointer;
}

/* Blue radios and checkbox. */
.reserve-form input[type="radio"],
.reserve-form input[type="checkbox"] {
    accent-color: #1E40AF;
    margin-right: 4px;
}

/* Labels outside the fieldset. */
.reserve-form > label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
}

/* Text, tel and date fields. */
.reserve-form input[type="text"],
.reserve-form input[type="tel"],
.reserve-form input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 2px solid #CBD5E1;
    font-family: Saira, sans-serif;
    font-size: 1rem;
}

/* Space above the button. */
.reserve-form button {
    margin-top: 18px;
}

/* Phone line. */
.call {
    margin-top: 12px;
}

/* Packing photo. */
.reserve > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ----- Footer (class) ----- */

/* Night footer. */
.site-footer {
    background-color: #0F172A;
    color: #CBD5E1;
    text-align: center;
    font-size: 0.85rem;
    padding: 22px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* The plan grows to 20px per foot, with the floor grid redrawn at
       20px. */
    .plan {
        width: 400px;
        height: 200px;
        background-image:
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 20px),
            repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 20px);
    }

    /* 10x20 at 20px per foot. */
    .u-4 {
        width: 400px;
        height: 200px;
    }

    /* 10x10. */
    .u-3 {
        width: 200px;
        height: 200px;
    }

    /* 5x10. */
    .u-2 {
        width: 100px;
        height: 200px;
    }

    /* 5x5. */
    .u-1 {
        width: 100px;
        height: 100px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .units,
    #scale,
    .access,
    .reserve {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Hero panel on the left over the photo instead of below it, and the
       photo covers the whole hero. */
    .hero {
        background-size: cover;
        background-position: center;
        padding: 70px 40px;
    }

    /* Panel width. */
    .hero-text {
        max-width: 560px;
        padding: 36px;
    }

    /* Hours and photos side by side. */
    .access {
        flex-direction: row;
        align-items: center;
    }

    /* Each half. */
    .access-text,
    .access-photos {
        flex: 1 1 50%;
    }

    /* Form and photo side by side. */
    .reserve {
        flex-direction: row;
        align-items: stretch;
    }

    /* Form column. */
    .reserve-form {
        flex: 1 1 55%;
    }

    /* Photo column. */
    .reserve > img {
        width: 40%;
        height: auto;
    }
}

/* ----- 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;
    }

    /* Taller hero. */
    .hero {
        padding-top: 110px;
        padding-bottom: 110px;
    }

    /* Plan text and drawing side by side. */
    #scale {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    /* Text column. */
    .scale-text {
        flex: 1 1 40%;
    }

    /* Photos taller. */
    .access-photos img {
        height: 300px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .units,
    #scale,
    .access,
    .reserve {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
