/* ==========================================================================
   Baseera Psychotherapy - shared stylesheet
   Colours are taken from the brand palette supplied by the client.
   ========================================================================== */

:root {
    /* Foundation */
    --bg: #fdfbf7;              /* main background */
    --bg-block: #f5f1e8;        /* alternating page blocks, cards */
    --bg-block-alt: #cad2c7;    /* secondary block tint */

    /* Text */
    --heading: #5f7f73;         /* headings */
    --text: #2f2f2f;            /* body copy */
    --highlight: #c07a5a;        /* highlighted words, subheadings */

    /* Accents */
    --accent: #3e6f78;          /* buttons, links, footer */
    --accent-hover: #768770;    /* hover, per brand palette */
    --soft: #c8a9a1;            /* dividers, soft UI */
    --border: #d9d9d6;

    /* Darkened variants of the brand colours. The palette greens and terracotta
       only reach WCAG AA at large sizes, so small text uses these instead. */
    --heading-sm: #506b61;
    --highlight-sm: #996148;
    --accent-hover-solid: #6a7964;

    --measure: 1120px;
    --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    color: var(--heading);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; color: var(--heading-sm); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent-hover-solid); text-decoration: underline; }

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

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.highlight { color: var(--highlight); }

/* Skip link for keyboard and screen-reader users */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-size: 0.94rem;
    letter-spacing: 0.03em;
    border: 1px solid var(--accent);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.btn:hover, .btn:focus {
    background: var(--accent-hover-solid);
    border-color: var(--accent-hover-solid);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
}
.btn-outline:hover, .btn-outline:focus {
    background: var(--accent);
    color: #fff;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

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

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { width: 52px; }
.brand-text { line-height: 1.15; }
.brand-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    letter-spacing: 0.16em;
    color: var(--heading);
    display: block;
}
.brand-tag {
    font-size: 0.58rem;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    color: var(--highlight-sm);
    display: block;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--heading);
    font-size: 1.2rem;
    padding: 6px 12px;
    cursor: pointer;
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--text);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    padding: 6px 0;
    display: inline-block;
    white-space: nowrap;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
