/* Home.css — page-specific styles only.
   Shared styles (fonts, colors, header, footer, mobile menu) live in ../Common.css */

:root {
    --tan: #F3E3B8;
    --tan-deep: #EBD69E;
}

/* Smooth scroll for in-page anchor jumps (About / Contact) */
html {
    scroll-behavior: smooth;
}

/* SHARED SECTION SHELL */
main section {
    background-color: var(--cream);
    padding: 76px 24px;
}

.hero,
.about,
.touch {
    position: relative;
}

/* Offset anchored sections so the fixed header doesn't cover the heading
   when jumped to via nav links */
.hero,
.about,
.touch {
    scroll-margin-top: 90px;
}

/* Decorative heading flourishes: the little comma marks in the design */
.flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.1;
}

.flourish::before,
.flourish::after {
    content: "";
    width: 26px;
    height: 30px;
    flex: none;
    background-color: currentColor;
    /* two teardrop dashes, mirrored either side of the heading */
    -webkit-mask: radial-gradient(ellipse 5px 11px at 30% 35%, #000 99%, transparent 100%),
                  radial-gradient(ellipse 4px 8px at 72% 66%, #000 99%, transparent 100%);
            mask: radial-gradient(ellipse 5px 11px at 30% 35%, #000 99%, transparent 100%),
                  radial-gradient(ellipse 4px 8px at 72% 66%, #000 99%, transparent 100%);
    transform: rotate(-12deg);
}

.flourish::after {
    transform: rotate(12deg) scaleX(-1);
}

/* WAVE DIVIDERS */
.wave {
    background-color: var(--cream);
    line-height: 0;
}

.wave svg {
    display: block;
    width: 100%;
    height: 90px;
}

.wave svg path {
    fill: var(--tan);
}

.wave-flip svg {
    transform: scaleY(-1);
}

/* HERO */
.hero {
    padding-top: 64px;
    padding-bottom: 40px;
}

.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 48px;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-text p {
    max-width: 40ch;
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 500;
}

.hero-art img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin-left: auto;
}

/* ABOUT */
.about {
    background-color: var(--tan);
    padding-top: 48px;
    padding-bottom: 48px;
}

.about-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 32px;
}

.about-copy .flourish {
    margin-bottom: 16px;
}

.about-copy p {
    max-width: 46ch;
    margin: 0 auto;
    text-align: center;
    font-size: 1.02rem;
    line-height: 1.75;
    font-weight: 500;
}

.heart-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    color: var(--brown);
}

.heart-rule .rule {
    width: 58px;
    height: 3px;
    border-radius: 2px;
    background-color: currentColor;
    opacity: 0.55;
}

/* WHY SECTION */
.why .flourish {
    margin-bottom: 40px;
}

.why-grid {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.why-item {
    text-align: center;
}

/* Blob background (bigger now) that holds the image placeholder */
.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;               /* was 88px */
    height: 120px;              /* was 88px */
    margin-bottom: 18px;
    background-color: var(--tan);
    border-radius: 47% 53% 55% 45% / 52% 46% 54% 48%;   /* hand-drawn blob */
    color: var(--brown);
    transform: rotate(-4deg);
}

.why-icon img {
    display: block;
    width: 60%;                 /* how much of the blob the image fills */
    height: 60%;
    object-fit: contain;
}

.why-item:nth-child(2) .why-icon { transform: rotate(3deg); }
.why-item:nth-child(3) .why-icon { transform: rotate(-2deg); }

.why-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-item p {
    font-size: 0.98rem;
    line-height: 1.6;
    font-weight: 500;
}

/* GET IN TOUCH */
.touch {
    background-color: var(--tan);
    text-align: center;
    padding-bottom: 96px;
}

.touch .flourish {
    margin-bottom: 18px;
}

.touch-lede {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 52px;
}

.touch-grid {
    max-width: 940px;
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.touch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 50%;
    background-color: var(--brown);
    color: var(--cream);
}

.touch-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.touch-item p {
    font-size: 0.97rem;
    line-height: 1.55;
    font-weight: 500;
    overflow-wrap: anywhere; /* long email never overflows on small screens */
}

.touch-item a:hover {
    text-decoration: underline;
}

.touch-cta {
    display: inline-block;
    padding: 15px 34px;
    border-radius: 999px;
    background-color: var(--brown);
    color: var(--cream);
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.touch-cta:hover {
    background-color: var(--ink-soft);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .touch-cta {
        transition: none;
    }
    .touch-cta:hover {
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-inner,
    .about-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto;
    }

    .hero-art img {
        margin: 0 auto;
    }

    .why-grid,
    .touch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 28px;
    }

    .wave svg {
        height: 60px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    /* mobile header is shorter (76px), so anchors need less offset */
    .hero,
    .about,
    .touch {
        scroll-margin-top: 76px;
    }
}

@media (max-width: 600px) {
    main section {
        padding: 48px 20px;
    }

    .hero {
        padding-top: 36px;
        padding-bottom: 24px;
    }

    .hero-inner {
        gap: 28px;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-art img {
        max-width: 100%;
    }

    .why-grid,
    .touch-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .why .flourish {
        margin-bottom: 28px;
    }

    .touch {
        padding-bottom: 64px;
    }

    .touch-lede {
        margin-bottom: 36px;
    }

    .touch-lede br {
        display: none; /* let the sentence wrap naturally on narrow screens */
    }

    .touch-grid {
        gap: 32px;
        margin-bottom: 36px;
    }

    .flourish {
        gap: 12px;
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .flourish::before,
    .flourish::after {
        width: 20px;
        height: 24px;
    }

    .wave svg {
        height: 40px;
    }
}


/* =========================================================
   PHONE POLISH  (keep this block at the very bottom)
   Extra touches on top of the 600px block above:
   full-width thumb-sized button, easier-to-tap contact
   links, and slightly more compact spacing.
========================================================= */
@media (max-width: 600px) {

    .hero-text p {
        max-width: none;
    }

    .hero-art img {
        max-width: 380px;
    }

    .about {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .about-copy p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .why-grid {
        gap: 30px;
    }

    .why-icon {
        width: 100px;           /* was 72px */
        height: 100px;          /* was 72px */
        margin-bottom: 14px;
    }

    .why-item h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .why-item p {
        max-width: 34ch;
        margin: 0 auto;
        font-size: 0.95rem;
    }

    .touch-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    /* phone / email / address links get a bigger tap area */
    .touch-item a {
        display: inline-block;
        padding: 6px 0;
    }

    /* the main button: full-width and easy to hit with a thumb */
    .touch-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 340px;
        min-height: 52px;
        margin: 0 auto;
        padding: 14px 24px;
    }
}

@media (max-width: 380px) {

    main section {
        padding: 40px 16px;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 9.5vw, 2.2rem);
    }

    .flourish {
        gap: 8px;
    }
}