/* Brave Hearts Care colour palette, sampled visually from the live site. */
:root {
    --pink: #e66d9f;
    --pink-soft: #e77ba5;
    --orange: #f39a6d;
    --hero-pink: #e875a0;
    --hero-orange: #f39a6e;
    --purple: #5e159b;
    --ink: #302e30;
    --body-copy: #6c686a;
    --page-blush: #fff7f5;
    --paper: #ffffff;
    --contact-gray: #f2f2f2;
    --footer: #222222;
    --section-gray: #f4f4f4;
    --card-gray: #ffffff;
    --card-gray-alt: #d3d3d3;
    --icon-charcoal: #777777;
}

/* GENERAL SETTINGS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    font-family: Arial, sans-serif;
    color: var(--body-copy);
    background: var(--page-blush);
    line-height: 1.6;
}

section {
    padding: 76px clamp(22px, 7.5vw, 112px);
    scroll-margin-top: 112px;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.25;
}

h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

p {
    font-size: 15px;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(110deg, #f64f97, #ff9b75);
    padding: 10px clamp(22px, 1.6vw, 48px) 26px;
    min-height: 100px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, 1.6vw, 30px);
    box-shadow: inset 0 -4px 0 rgba(208, 66, 120, 0.24);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    text-decoration: none;
    flex: 0 0 auto;
}

.header-logo {
    display: block;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    overflow: hidden;
    background: white;
}

.header-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-wordmark {
    color: white;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.5vw, 28px);
}

.primary-nav a,
.header-login {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.2vw, 22px);
    white-space: nowrap;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 20px;
    border-radius: 999px;
    background: white;
    color: #f04d91;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.header-login:hover,
.header-login:focus-visible,
.primary-nav a:hover,
.primary-nav a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header-pill:hover,
.header-pill:focus-visible {
    background: #fff4f8;
    transform: translateY(-1px);
}

/* HERO */

