/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Prairie Creek Animal Clinic (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, calm and rounded like a clinic, with a
    country touch. The vaccine section uses three radio buttons as tabs:
    the checked radio shows its panel with the general sibling selector
    (~), so there is no JavaScript. Paw prints are drawn with five
    radial-gradients on one element and used as list markers. Media
    queries at 576px, 768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #0B2522 deep green text   #0F766E teal (5.5:1 on white)
      #C2410C orange (darker than #EA580C so white text passes)
      #F2FAF8 mint background   #4B5D5A muted text
*/

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

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

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

/* Mint page with deep green text. */
body {
    background-color: #F2FAF8;
    color: #0B2522;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

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

/* Rounded sans headings. */
h1,
h2 {
    font-family: "Merriweather Sans", sans-serif;
    font-weight: 800;
    line-height: 1.15;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    margin-bottom: 10px;
}

/* Teal links. */
a {
    color: #0F766E;
    font-weight: 600;
}

/* Orange focus ring for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #C2410C;
    outline-offset: 3px;
}

/* Intro text under titles. */
.lead {
    color: #4B5D5A;
    max-width: 40rem;
    margin-bottom: 22px;
}

/* Small notes. */
.small {
    font-size: 0.85rem;
    color: #4B5D5A;
    margin-top: 12px;
}

/* ----- Emergency strip (class) ----- */

/* Orange strip across the very top. */
.urgent {
    background-color: #C2410C;
    color: #FFFFFF;
    text-align: center;
    font-size: 0.92rem;
    padding: 8px 16px;
}

/* White phone link in the strip. */
.urgent a {
    color: #FFFFFF;
}

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

/* Sticky white header with a soft shadow. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #FFFFFF;
    box-shadow: 0px 2px 10px rgba(11, 37, 34, 0.12);
}

/* Logo and menu button in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo text with the paw beside it. */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Merriweather Sans", sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #0F766E;
}

/* Second line of the logo. */
.logo small {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #4B5D5A;
}

/* Paw print: one big pad and four toes, all radial-gradients. */
.paw {
    display: inline-block;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    background-image:
        radial-gradient(circle at 50% 70%, #0F766E 0px, #0F766E 8px, transparent 9px),
        radial-gradient(circle at 18% 42%, #0F766E 0px, #0F766E 3.5px, transparent 4.5px),
        radial-gradient(circle at 37% 20%, #0F766E 0px, #0F766E 3.5px, transparent 4.5px),
        radial-gradient(circle at 63% 20%, #0F766E 0px, #0F766E 3.5px, transparent 4.5px),
        radial-gradient(circle at 82% 42%, #0F766E 0px, #0F766E 3.5px, transparent 4.5px);
}

/* Checkbox for the phone menu, hidden but still keyboard reachable. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Rounded Menu button. */
.menu-icon {
    border: 2px solid #0F766E;
    border-radius: 999px;
    color: #0F766E;
    font-weight: 600;
    padding: 4px 14px;
    cursor: pointer;
}

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

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

/* No bullets in the nav list. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Phone nav links stacked. */
.site-nav a {
    display: block;
    color: #0B2522;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #D5E9E5;
}

/* Teal on hover. */
.site-nav a:hover {
    color: #0F766E;
}

/* Concept notice under the header. */
.concept-note {
    background-color: #E1F2EE;
    font-size: 0.8rem;
    text-align: center;
    padding: 3px 16px;
}

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

/* Photo on top, card underneath on phones. */
.hero {
    position: relative;
}

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

/* White card that overlaps the photo slightly. */
.hero-card {
    position: relative;
    background-color: #FFFFFF;
    border-radius: 24px;
    margin: -40px 16px 0px 16px;
    padding: 28px 22px;
    box-shadow: 0px 10px 30px rgba(11, 37, 34, 0.15);
}

/* Big headline. */
.hero h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    margin-bottom: 12px;
}

/* Hero paragraph. */
.hero-card p {
    margin-bottom: 20px;
}

/* Pill-shaped teal button. */
.button,
button {
    display: inline-block;
    background-color: #0F766E;
    color: #FFFFFF;
    border: 2px solid #0F766E;
    border-radius: 999px;
    padding: 10px 22px;
    margin: 0px 8px 8px 0px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* Orange on hover. */
.button:hover,
button:hover {
    background-color: #C2410C;
    border-color: #C2410C;
}

/* Outline button. */
.button-line {
    background-color: transparent;
    color: #0F766E;
}

/* Outline hover goes white text. */
.button-line:hover {
    color: #FFFFFF;
}

/* ----- Vaccine tabs (ID and class) ----- */

/* Section spacing. */
#care {
    padding: 56px 20px;
}

/* Radios hidden but focusable. */
.tab-radio {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Tab buttons in a row. */
.tab-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: -2px;
}

/* Each tab looks like a folder tab. */
.tab-labels label {
    background-color: #E1F2EE;
    border: 2px solid #B9DDD6;
    border-bottom: none;
    border-radius: 14px 14px 0px 0px;
    padding: 9px 18px;
    font-weight: 600;
    cursor: pointer;
}

/* Checked dog tab turns white like the panel. */
#tab-dog:checked ~ .tab-labels label[for="tab-dog"],
#tab-cat:checked ~ .tab-labels label[for="tab-cat"],
#tab-horse:checked ~ .tab-labels label[for="tab-horse"] {
    background-color: #FFFFFF;
    color: #0F766E;
    border-color: #0F766E;
}

/* Keyboard focus on a radio outlines its tab. */
#tab-dog:focus-visible ~ .tab-labels label[for="tab-dog"],
#tab-cat:focus-visible ~ .tab-labels label[for="tab-cat"],
#tab-horse:focus-visible ~ .tab-labels label[for="tab-horse"] {
    outline: 3px solid #C2410C;
    outline-offset: 2px;
}

/* The white panel box. */
.panels {
    background-color: #FFFFFF;
    border: 2px solid #0F766E;
    border-radius: 0px 16px 16px 16px;
    padding: 18px 14px;
}

/* All panels hidden by default. */
.panel {
    display: none;
}

/* Only the checked animal's panel shows. */
#tab-dog:checked ~ .panels .panel-dog,
#tab-cat:checked ~ .panels .panel-cat,
#tab-horse:checked ~ .panels .panel-horse {
    display: block;
}

/* Schedule table fills the panel. */
.panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

/* Caption as a small label. */
.panel caption {
    text-align: left;
    font-weight: 600;
    color: #4B5D5A;
    padding-bottom: 8px;
}

/* Cells with a dotted line between rows. */
.panel th,
.panel td {
    text-align: left;
    vertical-align: top;
    padding: 9px 8px;
    border-bottom: 1px dotted #9CC7BF;
}

/* Column headers in teal. */
.panel thead th {
    color: #0F766E;
    border-bottom: 2px solid #0F766E;
}

/* Row headers bold. */
.panel tbody th {
    font-weight: 600;
}

/* ----- First visit (class) ----- */

/* Text and photo stack on phones. */
.first {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* Numbered list with paw prints instead of numbers. */
.paw-steps {
    list-style: none;
    counter-reset: step;
    margin-top: 14px;
}

/* Each step leaves room for the paw on the left. */
.paw-steps li {
    position: relative;
    counter-increment: step;
    padding: 0px 0px 18px 48px;
}

/* Paw print marker in orange. */
.paw-steps li::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    width: 32px;
    height: 32px;
    background-image:
        radial-gradient(circle at 50% 70%, #C2410C 0px, #C2410C 8px, transparent 9px),
        radial-gradient(circle at 18% 42%, #C2410C 0px, #C2410C 3.5px, transparent 4.5px),
        radial-gradient(circle at 37% 20%, #C2410C 0px, #C2410C 3.5px, transparent 4.5px),
        radial-gradient(circle at 63% 20%, #C2410C 0px, #C2410C 3.5px, transparent 4.5px),
        radial-gradient(circle at 82% 42%, #C2410C 0px, #C2410C 3.5px, transparent 4.5px);
}

/* Small step number after the paw. */
.paw-steps li::after {
    content: counter(step);
    position: absolute;
    left: 30px;
    top: -6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #C2410C;
}

/* Rounded photo. */
.first-photo img {
    border-radius: 24px;
}

/* Caption under the photo. */
.first-photo figcaption {
    font-size: 0.9rem;
    color: #4B5D5A;
    margin-top: 8px;
}

/* ----- Farm calls (class) ----- */

/* Deep green band, photo on top on phones. */
.farm {
    display: flex;
    flex-direction: column;
    background-color: #0B2522;
    color: #F2FAF8;
}

/* Wide photo. */
.farm > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Text side. */
.farm-text {
    padding: 44px 20px;
}

/* Icon list without bullets. */
.farm-list {
    list-style: none;
    margin-top: 16px;
}

/* Each line with its icon. */
.farm-list li {
    padding: 8px 0px;
    border-bottom: 1px solid #1F4A44;
}

/* Icons in light orange (on dark only). */
.farm-list i {
    width: 28px;
    color: #FDBA74;
}

/* Note is lighter on the dark band. */
.farm .small {
    color: #A7C9C2;
}

/* ----- Booking (class) ----- */

/* Photo and form stack on phones. */
.book {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 20px;
}

/* Round puppy photo. */
.book-photo img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0px auto;
    border: 6px solid #FFFFFF;
    box-shadow: 0px 8px 24px rgba(11, 37, 34, 0.18);
}

/* White form card. */
.book-form {
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 26px 20px;
}

/* Fieldsets as soft boxes. */
.book-form fieldset {
    border: 1px solid #B9DDD6;
    border-radius: 14px;
    padding: 12px 16px 16px 16px;
    margin: 14px 0px;
}

/* Legends in teal. */
.book-form legend {
    font-weight: 600;
    color: #0F766E;
    padding: 0px 6px;
}

/* Labels above fields. */
.book-form label {
    display: block;
    font-weight: 600;
    margin-top: 10px;
}

/* Full-width rounded fields. */
.book-form input,
.book-form select,
.book-form textarea {
    width: 100%;
    font: inherit;
    padding: 9px 12px;
    border: 1px solid #6B8F89;
    border-radius: 10px;
    margin-top: 4px;
}

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

/* Small centered footer. */
.site-footer {
    background-color: #0B2522;
    color: #C9DED9;
    text-align: center;
    font-size: 0.85rem;
    padding: 24px 16px;
}

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

@media (min-width: 576px) {

    /* Taller hero photo. */
    .hero-photo {
        height: 360px;
    }

    /* More card padding. */
    .hero-card {
        margin: -60px 32px 0px 32px;
        padding: 32px;
    }

    /* Roomier tables. */
    .panels {
        padding: 22px 24px;
    }
}

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

@media (min-width: 768px) {

    /* More side padding on sections. */
    #care,
    .first,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* First visit text and photo side by side. */
    .first {
        flex-direction: row;
        align-items: center;
    }

    /* Text half. */
    .first-text {
        flex: 1 1 55%;
    }

    /* Photo half. */
    .first-photo {
        flex: 1 1 45%;
    }

    /* Farm photo left, text right. */
    .farm {
        flex-direction: row;
    }

    /* Photo half fills the band height. */
    .farm > img {
        width: 50%;
        height: auto;
    }

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

    /* Photo beside the form. */
    .book {
        flex-direction: row;
        align-items: center;
    }

    /* Photo column. */
    .book-photo {
        flex: 0 0 260px;
    }

    /* Form column. */
    .book-form {
        flex: 1 1 auto;
    }
}

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

@media (min-width: 992px) {

    /* Menu button not needed. */
    .menu-icon {
        display: none;
    }

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

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

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Hero is a tall photo with the card floating over it. */
    .hero-photo {
        height: 600px;
    }

    /* Card moves onto the photo, left side. */
    .hero-card {
        position: absolute;
        left: 40px;
        bottom: 60px;
        width: 480px;
        margin: 0px;
    }

    /* Bigger photo in the booking area. */
    .book-photo {
        flex: 0 0 320px;
    }

    /* Bigger round photo. */
    .book-photo img {
        width: 300px;
        height: 300px;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    #care,
    .first,
    .book {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Hero card lines up with the content edge. */
    .hero-card {
        left: calc((100% - 1140px) / 2);
    }

    /* Farm text gets more room to breathe. */
    .farm-text {
        padding: 72px 64px;
    }
}
