/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Twin Oaks Stables (fictional business)
    Filename:   styles.css

    Theme: tack room and show ring. The header is a brown leather
    strap with stitching along both edges (dashed outlines) and a
    brass buckle by the name. The hero photo sits inside a horseshoe:
    a thick steel arch open at the bottom, with nail holes punched in
    it (radial gradients). The signature shows the four lesson levels
    as show rosettes in white, yellow, red and blue, each made with a
    pleated ring (repeating-conic-gradient) and two ribbon tails.
    Boarding is a row of Dutch stall doors with brass name plates and
    X-braced lower halves. The footer is a split-rail fence.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #1E1408 text on #FBF8F1 page (17.9:1)
      #713F12 saddle brown text and buttons (9.4:1; white on it 9.9:1)
      #45700E green text (5.9:1 on the page)
      #1E1408 on #D4A947 brass (8.9:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Clean straw-colored page. */
body {
    background-color: #FBF8F1;
    color: #1E1408;
    font-family: "Alegreya Sans", Arial, sans-serif;
    font-size: 1.06rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Classic serif headings. */
h1,
h2,
h3 {
    font-family: "Alegreya", Georgia, serif;
    font-weight: 800;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 4.8vw, 2.7rem);
    color: #713F12;
    margin-bottom: 10px;
}

/* Links in saddle brown. */
a {
    color: #713F12;
}

/* Green outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .strap-row .menu-icon {
    outline: 3px solid #45700E;
    outline-offset: 3px;
}

/* ----- Leather strap header (class) ----- */

/* Leather with stitching along both edges. */
.strap {
    position: relative;
    background-color: #713F12;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 50%, rgba(0, 0, 0, 0.15));
    color: #FFFFFF;
    padding: 16px 16px;
    border-top: 6px solid #FBF8F1;
    outline: 2px dashed #D4A947;
    outline-offset: -10px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Logo and menu in a row. */
.strap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo: buckle then name. */
.logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px 10px;
    font-family: "Alegreya", Georgia, serif;
    font-weight: 800;
    font-size: 1.6rem;
    padding-left: 8px;
}

/* Small part of the name. */
.logo .sub {
    font-family: "Alegreya Sans", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Brass buckle: a rounded frame with a tongue across it. */
.buckle {
    width: 30px;
    height: 34px;
    border: 5px solid #D4A947;
    border-radius: 6px 14px 14px 6px;
    background-image: linear-gradient(90deg, transparent 40%, #D4A947 40%, #D4A947 60%, transparent 60%);
    background-size: 100% 4px;
    background-repeat: no-repeat;
    background-position: 0px 50%;
}

/* Menu button. */
.menu-icon {
    background-color: #D4A947;
    color: #1E1408;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 4px;
    margin-right: 8px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.strap-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .strap-nav {
    display: block;
}

/* Nav list. */
.strap-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 8px 4px 8px;
}

/* Nav links white. */
.strap-nav a {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
}

/* Hover: brass. */
.strap-nav a:hover {
    color: #D4A947;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Horseshoe hero (class) ----- */

/* Shoe then words on phones. */
.arch-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 30px 16px 60px 16px;
}

/* Horseshoe: thick steel arch open at the bottom, with nail holes. */
.shoe {
    width: 100%;
    max-width: 420px;
    padding: 22px 22px 0px 22px;
    border-radius: 210px 210px 0px 0px;
    background-color: #6B7280;
    background-image: radial-gradient(circle at 12px 60%, #1E1408 0px, #1E1408 4px, transparent 5px), radial-gradient(circle at calc(100% - 12px) 60%, #1E1408 0px, #1E1408 4px, transparent 5px), radial-gradient(circle at 12px 80%, #1E1408 0px, #1E1408 4px, transparent 5px), radial-gradient(circle at calc(100% - 12px) 80%, #1E1408 0px, #1E1408 4px, transparent 5px), linear-gradient(180deg, #9CA3AF, #4B5563);
}

/* Photo inside the arch. */
.shoe img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 190px 190px 0px 0px;
}

/* Headline. */
.arch-text h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.arch-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Leather button with stitching. */
.leather-btn,
button {
    display: inline-block;
    background-color: #713F12;
    color: #FFFFFF;
    font-family: "Alegreya Sans", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    outline: 1px dashed #D4A947;
    outline-offset: -5px;
    border-radius: 6px;
    padding: 13px 26px;
    cursor: pointer;
}

/* Button hover. */
.leather-btn:hover,
button:hover {
    background-color: #45700E;
}

/* ----- Show ribbons (ID) ----- */

/* Pale green band. */
#ribbons {
    background-color: #EEF2E4;
    padding: 56px 16px;
}

/* Intro. */
.intro {
    max-width: 42rem;
    margin-bottom: 26px;
}

/* Rosettes wrap. */
.rosettes {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 26px 18px;
}

/* One level; its own stacking layer so the tails tuck behind the ring. */
.rosette {
    position: relative;
    z-index: 0;
    flex: 1 1 100%;
    text-align: center;
}

/* Rosette: a pleated ring, a center button, and two tails below. */
.ro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0px auto 50px auto;
    border-radius: 50%;
    background-image: repeating-conic-gradient(var(--rib) 0deg 8deg, var(--rib2) 8deg 16deg);
    box-shadow: 0px 2px 6px rgba(30, 20, 8, 0.25);
}

