/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Low Water Brewing Co. (fictional business)
    Filename:   styles.css

    Theme: the brewhouse floor. The header is brushed stainless steel
    (fine repeating gradients) with rivets at the ends, a stenciled
    name, and nav links on little tank tags. A pint is drawn in the
    hero: a tapered glass (clip-path) filled amber with rising bubble
    dots and a white foam head. The tap board is a black menu board:
    a circle in each beer's actual color and a five-step bitterness
    bar. Food trucks this week are little trucks drawn in CSS (box,
    cab, two wheels). The Mug Club shows mugs hanging on pegs with one
    empty spot left, and the footer is a row of bottle caps.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #1A120C text on #FBF6F0 page (17.6:1)
      #B33C0B orange text (5.6:1 on the page)
      #FFFFFF on #C2410C buttons (5.2:1)
      #F5F0E8 chalk on #171717 board (17.2:1)
      #1A120C on #D4D4D8 steel (12.9:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Warm off-white page. */
body {
    background-color: #FBF6F0;
    color: #1A120C;
    font-family: "Barlow", Arial, sans-serif;
    font-size: 1.04rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Tall stencil-like caps for headings. */
h1,
h2 {
    font-family: "Bebas Neue", Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.95;
}

/* Section titles. */
h2 {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    margin-bottom: 10px;
}

/* Links in orange. */
a {
    color: #B33C0B;
}

/* Teal outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-check:focus-visible + .steel-row .menu-icon {
    outline: 3px solid #0F766E;
    outline-offset: 3px;
}

/* ----- Steel header (class) ----- */

/* Brushed stainless bar with rivets at both ends. */
.steel {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #D4D4D8;
    background-image: radial-gradient(circle 4px at 10px 50%, #71717A 96%, transparent 100%), radial-gradient(circle 4px at calc(100% - 10px) 50%, #71717A 96%, transparent 100%), repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0px, rgba(255, 255, 255, 0.4) 1px, transparent 1px, transparent 3px);
    border-bottom: 3px solid #71717A;
    padding: 8px 26px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Name and menu in a row. */
.steel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Stenciled name with gaps cut in the letters. */
.stencil {
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 2rem;
    line-height: 1;
    color: #1A120C;
}

/* "Brewing Co." in orange. */
.stencil span {
    color: #B33C0B;
}

/* Menu button. */
.menu-icon {
    background-color: #1A120C;
    color: #FFFFFF;
    font-weight: 700;
    padding: 4px 12px;
    cursor: pointer;
}

/* Tank-tag nav hidden on phones until opened. */
.tank-tags {
    display: none;
}

/* Open menu shows the tags. */
.menu-check:checked ~ .tank-tags {
    display: block;
}

/* Tags wrap in a row. */
.tank-tags ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0px 4px 0px;
}

/* One tank tag: a stamped metal plate on a little chain. */
.tank-tags a {
    display: block;
    background-color: #F4F4F5;
    color: #1A120C;
    text-decoration: none;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    padding: 2px 12px;
    border: 2px solid #71717A;
    border-radius: 3px;
}

/* Tag hover turns orange. */
.tank-tags a:hover {
    background-color: #C2410C;
    color: #FFFFFF;
    border-color: #C2410C;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    background-color: #F6E8DE;
    padding: 4px 18px;
}

/* ----- Hero (class) ----- */

/* Pint, text, photo stacked on phones. */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    background-color: #1A120C;
    color: #FBF6F0;
    padding: 40px 18px 50px 18px;
}

/* A pint glass: tapered sides, amber beer, rising bubbles. Hidden on
   phones so the headline and the brewer photo fit the first screen. */
.pint {
    display: none;
    position: relative;
    width: 130px;
    height: 200px;
    clip-path: polygon(0% 0%, 100% 0%, 88% 100%, 12% 100%);
    background-color: #D97706;
    background-image: radial-gradient(circle 2px, rgba(255, 255, 255, 0.7) 96%, transparent 100%), linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.2) 100%);
    background-size: 18px 22px, 100% 100%;
    animation: fizz 4s linear infinite;
}