/* Scoped so the nav's link padding does not flatten the button */
.site-nav .btn { padding: 11px 20px; color: #fff; }
.site-nav .btn:hover { color: #fff; }
.site-nav .current > a {
    color: var(--heading-sm);
    border-bottom: 2px solid var(--highlight);
}

/* Dropdown: opens on hover for pointers, on focus for keyboards.
   Selectors are scoped to .site-nav so they outrank the `.site-nav ul` flex rule. */
.has-sub { position: relative; }
.has-sub > a::after { content: ' \25be'; font-size: 0.75em; }
.site-nav .sub {
    position: absolute;
    left: -14px;
    top: 100%;
    min-width: 232px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 0;
    display: none;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(47, 47, 47, 0.08);
}
.sub li { width: 100%; }
.sub a { display: block; padding: 8px 18px; font-size: 0.88rem; }
.sub a:hover { background: var(--bg-block); }
.site-nav .has-sub:hover > .sub,
.site-nav .has-sub:focus-within > .sub { display: flex; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section { padding: 78px 0; }
.block { background: var(--bg-block); }
.block-tint { background: var(--bg-block-alt); }

.section-intro { max-width: 720px; margin: 0 auto 46px; text-align: center; }

/* Hero */
.hero { padding: 74px 0 84px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero h1 { margin-bottom: 0.15em; }
.hero .tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    color: var(--highlight);
    margin-bottom: 1em;
}
.hero-image img {
    border-radius: 210px 210px 8px 8px;
    border: 1px solid var(--soft);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

/* Page header for interior pages */
.page-head {
    background: var(--bg-block);
    padding: 62px 0 58px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin-bottom: 0.3em; }
.page-head p { max-width: 660px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
    gap: 22px;
}

.card {
    background: var(--bg-block);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.card h3 { margin-bottom: 0.5em; }
.card p { font-size: 0.92rem; margin-bottom: 1.1em; }
.card .card-link { margin-top: auto; font-size: 0.88rem; }

.card-icon {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; }

/* Fee cards read as a list of prices, so keep them left-aligned */
.fee-card { text-align: left; }
.fee-card .price {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    color: var(--heading);
    display: block;
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Two-column feature block
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    align-items: center;
}
.split img { border-radius: var(--radius); }
/* For columns of differing height, align to the top rather than the middle */
.split-top { align-items: start; }

/* Checklist used in "Why Art Therapy" */
.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.ticks li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 9px;
}
.ticks li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.62em;
    width: 13px; height: 7px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.plain-list { list-style: none; margin: 0 0 1.2em; padding: 0; }
.plain-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}
.plain-list li:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Quote banner
   -------------------------------------------------------------------------- */

.quote-banner {
    background: var(--heading);
    color: var(--bg);
    padding: 58px 0;
    text-align: center;
}
.quote-banner blockquote {
    margin: 0 auto;
    max-width: 760px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.3rem, 3vw, 1.85rem);
    line-height: 1.5;
    font-style: italic;
}
.quote-banner .mark {
    color: var(--soft);
    font-size: 1.6em;
    line-height: 0;
    vertical-align: -0.35em;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust {
    background: var(--bg-block);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 26px 0;
}
.trust ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px 30px;
    margin: 0; padding: 0;
    text-align: center;
}
.trust li {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq details {
    background: var(--bg-block);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 22px;
    margin-bottom: 12px;
}
.faq summary {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.18rem;
    color: var(--heading-sm);
    cursor: pointer;
}
.faq details[open] summary { margin-bottom: 10px; }
.faq p { font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 16px;
}
.contact-list svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 5px; }

.note {
    background: var(--bg-block);
    border-left: 3px solid var(--soft);
    padding: 18px 22px;
    border-radius: var(--radius);
    font-size: 0.93rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--accent);
    color: var(--bg);
    padding: 58px 0 26px;
}
.site-footer a { color: var(--bg); }
.site-footer a:hover { color: #fff; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
}
.site-footer h2 {
    color: var(--bg);
    font-size: 1rem;
    font-family: 'Lato', Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 0.9rem; }
.site-footer .footer-about p { font-size: 0.87rem; opacity: 0.92; }
.site-footer .brand-name, .site-footer .brand-tag { color: var(--bg); }
.footer-brand { margin-bottom: 16px; }
/* The logo mark is dark teal, so it is inverted to read against the footer */
.footer-brand img {
    width: 46px;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-bottom {
    border-top: 1px solid rgba(253, 251, 247, 0.25);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Enquiry form
   -------------------------------------------------------------------------- */

.enquiry-form label {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    color: var(--text);
    background: #fff;
}
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.enquiry-form textarea { resize: vertical; }

/* Honeypot field: off-screen rather than display:none, which bots skip */
.enquiry-form .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    font-size: 0.94rem;
}
.form-status.ok {
    background: var(--bg-block);
    border-left: 3px solid var(--heading-sm);
}
.form-status.bad {
    background: var(--bg-block);
    border-left: 3px solid var(--highlight-sm);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 34px; }
    .hero-image { order: -1; }
    .hero-image img { aspect-ratio: 4 / 3; border-radius: 160px 160px 8px 8px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* The nav has ten items, so it collapses to the menu button well before phone
   width - otherwise the header wraps onto two lines on small laptops. */
@media (max-width: 1000px) {
    .nav-toggle { display: block; }

    .site-header .wrap { flex-wrap: wrap; }
    .site-nav {
        display: none;
        width: 100%;
        border-top: 1px solid var(--border);
        margin-top: 12px;
        padding-top: 8px;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav > ul > li { border-bottom: 1px solid var(--border); }
    .site-nav > ul > li:last-child { border-bottom: 0; }
    .site-nav a { padding: 11px 2px; }
    .site-nav .btn { margin: 12px 0; text-align: center; display: block; }

    /* Submenus are always visible on small screens - no hover to rely on */
    .site-nav .sub {
        position: static;
        display: flex;
        border: 0;
        box-shadow: none;
        padding: 0 0 8px 14px;
        min-width: 0;
        background: transparent;
    }
    .has-sub > a::after { content: ''; }
    .sub a { padding: 8px 2px; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    section { padding: 54px 0; }
}

@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .brand img { width: 44px; }
    .brand-name { font-size: 1.3rem; }
}
