/* Borrie – Unique Children’s Health Design
   Soft pastels • Rounded geometry • Warm & calm */

:root {
    --mint: #7BC9A6;
    --mint-dark: #4A9B78;
    --coral: #F4A89A;
    --coral-soft: #FDE8E4;
    --lavender: #B8A9E0;
    --cream: #FFF8F2;
    --warm-white: #FFFCFA;
    --ink: #2C2A29;
    --ink-soft: #5C5856;
    --shadow: 0 12px 40px rgba(44, 42, 41, 0.08);
    --radius: 24px;
    --radius-sm: 14px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    font-size: 17px;
}

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

a { color: var(--mint-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--coral); }

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 252, 250, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 201, 166, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--ink);
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--mint), var(--lavender));
    color: white;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    font-weight: 800;
}

.main-nav {
    display: flex;
    gap: 1.8rem;
}

.main-nav a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--mint-dark);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: var(--mint);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.25s;
}

/* Hero */
.hero {
    padding: 4.5rem 0 5rem;
    background: linear-gradient(160deg, var(--warm-white) 0%, var(--coral-soft) 45%, #E8F5EF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(123,201,166,0.25) 0%, transparent 70%);
    top: -100px;
    right: -80px;
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--ink);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 2rem;
    max-width: 34ch;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--mint-dark);
    color: white;
    box-shadow: 0 8px 24px rgba(74, 155, 120, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(74, 155, 120, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--mint-dark);
    border: 2px solid var(--mint);
    margin-left: 0.8rem;
}

.btn-secondary:hover {
    background: var(--mint);
    color: white;
}

.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.hero-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3.2rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    margin-bottom: 0.9rem;
}

.section-header p {
    color: var(--ink-soft);
    font-size: 1.08rem;
}

/* Feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.feature-card:nth-child(1) .feature-icon { background: #E0F5EC; }
.feature-card:nth-child(2) .feature-icon { background: var(--coral-soft); }
.feature-card:nth-child(3) .feature-icon { background: #EDE8F8; }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--ink-soft);
    font-size: 0.98rem;
}

/* About preview / split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.split-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.split-image img {
    width: 100%;
    aspect-ratio: 5/4;
    object-fit: cover;
}

.split-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    margin-bottom: 1rem;
}

.split-content p {
    color: var(--ink-soft);
    margin-bottom: 1.2rem;
}

.list-check {
    list-style: none;
    margin: 1.5rem 0;
}

.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.list-check li::before {
    content: '✓';
    color: var(--mint-dark);
    font-weight: 800;
    flex-shrink: 0;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-body {
    padding: 1.6rem 1.8rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.service-body p {
    color: var(--ink-soft);
    flex: 1;
    margin-bottom: 1.2rem;
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.resource-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.resource-body {
    padding: 1.4rem 1.5rem 1.7rem;
}

.resource-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mint-dark);
    background: #E0F5EC;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.7rem;
}

.resource-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.resource-body p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.team-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.8rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.2rem;
    border: 4px solid var(--coral-soft);
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.team-card .role {
    color: var(--mint-dark);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.team-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
}

.contact-info {
    background: white;
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.contact-item .icon {
    width: 44px;
    height: 44px;
    background: #E0F5EC;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form {
    background: white;
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 2px solid #E8E4E0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--warm-white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--mint);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Stats bar */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: white;
    border-radius: var(--radius);
    padding: 2.2rem 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--mint-dark);
    margin-bottom: 0.3rem;
}

.stat-item span {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 600;
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--mint-dark), #3D8A68);
    color: white;
    border-radius: var(--radius);
    padding: 3.2rem 2.5rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-band h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.cta-band p {
    opacity: 0.92;
    margin-bottom: 1.6rem;
    max-width: 480px;
    margin-inline: auto;
}

.cta-band .btn-primary {
    background: white;
    color: var(--mint-dark);
    box-shadow: none;
}

.cta-band .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Page hero (inner pages) */
.page-hero {
    padding: 3.5rem 0 3rem;
    background: linear-gradient(160deg, var(--warm-white), var(--coral-soft));
    text-align: center;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 4.5vw, 2.8rem);
    margin-bottom: 0.8rem;
}

.page-hero p {
    color: var(--ink-soft);
    max-width: 560px;
    margin-inline: auto;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background: #2A2928;
    color: #D8D4D0;
    padding-top: 4rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 28ch;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: #D8D4D0;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--mint);
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-contact a {
    color: #D8D4D0;
}

.footer-contact a:hover {
    color: var(--mint);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.4rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #9A9692;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .features,
    .resources-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 0.8rem;
    }

    .hero-content .btn {
        display: block;
        width: fit-content;
    }
}

@media (max-width: 500px) {
    .stats {
        grid-template-columns: 1fr;
    }
}
