/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Stone Bluff Winery (fictional business)
    Filename:   styles.css

    Theme: a hillside tasting room. The header is a centered crest: a
    grape cluster built from six purple circles over the estate name,
    with the nav set between thin gold rules. The hero photo is cut
    into the shape of a wine bottle with clip-path. The tasting flight
    is seen from above: five pours in round glasses on a wooden paddle,
    each filled with that wine's color, running dry to sweet along a
    gradient scale. Events are chalked on barrel heads (circles with
    stave lines and iron hoops). The reservation form is a cream menu
    card with a gold border, and the footer has a cork texture.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #1F0C14 text on #FBF7F2 page (17.9:1)
      #6B213B wine text (10.6:1 on the page)
      #FFFFFF on #6B213B buttons (11.4:1)
      #796117 gold text (5.6:1)
      #F5EDDA chalk on #4A2C17 barrel wood (11.3:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Cream page. */
body {
    background-color: #FBF7F2;
    color: #1F0C14;
    font-family: "Mulish", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Elegant serif headings. */
h1,
h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Section titles in wine red. */
h2 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    color: #6B213B;
    margin-bottom: 10px;
}

/* Links in wine red. */
a {
    color: #6B213B;
}

/* Gold outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-check:focus-visible + .crest-row .menu-icon {
    outline: 3px solid #C9A227;
    outline-offset: 3px;
}

/* ----- Crest header (class) ----- */

/* Centered cream header. */
.crest-head {
    text-align: center;
    padding: 18px 16px 8px 16px;
    border-bottom: 1px solid #DAD4D1;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Crest, name and menu stack. */
.crest-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Grape cluster: six circles in rows of 3, 2, 1. */
.grapes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 48px;
    gap: 2px;
}

/* One grape. */
.grapes span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #6B213B;
    box-shadow: inset -3px -3px 0px #4A1527;
}

/* Fourth grape starts the second row (two grapes, centered). */
.grapes span:nth-child(4) {
    margin-left: 7px;
}

/* Fifth grape. */
.grapes span:nth-child(5) {
    margin-right: 7px;
}

/* Last grape alone at the bottom. */
.grapes span:nth-child(6) {
    margin: 0px 17px;
}

/* Estate name. */
.estate {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
}

/* Second line in gold small caps. */
.estate span {
    display: block;
    font-family: "Mulish", Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #796117;
    margin-top: 6px;
}

/* Menu text button. */
.menu-icon {
    font-weight: 700;
    color: #6B213B;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.vine-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .vine-nav {
    display: block;
}

/* Nav between two thin gold rules. */
.vine-nav ul {
    list-style: none;
    border-top: 1px solid #C9A227;
    border-bottom: 1px solid #C9A227;
    margin: 12px 0px 6px 0px;
    padding: 6px 0px;
}

/* Italic links. */
.vine-nav a {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #1F0C14;
    text-decoration: none;
    padding: 5px 0px;
}

/* Wine-red on hover. */
.vine-nav a:hover {
    color: #6B213B;
    text-decoration: underline;
}

/* Concept note. */
.concept {
    font-size: 0.78rem;
    color: #6E6265;
    margin-top: 6px;
}

/* ----- Bottle hero (class) ----- */

/* Bottle then text on phones. */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 18px 56px 18px;
}

/* Bottle silhouette: neck, shoulders, body. */
.bottle {
    width: 200px;
    height: 420px;
    clip-path: polygon(40% 0%, 60% 0%, 60% 22%, 64% 28%, 96% 40%, 100% 46%, 100% 100%, 0% 100%, 0% 46%, 4% 40%, 36% 28%, 40% 22%);
    background-color: #6B213B;
}

/* Vineyard photo fills the bottle. */
.bottle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Small gold line. */
.est {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #796117;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin: 8px 0px 14px 0px;
}

/* Hero paragraph. */
.hero-text p:not(.est) {
    max-width: 32rem;
    margin-bottom: 20px;
}

/* Wine-red button with a cork-colored edge. */
.cork-btn,
button {
    display: inline-block;
    background-color: #6B213B;
    color: #FFFFFF;
    font-family: "Mulish", Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-right: 14px solid #C9A27A;
    border-radius: 4px;
    padding: 12px 22px;
    cursor: pointer;
}

/* Button hover. */
.cork-btn:hover,
button:hover {
    background-color: #4A1527;
}

/* ----- Flight (ID) ----- */

/* Pale wine tint band. */
#flight {
    background-color: #EFE6E3;
    padding: 56px 18px;
}

/* Intro line. */
.intro {
    max-width: 40rem;
    margin-bottom: 22px;
}

/* Wooden flight paddle with a handle on the right. */
.paddle {
    position: relative;
    background-color: #A0703F;
    background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0px, rgba(0, 0, 0, 0.06) 2px, transparent 2px, transparent 18px);
    border-radius: 60px 20px 20px 60px;
    padding: 18px 16px 12px 16px;
    margin-bottom: 26px;
}

/* Pours wrap on phones. */
.pours {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* One pour. */
.pours li {
    flex: 1 1 28%;
    text-align: center;
    font-size: 0.82rem;
    color: #FFFFFF;
    text-shadow: 0px 1px 2px #1F0C14;
}

/* Wine name. */
.pours strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.05rem;
}

