/* ===================================================
   Milly Peel — Private Therapy Landing Page
   Loads after wireframe.css; overrides where needed.
   =================================================== */

:root {
    --mp-primary:      #05315e;
    --mp-accent:       #09a6ab;
    --mp-accent-soft:  rgba(9, 166, 171, 0.12);
    --mp-wa-green:     #25D366;
    --mp-wa-dark:      #1ebe5d;
    --mp-text:         #353535;
    --mp-text-light:   #6d6d6d;
    --mp-white:        #ffffff;
    --mp-cream:        #f8f8f6;
    --mp-section:      clamp(4rem, 8vw, 6.5rem);
}

/* ── Scope all page styles so they don't bleed into cookie banners etc. ── */
.milly-peel-page {
    font-family: 'Open Sans', sans-serif;
    color: var(--mp-text);
    background: var(--mp-white);
    overflow-x: hidden;
}

/* Override Bebas Neue headings for a warmer, more personal feel */
.milly-peel-page h1,
.milly-peel-page h2,
.milly-peel-page h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: var(--mp-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.milly-peel-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.milly-peel-page h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.5rem; }

.milly-peel-page p {
    margin: 0 0 1.25rem;
    line-height: 1.8;
    color: var(--mp-text);
}

.milly-peel-page p:last-child { margin-bottom: 0; }

/* ── Header: use standard site-header from wireframe.css ── */
.milly-peel-page .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── WhatsApp button ── */
.mp-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1.35rem;
    background: var(--mp-wa-green);
    color: #fff;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.mp-btn-whatsapp:hover {
    background: var(--mp-wa-dark);
    transform: translateY(-1px);
    color: #fff;
}

.mp-btn-whatsapp svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Hero-size variant */
.mp-btn-whatsapp--hero {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
    gap: 0.7rem;
}

.mp-btn-whatsapp--hero svg { width: 22px; height: 22px; }

/* Large section variant */
.mp-btn-whatsapp--large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    gap: 0.75rem;
    margin: 0 auto 0.5rem;
    display: flex;
    max-width: 320px;
}

.mp-btn-whatsapp--large svg { width: 24px; height: 24px; }

/* ── Primary form button ── */
.mp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2rem;
    background: var(--mp-accent);
    color: var(--mp-white);
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.mp-btn-primary:hover {
    background: #09758e;
    transform: translateY(-2px);
    color: var(--mp-white);
}

.mp-btn-primary[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Hero ── */
.mp-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
}

.mp-hero-image {
    position: absolute;
    inset: 0;
}

.mp-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.mp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 49, 94, 0.84) 0%,
        rgba(5, 49, 94, 0.32) 50%,
        rgba(5, 49, 94, 0.06) 100%
    );
}

.mp-hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    max-width: 700px;
    color: var(--mp-white);
}

.mp-hero-content h1 {
    color: var(--mp-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(5, 49, 94, 0.4);
}

.mp-hero-content p.mp-hero-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.65;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(5, 49, 94, 0.6);
}

.mp-br { display: none; }

/* ── Sections ── */
.mp-section {
    padding: var(--mp-section) 0;
}

.mp-section--white { background: var(--mp-white); }
.mp-section--cream { background: var(--mp-cream); }

/* Introduction — centred, larger intro text */
.mp-intro {
    text-align: center;
    max-width: 740px;
    margin: 0 auto;
}

.mp-intro p {
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    color: var(--mp-text-light);
    margin-bottom: 1.25rem;
}

/* ── Section heading (centred variant) ── */
.mp-section-heading {
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ── Split layout ── */
.mp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.mp-split--reverse { direction: rtl; }
.mp-split--reverse > * { direction: ltr; }

.mp-split-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(5, 49, 94, 0.08);
}

.mp-split-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Body text in split panels — full readable contrast */
.mp-split-text p {
    color: var(--mp-text);
    font-size: 1.02rem;
}

/* ── Areas grid ── */
.mp-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
    margin-top: 2.5rem;
}

.mp-area-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    background: var(--mp-white);
    border-radius: 10px;
    border: 1px solid rgba(5, 49, 94, 0.07);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mp-area-item:hover {
    border-color: rgba(9, 166, 171, 0.4);
    box-shadow: 0 6px 20px rgba(5, 49, 94, 0.05);
}

