/* ClinicIT.Solutions homepage — "day sheet" layout.
   Tokens, header and footer live in site.css. */

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }

.hero h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.4rem);
    font-weight: 800;
    font-stretch: 118%;
    line-height: 0.98;
    letter-spacing: -0.035em;
    max-width: 12ch;
}
.hero-lead { margin-top: 28px; font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-note { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Day sheet ---------- */
.sheet {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 10px;
    box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(22, 48, 43, 0.35);
    overflow: hidden;
    font-stretch: 88%;
}
.sheet-top {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 14px 18px; border-bottom: 1px solid var(--rule);
}
.sheet-day { font-weight: 700; font-size: 1rem; font-stretch: 100%; }
.sheet-range { color: var(--ink-2); font-size: 0.875rem; font-variant-numeric: tabular-nums; }

.sheet-grid {
    --row: 31px;
    display: grid;
    grid-template-columns: 52px repeat(4, minmax(0, 1fr));
    grid-template-rows: 34px repeat(10, var(--row));
    column-gap: 6px;
    padding: 0 12px 0 0;
    position: relative;
    background:
        linear-gradient(var(--surface), var(--surface)) top / 100% 34px no-repeat,
        repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--row) - 1px), var(--rule) calc(var(--row) - 1px), var(--rule) var(--row)) 0 34px / 100% calc(100% - 34px) no-repeat;
}
.col-head {
    grid-row: 1; align-self: center;
    font-size: 0.8125rem; font-weight: 650; color: var(--ink-2);
    padding-left: 2px;
}
.col-head.is-us { color: var(--biro); }
.time {
    grid-column: 1;
    font-size: 0.75rem; color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    text-align: right; padding-right: 8px;
    transform: translateY(-0.6em);
}
.time.hour { color: var(--ink); font-weight: 650; }

