
/* =========================================================
   BONICI CARE & COMPANIONSHIP
   Main Stylesheet
   ========================================================= */


/* ---------------------------------------------------------
   1. Brand colours, fonts and global settings
   --------------------------------------------------------- */

:root {
    --cream: #fbf8f2;
    --cream-2: #f1ecdf;

    --navy: #1c3466;
    --green: #1d4a2a;

    --orange: #e8601c;
    --cta: #bf4a0f;

    --ink: #2a3130;
    --muted: #566057;
    --line: #ddd6c2;

    --focus: #1c3466;
    --accent: var(--green);

    --r: 18px;

    --fh: 'Cormorant Garamond', Georgia, serif;
    --fb: 'Mulish', system-ui, sans-serif;
    --script: 'Allura', cursive;
}


/* ---------------------------------------------------------
   2. Global styles
   --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 18px/1.65 var(--fb);
}

body.navy {
    --accent: var(--navy);
}

body.green {
    --accent: var(--green);
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    font-family: var(--fh);
    color: var(--accent);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

h3 {
    font-size: 1.55rem;
}

p {
    margin: 0 0 1em;
    max-width: 66ch;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: var(--accent);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   3. Accessibility and layout helpers
   --------------------------------------------------------- */

.skip {
    position: absolute;
    left: -999px;
    background: #fff;
    padding: 0.7em 1em;
    z-index: 99;
}

.skip:focus {
    left: 8px;
    top: 8px;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.wrap {
    max-width: 1160px;
    margin: auto;
    padding: 0 24px;
}

.narrow {
    max-width: 760px;
}

.center {
    text-align: center;
}

.center p {
    margin-inline: auto;
}

.lead {
    font-size: 1.2em;
}

.small {
    font-size: 0.95rem;
}

.gap {
    margin-top: 1.4em;
}


/* ---------------------------------------------------------
   4. Header and navigation
   --------------------------------------------------------- */

header.site {
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

nav a:not(.btn) {
    display: block;
    padding: 0.6em 0.8em;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 99px;
}

nav a:not(.btn):hover {
    background: var(--cream-2);
}

nav a[aria-current] {
    background: var(--accent);
    color: #fff;
}

.nav-toggle {
    display: none;
}


/* ---------------------------------------------------------
   5. Buttons
   --------------------------------------------------------- */

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    padding: 0.8em 1.5em;
    font: 800 1rem var(--fb);
    border-radius: 99px;
    text-decoration: none;
    cursor: pointer;
    margin: 0 10px 10px 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(40, 50, 30, 0.18);
}

.btn.cta {
    background: var(--cta);
    border-color: var(--cta);
}

.btn.green {
    background: var(--green);
    border-color: var(--green);
}

.btn.blue,
.btn.navy {
    background: var(--navy);
    border-color: var(--navy);
}

.nav-cta {
    margin: 0 0 0 8px;
    padding: 0.6em 1.1em;
    font-size: 0.95rem;
}


/* ---------------------------------------------------------
   6. Sections and page headings
   --------------------------------------------------------- */

.sec {
    padding: clamp(48px, 7vw, 92px) 0;
}

.alt {
    background: var(--cream-2);
}

.pagehead {
    background: var(--cream-2);
    border-top: 6px solid var(--accent);
    padding: clamp(36px, 5vw, 64px) 0;
}


/* ---------------------------------------------------------
   7. Grids and columns
   --------------------------------------------------------- */

.split2,
.two,
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.top {
    align-items: start;
}


/* ---------------------------------------------------------
   8. Images and figure styling
   --------------------------------------------------------- */

.fig {
    position: relative;
    margin: 0;
    min-height: 260px;
    border-radius: var(--r);
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--accent),
        #5c6f5c
    );
    display: grid;
    place-items: center;
}

.fig figcaption {
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: 16px;
    font-size: 0.95rem;
}

.fig img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img {
    min-height: 460px;
    border-radius: 230px 230px var(--r) var(--r);
}

