/* Cadensio application and website styles, layered on _content/Cadensio.Branding/brand.css tokens. */

/* FocusOnNavigate (Routes.razor) focuses the page's h1 after each navigation so screen readers start there; the heading is not
   interactive, so it gets no focus ring (as the Blazor template). Links, buttons and fields keep theirs. */
h1:focus, h1:focus-visible { outline: none; }

/* ---------- website ---------- */
.site-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.site-wrap.narrow { max-width: 760px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.site-links { display: flex; align-items: center; gap: 20px; }
.site-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-links a:hover { color: var(--brass); }
.site-links a.cd-btn { color: #fff; }
.site-menu-toggle, .site-menu-button { display: none; }
.site-hero { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); padding: 72px 0 56px; }
.site-hero.small { padding: 48px 0 32px; }
.site-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.08; margin: 10px 0 16px; letter-spacing: -.015em; }
.site-hero .lead, .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.site-section { padding: 56px 0; }
.site-section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 2rem; margin: 0 0 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.use-card { display: block; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.use-card h3 { margin: 0 0 8px; font-size: 1.4rem; }
.use-card span { color: var(--brass); font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.feature b { font-family: var(--serif); font-size: 1.15rem; color: var(--nocturne); }
.feature p { color: var(--muted); margin: 8px 0 0; }
.cta-band { background: var(--nocturne); color: #f1f3f8; text-align: center; }
.cta-band h2 { color: #fff; font-size: 2rem; margin: 0 0 8px; }
.cta-band .hero-cta { justify-content: center; }
.checks { list-style: none; padding: 0; }
.checks li { padding: 4px 0 4px 26px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.price-card h3 { margin: 0; font-size: 1.4rem; }
.price-card .price { font-family: var(--serif); font-size: 1.6rem; color: var(--brass); }
.price-card .cd-btn { margin-top: 6px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--nocturne); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 4px; margin: 0 0 16px; background: #fff; }
legend { font-weight: 700; color: var(--nocturne); padding: 0 6px; }
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer-grid div { display: flex; flex-direction: column; gap: 6px; }
.site-footer-grid a { color: var(--ink); text-decoration: none; }
.small { font-size: .85rem; }

/* product previews */
.preview { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(24, 32, 47, .14); overflow: hidden; }
.pv-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #f2f0ea; border-bottom: 1px solid var(--line); }
.pv-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d8d3c7; }
.pv-bar b { margin-left: 10px; font-size: .85rem; color: var(--muted); }
.pv-week { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto repeat(4, 54px); gap: 6px; padding: 14px; }
.pv-day { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.pv-ev { border-radius: 8px; background: var(--nocturne-soft); border-left: 3px solid var(--nocturne); font-size: .74rem; padding: 6px; font-weight: 600; }
.pv-ev.done { background: var(--teal-soft); border-color: var(--teal); }
.pv-ev.cancelled { background: #f1efe9; border-color: #b9b3a6; color: var(--muted); text-decoration: line-through; }
.pv-ev.replacement { background: var(--brass-soft); border-color: var(--brass); }
.pv-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pv-tabs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.pv-row { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 8px 10px; background: #faf9f6; border-radius: 8px; }
.pv-grade { background: var(--brass); color: #fff; border-radius: 999px; padding: 0 9px; font-weight: 700; }
.pv-paid { color: var(--teal); font-weight: 700; }
.pv-note { font-size: .85rem; background: var(--brass-soft); border-left: 3px solid var(--brass); padding: 8px 10px; border-radius: 6px; }
.pv-btn { background: var(--nocturne); color: #fff; text-align: center; padding: 10px; border-radius: 999px; font-weight: 700; }
.preview.phone { max-width: 300px; margin: 0 auto; border-radius: 34px; border: 8px solid var(--nocturne); }

/* ---------- directory ---------- */
.dir-search { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1fr auto; gap: 12px; align-items: end; margin-top: 18px; }
.bank-entry { border-bottom: 1px solid var(--line, #e3e0d8); padding: 12px 0; }
.bank-entry:last-child { border-bottom: 0; }
.dir-pages { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.dir-card { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.dir-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.dir-card h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.dir-card p { margin: 2px 0; }
.dir-kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brass); font-weight: 700; }
.dir-tags { color: var(--nocturne-2); font-weight: 600; }
.dir-avatar { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; background: var(--nocturne-soft); color: var(--nocturne); display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; }
.dir-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dir-avatar.big { width: 96px; height: 96px; flex-basis: 96px; font-size: 1.6rem; }
.profile-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.profile-head h1 { margin: 0; font-size: 2.2rem; }
.profile-text p { line-height: 1.6; }
.profile-location { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.hours { margin-top: 8px; border-collapse: collapse; }
.hours td { padding: 3px 14px 3px 0; }
.profile-side { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.profile-contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.chip-link { display: inline-block; margin: 4px 4px 0 0; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--nocturne); font-size: .85rem; }

/* ---------- portals ---------- */
.cd-appbar { border-bottom: 1px solid var(--line); }
.cd-drawer { border-right: 1px solid var(--line); }
.cd-main { background: var(--paper); min-height: 100vh; }
.appt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid #efece5; }
.appt-row:last-child { border-bottom: 0; }
.appt-row.cancelled { color: var(--muted); }
.appt-row.cancelled b, .appt-row.cancelled span:first-of-type { text-decoration: line-through; }
.cd-internal-field textarea, .cd-internal-field input { background: #fdf6f5 !important; }
.fw-bold { font-weight: 700; }
.progress-row { margin-bottom: 14px; }
.progress-bars { display: flex; align-items: flex-end; gap: 4px; height: 96px; margin: 6px 0; }
.pbar { width: 22px; background: linear-gradient(180deg, var(--brass-light), var(--brass)); border-radius: 5px 5px 0 0; position: relative; }
.pbar span { position: absolute; top: -18px; width: 100%; text-align: center; font-size: .72rem; font-weight: 700; color: var(--brass); }

/* calendar */
.cal-layout { display: flex; gap: 16px; align-items: flex-start; }
.cal-main { flex: 1; min-width: 0; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cal-side { width: 340px; flex: 0 0 340px; position: sticky; top: 80px; }
.cal-week { display: grid; grid-template-columns: 56px repeat(var(--days), minmax(110px, 1fr)); min-width: 600px; }
.cal-times { padding-top: 38px; }
.cal-hour { height: 56px; font-size: .72rem; color: var(--muted); text-align: right; padding-right: 6px; transform: translateY(-7px); }
.cal-col { border-left: 1px solid #efece5; }
.cal-colhead { height: 38px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; border-bottom: 1px solid var(--line); }
.cal-colhead.today { color: var(--brass); }
.cal-colbody { position: relative; background-image: repeating-linear-gradient(180deg, transparent 0 55px, #f1eee7 55px 56px); }
.cal-item { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 3px 6px; font-size: .74rem; line-height: 1.25; overflow: hidden; cursor: pointer;
    background: var(--nocturne-soft); border-left: 3px solid var(--nocturne); color: var(--ink); }
.cal-item span { color: var(--muted); }
.cal-item.done { background: var(--teal-soft); border-left-color: var(--teal); }
.cal-item.cancelled { background: #f1efe9; border-left-color: #b9b3a6; color: var(--muted); text-decoration: line-through; }
.cal-item.replacement { background: var(--brass-soft); border-left-color: var(--brass); }
.cal-item.selected { outline: 2px solid var(--brass); z-index: 2; }
.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); min-width: 600px; }
.cal-dow { padding: 8px; font-weight: 700; font-size: .78rem; color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.cal-mday { min-height: 104px; border-right: 1px solid #efece5; border-bottom: 1px solid #efece5; padding: 4px; cursor: pointer; }
.cal-mday.other { background: #faf9f6; color: var(--muted); }
.cal-mday.today .cal-mnum { background: var(--brass); color: #fff; border-radius: 999px; padding: 0 7px; }
.cal-mnum { font-weight: 700; font-size: .85rem; }
.cal-chip { font-size: .72rem; margin-top: 2px; padding: 1px 4px; border-radius: 4px; background: var(--nocturne-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip.cancelled { text-decoration: line-through; background: #f1efe9; }
.cal-chip.done { background: var(--teal-soft); }
.cal-chip.replacement { background: var(--brass-soft); }

@media (max-width: 960px) {
    .hero-grid, .two-col, .profile-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .dir-search { grid-template-columns: 1fr 1fr; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .cal-layout { flex-direction: column; }
    .cal-side { width: 100%; flex-basis: auto; position: static; }
    .profile-side { position: static; }
}
@media (max-width: 720px) {
    .site-menu-button { display: block; font-size: 1.6rem; cursor: pointer; }
    .site-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 12px; }
    .site-menu-toggle:checked ~ .site-links { display: flex; }
    .feature-grid, .dir-search, .site-footer-grid { grid-template-columns: 1fr; }
    .site-hero { padding: 40px 0 32px; }
    .dir-grid { grid-template-columns: 1fr; }
}
