/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Wild Violet Flower Studio (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first. A soft, garden-journal look: serif
    headings, an arched photo frame, and a pinboard gallery built with
    CSS multi-column layout (column-count) instead of Grid. The bouquet
    builder is a real form; checked options get a violet border through
    the :checked + span pattern. Media queries at 576px, 768px, 992px and
    1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #2E1A33 plum ink   #5B2C83 violet   #F8EEF1 blush   #4A5F44 sage
      #FFFBF7 cream      #6A5A6E muted text
*/

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

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

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

/* Cream page, plum text, Karla for reading. */
body {
    background-color: #FFFBF7;
    color: #2E1A33;
    font-family: Karla, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Serif headings in the Cormorant face. */
h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 8px;
}

/* Links are violet and underlined so they are not shown by color alone. */
a {
    color: #5B2C83;
}

/* Violet focus ring for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible + span,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #5B2C83;
    outline-offset: 3px;
}

/* Muted intro under section titles. */
.lead {
    color: #6A5A6E;
    max-width: 36rem;
    margin-bottom: 28px;
}

/* Small print for sample price notes. */
.small {
    font-size: 0.85rem;
    color: #6A5A6E;
}

/* ----- Valentine's ribbon (class) ----- */

/* Plum strip across the very top of the page. */
.ribbon {
    background-color: #2E1A33;
    color: #F8EEF1;
    text-align: center;
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Pink heart icon in the ribbon. */
.ribbon i {
    color: #F2A7C3;
    margin-right: 6px;
}

/* ----- Header (class) ----- */

/* Header sits on the cream page with a fine bottom rule. */
.site-header {
    border-bottom: 1px solid #E8D8DE;
}

/* Logo and menu button share a row; nav drops below on phones. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

/* Serif logo text. */
.logo {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
}

/* Violet flower glyph before the name. */
.logo-mark {
    color: #5B2C83;
}

/* The tagline under the logo. */
.logo small {
    display: block;
    font-family: Karla, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6A5A6E;
}

/* Checkbox that drives the menu. Hidden with opacity, not display:none,
   so it can still be reached with the keyboard. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* The visible Menu button. */
.menu-icon {
    border: 1px solid #2E1A33;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 700;
    cursor: pointer;
}

/* Nav is hidden on phones until the menu is opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* When the checkbox is checked, show the nav (Responsive Lab pattern). */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* Remove bullets from the nav list. */
.site-nav ul {
    list-style: none;
    padding-top: 10px;
}

/* Phone nav links stack with a thin divider. */
.site-nav a {
    display: block;
    padding: 10px 0px;
    border-top: 1px solid #E8D8DE;
    color: #2E1A33;
    text-decoration: none;
    font-weight: 600;
}

/* Hover underline on nav links. */
.site-nav a:hover {
    text-decoration: underline;
}

/* Concept notice under the header row. */
.concept-note {
    background-color: #F8EEF1;
    font-size: 0.85rem;
    text-align: center;
    padding: 6px 16px;
}

/* ----- Hero (class) ----- */

/* Phone hero: text, then photo. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 40px 20px;
}

/* Small uppercase line above the headline. */
.eyebrow {
    color: #4A5F44;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* Big serif headline. */
.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    margin-bottom: 16px;
}

/* Italic violet part of the headline. */
.hero h1 em {
    color: #5B2C83;
}

/* Paragraph under the headline. */
.hero-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Violet pill button. */
.button,
button {
    display: inline-block;
    background-color: #5B2C83;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    font-family: Karla, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* Darker violet on hover. */
.button:hover,
button:hover {
    background-color: #3F1D5C;
}

/* The phone link beside the button. */
.text-link {
    display: inline-block;
    margin: 12px 0px 0px 14px;
    font-weight: 700;
}

/* Arched frame: big rounded top corners make a window shape. */
.hero-arch {
    border-radius: 999px 999px 18px 18px;
    overflow: hidden;
    border: 8px solid #F8EEF1;
}

/* Photo fills the arch. */
.hero-arch img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* ----- Bouquet builder (ID and class) ----- */

/* Blush panel behind the builder. */
#build {
    background-color: #F8EEF1;
    padding: 56px 20px;
}

/* The three steps stack on phones. */
.builder {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Each step is a white card. */
.builder fieldset {
    background-color: #FFFFFF;
    border: 1px solid #E8D8DE;
    border-radius: 14px;
    padding: 18px;
}

/* Step titles. */
.builder legend {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0px 6px;
}

/* Size options are full-width rows. */
.size {
    display: block;
    margin-top: 8px;
    position: relative;
}

/* Hide the radio dot visually but keep it focusable. */
.size input {
    position: absolute;
    opacity: 0;
}

/* The visible size card. */
.size span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border: 2px solid #E8D8DE;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
}

/* Price in each size card. */
.size em {
    font-style: normal;
    font-weight: 700;
    color: #5B2C83;
}

/* The chosen size gets a violet border and tint. */
.size input:checked + span {
    border-color: #5B2C83;
    background-color: #F3EAF8;
}

/* Flower checkboxes wrap in two columns on phones. */
.stems {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* One flower choice. */
.stem {
    flex: 1 1 140px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    cursor: pointer;
}

/* Bigger checkboxes, tinted violet. */
.stem input {
    width: 20px;
    height: 20px;
    accent-color: #5B2C83;
}

/* A colored dot for each flower, decorative only (the name is the label). */
.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Tulip pink. */
.dot-tulip {
    background-color: #E86A92;
}

/* Ranunculus peach. */
.dot-ranunculus {
    background-color: #F4A261;
}

/* Rose red. */
.dot-rose {
    background-color: #B5174F;
}

/* Eucalyptus grey-green. */
.dot-euc {
    background-color: #8FA98B;
}

/* Lisianthus lavender. */
.dot-lis {
    background-color: #A88BD1;
}

/* Wildflowers, a yellow-to-blue gradient. */
.dot-wild {
    background-image: linear-gradient(135deg, #F2C14E, #5B8DD9);
}

/* Labels and fields inside the last step. */
.wrap label {
    display: block;
    font-weight: 700;
    margin-top: 10px;
}

/* Text fields and selects across the site. */
select,
textarea,
input[type="text"],
input[type="tel"],
input[type="date"] {
    width: 100%;
    font-family: Karla, sans-serif;
    font-size: 1rem;
    padding: 10px;
    border: 1px solid #B9A5BE;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #2E1A33;
    margin-top: 4px;
}

/* Space above the submit button in the builder. */
.wrap button {
    margin-top: 16px;
}

/* ----- Occasions (class) ----- */

/* Section padding. */
.occasions {
    padding: 56px 20px;
}

/* Occasion cards stack on phones. */
.occasion-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* One occasion: a left border in sage. */
.occasion-list div {
    border-left: 4px solid #4A5F44;
    padding: 4px 0px 4px 16px;
}

/* Occasion name. */
.occasion-list dt {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Icons beside the occasion name. */
.occasion-list dt i {
    color: #5B2C83;
    font-size: 1.1rem;
    margin-right: 6px;
}

/* ----- Gallery pinboard (ID and class) ----- */

/* Sage background so the photos pop. */
#gallery {
    background-color: #4A5F44;
    color: #FFFFFF;
    padding: 56px 20px;
}

/* One column on phones; column-count rises with screen size. */
.pinboard {
    column-count: 1;
    column-gap: 18px;
    margin-top: 24px;
}

/* Each pin stays in one piece inside its column. */
.pinboard figure {
    break-inside: avoid;
    margin-bottom: 18px;
    background-color: #FFFBF7;
    color: #2E1A33;
    border-radius: 12px;
    overflow: hidden;
}

/* Caption under each photo. */
.pinboard figcaption {
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Text-only pins. */
.quote-card {
    padding: 22px 8px 6px 8px;
}

/* Serif quote inside the text pin. */
.quote-card blockquote {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.2;
    padding: 0px 14px;
}

/* A blush pin for the same-day cutoff. */
.quote-sage {
    background-color: #F8EEF1;
}

/* Big "2 pm" number. */
.big-number {
    font-family: "Cormorant Garamond", serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    padding: 0px 14px;
    color: #5B2C83;
}

/* ----- Preorder (class) ----- */

/* Section with the text and form stacked on phones. */
.order {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 56px 20px;
}

/* Check list of delivery details. */
.checks {
    list-style: none;
    margin-top: 16px;
}

/* One delivery detail. */
.checks li {
    padding: 4px 0px;
}

/* Sage check icons. */
.checks i {
    color: #4A5F44;
    margin-right: 8px;
}

/* The form card with a soft shadow. */
.order-form {
    background-color: #FFFFFF;
    border: 1px solid #E8D8DE;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0px 12px 30px rgba(46, 26, 51, 0.08);
}

/* Form labels. */
.order-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Space above the submit button. */
.order-form button {
    margin-top: 18px;
    width: 100%;
}

/* ----- Footer (class) ----- */

/* Plum footer. */
.site-footer {
    background-color: #2E1A33;
    color: #F8EEF1;
    text-align: center;
    font-size: 0.9rem;
    padding: 24px 20px;
}

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

@media (min-width: 576px) {

    /* Two pinboard columns. */
    .pinboard {
        column-count: 2;
    }

    /* Size options sit side by side. */
    .sizes {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Each size takes a third. */
    .size {
        flex: 1 1 150px;
    }

    /* Size card stacks name, stems and price. */
    .size span {
        flex-direction: column;
        text-align: center;
    }

    /* Legend takes its own row above the size cards. */
    .sizes legend {
        width: 100%;
    }
}

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

@media (min-width: 768px) {

    /* Wider padding on all main sections. */
    .hero,
    #build,
    .occasions,
    #gallery,
    .order {
        padding-left: 48px;
        padding-right: 48px;
    }

    /* Occasions become a two-by-two set of cards. */
    .occasion-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Each occasion takes half the row. */
    .occasion-list div {
        flex: 1 1 45%;
    }

    /* The builder steps sit in a row, with the last step under them. */
    .builder {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Size and flower steps share the first row. */
    .sizes,
    .stems {
        flex: 1 1 45%;
    }

    /* Vase and card step takes the full width below. */
    .wrap {
        flex: 1 1 100%;
    }
}

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

@media (min-width: 992px) {

    /* Phone menu button is not needed on wide screens. */
    .menu-icon {
        display: none;
    }

    /* Nav shows in the header row. */
    .site-nav {
        display: block;
        width: auto;
    }

    /* Nav links in a row. */
    .site-nav ul {
        display: flex;
        gap: 26px;
        padding-top: 0px;
    }

    /* No dividers between desktop nav links. */
    .site-nav a {
        border-top: none;
        padding: 6px 0px;
    }

    /* Hero becomes two columns: text and the arch. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 56px;
        padding-top: 64px;
        padding-bottom: 64px;
    }

    /* Text column grows. */
    .hero-text {
        flex: 1 1 55%;
    }

    /* Arch column. */
    .hero-arch {
        flex: 1 1 40%;
    }

    /* Taller arch photo on desktop. */
    .hero-arch img {
        height: 540px;
    }

    /* Three pinboard columns. */
    .pinboard {
        column-count: 3;
    }

    /* Preorder text and form side by side. */
    .order {
        flex-direction: row;
        align-items: flex-start;
        gap: 56px;
    }

    /* Each half of the preorder section. */
    .order-text,
    .order-form {
        flex: 1 1 50%;
    }

    /* All three builder steps in one row. */
    .sizes,
    .stems,
    .wrap {
        flex: 1 1 30%;
    }

    /* Size cards stack inside a narrower column. */
    .size {
        flex: 1 1 100%;
    }
}

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

@media (min-width: 1200px) {

    /* Keep content centered with wide side margins. */
    .header-inner,
    .hero,
    #build,
    .occasions,
    #gallery,
    .order {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Four occasions in one row. */
    .occasion-list div {
        flex: 1 1 22%;
    }
}
