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

    Theme: obedience school. The header is a blue nylon dog collar
    (a woven stripe pattern) with a brass D-ring, and the name is
    stamped on a bone-shaped tag (a rounded bar with circle ends from
    radial gradients). In the hero a speech bubble says "Sit!" over
    the agility photo. The signature is a school report card for a
    beagle named Biscuit: week 1 and week 6 grades, a teacher's note,
    and a gold star sticker. The six-week course walks across the page
    as a trail of paw prints (a pad and four toes from radial
    gradients). The footer is a green lawn with a tennis ball.

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

    Colors (WebAIM contrast checked, AA):
      #0B1530 text on #F6F8FF page (17.3:1)
      #1D4ED8 blue text and buttons (6.4:1; white on it 6.7:1)
      #8D5B06 amber text (5.6:1 on the page)
      #0B1530 on #F59E0B amber (8.8:1)
*/

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

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

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

/* Bright school-paper page. */
body {
    background-color: #F6F8FF;
    color: #0B1530;
    font-family: "Figtree", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

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

/* Round friendly headings. */
h1,
h2 {
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 4.8vw, 2.7rem);
    color: #1D4ED8;
    margin-bottom: 12px;
}

/* Links in blue. */
a {
    color: #1D4ED8;
}

/* Amber outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .collar-row .menu-icon {
    outline: 3px solid #8D5B06;
    outline-offset: 3px;
}

/* ----- Collar header (class) ----- */

/* Blue woven nylon collar with stitched edges. */
.collar {
    position: relative;
    background-color: #1D4ED8;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0px, rgba(255, 255, 255, 0.07) 2px, transparent 2px, transparent 5px);
    border-top: 4px dashed #93C5FD;
    border-bottom: 4px dashed #93C5FD;
    color: #FFFFFF;
    padding: 14px 16px;
}

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

/* Tag and menu in a row. */
.collar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Bone-shaped brass tag: a bar with round knobs at each end. */
.bone {
    position: relative;
    background-color: #F59E0B;
    color: #0B1530;
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 6px 30px;
    border-radius: 6px;
    background-image: radial-gradient(circle at 0px 0px, #1D4ED8 0px, #1D4ED8 8px, transparent 9px), radial-gradient(circle at 0px 100%, #1D4ED8 0px, #1D4ED8 8px, transparent 9px), radial-gradient(circle at 100% 0px, #1D4ED8 0px, #1D4ED8 8px, transparent 9px), radial-gradient(circle at 100% 100%, #1D4ED8 0px, #1D4ED8 8px, transparent 9px);
}

/* Menu button. */
.menu-icon {
    background-color: #FFFFFF;
    color: #1D4ED8;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
}

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

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

/* Nav list. */
.collar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links white. */
.collar-nav a {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
}

/* Hover: amber. */
.collar-nav a:hover {
    color: #F59E0B;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Sit hero (class) ----- */

/* Words then photo. */
.sit {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 16px 60px 16px;
}

/* Headline. */
.sit-text h1 {
    font-size: clamp(2.4rem, 6.5vw, 4rem);
    margin-bottom: 14px;
}

/* Hero words. */
.sit-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Photo with the bubble above it. */
.bubble-wrap {
    position: relative;
    padding-top: 40px;
}

/* Photo, rounded. */
.bubble-wrap img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 24px;
}

/* Speech bubble with a tail pointing down at the dog. */
.bubble {
    position: absolute;
    top: 0px;
    right: 20px;
    background-color: #FFFFFF;
    border: 3px solid #0B1530;
    border-radius: 30px;
    padding: 8px 24px;
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    z-index: 2;
}

/* Bubble tail. */
.bubble::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 30px;
    width: 22px;
    height: 18px;
    background-color: #0B1530;
    clip-path: polygon(0% 0%, 100% 0%, 10% 100%);
}

/* Amber button shaped like a treat. */
.treat-btn,
button {
    display: inline-block;
    background-color: #F59E0B;
    color: #0B1530;
    font-family: "Figtree", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 40px;
    box-shadow: 0px 4px 0px #B45309;
    padding: 12px 26px;
    cursor: pointer;
}

/* Button hover. */
.treat-btn:hover,
button:hover {
    background-color: #FFFFFF;
}

/* ----- Report card (ID) ----- */

/* Blue band holding the card. */
#report {
    background-color: #E5EBFC;
    padding: 56px 16px;
}

/* The card: cream cardstock with a red margin line. */
.card {
    position: relative;
    max-width: 720px;
    margin: 0px auto;
    background-color: #FFFDF5;
    background-image: linear-gradient(90deg, transparent 30px, #F87171 30px, #F87171 32px, transparent 32px);
    border: 1px solid #C7CEDF;
    box-shadow: 0px 6px 18px rgba(11, 21, 48, 0.15);
    padding: 26px 20px 26px 48px;
}

/* School line. */
.school {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #616879;
}

/* Student line. */
.student {
    margin-bottom: 14px;
}

/* Grade table. */
.card table {
    width: 100%;
    border-collapse: collapse;
}

/* Caption. */
.card caption {
    text-align: left;
    font-weight: 700;
    padding-bottom: 4px;
}

/* Cells. */
.card th,
.card td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #C7CEDF;
}

