/* Mira Plus - base styles. Plain CSS, no framework.
   Palette derived from the MiraPlus logo:
   - teal-green comet:  #50f0d0 / #00d0a0 / #008060
   - gold-orange comet: #f0d050 / #f0c000 / #f07020 / #d05000
   - dark teal outline: #06231f
*/

:root {
    --color-text: #22302c;
    --color-muted: #5f7069;
    --color-bg: #ffffff;
    --color-surface: #f2faf6;
    --color-border: #d9e8e0;
    --color-primary: #007a5c;
    --color-primary-dark: #00654a;
    --color-accent: #f0b400;
    --color-accent-dark: #d99f00;
    --color-accent-text: #1d1400;
    --color-orange: #d05000;
    --color-dark: #06231f;
    --color-dark-2: #0a4a3c;
    --color-on-dark: #d7e8e2;
    --color-mint: #50f0d0;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    margin: 0 0 0.6em;
}

a {
    color: var(--color-primary-dark);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 1.5rem;
}

/* Header */
.site-header {
    background: var(--color-dark);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand img {
    height: 48px;
    width: auto;
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-mint);
}

.brand-name .plus {
    color: var(--color-accent);
}

.main-nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--color-on-dark);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Hero — aurora photo (from the original site) under a dark overlay,
   with the old site's two SVG shape dividers recreated on top/bottom. */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--color-dark) url("../images/hero-aurora.f476770b05e7.jpg") center / cover no-repeat;
    color: #ffffff;
    padding: 11rem 1.5rem 12rem;
    text-align: center;
}

.hero::before {
    /* Darkens the photo so the white text stays readable */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 35, 31, 0.45);
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Headline + big logo side by side; lead text and buttons follow
   centered underneath (stacks on mobile) */
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* .hero .hero-inner h1 outranks the generic .hero h1 rule further down
   (which sets rise-in + auto margins for the single-column layout) */
.hero .hero-inner h1 {
    flex: 0 1 380px;
    max-width: 380px;
    margin: 0;
    text-align: left;
    animation: slide-in-left 0.7s ease both;
}

.hero-logo {
    flex: 0 0 auto;
    animation: slide-in-right 0.7s ease both;
}

.hero-logo img {
    width: 100%;
    max-width: 340px;
    height: auto;
}

@media (max-width: 800px) {
    .hero-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .hero .hero-inner h1 {
        /* Reset the 380px flex-basis: in a column it would become a
           380px-tall box, leaving a big gap above the logo. */
        flex: none;
        max-width: 100%;
        text-align: center;
    }

    .hero-logo img {
        width: 260px;
        max-width: 70vw;
    }
}

.hero-shape {
    position: absolute;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
}

.hero-shape svg {
    display: block;
    width: 100%;
}

.hero-shape-top {
    top: 0;
}

.hero-shape-top svg {
    height: 170px;
    fill: var(--color-dark); /* curves flow out of the dark header */
}

.hero-shape-bottom {
    bottom: 0;
}

.hero-shape-bottom svg {
    height: 120px;
    fill: #ffffff; /* waves ease into the white page below */
    transform: rotate(180deg); /* paths fill upward; bottom shapes are flipped */
}

.hero h1 {
    font-size: 2.3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    animation: rise-in 0.6s ease both;
}

.hero-lead {
    max-width: 640px;
    margin: 0 auto 1.75rem;
    color: var(--color-on-dark);
    animation: rise-in 0.6s ease 0.15s both;
}

/* Intro line under a page heading, on the normal (light) background. */
.section-intro {
    max-width: 640px;
    margin: 0 0 1.75rem;
    color: var(--color-muted);
    font-size: 1.1rem;
}

.hero .btn {
    animation: rise-in 0.6s ease 0.3s both;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero h1, .hero-lead, .hero .btn, .hero-logo {
        animation: none;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    margin: 0.3rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-accent-text);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

/* A button that reads as an inline text link (e.g. "Edit details",
   "Remove"). */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--color-primary-dark);
    text-decoration: underline;
    cursor: pointer;
}

