/* theme-soft.css — soft lilac look for the public (patient) pages.
   Loaded AFTER site.css. Delete the <link> in header.php to go back to the plain white look. */

:root {
    --lilac-page: #f1edfb;      /* inner page background */
    --lilac-band: #e3d9f8;      /* top of the title band */
    --tint-blue: #eef1ff;       /* hover tint */
    --footer-navy: #0b2a6f;
    --footer-link: #e6a8f9;     /* orchid accent on navy */
}

/* 1. Lilac page background on inner pages (Home keeps its white hero) */
body:has(.page), body:has(.auth) { background: var(--lilac-page); }

/* 2. Soft lilac-to-lilac band behind the page title, with a faint leaf */
.page { position: relative; isolation: isolate; overflow-x: clip; }
.page::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 270px; z-index: -1;
    background: linear-gradient(180deg, var(--lilac-band) 0%, var(--lilac-page) 100%);
}
.page::after {
    content: ""; position: absolute; z-index: -1; top: 22px; right: max(4%, calc(50% - 560px));
    width: 190px; height: 190px; border-radius: var(--leaf);
    background: linear-gradient(135deg, var(--orchid), var(--blue)); opacity: .13;
    transform: rotate(8deg);
}
.page::after { pointer-events: none; }

/* White cards stand out on lilac */
.card, .product-card, .booking-calendar { background: #fff; }
.card { border-color: #e1daf3; }

/* 4. Small colour accents */
.page-head h1::after {
    content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin: 14px auto 0;
    background: linear-gradient(90deg, var(--orchid), var(--blue));
}
.auth-card h2::after, .book-card h2::after {
    content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; margin: 12px 0 0;
    background: linear-gradient(90deg, var(--orchid), var(--blue));
}
.book-card h2::after { margin-inline: auto; }
.cal-nav, .form .cal-nav { background: #ece3fb; color: var(--orchid-deep); }
.cal-nav:hover { background: #dfd0f7; }
.back-link { background: #fff; border: 1px solid #e1daf3; }
.back-link:hover { background: var(--tint-blue); }
.product-card .thumb, .detail-card .product-image { background: #f5f1fd; }
.product-card:hover { border-color: #b9a6ec; box-shadow: 0 1px 2px rgba(0,35,102,.05), 0 16px 36px -12px rgba(80,60,180,.28); }
.history .table-wrap { background: #fff; border-color: #e1daf3; box-shadow: var(--shadow); }
.history th { background: #ece3fb; }
.history tbody tr { transition: background-color .12s ease; }
.history tbody tr:hover { background: var(--tint-blue); }
.notice { background: #fff; border: 1px solid #e1daf3; border-left: 4px solid var(--orchid); }
.summary-row:hover { background: #faf8ff; }

/* 3. Navy footer */
.site-footer { background: var(--footer-navy); border-top: 0; color: #fff; }
.footer-brand strong, .footer-col strong { color: #fff; }
.footer-brand span, .footer-col p { color: rgba(255,255,255,.78); }
.footer-brand img { background: #fff; padding: 3px; }
.footer-col a { color: var(--footer-link); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,.16); color: rgba(255,255,255,.65); }

/* 5. Red stays for prices and errors only (prices/.badge-cancelled/.error-* already use it) */

@media (max-width: 880px) { .page::before { height: 220px; } .page::after { width: 120px; height: 120px; top: 14px; } }

/* keep the email address on one line in the footer */
.footer-cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-col p { overflow-wrap: normal; }
.footer-top { grid-template-columns: .8fr 2.6fr; }
.footer-cols { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; } }

/* Home: "Our aim" section uses the same lilac as the inner pages */
.aim { background: var(--lilac-page); }
