/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Copper Barn Event Venue (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, warm and formal. The header is just a
    centered nav (the hero carries the name). String lights in the hero
    are spans with a glow (box-shadow) that twinkle with @keyframes. The
    four floor plans are drawn with CSS: a barn outline, a stage strip and
    gradient patterns for rows, round tables, long tables and high-tops.
    The day timeline alternates left and right of a center line at 992px
    using :nth-child(even). Booked dates say "Booked" in words, not just
    color. Media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM checked, AA):
      #2A1D14 walnut   #8A4F26 copper (darker than #9A5B2E for small
      text)   #B08D57 brass (decoration only)   #FBF6EE linen   #6B5848 muted
*/

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

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

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

/* Linen page with walnut text. */
body {
    background-color: #FBF6EE;
    color: #2A1D14;
    font-family: Lato, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
}

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

/* Formal serif headings. */
h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    line-height: 1.1;
}

/* Section titles centered with a brass rule under them. */
h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

/* Small brass line under each section title. */
h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: #B08D57;
    margin: 14px auto 0px auto;
}

/* Copper links. */
a {
    color: #8A4F26;
    font-weight: 700;
}

/* Copper focus ring. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #8A4F26;
    outline-offset: 3px;
}

/* Centered muted intro text. */
.lead {
    color: #6B5848;
    max-width: 36rem;
    margin: 14px auto 30px auto;
    text-align: center;
}

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

/* Walnut header with the menu centered. */
.site-header {
    background-color: #2A1D14;
    color: #FBF6EE;
    text-align: center;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button, centered. */
.menu-icon {
    display: inline-block;
    margin: 10px 0px;
    border: 1px solid #B08D57;
    padding: 6px 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
}

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

/* Opened menu shows nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
    padding-bottom: 10px;
}

/* Nav links: small spaced caps. */
.site-nav a {
    display: block;
    color: #FBF6EE;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
    padding: 8px 0px;
}

/* Brass on hover. */
.site-nav a:hover {
    color: #E2C792;
}

/* Concept notice. */
.concept-note {
    background-color: #3C2A1E;
    font-size: 0.8rem;
    padding: 4px 16px;
}

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

/* White barn photo, darkened, with centered text; it holds the lights. */
.hero {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(42, 29, 20, 0.62), rgba(42, 29, 20, 0.72)), url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    text-align: center;
    padding: 110px 20px 90px 20px;
}

/* The light string hangs across the top in a gentle curve. */
.lights {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0px 0px 50% 50%;
}

/* One bulb: a warm dot with a glow. */
.lights span {
    width: 10px;
    height: 10px;
    margin-top: 30px;
    border-radius: 50%;
    background-color: #FFE7B0;
    box-shadow: 0px 0px 12px 4px rgba(255, 210, 120, 0.8);
    animation: twinkle 2.4s ease-in-out infinite alternate;
}

/* Bulbs near the middle hang lower to follow the curve. */
.lights span:nth-child(4),
.lights span:nth-child(5),
.lights span:nth-child(6) {
    margin-top: 58px;
}

/* Bulbs between the ends and the middle. */
.lights span:nth-child(3),
.lights span:nth-child(7) {
    margin-top: 48px;
}

/* Every other bulb twinkles out of step. */
.lights span:nth-child(even) {
    animation-delay: 1.2s;
}

/* Twinkle: the glow softens and brightens. */
@keyframes twinkle {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.45;
    }
}

/* Small line above the name. */
.est {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: #E2C792;
}

/* Big name. */
.hero h1 {
    font-size: clamp(3.4rem, 12vw, 7.5rem);
    font-style: italic;
    font-weight: 500;
    margin: 10px 0px;
}

/* Tagline. */
.tagline {
    max-width: 30rem;
    margin: 0px auto 28px auto;
    font-size: 1.15rem;
}

/* Thin outlined button, filled on hover. */
.button,
button {
    display: inline-block;
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    padding: 13px 30px;
    font-family: Lato, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
    cursor: pointer;
}

/* Filled on hover. */
.button:hover {
    background-color: #FFFFFF;
    color: #2A1D14;
}

/* ----- Layouts (class) ----- */

/* Section spacing. */
.layouts {
    padding: 64px 20px;
}