/* Foam head on top. */
.head {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 36px;
    background-color: #FFF8E7;
    background-image: radial-gradient(circle 8px at 20% 100%, #FFF8E7 96%, transparent 100%), radial-gradient(circle 10px at 60% 100%, #FFF8E7 96%, transparent 100%);
    border-bottom: 3px solid #F5E6C4;
}

/* Bubbles drift upward. */
@keyframes fizz {
    from {
        background-position: 0px 0px, 0px 0px;
    }
    to {
        background-position: 0px -220px, 0px 0px;
    }
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.hero-text p {
    max-width: 32rem;
    margin-bottom: 20px;
}

/* Orange button shaped like a tap handle top. */
.tap-btn,
button {
    display: inline-block;
    background-color: #C2410C;
    color: #FFFFFF;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: none;
    border-radius: 18px 18px 4px 4px;
    border-bottom: 6px solid #9CA3AF;
    padding: 8px 24px 4px 24px;
    cursor: pointer;
}

/* Button hover in teal. */
.tap-btn:hover,
button:hover {
    background-color: #0F766E;
}

/* Tank photo. */
.hero > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ----- Tap board (ID) ----- */

/* Section spacing; board then photo. */
#taps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 18px;
}

/* Black menu board with a wood frame. */
.board {
    background-color: #171717;
    color: #F5F0E8;
    border: 10px solid #6B4423;
    padding: 24px 20px;
}

/* Board title. */
.board h2 {
    color: #FDBA74;
}

/* Board subtitle. */
.board-sub {
    margin-bottom: 14px;
}

/* Beer list. */
.beers {
    list-style: none;
}

/* One beer: color circle, name, bitterness bar. */
.beers li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0px;
    border-bottom: 1px dashed #52525B;
}

/* Beer color circle. */
.srm {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #F5F0E8;
    background-color: var(--srm);
}

/* Pale ale color. */
.s-pale {
    --srm: #E8A33B;
}

/* Hazy IPA color. */
.s-haze {
    --srm: #F2C14E;
}

/* Kolsch color. */
.s-kol {
    --srm: #F6DE84;
}

/* Amber color. */
.s-amber {
    --srm: #B5501C;
}

/* Stout color. */
.s-stout {
    --srm: #1F0F08;
}

/* Root beer color. */
.s-root {
    --srm: #4A1E0E;
}

/* Beer name grows; style and ABV under it. */
.b-name {
    flex: 1 1 auto;
    font-weight: 700;
}

/* Style line. */
.b-name em {
    display: block;
    font-style: normal;
    font-weight: 400;
    font-size: 0.85rem;
    color: #D4D4D8;
}

/* Bitterness bar: five steps, filled to --hop. */
.hops {
    flex: 0 0 90px;
    height: 12px;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 16px, #171717 16px, #171717 18px), linear-gradient(#84CC16, #84CC16), linear-gradient(#3F3F46, #3F3F46);
    background-size: 100% 100%, var(--hop) 100%, 100% 100%;
    background-repeat: no-repeat;
}

/* Zero of five. */
.h0 {
    --hop: 0%;
}

/* One of five. */
.h1 {
    --hop: 20%;
}

/* Two of five. */
.h2 {
    --hop: 40%;
}

/* Three of five. */
.h3 {
    --hop: 60%;
}

/* Four of five. */
.h4 {
    --hop: 80%;
}

/* Key line. */
.board-key {
    font-size: 0.82rem;
    color: #D4D4D8;
    margin-top: 10px;
}

