/* site.css — M&E Clinic Cainta public website design system (v1)
   One stylesheet for every public page. Admin and employee panels keep StyleSheet7.css.
   Idea: white and airy, logo blue + orchid, and photo frames shaped like the logo's two petals. */

:root {
    --ink: #002366;          /* brand navy: headings */
    --text: #26304f;         /* body text */
    --muted: #66708f;
    --blue: #344ef5;         /* logo blue: main buttons, links */
    --blue-dark: #2339c9;
    --orchid: #d76ef5;       /* logo orchid */
    --orchid-deep: #9b3bc7;  /* orchid dark enough for text */
    --mist: #f6f4fd;         /* faint lilac section background */
    --mist-2: #eceaf8;
    --line: #e4e0f1;
    --price: #e8432d;
    --ok-bg: #e3f7ea;  --ok: #166534;
    --err-bg: #fdecec; --err: #b42318;
    --warn-bg: #fff4d6; --warn: #8a5a00;
    --leaf: 72px 14px 72px 14px;       /* the logo's petal shape */
    --leaf-sm: 40px 10px 40px 10px;
    --radius: 20px;
    --shadow: 0 1px 2px rgba(0, 35, 102, .05), 0 12px 32px -12px rgba(0, 35, 102, .16);
    --font-head: "Bricolage Grotesque", "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 .5em;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .cal-cell:focus-visible {
    outline: 3px solid rgba(52, 78, 245, .45);
    outline-offset: 2px;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* ---------- Header ---------- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo-section { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.logo { height: 48px; width: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.title h1 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.title h2 { margin: 0; font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.title p { margin: 0; font-size: 12px; color: var(--orchid-deep); font-style: italic; display: none; }
@media (min-width: 1040px) { .title p { display: block; } }

nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
nav li { display: flex; align-items: center; position: relative; }
nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
nav a:hover { background: var(--mist); color: var(--ink); }
nav ul li a.active { background: #e9ecff; color: var(--blue-dark); }
nav a.nav-pill { border: 1.5px solid var(--blue); color: var(--blue); padding: 6.5px 16px; margin-left: 6px; }
nav a.nav-pill:hover, nav a.nav-pill.active { background: var(--blue); color: #fff; }

nav .dropbtn { cursor: pointer; white-space: nowrap; }
nav .dropname { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
nav .caret { font-size: 9px; }
nav .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 50;
}
nav .dropdown-content a { display: block; border-radius: 10px; padding: 9px 12px; font-weight: 500; white-space: nowrap; }
nav .dropdown.open .dropdown-content { display: block; }
@media (hover: hover) { nav .dropdown:hover .dropdown-content { display: block; } }
nav .dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* keeps the menu open while the pointer crosses the gap */

@media (max-width: 768px) and (min-height: 501px) {
    header.site-header { position: static; }
    .header-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px 8px; }
    .logo { height: 42px; width: 42px; }
    .title h1 { font-size: 17px; }
    nav { width: 100%; }
    nav ul { justify-content: space-between; gap: 2px; }
    nav a { padding: 7px 7px; font-size: 13px; white-space: nowrap; }
    nav a.nav-pill { margin-left: 0; padding: 5.5px 11px; }
    nav ul { gap: 0; flex-wrap: wrap; justify-content: center; row-gap: 4px; }   /* wrap instead of running off the screen */
    nav .dropname { max-width: 64px; }
    nav .dropdown { position: static; }
    nav .dropdown-content { right: 10px; top: 100%; }
}

/* Small phones: tighten the menu so all items, including Log In, fit on one line */
@media (max-width: 430px) and (min-height: 501px) {
    .header-inner { padding-left: 10px; padding-right: 10px; }
    nav ul { justify-content: space-between; }   /* spread the items across the full width */
    nav a { padding: 7px 4px; font-size: 11.5px; }
    nav a.nav-pill { padding: 5px 9px; margin-left: 0; }
    nav .dropname { max-width: 52px; }
}

/* ---------- Buttons ---------- */
.btn, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); background: #fff; }
.btn-soft { background: var(--mist); color: var(--ink); }
.btn-soft:hover { background: var(--mist-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: var(--mist); color: var(--blue-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px); }

/* ---------- Page scaffolding ---------- */
.page { padding: 56px 0 88px; }
.page-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .3em; }
.page-head p { margin: 0; color: var(--muted); font-size: 17px; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}
.card h2 { font-size: 1.6rem; }
.card h3 { font-size: 1.15rem; }

.leaf { border-radius: var(--leaf); overflow: hidden; }

/* ---------- Alerts + badges ---------- */
.alert { border-radius: 14px; padding: 12px 16px; font-size: 14.5px; margin: 0 0 16px; font-weight: 500; }
.alert-error, .error-message { background: var(--err-bg); color: var(--err); }
.alert-success, .success-message { background: var(--ok-bg); color: var(--ok); }
.error-message { border-radius: 14px; padding: 12px 16px; font-size: 14.5px; margin: 0 0 16px; font-weight: 500; text-align: left; }
.success-message { border-radius: 14px; padding: 12px 16px; font-size: 14.5px; margin: 0 0 16px; font-weight: 500; }

.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.badge-pending   { background: var(--warn-bg); color: var(--warn); }
.badge-confirmed { background: var(--ok-bg); color: var(--ok); }
.badge-completed { background: #e3ebff; color: #1e3a9e; }
.badge-cancelled { background: var(--err-bg); color: var(--err); }

/* ---------- Forms ---------- */
.form label.field-label, .form > label, .field-label {
    display: block;
    margin: 18px 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.form label.field-label:first-child, .form > label:first-child { margin-top: 0; }
/* Keep the checkbox level with its text when the Show Password label sits directly inside a form */
.form > label.show-password-label { display: inline-flex !important; align-items: center !important; gap: 8px; line-height: 18px; }
.form > label.show-password-label input[type="checkbox"] { margin: 0 !important; flex: 0 0 18px; }

.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="number"], .form input[type="date"], .form select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid #d6d1ea;
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form input::placeholder { color: #9aa1b8; }
.form input:hover, .form select:hover { border-color: #b9b2de; }
.form input:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(52, 78, 245, .14); }
.form input:disabled, .form select:disabled { background: var(--mist); color: var(--muted); cursor: not-allowed; border-color: var(--line); }
.form select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2366708f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.form input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1.5px dashed #b9b2de;
    border-radius: 14px;
    background: var(--mist);
    color: var(--text);
    font-size: 14.5px;
    cursor: pointer;
}
.form input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.form .btn { margin-top: 24px; }
.form .btn + .btn { margin-top: 10px; }
.field-group { margin-bottom: 0; }

.show-password-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 13.5px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}
.show-password-label input[type="checkbox"] {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; margin: 0; padding: 0;
    border: 1.5px solid #b9b2de;
    border-radius: 6px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}
.show-password-label input[type="checkbox"]:checked { background: var(--blue); border-color: var(--blue); }
.show-password-label input[type="checkbox"]:checked::after {
    content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.password-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.password-row .show-password-label { margin: 0; }
.link-quiet { font-size: 14px; color: var(--muted); text-decoration: none; font-weight: 600; }
.link-quiet:hover { color: var(--blue-dark); text-decoration: underline; }
.form-note { font-size: 14.5px; color: var(--muted); margin: -4px 0 20px; }
.card-foot { text-align: center; margin: 22px 0 0; font-size: 14px; }

/* ---------- Auth pages (login, register, forgot, code, staff) ---------- */
.auth { padding: 48px 0 80px; }
.auth-grid { display: grid; grid-template-columns: 1fr 460px; gap: 72px; align-items: center; max-width: 1020px; margin: 0 auto; padding-inline: 24px; }
.auth-grid.solo { grid-template-columns: minmax(0, 440px); justify-content: center; }
.auth-photo { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.auth-photo::before {
    content: ""; position: absolute; inset: 26px -26px -26px 26px;
    background: var(--orchid); opacity: .28; border-radius: var(--leaf);
}
.auth-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--leaf); }
.auth-card { padding: 40px; }
.auth-card h2 { font-size: 2rem; margin-bottom: .15em; }
.auth-card .sub { margin: 0 0 24px; color: var(--muted); }
@media (max-width: 880px) {
    .auth { padding: 28px 0 56px; }
    .auth-grid { grid-template-columns: minmax(0, 460px); justify-content: center; padding-inline: 16px; }
    .auth-photo { display: none; }
    .auth-card { padding: 28px 22px; }
}

/* Settings / change password: one narrow card */
.narrow { max-width: 480px; margin: 0 auto; }

/* ---------- Home ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: .35em; font-weight: 800; }
.hero-copy .lead { font-size: 1.15rem; color: var(--muted); max-width: 30em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-phone { margin: 28px 0 0; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.hero-phone a { color: inherit; text-decoration: none; }
.hero-phone a:hover { color: var(--blue-dark); }
.hero-photo { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.hero-photo::before {
    content: ""; position: absolute; inset: 28px -28px -28px 28px;
    background: var(--orchid); opacity: .3; border-radius: var(--leaf);
}
.hero-photo::after {
    content: ""; position: absolute; width: 38%; aspect-ratio: 1; left: -22px; top: -22px;
    background: var(--blue); opacity: .16; border-radius: 14px 80px 14px 80px;
}
.hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--leaf); }

.aim { background: var(--mist); padding: 88px 0; }
.aim-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.aim-image img { width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%; border-radius: var(--leaf); }
.aim-text h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--orchid-deep); margin-bottom: 8px; }
.aim-text h3 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5em; }
.aim-text p { max-width: 36em; font-size: 1.05rem; margin: 0 0 1em; }

.community { padding: 88px 0 24px; }
.community h2 { text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 36px; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.photo-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--leaf-sm); }
.photo-row img:nth-child(2) { border-radius: 10px 40px 10px 40px; margin-top: 28px; }

.cta-band { padding: 64px 0 88px; }
.cta-box {
    background: var(--blue); color: #fff; border-radius: 36px; padding: 56px 40px; text-align: center;
}
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .3em; }
.cta-box p { margin: 0 auto 28px; max-width: 32em; color: rgba(255, 255, 255, .88); font-size: 1.05rem; }
.cta-box .hero-actions { justify-content: center; }

@media (max-width: 880px) {
    .hero { padding: 32px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-photo { max-width: 340px; order: -1; }
    .hero-photo::before { inset: 20px -14px -20px 20px; }
    .hero-copy { text-align: center; }
    .hero-copy .lead { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .aim { padding: 56px 0; }
    .aim-grid { grid-template-columns: 1fr; gap: 36px; }
    .aim-image { order: -1; }
    .aim-image img { max-width: 300px; aspect-ratio: 1; }
    .community { padding-top: 56px; }
    .photo-row { gap: 12px; }
    .photo-row img:nth-child(2) { margin-top: 16px; }
    .cta-band { padding: 40px 0 56px; }
    .cta-box { padding: 40px 22px; border-radius: 28px; }
}

/* ---------- Packages ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.product-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { border-color: #c9c2ea; }
.product-card .thumb { background: var(--mist); aspect-ratio: 4 / 5; padding: 14px; display: flex; align-items: center; justify-content: center; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.product-card .product-info { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 {
    margin: 0; font-size: 1.12rem; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em;
}
.price { color: var(--price); font-weight: 800; font-size: 1.3rem; margin: 0; font-family: var(--font-head); }
.product-card .btn { margin-top: auto; }
.product-card .price { margin-bottom: 10px; }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

/* ---------- Package detail ---------- */
.detail { max-width: 960px; margin: 0 auto; }
.back-link {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
    padding: 10px 20px; border-radius: 999px; background: var(--mist); color: var(--ink);
    text-decoration: none; font-weight: 700; font-size: 15px; transition: background-color .15s ease;
}
.back-link:hover { background: var(--mist-2); color: var(--ink); }
.detail-card {
    display: grid; grid-template-columns: 5fr 6fr; align-items: start; gap: 28px 48px; padding: 36px;
    grid-template-areas: "title title" "image info" "foot foot";
}
.detail-card .detail-title { grid-area: title; text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0; }
.detail-card .product-image { grid-area: image; background: var(--mist); border-radius: 24px; padding: 16px; }
.detail-card .product-image img { width: 100%; max-height: 560px; object-fit: contain; border-radius: 12px; }
.detail-card .detail-info { grid-area: info; text-align: left; padding-top: 8px; }
.detail-card .detail-desc { margin: 0 0 14px; max-width: 60ch; font-size: 1.05rem; line-height: 1.6; }
.detail-card .detail-h { font-size: 1.15rem; margin: 0 0 4px; color: var(--ink); }
.detail-card .detail-count { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.check-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-ico { flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #e6f6ec; color: #1f7a42; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.check-name { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; }
.check-note { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; margin-top: 1px; }
.detail-note { background: #fff7e6; border: 1px solid #f3d9a4; border-radius: 16px; padding: 16px 18px; }
.detail-note ul { margin: 6px 0 0; padding-left: 20px; color: var(--ink); line-height: 1.55; }
.detail-card .detail-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.detail-card .detail-foot .back-link { margin-bottom: 0; }
.detail-card .detail-buy { display: flex; align-items: center; gap: 24px; }
.detail-card .detail-price { font-size: 2rem; margin: 0; }
@media (max-width: 760px) {
    .detail-card { grid-template-columns: 1fr; gap: 20px; padding: 22px; grid-template-areas: "title" "image" "info" "foot"; }
    .detail-card .product-image { max-width: 340px; margin: 0 auto; }
    .detail-card .detail-info { padding-top: 0; }
    .check-list.two-col { grid-template-columns: 1fr; }
    .detail-card .detail-foot { flex-direction: column-reverse; align-items: center; }
    .detail-card .detail-buy { flex-direction: column; gap: 12px; }
}

/* ---------- Appointment ---------- */
.book-card { max-width: 560px; margin: 0 auto; padding: 40px; }
.book-card h2 { text-align: center; font-size: 2rem; margin-bottom: 24px; }
.type-box { min-height: 50px; display: flex; align-items: center; padding: 0 16px; border-radius: 14px; background: var(--mist); border: 1.5px solid var(--line); font-weight: 700; color: var(--ink); }
.price-line { margin: 12px 0 0; font-size: 15px; }
.price-line strong { color: var(--ink); }
.price-line .price { display: inline; font-size: 1.1rem; }
@media (max-width: 600px) { .book-card { padding: 26px 20px; } }

.booking-calendar { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; }
.form .cal-nav, .cal-nav {
    width: 36px; height: 36px; padding: 0; margin: 0; border: 0; border-radius: 50%;
    background: var(--mist); color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1;
}
.cal-nav:hover { background: var(--mist-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-daynames { margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 14.5px; border-radius: 50%; cursor: pointer; color: var(--ink); font-weight: 600; transition: background-color .12s ease; }
.cal-cell:not(.cal-disabled):not(.cal-empty):hover { background: #e9ecff; }
.cal-empty { visibility: hidden; }
.cal-disabled { color: #bfc3d6; cursor: not-allowed; font-weight: 500; text-decoration: line-through; }
.cal-selected, .cal-selected:hover { background: var(--blue) !important; color: #fff !important; font-weight: 800; }
.booking-calendar + label, #time { margin-top: 0; }
.booking-calendar { margin-bottom: 4px; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "sum ins" "up ins"; gap: 28px; max-width: 920px; margin: 0 auto; align-items: start; }
.checkout-grid .card { padding: 30px; }
.order-summary { grid-area: sum; } .payment-instructions { grid-area: ins; } .payment-section { grid-area: up; }
.summary-list { margin: 0; display: grid; gap: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--muted); }
.summary-row dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; word-break: break-word; }
.summary-row.total dd { color: var(--price); font-size: 1.25rem; font-family: var(--font-head); }
.qr-code { width: 220px; max-width: 100%; margin: 16px auto; border: 1.5px solid var(--line); border-radius: 18px; padding: 10px; background: #fff; }
.muted { color: var(--muted); font-size: 14.5px; }
.done-note { text-align: center; }
@media (max-width: 800px) { .checkout-grid { grid-template-columns: 1fr; grid-template-areas: "sum" "ins" "up"; } .checkout-grid .card { padding: 24px 20px; } }

/* ---------- Booking history ---------- */
.history { max-width: 960px; margin: 0 auto; }
.notice { background: var(--mist); border-radius: 18px; padding: 18px 22px; font-size: 14.5px; }
.notice p { margin: 8px 0; }
.history h3 { margin: 36px 0 12px; font-size: 1.35rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.history table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.history th, .history td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.history th { background: var(--mist); color: var(--ink); font-weight: 700; }
.history tr:last-child td { border-bottom: 0; }
.empty { color: var(--muted); font-size: 15px; }
.history .back-link { margin: 32px 0 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: #fff; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: .8fr 2.2fr; gap: 48px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 52px; height: 52px; border-radius: 12px; }
.footer-brand strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.footer-brand span { color: var(--muted); font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.footer-col strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14.5px; }
.footer-col p, .footer-col a { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; overflow-wrap: break-word; }
.footer-col a { color: var(--blue); text-decoration: none; font-weight: 600; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
@media (max-width: 600px) { .footer-col:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } .site-footer { padding-top: 40px; } }

/* ---------- About ---------- */
.slideshow-box { max-width: 880px; margin: 0 auto 56px; }
.slideshow-container { position: relative; border-radius: var(--leaf); overflow: hidden; background: var(--mist); aspect-ratio: 3 / 2; }
.slideshow-container img { width: 100%; height: 100%; object-fit: cover; }
.slideshow-container button {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9);
    color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 35, 102, .2);
    display: flex; align-items: center; justify-content: center; padding: 0;
}
.slideshow-container button:hover { background: #fff; color: var(--blue-dark); }
.slideshow-container .prev { left: 16px; }
.slideshow-container .next { right: 16px; }
.about-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.about-intro h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.about-intro p { font-size: 1.1rem; margin: 0; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; margin: 0 auto; }
.about-cols .card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.about-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-cols li { position: relative; padding-left: 28px; }
.about-cols li::before { content: ""; position: absolute; left: 0; top: .4em; width: 14px; height: 14px; background: var(--orchid); border-radius: 8px 2px 8px 2px; }
.about-cols .check-list li::before { background: var(--blue); }
@media (max-width: 760px) { .about-cols { grid-template-columns: 1fr; } .slideshow-container { aspect-ratio: 4 / 3; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Previous / next arrows on the package and service pages */
.detail-wrap { position: relative; }
.detail-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 48px; height: 48px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--blue); border: 1px solid var(--line);
    box-shadow: var(--shadow); text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.detail-arrow:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.detail-arrow:focus-visible { outline: 3px solid var(--orchid); outline-offset: 2px; }
.detail-prev { left: -68px; }
.detail-next { right: -68px; }
@media (max-width: 1160px) {
    /* not enough room beside the card: keep them in the middle, centered on the card's edges */
    .detail-arrow { width: 40px; height: 40px; }
    .detail-prev { left: -20px; }
    .detail-next { right: -20px; }
}

/* Search box + sort menu on the Packages and Services pages */
.product-tools { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 0 auto 32px; max-width: 760px; }
.product-tools .search-field { position: relative; flex: 1 1 280px; }
.product-tools .search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.product-tools input[type="search"], .product-tools select {
    height: 50px; border: 1.5px solid #d6d1ea; border-radius: 14px; background: #fff;
    color: var(--text); font: inherit; font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.product-tools input[type="search"] { width: 100%; padding: 0 16px 0 44px; }
.product-tools select { flex: 0 0 230px; width: 230px; padding: 0 44px 0 16px; cursor: pointer; }
.product-tools input::placeholder { color: #9aa1b8; }
.product-tools input:hover, .product-tools select:hover { border-color: #b9b2de; }
.product-tools input:focus, .product-tools select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(52, 78, 245, .14); }
.empty-note { text-align: center; color: var(--muted); }
@media (max-width: 560px) { .product-tools select { flex: 1 1 100%; } }

.product-tools select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2366708f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Type of Appointment: type-to-search dropdown */
.combo { position: relative; }
.combo-native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form input.combo-input[type="text"] {
    padding-right: 44px; cursor: text;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2366708f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.combo-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
    margin: 0; padding: 8px; list-style: none; max-height: 300px; overflow-y: auto;
    background: #fff; border: 1.5px solid #d6d1ea; border-radius: 14px; box-shadow: var(--shadow);
}
.combo-list[hidden] { display: none; }
.combo-group { padding: 8px 10px 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.combo-option { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 10px; color: var(--text); cursor: pointer; }
.combo-option b { color: var(--ink); }
.combo-option.is-active { background: var(--mist-2); }
.combo-option.is-selected { font-weight: 700; color: var(--ink); }
.combo-price { color: var(--price); font-weight: 700; white-space: nowrap; }
.combo-empty { padding: 12px; color: var(--muted); }

/* Appointment page: "booking for someone else" */
.form label.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 6px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.form label.check-row input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
#otherFields[hidden] { display: none; }

/* Remember me (Patient Login): the note appears when the label is hovered or focused */
.remember-row { margin-top: 10px; }
.remember-label { position: relative; }
.remember-label::after {
    content: attr(data-tip);
    position: absolute; left: 0; top: calc(100% + 8px); z-index: 20;
    width: max-content; max-width: 340px;
    background: var(--ink); color: #fff;
    font-size: 12.5px; font-weight: 500; line-height: 1.4;
    padding: 8px 12px; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 35, 102, .22);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .15s ease;
}
.remember-label:hover::after,
.remember-label:focus-within::after { opacity: 1; visibility: visible; }

/* ---------- Home: contact + clinic hours side by side ---------- */
.hero-contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 40px; margin-top: 28px; }
.hero-contact .hero-phone { margin: 0; line-height: 1.4; }
.hero-contact .hero-phone a { font-weight: 500; font-size: 1rem; color: var(--muted); }
.hero-contact .hero-phone a:hover { color: var(--blue-dark); }
@media (max-width: 768px) {
    .hero-contact { justify-content: center; text-align: center; }
    .hero-contact .hero-phone, .hero-hours { text-align: center; }
}
.hero-hours { margin: 0; font-weight: 700; font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
.hero-hours span { font-weight: 500; font-size: 1rem; color: var(--muted); }

/* ---------- Phone: burger menu ---------- */
.nav-toggle { display: none; }
@media (max-width: 768px) and (min-height: 501px) {
    .header-inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
    .nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
        width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: 12px;
        background: #fff; cursor: pointer; flex-shrink: 0;
    }
    .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
    .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    header.site-header nav { display: none; flex: 1 1 100%; width: 100%; padding: 4px 0 8px; border-top: 1px solid var(--line); }
    header.site-header.nav-open nav { display: block; }
    nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    nav li { display: block; }
    nav a { display: block; padding: 11px 12px; font-size: 15px; border-radius: 10px; }
    nav a.nav-pill { margin: 6px 0 0; text-align: center; padding: 10px 16px; }
    nav .dropname { max-width: none; }
    nav .dropdown-content { position: static; box-shadow: none; border: 0; padding: 4px 0 0 10px; min-width: 0; }
    nav .dropdown-content a { padding: 10px 12px; }
}

/* ---------- Booking notices (logged-in patients) ---------- */
.patient-notices { background: var(--mist); border-bottom: 1px solid var(--line); padding: 12px 0; }
.patient-notices .container { display: grid; gap: 8px; }
.pn { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); border-left-width: 5px; background: #fff; font-size: .95rem; }
.pn p { margin: 0; flex: 1; line-height: 1.5; }
.pn a { color: var(--blue); font-weight: 600; }
.pn-remind  { border-left-color: var(--blue); }
.pn-ok      { border-left-color: var(--ok); }
.pn-pending { border-left-color: #d99a00; background: var(--warn-bg); }
.pn-cancel  { border-left-color: var(--err); background: var(--err-bg); }
.pn-close { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.pn-close:hover { border-color: var(--blue); color: var(--blue-dark); }
.pn-more { margin: 0; font-size: .9rem; color: var(--muted); }
.pn-more a { color: var(--blue); font-weight: 600; }

/* ---------- Map and directions (About us) ---------- */
.map-section { max-width: 880px; margin: 48px auto 0; text-align: center; }
.map-section h3 { font-size: 1.5rem; margin-bottom: 6px; }
.map-section p { margin: 0 0 16px; color: var(--muted); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--mist); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-section .map-actions { margin: 18px 0 0; }
@media (max-width: 760px) { .map-frame { aspect-ratio: 4 / 3; } }

/* ---------- Page not found ---------- */
.notfound { max-width: 560px; margin: 40px auto; text-align: center; }
.notfound .notfound-code { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(4.5rem, 14vw, 7.5rem); line-height: 1; color: var(--orchid); letter-spacing: -.03em; }
.notfound h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 8px 0 12px; }
.notfound p { color: var(--muted); }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 8px; }
.notfound-help { font-size: .95rem; }

/* Find us page */
.findus .about-intro { margin-bottom: 32px; }
.findus .map-section { margin-top: 0; }
.findus-info { max-width: 880px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.findus-info .card { padding: 24px 22px; text-align: center; }
.findus-info h3 { margin: 0 0 8px; }
.findus-info p { margin: 0; color: var(--muted); overflow-wrap: break-word; }
.findus-info a[href^="mailto"], .findus-info a[href^="tel"] { font-size: .95rem; }
.findus-info a { color: var(--muted); text-decoration: none; font-weight: 500; }
.findus-info a:hover { color: var(--blue-dark); }
.findus-info p + p { margin-top: 6px; }
.findus-info .findus-fb a { color: var(--blue); font-weight: 600; }
.findus-info .findus-fb a:hover { color: var(--blue-dark); }
.findus-info .findus-note { margin-top: 10px; font-size: .9rem; }
@media (max-width: 760px) { .findus-info { grid-template-columns: 1fr; } }
/* Tablet widths: keep every menu item on one line now that there are six links */
@media (min-width: 769px) and (max-width: 1060px) {
    nav a { white-space: nowrap; padding: 8px 9px; font-size: 14px; }
    nav a.nav-pill { padding: 6px 12px; margin-left: 2px; }
    .header-inner { gap: 10px; }
    .title p { display: none; }
}

.findus .map-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #fff; text-align: left; }
.findus .map-card .map-frame { border: 0; border-radius: 0; box-shadow: none; }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 22px; border-top: 1px solid var(--line); }
.map-address { display: flex; flex-direction: column; gap: 2px; }
.map-address strong { color: var(--ink); font-size: 1.05rem; }
.map-address span { color: var(--muted); }
.findus-cta { max-width: 880px; margin: 40px auto 0; padding: 44px 32px; }
@media (max-width: 760px) { .map-bar { flex-direction: column; align-items: stretch; text-align: center; } .findus-cta { padding: 36px 22px; border-radius: 28px; } }

/* ---------- Home: info strip, preview, steps, why ---------- */
.info-strip { padding: 0 0 8px; }
.info-strip-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 20px 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 32px; }
.info-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-label { font-size: 13px; font-weight: 700; color: var(--orchid-deep); }
.info-item strong { font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; line-height: 1.3; }
.info-item strong a { color: inherit; text-decoration: none; }
.info-item strong a:hover { color: var(--blue-dark); }
.info-note { font-size: 13.5px; color: var(--muted); }
@media (max-width: 880px) { .info-strip-grid { grid-template-columns: 1fr; text-align: center; padding: 22px 20px; } .info-action .btn { width: 100%; } }

.preview, .steps, .why { padding: 72px 0 8px; }
.preview h2, .steps h2, .why h2 { text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 32px; }
.kind-tag { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--orchid-deep); background: #f3e6fb; border-radius: 999px; padding: 2px 11px; }
.see-all { display: flex; justify-content: center; gap: 28px; margin: 28px 0 0; font-weight: 700; flex-wrap: wrap; }

.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps-grid li { background: var(--mist); border-radius: var(--radius); padding: 28px 26px; }
.steps-grid h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.steps-grid p { margin: 0; color: var(--muted); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 800; }
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }

.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-grid li { padding: 4px 0 4px 18px; border-left: 4px solid var(--orchid); display: flex; flex-direction: column; gap: 4px; }
.why-grid strong { font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; }
.why-grid span { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- About us: story, mission and vision, team ---------- */
.about-story { max-width: 880px; margin: 0 auto 28px; }
.about-story h3 { font-size: 1.35rem; }
.about-story p, .about-mv p { margin: 0; }
.about-mv { margin-bottom: 28px; }
.about-mv h3 { margin-bottom: 8px; }
.about-cols .card-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.about-cols .card-links .btn { padding: 9px 18px; font-size: 14.5px; }
.team { max-width: 880px; margin: 48px auto 0; }
.team h3 { text-align: center; font-size: 1.6rem; margin-bottom: 20px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.team-card { display: flex; flex-direction: column; gap: 4px; text-align: center; padding: 24px; }
.team-card strong { font-family: var(--font-head); color: var(--ink); font-size: 1.15rem; }

/* ---------- Find us: FAQ ---------- */
.faq { max-width: 880px; margin: 48px auto 0; }
.faq h3 { text-align: center; font-size: 1.6rem; margin-bottom: 18px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--orchid-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq summary:hover { color: var(--blue-dark); }
.preview .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .preview .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .preview .product-grid { grid-template-columns: 1fr; } }

/* Home: hours and phone under the hero buttons */
.hero-info { display: grid; gap: 20px; margin-top: 32px; }
@media (max-width: 880px) { .hero-info { text-align: center; } }

/* ---------- Home: Why choose us cards + neighborhood photos ---------- */
.why { background: var(--lilac-page, #f1edfb); padding: 72px 0 72px; margin-top: 72px; }
.why-grid { gap: 20px; }
.why-grid li { background: #fff; border: 1px solid #e1daf3; border-left: 1px solid #e1daf3; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); gap: 6px; }
.why-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #ece3fb; color: var(--orchid-deep); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; }
.why-grid li > span.why-ico { color: var(--orchid-deep); font-size: 1.3rem; }
.why-grid strong { font-size: 1.12rem; }
.community h2 { margin-bottom: 8px; }
.community-sub { text-align: center; color: var(--muted); margin: 0 0 32px; }
.photo-row img, .photo-row img:nth-child(2) { aspect-ratio: 4 / 5; border-radius: var(--leaf-sm); margin-top: 0; }

/* ---------- Footer links, back-to-top, legal page ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.footer-links a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; padding-top: 0; border-top: 0; }
.footer-bottom a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-note { font-size: 13px; opacity: .8; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 8px 22px -6px rgba(0,35,102,.45); }
.to-top:hover { background: var(--blue-dark); }
.to-top[hidden] { display: none; }

.legal { max-width: 820px; margin: 0 auto 28px; }
.legal h2 { font-size: 1.7rem; margin-bottom: .4em; }
.legal h3 { font-size: 1.1rem; margin: 1.4em 0 .3em; }
.legal p, .legal li { color: var(--text); max-width: 68ch; }
.legal p { margin: 0 0 .6em; }
.legal ul { margin: 0 0 .6em; padding-left: 1.2em; }
.legal li { margin-bottom: .3em; }

/* ---------- Announcement bar + Add to calendar ---------- */
.announce { position: relative; background: var(--orchid-deep); color: #fff; text-align: center; padding: 10px 52px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.announce p { margin: 0; }
.announce-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.announce-close:hover { background: rgba(255,255,255,.32); }
.cal-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; }
.cal-link:hover { color: var(--blue-dark); text-decoration: underline; }
