/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Party Barn Event Rentals (fictional business)
    Filename:   styles.css

    Theme: a backyard party. The header is a white barn-board strip
    with a string of colored pennant flags hanging under it (triangles
    made from linear gradients repeated along a line). In the hero
    three balloons on strings float up past the photo. The signature
    is a top-down plan of a backyard birthday: a green lawn with the
    house along the bottom, a striped tent with four round tables
    inside, a bounce castle and a cotton candy cart, beside an itemized
    receipt that adds up. The bounce houses are drawn as inflatable
    castles of three sizes with crenellated tops and arched doors. The
    footer is confetti.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #2A0C12 text on #FFF7F8 page (17.9:1)
      #BD3149 coral text (5.3:1 on the page)
      #2A0C12 on #F43F5E coral buttons (5.1:1)
      #096F9D sky text (5.6:1 on the page)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Party-pink page. */
body {
    background-color: #FFF7F8;
    color: #2A0C12;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Chunky fun headings. */
h1,
h2,
h3 {
    font-family: "Lilita One", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    color: #BD3149;
    margin-bottom: 14px;
}

/* Links in coral. */
a {
    color: #BD3149;
}

/* Sky outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .bunting-row .menu-icon {
    outline: 3px solid #096F9D;
    outline-offset: 3px;
}

/* ----- Bunting header (class) ----- */

/* White barn boards; pennants hang below. */
.bunting {
    position: relative;
    background-color: #FFFFFF;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 90px, #F1E4E6 90px, #F1E4E6 92px);
    padding: 14px 16px;
    margin-bottom: 34px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Logo and menu in a row. */
.bunting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo. */
.logo {
    font-family: "Lilita One", Arial, sans-serif;
    font-size: 1.7rem;
    line-height: 1;
    color: #BD3149;
}

/* Second line in sky blue. */
.logo span {
    display: block;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #096F9D;
}

/* Menu button. */
.menu-icon {
    background-color: #0EA5E9;
    color: #2A0C12;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
    cursor: pointer;
}

/* String of pennants: color stripes cut into triangles by a repeating mask. */
.flags {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 100%;
    height: 28px;
    background-image: repeating-linear-gradient(90deg, #F43F5E 0px, #F43F5E 30px, #0EA5E9 30px, #0EA5E9 60px, #FACC15 60px, #FACC15 90px, #22C55E 90px, #22C55E 120px);
    mask-image: conic-gradient(from 135deg at 50% 0%, #000000 0deg 90deg, transparent 90deg);
    mask-size: 30px 28px;
    mask-repeat: repeat-x;
    border-top: 2px solid #2A0C12;
    pointer-events: none;
}

/* The cord the pennants hang from. */
.bunting::after {
    content: "";
    position: absolute;
    left: 0px;
    right: 0px;
    top: 100%;
    height: 2px;
    background-color: #2A0C12;
}

/* Nav hidden on phones until opened. */
.bunting-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .bunting-nav {
    display: block;
}

/* Nav list. */
.bunting-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links. */
.bunting-nav a {
    color: #2A0C12;
    font-weight: 600;
    text-decoration: none;
}

/* Hover: coral. */
.bunting-nav a:hover {
    color: #BD3149;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Balloon hero (class) ----- */

/* Words then photo. */
.balloons {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 24px 16px 60px 16px;
}

/* Headline. */
.balloon-text h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    margin-bottom: 14px;
}

/* Hero words. */
.balloon-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Photo with balloons floating at its top corner. */
.photo-float {
    position: relative;
    padding-top: 50px;
}

/* Photo with a thick white border, tilted. */
.photo-float img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border: 10px solid #FFFFFF;
    box-shadow: 0px 6px 18px rgba(42, 12, 18, 0.2);
    transform: rotate(2deg);
}

/* One balloon with a shine and a string. */
.balloon {
    position: absolute;
    width: 54px;
    height: 66px;
    border-radius: 50% 50% 48% 48%;
    background-image: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6) 0px, rgba(255, 255, 255, 0.6) 6px, transparent 8px);
    z-index: 2;
}

/* String hanging down. */
.balloon::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 70px;
    background-color: #2A0C12;
}

