/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Kindred Hearts Home Care (fictional business)
    Filename:   styles.css

    Theme: the comforts of home. The header is a porch: lavender
    siding with a white peaked roof line rising above the middle
    (clip-path) and a heart made from a rotated square with two round
    lobes. The hero photo is cut into a little house shape, a peaked
    roof over a square body. The signature is a care log held on a
    refrigerator door: brushed-steel fridge, two round magnets, and a
    lined sheet with times down the left and a note to the family.
    "How much help" is four quilt blocks, each a different pieced
    pattern (gradients) with dashed stitching. The footer is a coir
    welcome mat.

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

    Colors (WebAIM contrast checked, AA):
      #1E0B2E text on #FBF7FF page (18.0:1)
      #8F32E4 purple text (5.5:1 on the page)
      #FFFFFF on #9333EA buttons (5.4:1)
      #8D5B06 amber text (5.7:1 on the page)
*/

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

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

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

/* Soft lavender-white page. */
body {
    background-color: #FBF7FF;
    color: #1E0B2E;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 1.06rem;
    line-height: 1.65;
}

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

/* Warm serif headings. */
h1,
h2,
h3 {
    font-family: "Lora", Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    color: #8F32E4;
    margin-bottom: 8px;
}

/* Links in purple. */
a {
    color: #8F32E4;
}

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

/* ----- Porch header (class) ----- */

/* Lavender lap siding under a white roof peak. */
.porch {
    position: relative;
    background-color: #EDE1FB;
    background-image: repeating-linear-gradient(180deg, transparent 0px, transparent 13px, rgba(147, 51, 234, 0.12) 13px, rgba(147, 51, 234, 0.12) 14px);
    border-bottom: 8px solid #FFFFFF;
    padding: 34px 16px 14px 16px;
}

/* White peaked roof trim across the top. */
.porch::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 26px;
    background-color: #FFFFFF;
    clip-path: polygon(0% 0%, 100% 0%, 100% 20%, 50% 100%, 0% 20%);
}

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

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

/* Logo with a heart. */
.logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px 10px;
    font-family: "Lora", Georgia, serif;
    font-weight: 700;
    font-size: 1.45rem;
}

/* Small part of the name. */
.logo .sub {
    font-family: "Nunito", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #8F32E4;
}

/* Heart: a rotated square with two round lobes. */
.heart {
    position: relative;
    width: 18px;
    height: 18px;
    margin: 6px 6px 0px 6px;
    background-color: #9333EA;
    transform: rotate(45deg);
}

/* The two lobes. */
.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #9333EA;
}

/* Left lobe. */
.heart::before {
    left: -9px;
    top: 0px;
}

/* Top lobe. */
.heart::after {
    top: -9px;
    left: 0px;
}

/* Menu button. */
.menu-icon {
    background-color: #9333EA;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 20px;
    padding: 4px 14px;
    cursor: pointer;
}

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

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

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

/* Nav links. */
.porch-nav a {
    color: #1E0B2E;
    font-weight: 700;
    text-decoration: none;
}

/* Hover: purple. */
.porch-nav a:hover {
    color: #8F32E4;
}

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

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

/* ----- House hero (class) ----- */

/* House then words. */
.house-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 24px 16px 60px 16px;
}

/* Photo cut into a house: peaked roof over a square body. */
.house {
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(0px 8px 14px rgba(30, 11, 46, 0.2));
}

/* Photo with a house-shaped clip. */
.house img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 32%, 100% 100%, 0% 100%, 0% 32%);
}

/* Words. */
.house-text {
    max-width: 560px;
}

/* Headline. */
.house-text h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    margin-bottom: 14px;
}

/* Hero words. */
.house-text p {
    margin-bottom: 22px;
}

/* Warm rounded purple button. */
.warm-btn,
button {
    display: inline-block;
    background-color: #9333EA;
    color: #FFFFFF;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    padding: 13px 26px;
    cursor: pointer;
}

/* Button hover. */
.warm-btn:hover,
button:hover {
    background-color: #1E0B2E;
}

/* ----- Fridge care log (ID) ----- */

/* Kitchen-colored band. */
#log {
    background-color: #F4EBDD;
    padding: 56px 16px;
}

/* Brushed steel fridge door. */
.fridge {
    position: relative;
    max-width: 760px;
    margin: 0px auto;
    background-color: #D7DBE0;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0px, rgba(255, 255, 255, 0.25) 1px, transparent 1px, transparent 4px);
    border-radius: 14px;
    padding: 30px 18px;
    border-left: 10px solid #B7BCC4;
}