.btn-link:hover {
    color: var(--color-primary);
}

/* Collapsed customer details on checkout, shown to registered customers
   in place of the full form until they choose to edit. */
.detail-summary {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: var(--color-surface);
}

.detail-summary-lines {
    margin: 0 0 0.5rem;
}

/* Filled green button for switching payment method (to Swish / to card) —
   visible on white, and clearly distinct from the gold primary "Pay now". */
.btn-alt {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-alt:hover {
    background: var(--color-primary-dark);
}

/* Space above a payment-method switch button. */
.swish-switch {
    margin-top: 1rem;
}

/* Secondary buttons sit on the dark hero too */
.hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-secondary:hover {
    border-color: var(--color-mint);
    color: var(--color-mint);
}

/* Each intent section (Book a session / Prepaid cards / Partner products)
   is set apart by a rule and extra space, so it's clear where one section
   ends and the next begins. The first section needs no rule — the page
   intro above it already separates it. */
.product-group {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.product-group:first-of-type {
    margin-top: 1.5rem;
    padding-top: 0;
    border-top: none;
}

/* Short brand-coloured accent under a section title, to anchor the start of
   the section. Shared by the product sections and the section subtitles on
   the account / checkout / profile / contact pages (direct-child h2 only,
   so markdown headings inside .prose are left alone). */
.product-group-title,
.page-detail > h2 {
    display: inline-block;
    padding-bottom: 0.35rem;
    border-bottom: 3px solid var(--color-primary);
}

/* More room above each section subtitle (to separate sections) and less
   below (to keep the heading tight to its content). */
.page-detail > h2 {
    margin-top: 2rem;
    margin-bottom: 0.3em;
}

/* Sub-heading for a category within a section (e.g. the coaching types
   shown under "Book a session"). */
.subcategory {
    font-size: 1.2rem;
    margin: 1.75rem 0 0;
    color: var(--color-muted);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

/* Tighten the gap between a sub-category heading and its cards. */
.subcategory + .card-grid {
    margin-top: 0.75rem;
}

.card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: var(--color-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(6, 35, 31, 0.10);
}

/* Centres the content inside a card (heading, text, buttons).
   Use as <div class="card card-centered">; works in a grid too. */
.card-centered {
    text-align: center;
}

.card h3 {
    font-size: 1.1rem;
}

.card h3 a {
    text-decoration: none;
    color: var(--color-text);
}

.card h3 a:hover {
    color: var(--color-primary-dark);
}

.card ul {
    padding-left: 1.2rem;
    margin: 0 0 0.8rem;
}

.card ul li {
    margin-bottom: 0.4rem;
}

/* Content images (products, blog) are never cropped — product shots and
   badges carry detail/text that a crop would slice off. Show the whole
   image, letterboxed on the surface colour. */
.card-image,
.detail-image {
    object-fit: contain;
    background: var(--color-surface);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

/* Thumbnail: uniform frame so the grid stays tidy. */
.card-image {
    width: 100%;
    height: 230px;
}

/* Detail: natural aspect ratio, height-capped, and width-matched to the
   720px .prose text column (it sits outside .prose so wouldn't inherit it). */
.detail-image {
    display: block;
    width: auto;
    max-width: min(100%, 720px);
    height: auto;
    max-height: 420px;
}

.meta {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.price {
    font-weight: 700;
    margin: 0.4rem 0;
}

.price-original {
    text-decoration: line-through;
    color: var(--color-muted);
    font-weight: 400;
    margin-right: 0.5rem;
}

.price-sale {
    color: var(--color-orange);
}

.notice {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 1rem;
}

/* Featured post block (homepage): image left, text right */
.featured-press {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    margin-top: 2rem;
    padding: 2.5rem;
}

.featured-press img {
    flex: 0 0 auto;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius);
}

.featured-press .featured-press-text {
    flex: 1;
    text-align: left;
}

@media (max-width: 700px) {
    .featured-press {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .featured-press .featured-press-text {
        text-align: center;
    }

    .featured-press img {
        max-width: 220px;
    }
}

/* Page/blog detail */
.page-detail .prose,
.prose {
    max-width: 720px;
}

.prose p {
    margin: 0 0 1em;
}

.prose h2 {
    margin-top: 1.6em;
    color: var(--color-primary-dark);
}

.prose h3 {
    margin-top: 1.3em;
}

.prose img {
    max-width: 100%;
    border-radius: var(--radius);
}

.prose blockquote {
    border-left: 4px solid var(--color-mint);
    margin: 1em 0;
    padding: 0.2em 1em;
    background: var(--color-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Accordions (<details> in Markdown content) */
.prose details {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    margin: 0 0 0.8rem;
    background: var(--color-bg);
}

.prose details[open] {
    background: var(--color-surface);
}

.prose summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary-dark);
}

/* Booking availability */
.practitioner-picker,
.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.chip {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    text-decoration: none;
    font-weight: 500;
}

a.chip:hover,
button.chip:hover {
    border-color: var(--color-primary);
}

button.chip {
    font: inherit;
    cursor: pointer;
}

.slot-form {
    display: inline;
}

.chip-selected {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.day-row {
    border-top: 1px solid var(--color-border);
    padding: 0.8rem 0 0.4rem;
}

.day-label {
    margin: 0;
    font-size: 1rem;
    color: var(--color-primary-dark);
}

.pager {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

/* Messages */
.message {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.message-success {
    border-left: 4px solid var(--color-primary);
}

.message-error {
    border-left: 4px solid var(--color-orange);
}

/* Promotions */
.campaign-banner {
    background: var(--color-accent);
    color: var(--color-accent-text);
    padding: 0.7rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.campaign-banner a {
    color: var(--color-accent-text);
}

.promo-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.8rem;
    font-weight: 600;
}

.promo-form {
    margin: 1.5rem 0;
}

/* "Coming soon" chip next to a heading (e.g. the Mira Creative Studio teaser). */
.badge-soon {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    white-space: nowrap;
}

/* Simple prev/next pager (e.g. the account order history). */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.pagination .disabled {
    color: var(--color-muted);
}

.pagination-status {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Neutral pill label, e.g. marking a gifted / booked-on-behalf order on
   the account page. */
.tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--color-border);
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Quiet "cancel this order" action under the payment options. */
.cancel-order-form {
    margin-top: 1.5rem;
}

.inline-form input[type="text"] {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
}

.inline-form .btn {
    margin: 0;
    border: 0;
    cursor: pointer;
    font: inherit;
}

/* Cart */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-muted);
}

/* A gift note sits in its own full-width row under its order, so it doesn't
   stretch the Order column. Attach it to the order above by dropping that
   row's bottom border and the note's top padding. */
.cart-table tr.has-gift-note td {
    border-bottom: none;
}

.cart-table tr.gift-row td {
    padding-top: 0.2rem;
}

.cart-table tr.gift-row .tag {
    margin-left: 0;
}

/* Stripe payment form */
.payment-form {
    max-width: 480px;
    margin: 1rem 0 2rem;
}

.payment-form .btn {
    margin: 1rem 0 0;
    border: 0;
    cursor: pointer;
    font: inherit;
    width: 100%;
}

.payment-form .btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Checkout form */
.checkout-form {
    max-width: 420px;
}

.checkout-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.checkout-form input[type="checkbox"] {
    width: auto;
    margin-right: 0.4rem;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
}

/* Honeypot: moved off-screen (not display:none — some bots skip those) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-block {
    margin-top: 2.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    max-width: 720px;
}

.checkout-form .helptext {
    display: block;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.checkout-form .btn {
    margin: 0.8rem 0 0;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--color-orange);
    text-decoration: underline;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: var(--color-on-dark);
    margin-top: 3rem;
}

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

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 2.5rem 1.5rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-accent);
}

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

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: var(--color-on-dark);
}