.portrait {
    min-height: 400px;
    border-radius: var(--r) 120px var(--r) var(--r);
}

.photo {
    min-height: 320px;
}


/* ---------------------------------------------------------
   9. Homepage hero
   --------------------------------------------------------- */

.hero {
    padding: clamp(28px, 5vw, 64px) 0;
}

.hero-logo {
    width: min(100%, 560px);
    height: auto;
    margin: 0 0 8px -8px;
}

.strap {
    font: clamp(2.3rem, 5.4vw, 3.6rem) / 1.15 var(--script);
    color: var(--navy);
    font-weight: 400;
    margin: 0 0 1em;
}


/* ---------------------------------------------------------
   10. Services
   --------------------------------------------------------- */

.svc {
    display: block;
}

.svc .fig {
    min-height: 280px;
    margin-bottom: 18px;
    border-radius: 150px 150px var(--r) var(--r);
}

.svc.navy {
    --accent: var(--navy);
    border-bottom: 5px solid var(--navy);
    padding-bottom: 20px;
}

.svc.green {
    --accent: var(--green);
    border-bottom: 5px solid var(--orange);
    padding-bottom: 20px;
}

.more {
    font-weight: 800;
}

.more::after {
    content: " \2192";
}


/* ---------------------------------------------------------
   11. Trust and credentials
   --------------------------------------------------------- */

.cred {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.cred li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 700;
}

.ic {
    width: 34px;
    height: 34px;
    color: var(--orange);
}


/* ---------------------------------------------------------
   12. Introduction call-to-action
   --------------------------------------------------------- */

.intro-cta {
    background: var(--green);
    color: #fff;
}

.intro-cta h2,
.intro-cta p {
    color: #fff;
}

.intro-cta .btn {
    margin: 0;
}


/* ---------------------------------------------------------
   13. Service lists and information notes
   --------------------------------------------------------- */

.slist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.slist li {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 6px solid var(--accent);
    border-radius: 12px;
    padding: 20px 24px;
}

.slist h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2em;
}

.slist p {
    margin: 0;
}

.note {
    border: 2px solid var(--accent);
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    margin-top: 12px;
}


/* ---------------------------------------------------------
   14. Cards and pricing
   --------------------------------------------------------- */

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 28px;
}

.trust {
    border-top: 6px solid var(--orange);
}

.price.navy {
    border-top: 8px solid var(--navy);
}

.price.navy h2 {
    color: var(--navy);
}

.price.green {
    border-top: 8px solid var(--green);
}

.price.green h2 {
    color: var(--green);
}

.min {
    font-weight: 800;
    color: var(--cta);
    font-size: 1.1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

th,
td {
    padding: 0.7em 0;
    border-bottom: 1px dotted #999;
    text-align: left;
    font-size: 1.1rem;
}

td {
    text-align: right;
    font: 800 1.7rem var(--fh);
}

.ph {
    background: #fff4d6;
    border: 1px dashed #b88a00;
    padding: 0.3em 0.6em;
    border-radius: 6px;
    font-size: 0.95rem;
}


/* ---------------------------------------------------------
   15. Contact form
   --------------------------------------------------------- */

form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 32px;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8em 1em;
    font: inherit;
    border: 2px solid #8a917f;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
}

[aria-invalid] {
    border-color: #b3261e;
}

.err {
    color: #b3261e;
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

#status.ok {
    background: var(--cream-2);
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
}


/* ========================================
   FOOTER
======================================== */

footer.site {
    background: var(--green);
    color: #f6f1e4;
    padding: 48px 0 24px;
}

/* Footer links */

footer.site a {
    color: #f6f1e4;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

footer.site a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* Footer headings */

footer.site h2 {
    color: #f6f1e4;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 16px;
}

/* Footer paragraphs */

footer.site p {
    margin: 12px 0;
    line-height: 1.7;
}

/* Footer navigation lists */

footer.site ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer.site li {
    padding: 4px 0;
}

/* Three-column layout */

.fgrid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
    align-items: start;
}