.appt {
    margin: 2px 0 3px;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.75rem; line-height: 1.25; font-weight: 550;
    color: var(--ink);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.appt.std { background: var(--slot-std); }
.appt.long { background: var(--slot-long); }
.appt.tele { background: var(--slot-tele); }
.appt.nurse { background: var(--slot-nurse); }

.appt.it {
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
    background: var(--biro-wash);
    border: 1.5px dashed var(--biro);
    color: var(--biro-deep);
    text-decoration: none;
    white-space: normal;
    padding: 4px 8px;
    transition: background-color .15s ease;
}
.appt.it strong { font-weight: 700; font-size: 0.8125rem; }
.appt.it span { text-decoration: underline; text-underline-offset: 0.15em; }
.appt.it:hover { background: #DCE3FA; }

.sheet-status {
    list-style: none; margin: 0; padding: 12px 18px;
    border-top: 1px solid var(--rule);
    display: flex; flex-wrap: wrap; gap: 6px 20px;
    font-size: 0.8125rem; color: var(--ink-2);
    background: #FAFBFA;
}
.sheet-status li { display: inline-flex; align-items: center; gap: 6px; }
.sheet-status svg { width: 14px; height: 14px; flex: none; color: #2E7D5B; }


/* The one orchestrated moment: bookings fill the sheet */
@media (prefers-reduced-motion: no-preference) {
    .sheet .appt {
        animation: book .38s cubic-bezier(.2, .7, .3, 1) both;
        animation-delay: calc(var(--i, 0) * 40ms + 150ms);
    }
    .sheet .appt.it { animation-duration: .5s; animation-delay: 1.35s; }
    @keyframes book {
        from { opacity: 0; transform: translateY(-4px) scale(.97); }
        to { opacity: 1; transform: none; }
    }
}

/* ---------- Clients ---------- */
.clients { padding: 0 0 88px; }
.clients p { font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 16px; }
.logo-row {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(9, minmax(0, 1fr));
    border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
    background: var(--surface);
}
.logo-row li {
    display: flex; align-items: center; justify-content: center;
    height: 84px; padding: 14px;
    border-left: 1px solid var(--rule);
}
.logo-row li:first-child { border-left: 0; }
.logo-row li.on-ink { background: var(--ink); border-left-color: var(--ink); }
.logo-row img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section-head { max-width: var(--measure); margin-bottom: 48px; }
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); }

/* ---------- Service directory ---------- */
.directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.directory h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.directory ul { list-style: none; margin: 0; padding: 0; }
.directory li { border-bottom: 1px solid var(--rule); }
.directory a {
    display: block; padding: 14px 0 15px;
    text-decoration: none; color: var(--ink);
}
.directory .name { display: block; font-weight: 650; font-size: 1.0625rem; }
.directory .desc { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; }
.directory a:hover .name { color: var(--biro); text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- Retail band ---------- */
.band { background: var(--band); color: var(--band-text); padding: 96px 0; }
.band a { color: #fff; }
.band .band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.band h2 { color: #fff; }
.band .lead { margin-top: 18px; color: var(--band-muted); font-size: 1.125rem; max-width: 34em; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 40px 0 0; }
.facts div { border-top: 1px solid rgba(230, 238, 234, 0.25); padding-top: 12px; }
.facts dt { font-size: 2.5rem; font-weight: 750; font-stretch: 80%; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.facts dd { margin: 6px 0 0; color: var(--band-muted); font-size: 0.9375rem; }

.band-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(230, 238, 234, 0.25); }
.band-list li { border-bottom: 1px solid rgba(230, 238, 234, 0.25); }
.band-list a { display: block; padding: 16px 0; text-decoration: none; }
.band-list .name { display: block; font-weight: 650; color: #fff; }
.band-list .desc { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--band-muted); }
.band-list a:hover .name { text-decoration: underline; text-underline-offset: 0.18em; }
.band-more { margin-top: 24px; font-weight: 650; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.quote { margin: 0; }
.quote blockquote {
    margin: 0;
    font-size: 1.3125rem; line-height: 1.5; font-weight: 420;
    max-width: 34em;
    text-indent: -0.42em;
}
.quote figcaption { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.quote img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote .who { font-weight: 700; display: block; }
.quote .role { color: var(--ink-2); font-size: 0.9375rem; display: block; line-height: 1.4; }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact .intro { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); max-width: 32em; }

.steps { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 20px 44px; }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid var(--ink);
    display: grid; place-items: center;
    font-size: 0.875rem; font-weight: 700; font-stretch: 90%;
}
.steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px;
    border-left: 1.5px solid var(--rule-strong);
}

.details { margin: 20px 0 0; display: grid; gap: 18px; }
.details dt { font-size: 0.875rem; color: var(--ink-2); }
.details dd { margin: 2px 0 0; font-weight: 600; }
.details a { color: var(--ink); }
.details a:hover { color: var(--biro); }

.form-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 32px;
}
.form-card h3 { margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: 6px;
    padding: 11px 12px;
    min-height: 46px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--biro); box-shadow: 0 0 0 3px var(--biro-wash);
}
.turnstile { margin: 4px 0 18px; }
.form-privacy { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 18px; }
.form-card .btn { width: 100%; }
.form-note { margin-top: 12px; font-size: 0.875rem; color: var(--ink-2); }

.form-message { padding: 14px 16px; border-radius: 6px; margin-bottom: 20px; font-weight: 600; }
.form-message.ok { background: #E6F4EC; color: #1D5B3F; border: 1px solid #8CC7A7; }
.form-message.err { background: #FBECEA; color: #8A2A20; border: 1px solid #E3A49C; }

@media (max-width: 1080px) {
    .logo-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .logo-row li { border-bottom: 1px solid var(--rule); }
    .logo-row li:nth-child(5n + 1) { border-left: 0; }
}

@media (max-width: 960px) {
    .hero { padding: 48px 0 64px; }
    .hero .wrap, .band .band-grid, .contact .wrap { grid-template-columns: 1fr; gap: 48px; }
    .hero h1 { max-width: 14ch; }
    .directory, .quotes { grid-template-columns: 1fr; gap: 48px; }
    .section, .band { padding: 72px 0; }
}

@media (max-width: 640px) {
    .hero-lead { font-size: 1.0625rem; }
    .sheet-grid { grid-template-columns: 46px repeat(2, minmax(0, 1fr)); }
    .sheet .hide-sm { display: none; }
    .sheet .col-b { grid-column: 3 !important; }
    .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .logo-row li { border-left: 1px solid var(--rule); height: 72px; }
    .logo-row li:nth-child(5n + 1) { border-left: 1px solid var(--rule); }
    .logo-row li:nth-child(3n + 1) { border-left: 0; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-card { padding: 22px 18px; }
    .quote blockquote { font-size: 1.1875rem; }
}