/* Pint photo. */
.pour {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ----- Food trucks (class) ----- */

/* Teal tint band. */
.trucks {
    background-color: #DFE7E0;
    padding: 56px 18px;
}

/* Trucks wrap. */
.fleet {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 14px;
    margin: 18px 0px 24px 0px;
}

/* One truck stop. */
.fleet li {
    flex: 1 1 40%;
    font-size: 0.92rem;
}

/* Day in big caps. */
.fleet strong {
    display: block;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1;
    color: #0E7068;
}

/* A little truck: box body, cab with a window, two wheels. */
.truck {
    position: relative;
    display: block;
    width: 120px;
    height: 70px;
    margin-bottom: 6px;
    background-image: linear-gradient(#0F766E, #0F766E), linear-gradient(#C2410C, #C2410C), linear-gradient(#BAE6FD, #BAE6FD);
    background-size: 84px 52px, 36px 36px, 20px 14px;
    background-position: 0px 0px, 84px 16px, 92px 20px;
    background-repeat: no-repeat;
}

/* The two wheels. */
.truck::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 0px;
    width: 92px;
    height: 20px;
    background-image: radial-gradient(circle 10px at 10px 10px, #1A120C 70%, #9CA3AF 72%, #9CA3AF 96%, transparent 100%), radial-gradient(circle 10px at 82px 10px, #1A120C 70%, #9CA3AF 72%, #9CA3AF 96%, transparent 100%);
}

/* Friends photo. */
.friends {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* ----- Mug club (class) ----- */

/* Section spacing. */
.mugs {
    padding: 56px 18px 60px 18px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Wall with a peg rail. */
.wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 22px 14px 18px 14px;
    background-color: #6B4423;
    background-image: linear-gradient(180deg, #3F2711 0px, #3F2711 10px, transparent 10px);
    border-radius: 6px;
}

/* One numbered mug with a handle. */
.mug {
    position: relative;
    width: 54px;
    height: 64px;
    border-radius: 4px 4px 12px 12px;
    background-color: #E7D3B8;
    box-shadow: inset -8px 0px 0px #C9B08C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1A120C;
}

/* The mug handle. */
.mug::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 14px;
    width: 14px;
    height: 28px;
    border: 5px solid #C9B08C;
    border-left: none;
    border-radius: 0px 14px 14px 0px;
}

/* The open spot: a dashed outline waiting for a mug. */
.mug.open {
    background-color: transparent;
    box-shadow: none;
    border: 3px dashed #FDBA74;
    color: #FDBA74;
}

/* Open spot has no handle. */
.mug.open::after {
    display: none;
}

/* Paragraph spacing. */
.mugs-text > p {
    margin-bottom: 16px;
}

/* The form. */
.mugs form fieldset {
    border: 3px solid #1A120C;
    padding: 16px 18px;
    margin-bottom: 18px;
}

/* Form title. */
.mugs legend {
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 1.8rem;
    padding: 0px 8px;
}

/* Labels. */
.mugs label {
    display: block;
    font-weight: 700;
}

/* Fields. */
.mugs input {
    width: 100%;
    font: inherit;
    border: 2px solid #1A120C;
    padding: 8px 10px;
    margin: 2px 0px 12px 0px;
}

/* Tanks photo. */
.mugs-text img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ----- Bottle cap footer (class) ----- */

/* Dark footer with a row of bottle caps on top. */
.caps {
    background-color: #1A120C;
    color: #D6D0C8;
    font-size: 0.82rem;
    text-align: center;
    padding: 50px 18px 24px 18px;
    background-image: radial-gradient(circle 12px at 20px 20px, #C2410C 60%, #FDBA74 62%, #FDBA74 70%, #C2410C 72%, #C2410C 96%, transparent 100%);
    background-size: 44px 40px;
    background-repeat: repeat-x;
}

/* Hours line brighter. */
.caps p:first-child {
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Three trucks a row. */
    .fleet li {
        flex: 1 1 28%;
    }

    /* Taller pint. */
    .pint {
        width: 150px;
        height: 240px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* The drawn pint shows from tablets up. */
    .pint {
        display: block;
    }

    /* Board beside the pint photo. */
    #taps {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Board column. */
    .board {
        flex: 1 1 62%;
    }

    /* Photo column. */
    .pour {
        width: 34%;
        height: 460px;
    }

    /* Wall beside the club text. */
    .mugs {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Wall column. */
    .wall {
        flex: 0 0 300px;
    }

    /* Text column. */
    .mugs-text {
        flex: 1 1 auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Name and tags in one row. */
    .steel {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Tags always shown. */
    .tank-tags {
        display: block;
    }

    /* Tags in a row. */
    .tank-tags ul {
        padding: 0px;
    }

    /* Pint, text, photo in a row. */
    .hero {
        flex-direction: row;
        padding: 60px 50px;
    }

    /* Pint keeps its size. */
    .pint {
        flex: 0 0 150px;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 50%;
    }

    /* Photo column. */
    .hero > img {
        width: 34%;
        height: 420px;
    }

    /* All five trucks in a row. */
    .fleet li {
        flex: 1 1 17%;
    }

    /* Trucks section padding. */
    .trucks {
        padding-left: 50px;
        padding-right: 50px;
    }

    /* Friends photo shorter and wide. */
    .friends {
        height: 300px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .steel,
    .hero,
    #taps,
    .trucks,
    .mugs {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* Bubbles hold still. */
    .pint {
        animation: none;
    }
}