/* Coral balloon. */
.bl1 {
    top: 0px;
    right: 20px;
    background-color: #F43F5E;
}

/* Sky balloon. */
.bl2 {
    top: 20px;
    right: 70px;
    background-color: #0EA5E9;
}

/* Yellow balloon. */
.bl3 {
    top: 6px;
    right: 120px;
    background-color: #FACC15;
}

/* Coral pill button. */
.pop-btn,
button {
    display: inline-block;
    background-color: #F43F5E;
    color: #2A0C12;
    font-family: "Lilita One", Arial, sans-serif;
    font-size: 1.15rem;
    text-decoration: none;
    border: none;
    border-radius: 40px;
    box-shadow: 0px 5px 0px #BD3149;
    padding: 12px 28px;
    cursor: pointer;
}

/* Button hover. */
.pop-btn:hover,
button:hover {
    background-color: #FACC15;
}

/* ----- Yard plan (class) ----- */

/* Section spacing. */
.plan {
    background-color: #E0F2FE;
    padding: 56px 16px;
}

/* Plan then receipt. */
.plan-row {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Lawn seen from above, with mower stripes. */
.yard {
    position: relative;
    height: 340px;
    background-color: #4ADE80;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 30px, rgba(255, 255, 255, 0.15) 30px, rgba(255, 255, 255, 0.15) 60px);
    border: 4px solid #8C6A44;
    border-radius: 6px;
}

/* Shared item look: label centered inside. */
.item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2A0C12;
}

/* Tent: white and coral stripes. */
.tent {
    top: 6%;
    left: 4%;
    width: 52%;
    height: 54%;
    background-image: repeating-linear-gradient(45deg, #FFFFFF 0px, #FFFFFF 12px, #FECDD3 12px, #FECDD3 24px);
    border: 2px solid #BD3149;
    align-items: flex-start;
    padding-top: 4px;
}

/* Bounce castle: a blue square with corner towers. */
.castle {
    top: 8%;
    right: 6%;
    width: 30%;
    height: 34%;
    background-color: #7DD3FC;
    border: 3px solid #096F9D;
    box-shadow: -6px -6px 0px -2px #FACC15, 6px -6px 0px -2px #FACC15;
}

/* Round tables inside the tent. */
.tbl {
    width: 13%;
    height: 0px;
    padding-bottom: 13%;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 2px solid #2A0C12;
}

/* Table 1. */
.t1 {
    top: 20%;
    left: 10%;
}

/* Table 2. */
.t2 {
    top: 20%;
    left: 34%;
}

/* Table 3. */
.t3 {
    top: 38%;
    left: 10%;
}

/* Table 4. */
.t4 {
    top: 38%;
    left: 34%;
}

/* Cotton candy cart. */
.candy {
    top: 52%;
    right: 10%;
    width: 22%;
    height: 14%;
    background-color: #F9A8D4;
    border: 2px solid #BD3149;
    border-radius: 6px;
}

/* House along the bottom. */
.house {
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 22%;
    background-color: #D6D3D1;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 40px, #A8A29E 40px, #A8A29E 42px);
    font-size: 0.85rem;
}

/* Receipt paper. */
.receipt {
    background-color: #FFFFFF;
    padding: 20px 18px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    border-top: 8px dotted #E0F2FE;
    border-bottom: 8px dotted #E0F2FE;
}

/* Receipt heading. */
.r-head {
    font-weight: 700;
    border-bottom: 2px dashed #2A0C12;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

/* Receipt lines. */
.receipt ul {
    list-style: none;
}

/* One line. */
.receipt li,
.r-total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0px;
}

/* Total line. */
.r-total {
    border-top: 2px dashed #2A0C12;
    margin-top: 6px;
    padding-top: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #BD3149;
}

/* ----- Bounce houses (ID) ----- */

/* Section spacing. */
#bounce {
    padding: 56px 16px;
}

/* Castles in a row, bottoms lined up. */
.castles {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 28px;
}