/* Header row. */
.card thead th {
    border-bottom: 2px solid #0B1530;
}

/* Week 1 grades in gray pencil. */
.card td {
    color: #616879;
    font-family: "Fredoka", Arial, sans-serif;
    font-size: 1.15rem;
}

/* Week 6 grades in red teacher's pen, circled. */
.card .grade {
    color: #B91C1C;
    font-weight: 700;
}

/* Teacher's note. */
.comment {
    margin-top: 16px;
    font-weight: 700;
}

/* Note text in a handwritten-ish style. */
.comment span {
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 500;
    color: #1D4ED8;
}

/* Gold star sticker. */
.star {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 3.4rem;
    line-height: 1;
    color: #F59E0B;
    transform: rotate(14deg);
}

/* ----- Paw trail (class) ----- */

/* Section spacing. */
.weeks {
    padding: 56px 16px;
}

/* Trail of paws, stacked on phones. */
.trail {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

/* One paw step. */
.paw {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Steps alternate left and right like walking. */
.paw:nth-child(even) {
    margin-left: 40px;
}

/* Week label. */
.paw strong {
    flex: 0 0 70px;
    font-family: "Fredoka", Arial, sans-serif;
    color: #1D4ED8;
}

/* Paw print: a big pad and four toes. */
.print {
    flex: 0 0 50px;
    height: 50px;
    background-image: radial-gradient(ellipse 15px 12px at 50% 70%, #0B1530 0px, #0B1530 98%, transparent 100%), radial-gradient(circle at 18% 38%, #0B1530 0px, #0B1530 5px, transparent 6px), radial-gradient(circle at 38% 18%, #0B1530 0px, #0B1530 5px, transparent 6px), radial-gradient(circle at 62% 18%, #0B1530 0px, #0B1530 5px, transparent 6px), radial-gradient(circle at 82% 38%, #0B1530 0px, #0B1530 5px, transparent 6px);
}

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

/* Each photo. */
.week-photos img {
    width: 50%;
    height: 230px;
    object-fit: cover;
    border-radius: 18px;
}

/* ----- Enroll (class) ----- */

/* Photo then form. */
.enroll {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #1D4ED8;
    padding: 56px 16px;
}

/* Pack photo. */
.enroll img {
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
}

/* Form box. */
.enroll-form fieldset {
    border: none;
    background-color: #FFFFFF;
    border-radius: 18px;
    padding: 24px;
}

/* Form title. */
.enroll-form legend {
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    float: left;
    width: 100%;
}

/* Labels. */
.enroll-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.enroll-form input,
.enroll-form select {
    width: 100%;
    font-family: "Figtree", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #616879;
    border-radius: 10px;
}

/* Submit spacing. */
.enroll-form button {
    margin-top: 18px;
}

/* ----- Yard footer (class) ----- */

/* Green lawn with a tennis ball in the corner. */
.yard {
    background-color: #166534;
    background-image: radial-gradient(circle at calc(100% - 40px) 50%, #D9F99D 0px, #D9F99D 14px, transparent 15px), repeating-linear-gradient(80deg, transparent 0px, transparent 6px, rgba(255, 255, 255, 0.06) 6px, rgba(255, 255, 255, 0.06) 8px);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 70px 28px 16px;
}

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

@media (min-width: 576px) {

    /* Taller hero photo. */
    .bubble-wrap img {
        height: 400px;
    }
}

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

@media (min-width: 768px) {

    /* Paw trail runs across in a row. */
    .trail {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 18px;
    }

    /* Each step stacks the print over the words. */
    .paw {
        flex: 1 1 14%;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    /* Even steps lower instead of indented. */
    .paw:nth-child(even) {
        margin-left: 0px;
        margin-top: 40px;
    }

    /* Prints point up the trail. */
    .print {
        flex: 0 0 50px;
        width: 50px;
    }

    /* Week label under the print. */
    .paw strong {
        flex: 0 0 auto;
    }

    /* Photo beside the form. */
    .enroll {
        flex-direction: row;
    }

    /* Each half. */
    .enroll img,
    .enroll-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .enroll img {
        height: auto;
    }
}

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

@media (min-width: 992px) {

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

    /* Tag left, nav right along the collar. */
    .collar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .collar-nav {
        display: block;
    }

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

    /* Words beside the photo. */
    .sit {
        flex-direction: row;
        align-items: center;
        padding: 40px 40px 70px 40px;
    }

    /* Each half. */
    .sit-text,
    .bubble-wrap {
        flex: 1 1 50%;
    }

    /* Wider sections. */
    #report,
    .weeks,
    .enroll {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

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