/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Scoop Shack (fictional business)
    Filename:   styles.css

    Theme: a soda fountain. The header is a mint-green fountain back bar
    with a round vintage sign for the logo and a chrome counter edge
    (metallic gradient) under it. A triple-scoop cone is drawn in the
    hero: three colored scoops with drips and a waffle cone made from a
    clip-path triangle with crossing stripes. Flavors are the dipping
    cabinet seen from above: round tub tops in each flavor's color with
    the name on a paper label. Build-a-sundae uses radio chips grouped
    in three steps. Hours are on a sidewalk sandwich board, and the
    footer is covered in sprinkles.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #2A0E1C text on #FFF7FB page (17.3:1)
      #C5236B pink text (5.3:1 on the page)
      #FFFFFF on #BE185D buttons (6.0:1)
      #2A0E1C on #A7F3D0 mint (13.2:1)
      #047284 teal text (5.4:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Pale pink page. */
body {
    background-color: #FFF7FB;
    color: #2A0E1C;
    font-family: "Quicksand", Arial, sans-serif;
    font-size: 1.04rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Bouncy hand-drawn headings. */
h1,
h2 {
    font-family: "Chewy", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.08;
}

/* Section titles in pink. */
h2 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    color: #C5236B;
    margin-bottom: 10px;
}

/* Links in pink. */
a {
    color: #C5236B;
}

/* Teal outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-check:focus-visible + .fountain-row .menu-icon {
    outline: 3px solid #047284;
    outline-offset: 3px;
}

/* ----- Fountain header (class) ----- */

