/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Fix-It Frank's Handyman Service (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, friendly and hand-made. The quote form is a
    notepad: ruled lines from a repeating-linear-gradient, a red margin
    line from a second gradient, and Patrick Hand for the writing. The
    services hang on a pegboard (a radial-gradient hole pattern), each
    tag on a "hook" drawn with ::before. "What I don't do" is a yellow
    sticky note tilted with transform. Media queries at 576px, 768px,
    992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #1C1917 charcoal   #92400E workshop brown (darker than #B45309 for
      small text)   #1D4ED8 pencil blue   #FFFBEB paper   #57534E muted
      #FDE68A sticky note
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Paper page with charcoal text. */
body {
    background-color: #FFFBEB;
    color: #1C1917;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Handwritten headings. */
h1,
h2,
h3 {
    font-family: "Patrick Hand", cursive;
    font-weight: 400;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

/* Pencil-blue links. */
a {
    color: #1D4ED8;
    font-weight: 700;
}

/* Blue focus ring. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #1D4ED8;
    outline-offset: 3px;
}

/* Muted intro text. */
.lead {
    color: #57534E;
    max-width: 38rem;
    margin: 6px 0px 24px 0px;
}

/* Small notes. */
.small {
    font-size: 0.9rem;
    color: #57534E;
    margin-top: 16px;
}

/* Hides a legend on screen but keeps it for screen readers. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
}

/* ----- Header (class) ----- */

/* Brown header like a workbench. */
.site-header {
    background-color: #92400E;
    color: #FFFFFF;
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Handwritten logo. */
.logo {
    font-family: "Patrick Hand", cursive;
    font-size: 1.9rem;
    line-height: 1.05;
}

/* Small line under the logo. */
.logo small {
    display: block;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.8rem;
    color: #FDE68A;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    background-color: #FFFBEB;
    color: #1C1917;
    border-radius: 6px;
    padding: 5px 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Opened menu shows nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Phone nav links. */
.site-nav a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #A85A1E;
}

/* Yellow on hover. */
.site-nav a:hover {
    color: #FDE68A;
}

/* Concept notice. */
.concept-note {
    background-color: #7A3510;
    font-size: 0.85rem;
    text-align: center;
    padding: 4px 16px;
}

/* ----- Hero (class) ----- */

/* Phone hero stacks. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 44px 20px 60px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    margin-bottom: 14px;
}

/* Second line in pencil blue. */
.hero h1 span {
    display: block;
    color: #1D4ED8;
}

/* Hero paragraph. */
.hero-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Brown rounded button. */
.button,
button {
    display: inline-block;
    background-color: #92400E;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: "Patrick Hand", cursive;
    font-size: 1.4rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0px 4px 0px #5C2A0A;
}

/* Pressed look on hover. */
.button:hover,
button:hover {
    transform: translateY(2px);
    box-shadow: 0px 2px 0px #5C2A0A;
}

/* Photo wrapper: parent for the sticky note. */
.hero-photo {
    position: relative;
    margin-bottom: 30px;
}

/* Photo with a white snapshot border. */
.hero-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border: 10px solid #FFFFFF;
    box-shadow: 0px 10px 24px rgba(28, 25, 23, 0.2);
    transform: rotate(1.5deg);
}

/* Handwritten note stuck to the corner of the photo. */
.note {
    position: absolute;
    left: 10px;
    bottom: -34px;
    width: 220px;
    background-color: #FDE68A;
    font-family: "Patrick Hand", cursive;
    font-size: 1.15rem;
    line-height: 1.2;
    padding: 12px;
    transform: rotate(-4deg);
    box-shadow: 0px 6px 14px rgba(28, 25, 23, 0.2);
}

/* ----- Notepad form (class) ----- */

/* Section spacing. */
.list {
    padding: 60px 20px;
}

/* The notepad: ruled blue lines every 32px, a red margin line, and a
   strip of "binding" at the top. */
.notepad {
    max-width: 640px;
    background-color: #FFFFFF;
    background-image:
        linear-gradient(90deg, transparent 46px, #F87171 46px, #F87171 48px, transparent 48px),
        repeating-linear-gradient(180deg, transparent 0px, transparent 31px, #BFDBFE 31px, #BFDBFE 32px);
    border-top: 22px solid #57534E;
    padding: 12px 20px 26px 60px;
    box-shadow: 0px 12px 28px rgba(28, 25, 23, 0.15);
    line-height: 32px;
}

/* Title line on the pad. */
.pad-title {
    font-family: "Patrick Hand", cursive;
    font-size: 1.8rem;
    color: #1D4ED8;
}

/* The checklist sits on the lines with no box. */
.notepad fieldset {
    border: none;
}

/* Each job sits on one ruled line, in handwriting. */
.notepad fieldset label {
    display: block;
    font-family: "Patrick Hand", cursive;
    font-size: 1.3rem;
    cursor: pointer;
}

/* Pencil-blue checkboxes. */
.notepad input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1D4ED8;
    margin-right: 6px;
}

/* Labels for the blanks. */
.line {
    display: block;
    font-weight: 700;
    margin-top: 6px;
}

/* Blanks are transparent so the ruled lines show through. */
.notepad input[type="text"],
.notepad input[type="tel"] {
    width: 100%;
    height: 32px;
    border: none;
    border-bottom: 2px solid #1D4ED8;
    background-color: transparent;
    font-family: "Patrick Hand", cursive;
    font-size: 1.3rem;
    color: #1D4ED8;
}

/* Space above the button. */
.notepad button {
    margin-top: 18px;
}

/* ----- Pegboard (ID and class) ----- */

/* Pegboard: tan board with rows of holes drawn by a radial gradient. */
#board {
    background-color: #C9A27A;
    background-image: radial-gradient(circle, #8A6646 0px, #8A6646 3px, transparent 4px);
    background-size: 26px 26px;
    padding: 60px 20px;
}

/* White heading plate so it reads on the busy board. */
#board h2 {
    display: inline-block;
    background-color: #FFFBEB;
    padding: 4px 16px;
    margin-bottom: 26px;
}

/* Tags wrap. */
.pegboard {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 34px 16px;
    padding-top: 14px;
}

/* One tag hanging from a hook; parent for the hook. */
.pegboard li {
    position: relative;
    flex: 1 1 200px;
    background-color: #FFFBEB;
    border: 2px solid #1C1917;
    border-radius: 6px;
    padding: 12px 14px;
    font-weight: 800;
    transform: rotate(-1.5deg);
}

/* Every third tag tilts the other way. */
.pegboard li:nth-child(3n) {
    transform: rotate(2deg);
}

/* The hook: a small dark bar above each tag. */
.pegboard li::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -18px;
    width: 6px;
    height: 18px;
    margin-left: -3px;
    background-color: #44403C;
    border-radius: 3px 3px 0px 0px;
}

/* Tool icons in brown. */
.pegboard i {
    color: #92400E;
    margin-right: 6px;
}

/* Two photos below the tags. */
.board-photos {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* Each photo with a white border. */
.board-photos img {
    width: 50%;
    height: 180px;
    object-fit: cover;
    border: 6px solid #FFFFFF;
}

/* ----- Won't do (class) ----- */

/* Section spacing. */
.wont {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 60px 20px;
}

/* Yellow sticky note, tilted. */
.sticky {
    background-color: #FDE68A;
    padding: 24px;
    box-shadow: 0px 12px 24px rgba(28, 25, 23, 0.18);
    transform: rotate(-1.5deg);
    max-width: 480px;
}

/* Sticky note list with crosses drawn as text. */
.sticky ul {
    list-style: none;
    margin-top: 12px;
}

/* One item on the note. */
.sticky li {
    font-family: "Patrick Hand", cursive;
    font-size: 1.35rem;
}

/* A red X before each item. */
.sticky li::before {
    content: "\2715  ";
    color: #B91C1C;
}

/* Light fixture photo. */
.wont img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ----- Rates (class) ----- */

/* Charcoal band. */
.rates {
    background-color: #1C1917;
    color: #FFFBEB;
    padding: 60px 20px;
}

/* Light muted note. */
.rates .small {
    color: #D6D3D1;
}

/* Light link on dark. */
.rates a {
    color: #BFDBFE;
}

/* Rate cards stack on phones. */
.rate-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* One rate card. */
.rate {
    background-color: #292524;
    border: 2px dashed #A8A29E;
    border-radius: 10px;
    padding: 20px;
}

/* Rate name. */
.rate h3 {
    font-size: 1.8rem;
}

/* Big amount. */
.amount {
    font-family: "Patrick Hand", cursive;
    font-size: 3rem;
    line-height: 1.1;
    color: #FDE68A;
}

/* Half-day card is solid yellow. */
.rate-best {
    background-color: #FDE68A;
    color: #1C1917;
    border-style: solid;
    border-color: #FDE68A;
}

/* Brown amount on the yellow card. */
.rate-best .amount {
    color: #92400E;
}

/* ----- Footer (class) ----- */

/* Footer. */
.site-footer {
    background-color: #1C1917;
    color: #D6D3D1;
    text-align: center;
    font-size: 0.85rem;
    padding: 0px 20px 24px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller board photos. */
    .board-photos img {
        height: 240px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .list,
    #board,
    .wont,
    .rates {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Rate cards in a row. */
    .rate-row {
        flex-direction: row;
    }

    /* Equal widths. */
    .rate {
        flex: 1 1 30%;
    }

    /* Sticky note and photo side by side. */
    .wont {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    /* Note column. */
    .sticky {
        flex: 1 1 45%;
    }

    /* Photo column. */
    .wont img {
        flex: 1 1 45%;
        width: 45%;
        height: 340px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No Menu button on desktop. */
    .menu-icon {
        display: none;
    }

    /* Nav in the header row. */
    .site-nav {
        display: block;
        width: auto;
    }

    /* Links in a row. */
    .site-nav ul {
        display: flex;
        gap: 24px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Hero text and photo side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    /* Each hero half. */
    .hero-text,
    .hero-photo {
        flex: 1 1 50%;
    }

    /* Taller hero photo. */
    .hero-photo img {
        height: 420px;
    }

    /* The notepad tilts a little like a pad left on the counter. */
    .notepad {
        transform: rotate(-0.8deg);
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .list,
    #board,
    .wont,
    .rates {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