/* Round magnets holding the sheet. */
.magnet {
    position: absolute;
    top: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.25);
}

/* Purple magnet left. */
.m1 {
    left: 30px;
    background-color: #9333EA;
}

/* Amber magnet right. */
.m2 {
    right: 30px;
    background-color: #F59E0B;
}

/* The care log sheet: lined paper. */
.sheet {
    background-color: #FFFFFF;
    background-image: repeating-linear-gradient(180deg, transparent 0px, transparent 33px, #E3D5F5 33px, #E3D5F5 34px);
    padding: 24px 20px;
    transform: rotate(-0.6deg);
}

/* Who and when. */
.who {
    font-weight: 700;
    color: #8D5B06;
    margin-bottom: 8px;
}

/* Log entries. */
.entries {
    list-style: none;
}

/* One entry. */
.entries li {
    display: flex;
    gap: 14px;
    padding: 4px 0px;
    font-family: "Lora", Georgia, serif;
    font-style: italic;
}

/* Time on the left. */
.time {
    flex: 0 0 52px;
    font-family: "Nunito", Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    color: #8F32E4;
}

/* Note to the family. */
.note {
    margin-top: 12px;
    padding: 10px;
    background-color: #FEF3C7;
    font-weight: 700;
}

/* ----- Quilt (class) ----- */

/* Section spacing. */
.quilt-sec {
    padding: 56px 16px;
}

/* Quilt of four blocks. */
.quilt {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background-color: #8F32E4;
    padding: 6px;
    margin: 14px 0px 28px 0px;
}

/* One quilt block with dashed stitching. */
.block {
    flex: 1 1 100%;
    padding: 22px;
    outline: 2px dashed rgba(30, 11, 46, 0.35);
    outline-offset: -8px;
}

/* Block words on a plain center panel. */
.block h3,
.block p {
    background-color: #FFFFFF;
    padding: 2px 8px;
}

/* Block title. */
.block h3 {
    display: inline-block;
    font-size: 1.3rem;
}

/* Hours line. */
.hrs {
    font-weight: 700;
    color: #8D5B06;
    margin: 6px 0px;
}

/* Block 1: checkerboard. */
.b1 {
    background-color: #F5E6FF;
    background-image: conic-gradient(#E9D5FF 0deg 90deg, transparent 90deg 180deg, #E9D5FF 180deg 270deg, transparent 270deg);
    background-size: 30px 30px;
}

/* Block 2: stripes. */
.b2 {
    background-color: #FEF3C7;
    background-image: repeating-linear-gradient(45deg, transparent 0px, transparent 10px, #FDE68A 10px, #FDE68A 20px);
}

/* Block 3: dots. */
.b3 {
    background-color: #E0E7FF;
    background-image: radial-gradient(circle, #C7D2FE 0px, #C7D2FE 5px, transparent 6px);
    background-size: 20px 20px;
}

/* Block 4: triangles. */
.b4 {
    background-color: #FCE7F3;
    background-image: linear-gradient(135deg, #FBCFE8 25%, transparent 25%), linear-gradient(225deg, #FBCFE8 25%, transparent 25%);
    background-size: 28px 28px;
}

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

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

/* ----- Talk with us (class) ----- */

/* Purple band. */
.talk {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #9333EA;
    padding: 56px 16px;
}

/* Blood pressure photo. */
.talk img {
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
}

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

/* Form title. */
.talk-form legend {
    font-family: "Lora", Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    float: left;
    width: 100%;
}

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

/* Inputs. */
.talk-form input,
.talk-form select {
    width: 100%;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #6F6478;
    border-radius: 8px;
}

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

/* ----- Welcome mat footer (class) ----- */

/* Coir mat with a dark border. */
.welcome {
    background-color: #B08B5A;
    background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0px, rgba(0, 0, 0, 0.08) 2px, transparent 2px, transparent 4px);
    border: 10px solid #5A3E1E;
    color: #1E0B2E;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    padding: 24px 16px;
}

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

@media (min-width: 576px) {

    /* Two quilt blocks per row. */
    .block {
        flex: 1 1 45%;
    }
}

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

@media (min-width: 768px) {

    /* House beside the words. */
    .house-hero {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    /* House column. */
    .house {
        flex: 0 0 380px;
    }

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

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

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

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

@media (min-width: 992px) {

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

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

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

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

    /* Wider sections. */
    #log,
    .quilt-sec,
    .talk {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .quilt-sec,
    .talk {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