.mp-area-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mp-accent-soft);
    border-radius: 50%;
    color: var(--mp-accent);
}

.mp-area-icon svg { width: 16px; height: 16px; }

.mp-area-item > span:last-child {
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--mp-primary);
    line-height: 1.45;
    align-self: center;
}

/* ── Session list ── */
.mp-session-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
}

.mp-session-list li {
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.97rem;
    color: var(--mp-text);
}

.mp-session-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    background: var(--mp-accent);
    border-radius: 50%;
}

/* ── Italic pull-quote ── */
.mp-quote {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(5, 49, 94, 0.1);
    font-style: italic;
    color: var(--mp-primary);
    font-size: 1.08rem;
    font-weight: 600;
}

/* ── Beyond Therapy — navy band ── */
.mp-beyond-section {
    background: var(--mp-primary);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.mp-beyond-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.mp-beyond-text h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.mp-beyond-text p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.mp-beyond-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-content: flex-start;
    padding-top: 0.25rem;
}

.mp-tag {
    display: inline-block;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(9, 166, 171, 0.55);
    border-radius: 999px;
    color: var(--mp-accent);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease;
}

/* ── Contact / enquiry section ── */
.mp-contact-inner {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
    scroll-margin-top: 90px;
}

.mp-contact-lead {
    color: var(--mp-text-light);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Or divider */
.mp-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
    color: var(--mp-text-light);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mp-divider::before,
.mp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(5, 49, 94, 0.1);
}

/* ── Form ── */
.mp-form { text-align: left; }

.mp-form-group { margin-bottom: 1.35rem; }

.mp-form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--mp-primary);
}

.mp-form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(5, 49, 94, 0.14);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    background: var(--mp-white);
    box-sizing: border-box;
    color: var(--mp-text);
    transition: border-color 0.25s ease;
}

.mp-form-control:focus {
    outline: none;
    border-color: var(--mp-accent);
    box-shadow: 0 0 0 3px rgba(9, 166, 171, 0.12);
}

textarea.mp-form-control {
    min-height: 130px;
    resize: vertical;
}

.mp-radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.mp-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 400;
    cursor: pointer;
    color: var(--mp-text);
}

.mp-form-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.93rem;
    color: var(--mp-text-light);
    font-style: italic;
}

/* Shown when user returns after submitting (clears bfcache-filled form) */
.mp-enquiry-sent {
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    background: rgba(9, 166, 171, 0.12);
    border: 2px solid rgba(9, 166, 171, 0.4);
    border-radius: 12px;
    text-align: center;
}

.mp-enquiry-sent[hidden] {
    display: none;
}

.mp-enquiry-sent p {
    margin: 0;
    color: var(--mp-primary);
    font-size: 1.02rem;
    line-height: 1.6;
}

.mp-form[hidden] {
    display: none;
}

/* Returned from Formspree security check without confirmation yet */
.mp-form-pending {
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    background: rgba(5, 49, 94, 0.06);
    border-left: 4px solid var(--mp-accent);
    border-radius: 8px;
    text-align: left;
}

.mp-form-pending[hidden] {
    display: none;
}

.mp-form-pending p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--mp-text);
    line-height: 1.65;
}

.mp-form-hint {
    font-size: 0.88rem;
    color: var(--mp-text-light);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.mp-form-error {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
    background: rgba(200, 60, 60, 0.1);
    color: #a03030;
}

.mp-form-error.visible {
    display: block;
}

.mp-form-wrap[hidden] {
    display: none;
}

/* ── Scroll reveal ── */
.mp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.mp-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .mp-split,
    .mp-split--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .mp-split-image { order: -1; }

    .mp-hero { min-height: 85vh; }

    .mp-hero-image img { object-position: 60% 15%; }
}

@media (min-width: 900px) {
    .mp-br { display: inline; }
}

/* ── Footer newsletter text — override wireframe.css opacity ── */
.milly-peel-page .footer-newsletter p {
    opacity: 1;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
    .mp-beyond-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .mp-btn-whatsapp { font-size: 0.82rem; padding: 0.55rem 1rem; }

    .mp-areas-grid { grid-template-columns: 1fr; }

    .mp-session-list { grid-template-columns: 1fr; }
}