/* Plan cards wrap. */
.plans {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

/* One plan card, centered text. */
.plan {
    flex: 1 1 230px;
    text-align: center;
}

/* Plan title. */
.plan h3 {
    font-size: 1.4rem;
    margin-top: 12px;
}

/* The barn outline: wood floor color, a peaked top drawn by clip-path. */
.barn {
    position: relative;
    height: 200px;
    background-color: #EAD9BF;
    border: 3px solid #2A1D14;
}

/* The stage or head table strip across the top. */
.stage {
    position: absolute;
    left: 25%;
    top: 10px;
    width: 50%;
    height: 14px;
    background-color: #8A4F26;
}

/* The seating area under the stage, shared by all four plans. */
.rows,
.rounds,
.long,
.cocktail {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 40px;
    bottom: 12px;
}

/* Ceremony rows: thin chair rows with a clear aisle down the middle. */
.rows {
    background-image:
        linear-gradient(90deg, transparent 45%, #EAD9BF 45%, #EAD9BF 55%, transparent 55%),
        repeating-linear-gradient(180deg, #6B5848 0px, #6B5848 5px, transparent 5px, transparent 13px);
}

/* Round tables: a grid of circles from a repeating radial gradient. */
.rounds {
    background-image: radial-gradient(circle, #6B5848 0px, #6B5848 13px, transparent 14px);
    background-size: 25% 33.3%;
}

/* Long farm tables: four vertical bars. */
.long {
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 22px, #6B5848 22px, #6B5848 34px, transparent 34px, transparent 56px);
    background-position: 50% 0px;
}

/* Cocktail: small high-tops scattered in two offset layers, plus a
   lounge rug in the corner. */
.cocktail {
    background-image:
        linear-gradient(#B08D57, #B08D57),
        radial-gradient(circle, #6B5848 5px, transparent 6px),
        radial-gradient(circle, #6B5848 5px, transparent 6px);
    background-size: 30% 30%, 40px 40px, 40px 40px;
    background-position: 100% 100%, 0px 0px, 20px 20px;
    background-repeat: no-repeat, repeat, repeat;
}

/* ----- Included (class) ----- */

/* Walnut band, photo then text. */
.included {
    display: flex;
    flex-direction: column;
    background-color: #2A1D14;
    color: #FBF6EE;
}

/* Photo. */
.included img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Text column. */
.included-text {
    padding: 50px 20px;
}

/* Left-aligned heading in this band. */
.included h2 {
    text-align: left;
}

/* Brass rule under it, also left. */
.included h2::after {
    margin-left: 0px;
}

/* Checklist. */
.checks {
    list-style: none;
    margin: 22px 0px;
}

/* One item with a brass check. */
.checks li {
    padding: 6px 0px 6px 28px;
    position: relative;
    border-bottom: 1px solid #4A3727;
}

/* The check mark. */
.checks li::before {
    content: "\2713";
    position: absolute;
    left: 0px;
    color: #E2C792;
    font-weight: 700;
}

/* Price line. */
.price strong {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    color: #E2C792;
}

/* Small sample note. */
.price span {
    display: block;
    font-size: 0.8rem;
    color: #CDBBA6;
}

/* ----- Day timeline (class) ----- */

/* Section spacing. */
.day {
    padding: 64px 20px;
}

/* Timeline list with a line on the left on phones. */
.timeline {
    list-style: none;
    position: relative;
    margin: 34px 0px;
    padding-left: 26px;
    border-left: 2px solid #B08D57;
}

/* One moment. */
.timeline li {
    position: relative;
    padding-bottom: 26px;
}

/* A brass diamond on the line. */
.timeline li::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: #B08D57;
    transform: rotate(45deg);
}

/* The time. */
.timeline time {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #8A4F26;
}

/* Moment title. */
.timeline h3 {
    font-size: 1.4rem;
}

/* Night photo. */
.night {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ----- Calendar (class) ----- */

/* Linen-dark band. */
.dates {
    background-color: #F3E8D8;
    padding: 64px 20px;
}

/* Calendar table fills the width, with fixed equal columns. */
.calendar {
    width: 100%;
    max-width: 720px;
    margin: 0px auto;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: #FFFFFF;
}

/* Month name as the caption. */
.calendar caption {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    padding-bottom: 8px;
}

/* Day headings. */
.calendar th {
    background-color: #2A1D14;
    color: #FBF6EE;
    font-size: 0.8rem;
    padding: 6px 2px;
}

/* Day cells. */
.calendar td {
    height: 64px;
    border: 1px solid #E5D6C2;
    vertical-align: top;
    padding: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* The word inside a booked or open day. */
.calendar td span {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

/* Booked days: grey with the date struck through. */
.calendar .booked {
    background-color: #E7E1D9;
    color: #57493D;
    text-decoration: line-through;
}

/* The "Booked" word is not struck through. */
.calendar .booked span {
    text-decoration: none;
    display: block;
}

/* The one open Saturday stands out in copper. */
.calendar .open {
    background-color: #8A4F26;
    color: #FFFFFF;
}

/* ----- Tour (class) ----- */

/* Photo then form on phones. */
.tour {
    display: flex;
    flex-direction: column;
}

/* Tour photo. */
.tour img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Form panel. */
.tour-form {
    padding: 50px 20px;
}

/* Left aligned heading in the form. */
.tour-form h2 {
    text-align: left;
    margin-bottom: 14px;
}

/* Rule under it, left. */
.tour-form h2::after {
    margin-left: 0px;
}

/* Labels. */
.tour-form label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 14px;
}

/* Inputs as underlined lines on linen. */
.tour-form input {
    width: 100%;
    padding: 8px 2px;
    border: none;
    border-bottom: 2px solid #B08D57;
    background-color: transparent;
    font-family: Lato, sans-serif;
    font-size: 1.05rem;
}

/* Submit button: solid copper. */
.tour-form button {
    margin-top: 22px;
    background-color: #8A4F26;
    border-color: #8A4F26;
}

/* Darker on hover. */
.tour-form button:hover {
    background-color: #6B3B1C;
}

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

/* Walnut footer. */
.site-footer {
    background-color: #2A1D14;
    color: #CDBBA6;
    text-align: center;
    font-size: 0.85rem;
    padding: 24px 20px;
}

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

@media (min-width: 576px) {

    /* Taller calendar days. */
    .calendar td {
        height: 78px;
    }

    /* Bigger words in the calendar. */
    .calendar td span {
        font-size: 0.72rem;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .layouts,
    .day,
    .dates {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Photo and included list side by side. */
    .included {
        flex-direction: row;
    }

    /* Photo half. */
    .included img {
        width: 50%;
        height: auto;
    }

    /* Text half. */
    .included-text {
        flex: 1 1 50%;
        padding: 60px 40px;
    }

    /* Tour photo and form side by side. */
    .tour {
        flex-direction: row;
    }

    /* Photo half. */
    .tour img {
        width: 45%;
        height: auto;
    }

    /* Form half. */
    .tour-form {
        flex: 1 1 55%;
        padding: 60px 40px;
    }
}

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

@media (min-width: 992px) {

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

    /* Nav always visible. */
    .site-nav {
        display: block;
    }

    /* Links in one centered row. */
    .site-nav ul {
        display: flex;
        justify-content: center;
        gap: 34px;
        padding: 14px 0px;
    }

    /* Taller hero. */
    .hero {
        padding-top: 170px;
        padding-bottom: 150px;
    }

    /* The timeline line moves to the center. */
    .timeline {
        border-left: none;
        padding-left: 0px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Center line drawn by a pseudo-element. */
    .timeline::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0px;
        bottom: 0px;
        width: 2px;
        background-color: #B08D57;
    }

    /* Odd moments sit on the left half, text aligned toward the line. */
    .timeline li {
        width: 50%;
        padding-right: 40px;
        text-align: right;
    }

    /* Diamonds sit on the center line. */
    .timeline li::before {
        left: auto;
        right: -7px;
    }

    /* Even moments move to the right half. */
    .timeline li:nth-child(even) {
        margin-left: 50%;
        padding-right: 0px;
        padding-left: 40px;
        text-align: left;
    }

    /* Even diamonds sit on the line from the other side. */
    .timeline li:nth-child(even)::before {
        right: auto;
        left: -5px;
    }

    /* Taller night photo. */
    .night {
        height: 420px;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .layouts,
    .day,
    .dates {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Four plans in one row. */
    .plan {
        flex: 1 1 22%;
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* Lights stay steady. */
    .lights span {
        animation: none;
    }
}