/* One bounce house card. */
.bh {
    background-color: #FFFFFF;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

/* Inflatable castle: puffy walls, crenellated top, arched door. */
.castle-art {
    position: relative;
    width: var(--w);
    height: var(--h);
    margin: 20px auto 10px auto;
    background-color: #F43F5E;
    border-radius: 12px 12px 4px 4px;
    background-image: linear-gradient(180deg, #FACC15 0px, #FACC15 14px, transparent 14px);
    box-shadow: inset 0px -10px 0px #0EA5E9;
}

/* Crenellations along the top. */
.castle-art::before {
    content: "";
    position: absolute;
    left: 0px;
    right: 0px;
    top: -14px;
    height: 14px;
    background-image: linear-gradient(90deg, #FACC15 50%, transparent 50%);
    background-size: 20px 14px;
}

/* Arched door. */
.door {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 30%;
    height: 45%;
    transform: translateX(-50%);
    background-color: #2A0C12;
    border-radius: 40px 40px 0px 0px;
}

/* Small castle size. */
.small {
    --w: 110px;
    --h: 90px;
}

/* Middle castle size. */
.mid {
    --w: 140px;
    --h: 110px;
}

/* Big combo size. */
.big {
    --w: 200px;
    --h: 120px;
}

/* Bounce house name. */
.bh h3 {
    font-size: 1.5rem;
}

/* Price. */
.price {
    margin-top: 8px;
    font-family: "Lilita One", Arial, sans-serif;
    font-size: 1.3rem;
    color: #096F9D;
}

/* Two photos. */
.bounce-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.bounce-photos img {
    width: 50%;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;
}

/* ----- Booking (class) ----- */

/* Coral band. */
.book {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #FECDD3;
    padding: 56px 16px;
}

/* Party table photo. */
.book img {
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
}

/* Form box. */
.book-form fieldset {
    border: none;
    background-color: #FFFFFF;
    border-radius: 14px;
    padding: 24px;
}

/* Form title. */
.book-form legend {
    font-family: "Lilita One", Arial, sans-serif;
    font-size: 1.6rem;
    color: #BD3149;
    float: left;
    width: 100%;
}

/* Labels. */
.book-form label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
}

/* Inputs. */
.book-form input {
    width: 100%;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #7A6266;
    border-radius: 10px;
}

/* Submit spacing. */
.book-form button {
    margin-top: 18px;
}

/* ----- Confetti footer (class) ----- */

/* Dark floor sprinkled with colored confetti. */
.confetti {
    background-color: #2A0C12;
    background-image: radial-gradient(circle at 10% 20%, #F43F5E 0px, #F43F5E 3px, transparent 4px), radial-gradient(circle at 60% 70%, #0EA5E9 0px, #0EA5E9 3px, transparent 4px), radial-gradient(circle at 35% 85%, #FACC15 0px, #FACC15 3px, transparent 4px), radial-gradient(circle at 85% 30%, #22C55E 0px, #22C55E 3px, transparent 4px);
    background-size: 90px 60px, 70px 50px, 80px 70px, 60px 80px;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 30px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller yard. */
    .yard {
        height: 400px;
    }

    /* Bigger item labels. */
    .item {
        font-size: 0.85rem;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Yard beside the receipt. */
    .plan-row {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Yard column. */
    .yard {
        flex: 1 1 58%;
    }

    /* Receipt column. */
    .receipt {
        flex: 1 1 38%;
    }

    /* Castles side by side, bottoms aligned. */
    .castles {
        flex-direction: row;
        align-items: flex-end;
    }

    /* Each castle card. */
    .bh {
        flex: 1 1 30%;
    }

    /* Photo beside the form. */
    .book {
        flex-direction: row;
    }

    /* Each half. */
    .book img,
    .book-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .book img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Logo left, nav right. */
    .bunting {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .bunting-nav {
        display: block;
    }

    /* Nav in a row. */
    .bunting-nav ul {
        flex-direction: row;
        gap: 26px;
        padding-top: 0px;
    }

    /* Words beside the photo. */
    .balloons {
        flex-direction: row;
        align-items: center;
        padding: 30px 40px 70px 40px;
    }

    /* Each half. */
    .balloon-text,
    .photo-float {
        flex: 1 1 50%;
    }

    /* Taller photo. */
    .photo-float img {
        height: 400px;
    }

    /* Wider sections. */
    .plan,
    #bounce,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .balloons,
    .plan,
    #bounce,
    .book {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