/* Mint back bar with a chrome counter edge along the bottom. */
.fountain {
    background-color: #A7F3D0;
    padding: 12px 16px 12px 16px;
    border-bottom: 18px solid #A1A1AA;
    border-image: linear-gradient(180deg, #F4F4F5 0%, #A1A1AA 40%, #FFFFFF 55%, #71717A 100%) 1;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Sign, tagline and menu in a row. */
.fountain-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Round vintage sign with a pink ring. */
.round-sign {
    flex: 0 0 86px;
    height: 86px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 6px solid #BE185D;
    box-shadow: 0px 0px 0px 3px #FFFFFF, 0px 0px 0px 5px #BE185D;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Chewy", Arial, sans-serif;
    font-size: 1.3rem;
    line-height: 0.95;
    color: #BE185D;
}

/* "Shack" in teal. */
.round-sign span {
    color: #047284;
}

/* Tagline grows. */
.tagline {
    flex: 1 1 auto;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Menu button. */
.menu-icon {
    background-color: #BE185D;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 14px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.counter-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .counter-nav {
    display: block;
}

/* Nav list. */
.counter-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0px 4px 0px;
}

/* Links like little menu-board signs hung on the back bar. */
.counter-nav a {
    display: block;
    background-color: #FFFFFF;
    color: #2A0E1C;
    text-decoration: none;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 8px;
    border-bottom: 4px solid #F9A8D4;
}

/* Link hover. */
.counter-nav a:hover {
    border-bottom-color: #BE185D;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Hero (class) ----- */

/* Cone, text and photo stacked on phones. */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 30px 16px 50px 16px;
}

/* The cone drawing. Hidden on phones so the headline and the real cone
   photo fit on the first screen. */
.cone-art {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 160px;
}

/* One scoop with a drippy lower edge. */
.scoop {
    width: 120px;
    height: 70px;
    margin-bottom: -18px;
    border-radius: 60px 60px 30px 30px;
    background-color: var(--flavor);
    box-shadow: inset -10px -8px 0px rgba(0, 0, 0, 0.08);
}

/* Chocolate scoop on top. */
.s-choc {
    --flavor: #6B3F22;
    width: 100px;
}

/* Mint scoop in the middle with chips. */
.s-mint {
    --flavor: #A7F3D0;
    background-image: radial-gradient(circle 3px at 30% 40%, #3F2711 96%, transparent 100%), radial-gradient(circle 3px at 65% 55%, #3F2711 96%, transparent 100%), radial-gradient(circle 3px at 50% 30%, #3F2711 96%, transparent 100%);
}

/* Strawberry scoop at the bottom. */
.s-straw {
    --flavor: #F9A8D4;
    width: 130px;
}

/* Waffle cone: a triangle with crossing stripes. */
.cone {
    width: 110px;
    height: 140px;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    background-color: #E2A458;
    background-image: repeating-linear-gradient(45deg, transparent 0px, transparent 12px, #B9772F 12px, #B9772F 15px), repeating-linear-gradient(-45deg, transparent 0px, transparent 12px, #B9772F 12px, #B9772F 15px);
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.hero-text p {
    max-width: 30rem;
    margin-bottom: 20px;
}

/* Button shaped like a scoop on a stick. */
.scoop-btn,
button {
    display: inline-block;
    background-color: #BE185D;
    color: #FFFFFF;
    font-family: "Chewy", Arial, sans-serif;
    font-size: 1.3rem;
    text-decoration: none;
    border: none;
    border-radius: 40px 40px 14px 14px;
    padding: 10px 26px;
    box-shadow: 0px 6px 0px #F9A8D4;
    cursor: pointer;
}

/* Button hover. */
.scoop-btn:hover,
button:hover {
    background-color: #047284;
}

/* Shop photo. */
.hero > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 24px;
}

/* ----- Dipping cabinet (ID) ----- */

/* Teal tint band. */
#lids {
    background-color: #E1EFF6;
    padding: 56px 16px;
}

/* Intro line. */
.intro {
    max-width: 40rem;
    margin-bottom: 20px;
}

/* Cabinet top: stainless with two rows of round openings. */
.cabinet {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    background-color: #D4D4D8;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0px, rgba(255, 255, 255, 0.35) 1px, transparent 1px, transparent 4px);
    border: 8px solid #A1A1AA;
    border-radius: 14px;
    padding: 18px 12px;
}

/* One tub from above: a round of ice cream with a paper label across it. */
.cabinet li {
    flex: 0 0 96px;
    height: 96px;
    border-radius: 50%;
    border: 6px solid #FFFFFF;
    box-shadow: 0px 0px 0px 3px #71717A;
    background-color: var(--flavor);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 0px 4px;
}

/* Strawberry. */
.l1 {
    --flavor: #F9A8D4;
}

/* Mint chip. */
.l2 {
    --flavor: #A7F3D0;
}

/* Double fudge: dark, so the name is white. */
.l3 {
    --flavor: #5B3A29;
    color: #FFFFFF;
}

/* Butter pecan. */
.l4 {
    --flavor: #F5DEB3;
}

/* Blue moon. */
.l5 {
    --flavor: #93C5FD;
}

/* Vanilla bean. */
.l6 {
    --flavor: #FEF9E7;
}

/* Black cherry: dark, white words. */
.l7 {
    --flavor: #881337;
    color: #FFFFFF;
}

/* Lemon sorbet. */
.l8 {
    --flavor: #FDE047;
}

/* Cookie dough. */
.l9 {
    --flavor: #F3E3C3;
}

/* Peach cobbler. */
.l10 {
    --flavor: #FDBA74;
}

/* Rocky road: dark, white words. */
.l11 {
    --flavor: #6B4423;
    color: #FFFFFF;
}

/* Birthday cake with sprinkles. */
.l12 {
    --flavor: #FFFFFF;
    background-image: radial-gradient(circle 2px at 25% 30%, #EC4899 96%, transparent 100%), radial-gradient(circle 2px at 70% 25%, #3B82F6 96%, transparent 100%), radial-gradient(circle 2px at 75% 75%, #22C55E 96%, transparent 100%), radial-gradient(circle 2px at 30% 75%, #F59E0B 96%, transparent 100%);
}

/* Fine print. */
.fine {
    font-size: 0.85rem;
    color: #75636C;
    margin-top: 12px;
}

/* ----- Sundae builder (class) ----- */

/* Section spacing; builder then photos. */
.sundae {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 16px;
}

/* Builder card. */
.builder {
    background-color: #FFFFFF;
    border: 3px solid #F9A8D4;
    border-radius: 24px;
    padding: 22px;
}

/* Each step. */
.builder fieldset {
    border: none;
    margin-bottom: 12px;
}

/* Step title. */
.builder legend {
    font-family: "Chewy", Arial, sans-serif;
    font-size: 1.3rem;
    color: #047284;
}

/* Radio circles hidden, still focusable. */
.builder input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Option chips. */
.builder label {
    display: inline-block;
    border: 2px solid #2A0E1C;
    border-radius: 999px;
    padding: 4px 14px;
    margin: 4px 6px 4px 0px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Chosen chip turns pink. */
.builder input:checked + label {
    background-color: #BE185D;
    border-color: #BE185D;
    color: #FFFFFF;
}

/* Keyboard focus on a chip. */
.builder input:focus-visible + label {
    outline: 3px solid #047284;
    outline-offset: 2px;
}

/* Note line. */
.note {
    font-size: 0.9rem;
}

/* Two photos. */
.sundae-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.sundae-photos img {
    width: 50%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
}

/* ----- Hours (class) ----- */

/* Sandwich board then photo. */
.hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px 16px 60px 16px;
}

/* Sandwich board: chalk panel in a wood A-frame. */
.aboard {
    position: relative;
    background-color: #1F2937;
    color: #FFFFFF;
    border: 10px solid #B9772F;
    border-radius: 10px 10px 0px 0px;
    padding: 22px 20px;
    max-width: 420px;
    text-align: center;
}

/* The two legs of the A-frame. */
.aboard::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: -40px;
    height: 30px;
    background-image: linear-gradient(90deg, #B9772F 0px, #B9772F 14px, transparent 14px, transparent calc(100% - 14px), #B9772F calc(100% - 14px));
}

/* Board title in chalk pink. */
.aboard h2 {
    color: #F9A8D4;
}

/* Board lines. */
.aboard p {
    margin-bottom: 6px;
}

/* Phone link in chalk. */
.aboard a {
    color: #A7F3D0;
}

/* Cone photo. */
.hours > img {
    width: 100%;
    max-width: 420px;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    margin-top: 30px;
}

/* ----- Sprinkles footer (class) ----- */

/* Pink footer covered in sprinkles. */
.sprinkles {
    background-color: #FCE6F0;
    background-image: linear-gradient(30deg, transparent 46%, #3B82F6 46%, #3B82F6 54%, transparent 54%), linear-gradient(120deg, transparent 46%, #22C55E 46%, #22C55E 54%, transparent 54%), linear-gradient(75deg, transparent 46%, #F59E0B 46%, #F59E0B 54%, transparent 54%);
    background-size: 30px 30px, 42px 42px, 36px 36px;
    background-position: 0px 0px, 12px 8px, 20px 18px;
    font-size: 0.82rem;
    text-align: center;
    padding: 30px 16px;
}

/* Footer lines on white chips. */
.sprinkles p {
    display: inline-block;
    background-color: #FFFFFF;
    padding: 2px 10px;
    margin: 2px 0px;
    border-radius: 6px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Bigger tub tops. */
    .cabinet li {
        flex: 0 0 110px;
        height: 110px;
        font-size: 0.78rem;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* The drawn cone shows from tablets up. */
    .cone-art {
        display: flex;
    }


    /* Builder beside the photos. */
    .sundae {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .builder,
    .sundae-photos {
        flex: 1 1 50%;
    }

    /* Board beside the photo. */
    .hours {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    /* Photo keeps its top margin off on this layout. */
    .hours > img {
        margin-top: 0px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Nav always shown. */
    .counter-nav {
        display: block;
    }

    /* Signs centered under the logo row. */
    .counter-nav ul {
        justify-content: flex-end;
        margin-top: -50px;
        padding-bottom: 10px;
    }

    /* Cone, text and photo in a row. */
    .hero {
        flex-direction: row;
        padding: 50px 50px 60px 50px;
    }

    /* Cone keeps its size. */
    .cone-art {
        flex: 0 0 160px;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 50%;
    }

    /* Photo column. */
    .hero > img {
        width: 34%;
        height: 420px;
    }

    /* Wider cabinet section. */
    #lids {
        padding-left: 50px;
        padding-right: 50px;
    }

    /* Six tubs a row. */
    .cabinet li {
        flex: 0 0 130px;
        height: 130px;
        font-size: 0.85rem;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .fountain,
    .hero,
    #lids,
    .sundae {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