/* Center button with the level number. */
.ro span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 4px solid var(--rib);
    font-family: "Alegreya", Georgia, serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #1E1408;
}

/* Left tail. */
.ro::before,
.ro::after {
    content: "";
    position: absolute;
    top: 100px;
    width: 30px;
    height: 64px;
    background-color: var(--rib);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 82%, 0% 100%);
    z-index: -1;
}

/* Left tail angle. */
.ro::before {
    left: 30px;
    transform: rotate(12deg);
}

/* Right tail angle. */
.ro::after {
    right: 30px;
    transform: rotate(-12deg);
}

/* Level name. */
.rosette h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

/* White ribbon. */
.r-white {
    --rib: #E5E7EB;
    --rib2: #FFFFFF;
}

/* Yellow ribbon. */
.r-yellow {
    --rib: #EAB308;
    --rib2: #FDE047;
}

/* Red ribbon. */
.r-red {
    --rib: #B91C1C;
    --rib2: #EF4444;
}

/* Blue ribbon. */
.r-blue {
    --rib: #1D4ED8;
    --rib2: #60A5FA;
}

/* Price line. */
.price {
    margin-top: 26px;
    font-weight: 700;
    color: #45700E;
    font-size: 1.15rem;
}

/* ----- Stall doors (class) ----- */

/* Section spacing. */
.stalls {
    padding: 56px 16px;
}

/* Doors stack on phones. */
.doors {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 26px;
}

/* One stall: wood boards. */
.stall {
    background-color: #A16A3A;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 34px, #713F12 34px, #713F12 36px);
    color: #FFFFFF;
    padding: 18px;
    border: 6px solid #4A2A0C;
}

/* Brass name plate. */
.plate {
    display: inline-block;
    background-color: #D4A947;
    color: #1E1408;
    font-family: "Alegreya", Georgia, serif;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 2px 16px;
    border-radius: 3px;
    box-shadow: inset 0px 0px 0px 2px #8A6A1E;
}

/* Lower Dutch door with an X brace. */
.dutch {
    height: 90px;
    margin: 14px 0px;
    border: 4px solid #4A2A0C;
    background-image: linear-gradient(to top right, transparent 47%, #4A2A0C 47%, #4A2A0C 53%, transparent 53%), linear-gradient(to top left, transparent 47%, #4A2A0C 47%, #4A2A0C 53%, transparent 53%);
}

/* Board price. */
.cost {
    font-family: "Alegreya", Georgia, serif;
    font-weight: 800;
    font-size: 1.5rem;
}

/* Stall words on a dark strip so they read over the boards. */
.stall p:last-child {
    background-color: rgba(30, 20, 8, 0.75);
    padding: 8px;
}

/* Two photos. */
.stall-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.stall-photos img {
    width: 50%;
    height: 220px;
    object-fit: cover;
}

/* ----- First ride (class) ----- */

/* Photo then form. */
.ride {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #F0E6D6;
    padding: 56px 16px;
}

/* Saddle photo. */
.ride img {
    height: 260px;
    object-fit: cover;
}

/* Form box with a leather edge. */
.ride-form fieldset {
    border: 4px solid #713F12;
    border-radius: 8px;
    padding: 22px;
    background-color: #FFFFFF;
}

/* Form title. */
.ride-form legend {
    font-family: "Alegreya", Georgia, serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #713F12;
    padding: 0px 8px;
}

/* Labels. */
.ride-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.ride-form input,
.ride-form select {
    width: 100%;
    font-family: "Alegreya Sans", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #6A645B;
    border-radius: 6px;
}

/* Submit spacing. */
.ride-form button {
    margin-top: 18px;
}

/* ----- Fence footer (class) ----- */

/* Two rails and posts in front of grass. */
.fence {
    background-color: #45700E;
    background-image: linear-gradient(180deg, transparent 18%, #8C6A44 18%, #8C6A44 28%, transparent 28%, transparent 62%, #8C6A44 62%, #8C6A44 72%, transparent 72%), repeating-linear-gradient(90deg, #6B4E2E 0px, #6B4E2E 14px, transparent 14px, transparent 180px);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 30px 16px;
}

/* Footer text on a dark strip so it reads over the rails. */
.fence p {
    display: inline-block;
    background-color: #1E1408;
    padding: 2px 8px;
    margin: 2px 0px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Two rosettes per row. */
    .rosette {
        flex: 1 1 45%;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Shoe beside the words. */
    .arch-hero {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    /* Shoe column. */
    .shoe {
        flex: 0 1 400px;
    }

    /* Stall doors in a row. */
    .doors {
        flex-direction: row;
    }

    /* Each door. */
    .stall {
        flex: 1 1 30%;
    }

    /* Photo beside the form. */
    .ride {
        flex-direction: row;
    }

    /* Each half. */
    .ride img,
    .ride-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .ride img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Logo left, nav right along the strap. */
    .strap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 36px;
        padding-right: 36px;
    }

    /* Nav always shown. */
    .strap-nav {
        display: block;
    }

    /* Nav in a row; links look like strap holes between. */
    .strap-nav ul {
        flex-direction: row;
        gap: 26px;
        padding: 0px;
    }

    /* Four rosettes in a row. */
    .rosette {
        flex: 1 1 22%;
    }

    /* Wider sections. */
    #ribbons,
    .stalls,
    .ride {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .arch-hero,
    #ribbons,
    .stalls,
    .ride {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