.hero {
    min-height: min(680px, calc(100vh - 76px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(112deg, var(--hero-pink), var(--hero-orange));
    color: white;
    padding: 72px 9%;
}

.hero h1 {
    max-width: 760px;
    color: white;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 24px;
    text-shadow: 0 2px 3px rgba(75, 35, 48, 0.2);
}

.hero p {
    max-width: 720px;
    margin: 0 auto 30px;
    color: white;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.7;
}

.btn {
    display: inline-block;
    background: white;
    color: var(--pink);
    text-decoration: none;
    padding: 13px 25px;
    border: 2px solid transparent;
    border-radius: 30px;
    margin: 5px;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero .btn:nth-of-type(1) {
    background: var(--purple);
    color: white;
}

.hero .btn:nth-of-type(2) {
    background: #ed792f;
    color: white;
}

.hero .btn:nth-of-type(3) {
    background: white;
    color: var(--pink);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.hero .btn:nth-of-type(1):hover,
.hero .btn:nth-of-type(1):focus-visible {
    background: #4f0d88;
}

.hero .btn:nth-of-type(2):hover,
.hero .btn:nth-of-type(2):focus-visible {
    background: #d96824;
}

.hero .btn:nth-of-type(3):hover,
.hero .btn:nth-of-type(3):focus-visible {
    background: #fbeaf1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.hero-actions .btn {
    margin: 0;
}

/* CONTENT SECTIONS */

.testimonials,
.about,
.gallery,
.faq {
    background: var(--page-blush);
}

.why-us,
.services {
    background: var(--section-gray);
    color: var(--ink);
}

.why-us h2,
.services h2 {
    color: var(--ink);
}

.testimonials > p:first-child,
.about > p:first-child,
.gallery > p:first-child {
    color: var(--pink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.testimonials > p,
.about > p,
.gallery > p,
.services > p {
    color: var(--body-copy);
}

.about {
    background: linear-gradient(112deg, var(--hero-pink), var(--hero-orange));
}

.about h2,
.about h3,
.about p {
    color: white;
}

.about > p:first-child {
    color: rgba(255, 255, 255, 0.9);
}

/* TESTIMONIALS */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-top: 26px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    min-width: 0;
    background: var(--paper);
    padding: 26px;
    border: 1px solid #f0dce5;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(48, 34, 39, 0.07);
    overflow: hidden;
}

.testimonial-card img {
    flex: none;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-card > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.testimonial-card h3 {
    color: var(--pink);
    font-size: 38px;
    line-height: 1;
}

.testimonial-card p {
    line-height: 1.7;
}

.testimonial-card strong {
    display: block;
    color: var(--pink);
    margin-top: 15px;
}

.testimonial-card--text-only {
    min-height: 100%;
    justify-content: center;
    border-top: 4px solid var(--pink);
}

.testimonial-card--text-only > div {
    width: 100%;
    max-width: none;
}

/* ABOUT US */

.about p {
    max-width: 600px;
    margin-bottom: 15px;
}

.about h3 {
    margin: 24px 0 10px;
}

/* WHY CHOOSE US */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.why-us .service-grid > div {
    background: var(--card-gray);
    padding: 28px 24px;
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(48, 34, 39, 0.08);
}

.why-us .service-grid > div:nth-child(even) {
    background: var(--card-gray-alt);
}

.why-us h3 {
    color: var(--ink);
    font-size: 18px;
    margin-bottom: 10px;
}

.why-icon {
    display: block;
    text-align: center;
    margin-bottom: 14px;
    font-size: 30px;
    line-height: 1;
}

.why-us p {
    color: var(--body-copy);
}

/* OUR SERVICES */

.services > p {
    margin-bottom: 25px;
}

.services .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.services .service-grid > div {
    min-height: 170px;
    padding: 26px 18px;
    text-align: center;
    color: var(--ink);
    background: var(--card-gray);
    border-radius: 17px;
    box-shadow: 0 8px 20px rgba(48, 34, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services .service-grid > div:nth-child(even) {
    background: var(--card-gray-alt);
}

.services .service-grid > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(48, 34, 39, 0.13);
}

.services h3 {
    color: var(--ink);
    font-size: 17px;
    margin: 9px 0;
}

.services .service-grid p {
    color: var(--body-copy);
    font-size: 13px;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    background: var(--icon-charcoal);
    border-radius: 50%;
    font-size: 29px;
    line-height: 1;
}

.service-icon > span {
    filter: grayscale(1) brightness(0) invert(1);
}

/* PHOTO GALLERY */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.gallery-grid > div {
    padding: 10px 10px 13px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(48, 34, 39, 0.07);
    overflow: hidden;
}

.gallery-grid > div:nth-child(even) {
    background: #eef3f0;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 11px;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

.gallery-grid p {
    font-size: 13px;
    margin: 9px 4px 0;
    color: var(--body-copy);
}

/* FAQ */

.faq details {
    background: white;
    padding: 19px 22px;
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(48, 34, 39, 0.07);
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.faq details[open] {
    background: white;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-weight: 700;
    color: var(--pink);
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--pink);
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    margin-top: 12px;
}

/* CONTACT */

.contact {
    background: var(--contact-gray);
}

.contact h3 {
    color: var(--pink);
    font-size: 25px;
    margin-top: 20px;
}

.contact form {
    max-width: 560px;
    margin-top: 22px;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 13px;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: white;
    color: var(--ink);
    font: inherit;
}

.contact input:focus,
.contact textarea:focus {
    outline: 2px solid rgba(230, 109, 159, 0.4);
    border-color: var(--pink);
}

.contact textarea {
    height: 120px;
    resize: vertical;
}

.contact button {
    width: 100%;
    padding: 14px 20px;
    background: var(--pink);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact button:hover,
.contact button:focus-visible {
    background: #d45a8d;
    transform: translateY(-1px);
}

/* FOOTER */

footer {
    background: var(--footer);
    color: white;
    padding: 48px clamp(22px, 7.5vw, 112px) 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

footer h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

footer p,
footer a {
    color: #ededed;
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
    color: var(--orange);
}

.footer-socials {
    margin-top: 18px;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: white;
}

.footer-social-icon svg {
    width: 34px;
    height: 34px;
}

footer > p {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 18px;
}

/* RESPONSIVE LAYOUTS */

@media (max-width: 1100px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 20px;
    }

    .header-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 18px;
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonial-card {
        max-width: 720px;
        width: 100%;
        margin-inline: auto;
    }

    .service-grid,
    .services .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    html {
        scroll-padding-top: 190px;
    }

    section {
        padding: 54px 22px;
        scroll-margin-top: 190px;
    }

    .site-header {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px 18px;
    }

    .header-brand {
        gap: 12px;
    }

    .header-logo {
        width: 54px;
        height: 54px;
    }

    .header-wordmark {
        font-size: 16px;
    }

    .primary-nav {
        gap: 5px 13px;
    }

    .primary-nav a {
        font-size: 12px;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .header-login,
    .header-pill {
        font-size: 12px;
    }

    .header-pill {
        min-height: 34px;
        padding: 7px 14px;
    }

    .hero {
        min-height: min(680px, calc(100svh - 94px));
        padding: 62px 22px;
    }

    .hero-actions {
        flex-direction: column;
        width: min(100%, 340px);
    }

    .hero h1 {
        font-size: clamp(31px, 8.2vw, 38px);
        margin-bottom: 18px;
    }

    .hero p {
        font-size: 17px;
        margin-bottom: 22px;
    }

    .hero-actions .btn {
        width: 100%;
        margin: 0;
    }

    h2 {
        font-size: 29px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card img {
        width: 58px;
        height: 58px;
    }

    .service-grid,
    .services .service-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .services .service-grid > div {
        min-height: 150px;
    }

    footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 40px 22px 22px;
        gap: 25px 16px;
    }
}

@media (max-width: 380px) {
    .primary-nav {
        gap: 4px 10px;
    }

    .primary-nav a {
        font-size: 11px;
    }

    .service-grid,
    .services .service-grid,
    .gallery-grid,
    footer {
        grid-template-columns: 1fr;
    }
}