/* A glass seen from above: clear rim, wine inside. */
.pour {
    display: block;
    width: 70px;
    height: 70px;
    margin: 0px auto 6px auto;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.85);
    background-image: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.45) 0px, rgba(255, 255, 255, 0.45) 6px, transparent 7px), radial-gradient(circle, var(--wine) 0%, var(--wine) 100%);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

/* Norton. */
.w-norton {
    --wine: #3B0A1E;
}

/* Rose. */
.w-rose {
    --wine: #F4A7A3;
}

/* Chambourcin. */
.w-chamb {
    --wine: #7A1F33;
}

/* Vignoles. */
.w-vig {
    --wine: #F1D98A;
}

/* Catawba. */
.w-cat {
    --wine: #E97A8E;
}

/* Dry-to-sweet scale along the paddle. */
.scale {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    background-image: linear-gradient(90deg, #C9A227, #7A1F33, #E97A8E);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Wine glasses photo. */
.glasses {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* ----- Barrel room (class) ----- */

/* Dark cellar band. */
.barrels {
    background-color: #1F0C14;
    color: #F5EDDA;
    padding: 56px 18px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Section title in gold on dark. */
.barrels h2 {
    color: #C9A227;
}

/* Barrel heads wrap. */
.heads {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* One barrel head: round staves with two iron hoops. */
.heads li {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #4A2C17;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 22px, rgba(0, 0, 0, 0.25) 22px, rgba(0, 0, 0, 0.25) 24px);
    border: 8px solid #2B2B2B;
    box-shadow: 0px 0px 0px 4px #4A2C17, 0px 0px 0px 8px #2B2B2B;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px;
    font-size: 0.82rem;
    line-height: 1.3;
}

/* Event name chalked big. */
.heads strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* Two photos. */
.barrel-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.barrel-photos img {
    width: 50%;
    height: 220px;
    object-fit: cover;
}

/* ----- Reserve (class) ----- */

/* Section spacing. */
.reserve {
    padding: 56px 18px 60px 18px;
}

/* Cream menu card with a double gold border. */
.menu-card {
    max-width: 560px;
    margin: 0px auto;
    background-color: #FFFFFF;
    border: 6px double #C9A227;
    padding: 26px 24px;
    text-align: center;
}

/* No fieldset border. */
.menu-card fieldset {
    border: none;
}

/* Card title. */
.menu-card legend {
    margin: 0px auto 8px auto;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #6B213B;
}

/* Card intro. */
.menu-card p {
    margin-bottom: 14px;
}

/* Labels in small caps. */
.menu-card label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Centered fields with a thin underline. */
.menu-card input {
    width: 100%;
    font: inherit;
    text-align: center;
    border: none;
    border-bottom: 1px solid #6B213B;
    background-color: #FBF7F2;
    padding: 8px;
    margin: 2px 0px 14px 0px;
}

/* ----- Cork footer (class) ----- */

/* Cork texture from small speckles. */
.cork {
    background-color: #C9A27A;
    background-image: radial-gradient(#9C7A55 1px, transparent 1.5px), radial-gradient(#E3C9A6 1px, transparent 1.5px);
    background-size: 7px 7px, 11px 11px;
    background-position: 0px 0px, 3px 4px;
    color: #1F0C14;
    font-size: 0.82rem;
    text-align: center;
    padding: 26px 18px;
}

/* Footer lines on a cream chip over the cork. */
.cork p {
    display: inline-block;
    background-color: rgba(251, 247, 242, 0.9);
    padding: 2px 10px;
    margin: 2px 0px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Bigger barrel heads. */
    .heads li {
        width: 180px;
        height: 180px;
    }

    /* Bigger pours. */
    .pour {
        width: 84px;
        height: 84px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* All five pours in one row on the paddle. */
    .pours li {
        flex: 1 1 18%;
    }

    /* Paddle grows a handle on the right. */
    .paddle {
        margin-right: 60px;
    }

    /* The paddle handle. */
    .paddle::after {
        content: "";
        position: absolute;
        right: -60px;
        top: 50%;
        width: 64px;
        height: 34px;
        margin-top: -17px;
        background-color: #8A5E32;
        border-radius: 0px 17px 17px 0px;
    }

    /* Barrel text beside the photos. */
    .barrels {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .barrel-text,
    .barrel-photos {
        flex: 1 1 50%;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Nav always shown in one centered row. */
    .vine-nav {
        display: block;
    }

    /* Links in a row between the rules. */
    .vine-nav ul {
        display: flex;
        justify-content: center;
        gap: 40px;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Bottle beside the text. */
    .hero {
        flex-direction: row;
        justify-content: center;
        gap: 70px;
        padding: 60px 60px 70px 60px;
    }

    /* Taller bottle. */
    .bottle {
        flex: 0 0 260px;
        height: 540px;
    }

    /* Text column. */
    .hero-text {
        flex: 0 1 560px;
    }

    /* Wider padding. */
    #flight {
        padding-left: 60px;
        padding-right: 60px;
    }

    /* Paddle and photo side by side. */
    #flight {
        display: flex;
        flex-wrap: wrap;
        column-gap: 90px;
    }

    /* Title and intro span the row. */
    #flight h2,
    #flight .intro {
        flex: 1 1 100%;
    }

    /* Paddle column. */
    .paddle {
        flex: 1 1 58%;
        align-self: center;
    }

    /* Photo column. */
    .glasses {
        flex: 1 1 26%;
        width: 26%;
        height: 300px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    #flight,
    .barrels {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
