/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Pine Hollow Pet Resort (fictional business)
    Filename:   styles.css

    Theme: a little roadside motel for pets. The header is a vintage
    motel sign: a green board with a pine tree (stacked triangles from
    clip-path) and a glowing purple VACANCY panel. In the hero a "Shh!"
    door hanger hooks over the corner of the photo. The rooms are a
    hallway of numbered motel doors with brass knobs and rate cards.
    The signature is the daily postcard sent home: a cream card split
    by a center line, a note "from" the pet on the left, a stamp and a
    checklist on the right, and an airmail stripe border. The footer
    is a row of pine trees.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #0F1F14 text on #F6FBF6 page (16.8:1)
      #137337 green text (6.0:1 on the page)
      #FFFFFF on #15803D buttons (5.0:1)
      #7939E7 purple text (5.6:1 on the page)
      #FFFFFF on #7C3AED purple (5.7:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Fresh pine-air page. */
body {
    background-color: #F6FBF6;
    color: #0F1F14;
    font-family: "Mulish", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Rounded bubbly headings. */
h1,
h2,
h3 {
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    color: #137337;
    margin-bottom: 12px;
}

/* Links in green. */
a {
    color: #137337;
}

/* Purple outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .motel-row .menu-icon {
    outline: 3px solid #7939E7;
    outline-offset: 3px;
}

/* ----- Motel sign header (class) ----- */

/* Green sign board with a light-bulb border line. */
.motel {
    position: relative;
    background-color: #15803D;
    color: #FFFFFF;
    border-bottom: 6px solid #0F1F14;
    padding: 14px 16px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Name, vacancy and menu in a row. */
.motel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Name in big round letters. */
.sign-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
}

/* Second word. */
.sign-name .sub {
    display: none;
}

/* Pine tree: three stacked triangles. */
.pine {
    flex: 0 0 26px;
    height: 34px;
    background-color: #FFFFFF;
    clip-path: polygon(50% 0%, 75% 30%, 62% 30%, 85% 60%, 68% 60%, 100% 90%, 58% 90%, 58% 100%, 42% 100%, 42% 90%, 0% 90%, 32% 60%, 15% 60%, 38% 30%, 25% 30%);
}

/* Glowing purple VACANCY panel. */
.vacancy {
    display: none;
    background-color: #7C3AED;
    color: #FFFFFF;
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 2px 12px;
    border-radius: 4px;
    box-shadow: 0px 0px 14px #C4B5FD;
}

/* Menu button. */
.menu-icon {
    background-color: #FFFFFF;
    color: #137337;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.motel-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .motel-nav {
    display: block;
}

/* Nav list. */
.motel-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links white. */
.motel-nav a {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
}

/* Hover: underline. */
.motel-nav a:hover {
    text-decoration: underline;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Lobby hero (class) ----- */

/* Words then photo. */
.lobby {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 30px 16px 60px 16px;
}

/* Headline. */
.lobby-text h1 {
    font-size: clamp(2.3rem, 6vw, 3.8rem);
    margin-bottom: 14px;
}

/* Hero words. */
.lobby-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Photo framed like a door with a hanger. */
.door {
    position: relative;
    border: 10px solid #FFFFFF;
    box-shadow: 0px 0px 0px 2px #C7D7CB;
}

/* Photo. */
.door img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

/* Door hanger: purple card with a round hole at the top, tilted. */
.hanger {
    position: absolute;
    top: -20px;
    left: -6px;
    width: 104px;
    background-color: #7C3AED;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    padding: 40px 8px 10px 8px;
    border-radius: 10px;
    background-image: radial-gradient(circle at 50% 20px, #F6FBF6 0px, #F6FBF6 11px, transparent 12px);
    transform: rotate(-6deg);
}

/* "Shh!" big on the hanger. */
.hanger span {
    display: block;
    font-family: "Baloo 2", Arial, sans-serif;
    font-size: 1.8rem;
    line-height: 1;
}

/* Green button with a key-tag notch. */
.key-btn,
button {
    display: inline-block;
    background-color: #15803D;
    color: #FFFFFF;
    font-family: "Mulish", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 30px 8px 8px 30px;
    padding: 12px 26px;
    cursor: pointer;
}

/* Button hover. */
.key-btn:hover,
button:hover {
    background-color: #7C3AED;
}

/* ----- Room doors (ID) ----- */

/* Hallway carpet band. */
#rooms {
    background-color: #E4EFE6;
    padding: 56px 16px;
}

/* Doors stand side by side and wrap. */
.hall {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* One door: painted panel with a peephole and a knob. */
.room-door {
    position: relative;
    background-color: #FFFFFF;
    border: 6px solid #15803D;
    border-bottom-width: 14px;
    border-radius: 6px 6px 0px 0px;
    padding: 20px 20px 26px 20px;
}

/* Brass room number plate. */
.room-num {
    display: inline-block;
    background-color: #D4A947;
    color: #0F1F14;
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 0px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Brass door knob on the right edge. */
.knob {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-image: radial-gradient(circle at 35% 35%, #FDE68A, #B8913A);
}

/* Room name. */
.room-door h3 {
    font-size: 1.5rem;
}

/* Rate line. */
.rate {
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: #7939E7;
}

/* Suite door in purple. */
.suite {
    border-color: #7C3AED;
}

/* Cat condo door in dark green. */
.cat {
    border-color: #0F1F14;
}

/* ----- Postcard (class) ----- */

/* Section spacing. */
.post {
    padding: 56px 16px;
}

/* Intro. */
.intro {
    margin-bottom: 22px;
}

/* Postcard: cream card with an airmail stripe border. */
.postcard {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #FFFDF5;
    border: 10px solid transparent;
    border-image: repeating-linear-gradient(45deg, #7C3AED 0px, #7C3AED 10px, #FFFDF5 10px, #FFFDF5 20px, #15803D 20px, #15803D 30px, #FFFDF5 30px, #FFFDF5 40px) 10;
    padding: 22px;
    margin-bottom: 28px;
    max-width: 820px;
}

/* Note from the pet. */
.hand {
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.45;
    color: #1E3A8A;
}

/* Signature. */
.sig {
    margin-top: 10px;
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #7939E7;
}

/* Right side: stamp then checklist. */
.pc-right {
    border-top: 2px solid #C7D7CB;
    padding-top: 14px;
}

/* Stamp with a perforated edge. */
.stamp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 76px;
    margin-left: auto;
    background-color: #15803D;
    color: #FFFFFF;
    font-size: 1.8rem;
    outline: 4px dotted #FFFDF5;
    outline-offset: -4px;
    margin-bottom: 10px;
}

/* Checklist. */
.checks {
    list-style: none;
}

/* One check with a green tick. */
.checks li {
    padding: 4px 0px 4px 26px;
    position: relative;
    border-bottom: 1px solid #DCE5DD;
}

/* Tick. */
.checks li::before {
    content: "\2713";
    position: absolute;
    left: 4px;
    color: #137337;
    font-weight: 700;
}

/* Two photos. */
.post-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.post-photos img {
    width: 50%;
    height: 230px;
    object-fit: cover;
}

/* ----- Reserve (class) ----- */

/* Purple band. */
.reserve {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #7C3AED;
    padding: 56px 16px;
}

/* Bath photo. */
.reserve img {
    height: 260px;
    object-fit: cover;
}

/* Form box. */
.res-form fieldset {
    border: none;
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
}

/* Form title. */
.res-form legend {
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    float: left;
    width: 100%;
}

/* Labels. */
.res-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.res-form input {
    width: 100%;
    font-family: "Mulish", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #5E6860;
    border-radius: 8px;
}

/* Submit spacing. */
.res-form button {
    margin-top: 18px;
}

/* ----- Pine footer (class) ----- */

/* Dark green with a row of tree points along the top. */
.pines {
    background-color: #0F1F14;
    background-image: linear-gradient(135deg, #F6FBF6 25%, transparent 25%), linear-gradient(225deg, #F6FBF6 25%, transparent 25%);
    background-size: 30px 30px;
    background-repeat: repeat-x;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 46px 16px 28px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Show the second word of the sign. */
    .sign-name .sub {
        display: inline;
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* Postcard halves side by side. */
    .postcard {
        flex-direction: row;
    }

    /* Note half. */
    .pc-left {
        flex: 1 1 58%;
        border-right: 2px solid #C7D7CB;
        padding-right: 18px;
    }

    /* Address half. */
    .pc-right {
        flex: 1 1 38%;
        border-top: none;
        padding-top: 0px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Hanger moves to the photo's top right corner, bigger. */
    .hanger {
        left: auto;
        right: 18px;
        top: -26px;
        width: 130px;
        padding: 50px 10px 14px 10px;
        background-image: radial-gradient(circle at 50% 24px, #F6FBF6 0px, #F6FBF6 14px, transparent 15px);
        transform: rotate(6deg);
    }


    /* Show the VACANCY panel. */
    .vacancy {
        display: block;
    }

    /* Doors in a row. */
    .hall {
        flex-direction: row;
    }

    /* Each door. */
    .room-door {
        flex: 1 1 30%;
        min-height: 300px;
    }

    /* Photo beside the form. */
    .reserve {
        flex-direction: row;
    }

    /* Each half. */
    .reserve img,
    .res-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .reserve img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Sign left, nav right. */
    .motel {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Room for the vacancy panel beside the name. */
    .motel-row {
        gap: 24px;
    }

    /* Nav always shown. */
    .motel-nav {
        display: block;
    }

    /* Nav in a row. */
    .motel-nav ul {
        flex-direction: row;
        gap: 24px;
        padding-top: 0px;
    }

    /* Words beside the photo. */
    .lobby {
        flex-direction: row;
        align-items: center;
        padding: 50px 40px 70px 40px;
    }

    /* Each half. */
    .lobby-text,
    .door {
        flex: 1 1 50%;
    }

    /* Wider sections. */
    #rooms,
    .post,
    .reserve {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .lobby,
    #rooms,
    .post,
    .reserve {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