/* Footer branding */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Footer image */

.flogo {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    background: var(--cream);
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 12px;
}

/* Footer tagline */

.footer-brand p {
    max-width: 240px;
    margin-top: 4px;
}

/* Copyright section */

.legal {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 36px;
    padding-top: 18px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   FOOTER RESPONSIVE LAYOUT
======================================== */

@media (max-width: 900px) {

    .fgrid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}

@media (max-width: 600px) {

    footer.site {
        padding: 36px 0 20px;
    }

    .fgrid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .flogo {
        max-width: 200px;
    }

    footer.site h2 {
        margin-bottom: 10px;
    }

    .legal {
        margin-top: 28px;
        padding-top: 16px;
    }

}
/* ---------------------------------------------------------
   17. Homepage-specific refinements
   --------------------------------------------------------- */

.owner-intro h2 {
    max-width: 26ch;
}

.owner-intro p {
    max-width: 72ch;
}

.home-footer-heading {
    font-size: 1.7rem;
    line-height: 1.15;
    margin-bottom: 0.7em;
}

.home-footer .fgrid {
    grid-template-columns: 1fr 1fr;
}


/* ---------------------------------------------------------
   18. Responsive layout
   --------------------------------------------------------- */

/* Smaller desktop screens */

@media (max-width: 1000px) {
    nav a:not(.btn) {
        padding: 0.5em 0.55em;
        font-size: 0.88rem;
    }

    .logo img {
        height: 52px;
    }
}


/* Tablets */

@media (max-width: 900px) {
    .split2,
    .two,
    .hero-grid,
    .fgrid {
        grid-template-columns: 1fr;
    }

    .hero-img {
        min-height: 320px;
    }

    .home-footer .fgrid {
        grid-template-columns: 1fr;
    }
}


/* Mobile navigation */

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
        background: none;
        border: 2px solid var(--accent);
        color: var(--accent);
        padding: 0.6em 1.1em;
        font: 800 1rem var(--fb);
        border-radius: 99px;
        cursor: pointer;
        min-height: 48px;
    }

    nav ul {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--cream);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 24px 20px;
        border-bottom: 1px solid var(--line);
    }

    nav ul.open {
        display: flex;
    }

    nav a:not(.btn) {
        font-size: 1.1rem;
        padding: 0.8em 1em;
    }

    .nav-cta {
        margin: 8px 0 0;
        text-align: center;
    }

    .logo img {
        height: 46px;
    }
}


/* Small mobile screens */

@media (max-width: 560px) {
    body {
        font-size: 17px;
    }

    .btn {
        display: block;
        text-align: center;
        margin-right: 0;
    }

    .btns .btn {
        width: 100%;
    }

    .hero-logo {
        margin-left: 0;
    }

    form {
        padding: 22px;
    }

    .card {
        padding: 22px;
    }
}


/* ---------------------------------------------------------
   19. Reduced motion accessibility
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}



/* ========================================
   TESTIMONIALS
======================================== */

.testimonials {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    height: 100%;
    padding: 30px;
}

.testimonials-heading {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.testimonials-heading .eyebrow {
    color: var(--cta);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.testimonials-heading h2 {
    color: var(--navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    margin: 8px 0;
}

.testimonials-heading p {
    color: var(--ink);
    line-height: 1.7;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.testimonial-card {
    background: var(--cream-2);
    border-radius: 12px;
    padding: 22px;
    margin: 0;
}

.testimonial-quote {
    color: var(--cta);
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    line-height: 1;
}

.testimonial-card blockquote {
    color: var(--ink);
    font-style: italic;
    line-height: 1.7;
    margin: 8px 0 18px;
}

.testimonial-card figcaption {
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonials-source {
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink);
}

.testimonials-source span:first-child {
    display: block;
    color: var(--cta);
    letter-spacing: 3px;
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    .testimonials {
        padding: 20px 0;
    }

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