/* Medical theme (practice.json "theme": "medical"), loaded after style.css. 2026-11-19
   White, shades of medical blue (as on k-med.cz and most clinic sites), photos, Inter, square buttons.
   --jade / --jade-deep / --cinnabar come from practice.json colors (inline style in base.html). */
.theme-medical {
  --jade-soft: #eaf3fc;
  --gold: #1aa0d8; --gold-soft: #e4f4fb;
  --ink: #0c1e3a; --ink-2: #0a2c5c;
  --paper-2: #f3f7fb;
  --text: #1f2a3a; --muted: #5a6a80; --line: #e1e8f0;
  --serif: "Inter", -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 10px; --btn-radius: 4px;
  --shadow: 0 1px 2px rgba(12, 30, 58, .05), 0 10px 30px rgba(12, 30, 58, .08);
  /* colours the looks change (body class look-<id>, see the end of this file) */
  --glow: 11, 107, 203;                       /* rgb of the accent, for shadows and focus rings */
  --hero-fade: 243, 246, 249;                 /* rgb of the fade over the hero photo */
  --band-1: #0a5fb8; --band-2: var(--jade); --band-3: #0d4f99; --band-text: #dbe9f8;
  --cta-2: #0a3f80; --foot: #0b1d36; --page: #fff;
  font-size: 16.5px;
}
.theme-medical { background: var(--page); }
.theme-medical .brand .logo-bg { fill: var(--jade); }
.theme-medical h1, .theme-medical h2, .theme-medical h3 { font-weight: 700; letter-spacing: -.02em; }
.theme-medical .eyebrow { color: var(--jade); letter-spacing: .14em; font-weight: 700; }
.theme-medical a:focus-visible, .theme-medical button:focus-visible { outline-color: var(--gold); }
.theme-medical .brand b { font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; }
.theme-medical .btn { font-weight: 600; letter-spacing: .01em; }
.theme-medical .btn:hover { transform: none; }
.theme-medical .btn.cta { box-shadow: 0 6px 16px rgba(var(--glow), .22); }
.theme-medical .btn.cta:hover { background: var(--jade-deep); }
.theme-medical .btn.outline { background: #fff; color: var(--jade-deep); border-color: #c9d8ea; }
.theme-medical .btn.outline:hover { border-color: var(--jade); color: var(--jade); }
.theme-medical .btn.line { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); min-height: 42px; padding: 9px 18px; font-size: .88rem; }
.theme-medical .btn.line:hover { background: #fff; color: var(--jade-deep); }
.theme-medical .btn.line svg { width: 15px; height: 15px; }
.theme-medical .btn.white { background: #fff; color: var(--jade-deep); }
.theme-medical .btn.white:hover { background: var(--jade-soft); }
.theme-medical .mins { background: var(--jade-soft); color: var(--jade-deep); border-radius: 4px; }
.theme-medical .demo-bar .tag { background: var(--jade); border-radius: 4px; }
.theme-medical .lang-menu, .theme-medical .lang-menu a { border-radius: 6px; }

/* hero: photo on the right, white fade on the left for the text */
.mhero { position: relative; background: rgb(var(--hero-fade)) var(--hero-img) no-repeat right center / cover; }
.mhero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--hero-fade)) 0%, rgba(var(--hero-fade), .96) 34%, rgba(var(--hero-fade), .55) 56%, rgba(var(--hero-fade), 0) 72%); }
.mhero .wrap { position: relative; }
.mhero-text { max-width: 600px; padding: 96px 0 104px; }
.mhero h1 { margin: 0 0 22px; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; color: var(--ink); }
.mhero h1 b { display: block; font-weight: 800; }
.mhero h1 span { display: block; font-weight: 300; letter-spacing: -.03em; }
.mhero .lead { font-size: 1.1rem; color: #3d4b5e; margin: 0 0 30px; max-width: 520px; }
.mhero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mhero-contact { display: flex; gap: 24px; flex-wrap: wrap; margin: 26px 0 0; }
.mhero-contact a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mhero-contact a:hover { color: var(--jade); }
.mhero-contact svg { width: 16px; height: 16px; color: var(--jade); }

/* band of three blues under the hero */
.mband { display: grid; grid-template-columns: 1fr 1.15fr 1fr; color: #fff; }
.mband-col { padding: 44px max(28px, calc((100vw - 1160px) / 6)) 46px; background: var(--band-1); display: flex; flex-direction: column; gap: 10px; }
.mband-col.mid { background: var(--band-2); }
.mband-col:last-child { background: var(--band-3); }
.mband h3 { color: #fff; font-size: 1.35rem; margin: 6px 0 0; }
.mband p { margin: 0 0 8px; color: var(--band-text); font-size: .95rem; }
.mband .row { margin-top: auto; }
.mband .btn.line { align-self: flex-start; margin-top: auto; }
/* AI assistant column: the three buttons one under the other, all as wide as the widest (Jean-Luc 2026-11-19) */
.mband .mid .row { display: grid; grid-template-columns: minmax(0, max-content); gap: 10px; justify-items: stretch; }
.mband .mid .row .btn.line { margin: 0; justify-content: center; }
.mband .hours li { border-color: rgba(255, 255, 255, .18); font-size: .92rem; color: #eaf2fb; }
.mi { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* sections */
.mhead { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.mhead h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0; }
.mservices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.msvc { display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.msvc .mi { color: var(--jade); width: 38px; height: 38px; }
.msvc h3 { margin: 4px 0 0; font-size: 1.22rem; }
.msvc p { margin: 0; color: var(--muted); flex: 1; font-size: .95rem; }
.msvc .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-weight: 600; color: var(--jade); font-size: .9rem; }
a.msvc:hover { border-color: var(--jade); box-shadow: var(--shadow); }
.msvc.ask { background: var(--paper-2); border-style: dashed; }
.msvc.ask .row { margin-top: 6px; }

.mphoto { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.mphoto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mabout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.mabout .mphoto { aspect-ratio: 4 / 5; position: sticky; top: 100px; }
.mabout h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 12px; }
.mabout .doc { color: var(--jade-deep); margin: 0 0 18px; }
.mabout .lead { font-size: 1.05rem; line-height: 1.75; margin: 0; }
.mfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; }
.mfacts div { background: var(--jade-soft); border-radius: var(--radius); padding: 16px 16px 14px; display: flex; flex-direction: column; }
.mfacts b { font-size: 1.9rem; font-weight: 800; color: var(--jade); line-height: 1; }
.mfacts span { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.mtimeline { list-style: none; margin: 0; padding: 0; }
.mtimeline li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.mtimeline .y { font-weight: 700; color: var(--jade); }

.mplace { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: stretch; }
.mplace .mphoto { min-height: 380px; }
.mplace .card { display: flex; flex-direction: column; box-shadow: none; }
.mplace .card h3 { font-size: 1.4rem; margin: 0 0 6px; }
.mplace .place { color: var(--muted); margin: 0 0 14px; }
.mplace .row { margin-top: auto; padding-top: 20px; }

.mcta { margin: 96px 0 0; display: grid; grid-template-columns: 1fr 1.2fr; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--jade), var(--cta-2)); color: #fff; }
.mcta img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 300px; }
.mcta-text { padding: 54px 52px; display: flex; flex-direction: column; justify-content: center; }
.mcta h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 0 0 10px; }
.mcta p { color: #d6e6f8; margin: 0 0 26px; }
.mcta .or { color: #d6e6f8; font-size: .92rem; }
.mcta .or a { color: #fff; font-weight: 700; }

.theme-medical footer { background: var(--foot); color: #9fb0c6; }
.theme-medical footer b { font-family: var(--sans); font-weight: 800; }

/* assistant panel and booking in blue */
.theme-medical .va { background: rgba(10, 25, 50, .55); }
.theme-medical .va-orb { background: radial-gradient(circle at 35% 30%, #ffffff80, transparent 40%), conic-gradient(from 0deg, var(--jade), var(--gold), var(--jade-deep), var(--jade)); box-shadow: 0 0 0 10px rgba(var(--glow), .08), 0 20px 40px rgba(var(--glow), .25); }
.theme-medical .va-box { border-radius: 14px 14px 0 0; }
@media (min-width: 700px) { .theme-medical .va-box { border-radius: 14px; } }
.theme-medical .days > button, .theme-medical .days > a { border-radius: 8px; }
.theme-medical .wiz-chips .chip { border-radius: 4px; }
.theme-medical input[type=text], .theme-medical input[type=tel], .theme-medical input[type=email], .theme-medical select, .theme-medical textarea { border-radius: 6px; border-color: #cfdae6; }

@media (max-width: 960px) {
  .mband, .mservices, .mabout, .mplace, .mcta { grid-template-columns: 1fr; }
  .mband-col { padding: 34px 20px; }
  .mabout { gap: 28px; }
  .mabout .mphoto { position: static; aspect-ratio: 4 / 3; }
  .mplace .mphoto { min-height: 240px; aspect-ratio: 16 / 10; }
  .mcta img { max-height: 280px; }
  .mcta-text { padding: 34px 24px; }
}
@media (max-width: 760px) {
  /* phone: photo on top, text below on white (a fade over a face looks bad on a narrow screen) */
  .mhero { background: #fff; display: flex; flex-direction: column; }
  .mhero::before { position: static; display: block; height: 260px; background: var(--hero-img) no-repeat 80% 20% / cover; }
  .mhero-text { padding: 26px 0 40px; }
  .mfacts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .mfacts div { padding: 12px 10px; }
  .mfacts b { font-size: 1.5rem; }
  .mtimeline li { grid-template-columns: 78px 1fr; }
}

/* demo login page and other places where style.css had hard-coded green (Jean-Luc 2026-11-19: "blue on dark green") */
body.gate-page.theme-medical { background: radial-gradient(900px 520px at 85% -10%, rgba(var(--glow), .16), transparent 60%), linear-gradient(180deg, var(--paper-2), var(--jade-soft)); }
.theme-medical .gate .card { box-shadow: 0 1px 2px rgba(12, 30, 58, .06), 0 18px 48px rgba(12, 30, 58, .12); border-color: #dbe5f0; }
.theme-medical .gate .card h1 { display: flex; align-items: center; gap: 12px; }
.theme-medical .gate .card h1::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--jade) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M16.5 9h7v7.5H31v7h-7.5V31h-7v-7.5H9v-7h7.5z' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat; }
.theme-medical input:focus, .theme-medical select:focus, .theme-medical textarea:focus { box-shadow: 0 0 0 3px rgba(var(--glow), .15); }
.theme-medical .flash.ok { background: var(--jade-soft); color: var(--jade-deep); }
.theme-medical .flash { border-radius: 6px; }

/* back office: "Look" page */

/* ================================================================ LOOKS (back office "Vzhled", 2026-11-19)
   look-blue is the default above. Each look only changes variables and a few shapes, so all pages follow. */

/* ---- Soft: in the spirit of k-med.cz (Jean-Luc's GP): navy, pastel blue cards, big rounded corners, small pills.
   Own layout, texts and photos: only the general style is borrowed. */
.theme-medical.look-soft {
  --jade: #071a50; --jade-deep: #030e33; --jade-soft: #e3f2fd; --cinnabar: #071a50;
  --gold: #3aa6e6; --gold-soft: #e3f2fd;
  --ink: #071a50; --ink-2: #071a50; --text: #13254f; --muted: #4b5a7c; --line: #dce7f4;
  --paper-2: #eef5fd; --page: #f6f9fe;
  --serif: "Manrope", -apple-system, "Segoe UI", sans-serif; --sans: var(--serif);
  --radius: 24px; --btn-radius: 999px;
  --glow: 7, 26, 80; --hero-fade: 7, 26, 80;
  --band-1: #b6e3fd; --band-2: #d5effe; --band-3: #e6f5fe; --band-text: #23345f;
  --cta-2: #0d2c78; --foot: #071a50;
  --shadow: 0 1px 2px rgba(7, 26, 80, .04), 0 10px 30px rgba(7, 26, 80, .06);
}
.look-soft header.top { background: rgba(246, 249, 254, .92); border-bottom: 0; }
.look-soft .nav { background: #e4f0fc; padding: 9px 17px; border-radius: 999px; gap: 14px; }
.look-soft .btn { font-size: .875rem; font-weight: 600; padding: 10px 22px; min-height: 42px; }
.look-soft .btn.big { font-size: .95rem; padding: 13px 28px; min-height: 48px; }
.look-soft .btn.cta { box-shadow: none; }
.look-soft .eyebrow { color: #2f86c9; }
.look-soft .mins, .look-soft .demo-bar .tag { border-radius: 999px; }
/* hero as a big rounded navy card, white text */
.look-soft .mhero { margin: 18px max(16px, calc((100vw - 1240px) / 2)) 0; border-radius: var(--radius); overflow: hidden; }
.look-soft .mhero::before { background: linear-gradient(90deg, rgba(7, 26, 80, .97) 0%, rgba(7, 26, 80, .9) 34%, rgba(7, 26, 80, .45) 60%, rgba(7, 26, 80, .05) 80%); }
.look-soft .mhero .wrap { padding: 0 48px; }
.look-soft .mhero h1, .look-soft .mhero .lead, .look-soft .mhero-contact a { color: #fff; }
.look-soft .mhero .lead { color: #d4e3f7; }
.look-soft .mhero .eyebrow { color: #8fd0f7; }
.look-soft .mhero-contact svg { color: #8fd0f7; }
.look-soft .mhero .btn.cta { background: #fff; color: #071a50; }
.look-soft .mhero .btn.cta:hover { background: #e3f2fd; }
.look-soft .mhero .btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
/* band: three pastel cards */
.look-soft .mband { gap: 16px; margin: 16px max(16px, calc((100vw - 1240px) / 2)) 0; color: var(--ink); }
.look-soft .mband-col { border-radius: var(--radius); padding: 36px 34px 38px; }
.look-soft .mband h3 { color: var(--ink); }
.look-soft .mband .mi { color: #2f86c9; }
.look-soft .mband .btn.line { color: #fff; background: #071a50; border-color: #071a50; }
.look-soft .mband .btn.line:hover { background: #0d2c78; color: #fff; }
.look-soft .mband .hours li { border-color: rgba(7, 26, 80, .12); color: var(--text); }
.look-soft .msvc { border: 0; box-shadow: var(--shadow); padding: 32px 30px; }
.look-soft .msvc .mi { color: #2f86c9; background: #e3f2fd; border-radius: 16px; padding: 9px; width: 56px; height: 56px; }
.look-soft .msvc.ask { background: #d5effe; border: 0; }
.look-soft .mplace .card { border: 0; }
.look-soft .mfacts div { background: #fff; box-shadow: var(--shadow); }
.look-soft .mfacts b, .look-soft .mtimeline .y { color: #2f86c9; }
.look-soft .mcta { background: linear-gradient(135deg, #b6e3fd, #e6f5fe); color: var(--ink); }
.look-soft .mcta h2 { color: var(--ink); }
.look-soft .mcta p, .look-soft .mcta .or { color: var(--text); }
.look-soft .mcta .or a { color: var(--ink); }
.look-soft .mcta .btn.white { background: #071a50; color: #fff; }
.look-soft .mcta .btn.white:hover { background: #0d2c78; }
.look-soft .days > button, .look-soft .days > a { border-radius: 14px; }
.look-soft .wiz-chips .chip { border-radius: 999px; }
.look-soft input[type=text], .look-soft input[type=tel], .look-soft input[type=email], .look-soft select, .look-soft textarea { border-radius: 12px; }

/* ---- Fresh: teal and white, Rubik, soft shadows */
.theme-medical.look-fresh {
  --jade: #0e8a87; --jade-deep: #0a6461; --jade-soft: #e3f5f3; --cinnabar: #0e8a87;
  --gold: #35c0b0; --gold-soft: #e3f5f3;
  --ink: #0c3134; --ink-2: #0b4f4d; --text: #22393b; --muted: #587072; --line: #dcebea;
  --paper-2: #f2f9f8;
  --serif: "Rubik", -apple-system, "Segoe UI", sans-serif; --sans: var(--serif);
  --radius: 16px; --btn-radius: 10px;
  --glow: 14, 138, 135; --hero-fade: 242, 250, 249;
  --band-1: #0e8a87; --band-2: #0b7774; --band-3: #0a6461; --band-text: #d3f0ed;
  --cta-2: #0b4f4d; --foot: #0b2b2d;
  --shadow: 0 2px 4px rgba(12, 49, 52, .04), 0 14px 34px rgba(12, 49, 52, .08);
}
.look-fresh h1, .look-fresh h2, .look-fresh h3 { font-weight: 600; letter-spacing: -.01em; }
.look-fresh .mhero h1 b { font-weight: 600; }
.look-fresh .msvc { border-color: transparent; box-shadow: var(--shadow); }
.look-fresh .msvc .mi { background: var(--jade-soft); border-radius: 50%; padding: 10px; width: 58px; height: 58px; }
.look-fresh .msvc.ask { border-color: var(--line); box-shadow: none; }
.look-fresh .mins { border-radius: 999px; }

/* ---- Classic: deep blue-green and sand, serif headings, calm family practice */
.theme-medical.look-classic {
  --jade: #1f4e5f; --jade-deep: #163a47; --jade-soft: #edf1f0; --cinnabar: #1f4e5f;
  --gold: #b8904a; --gold-soft: #f4ecdd;
  --ink: #1b2b33; --ink-2: #163a47; --text: #2b3338; --muted: #66706f; --line: #e6dfd2;
  --paper-2: #f7f3ec; --page: #fdfbf7;
  --serif: "Source Serif 4", Georgia, serif; --sans: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  --radius: 4px; --btn-radius: 2px;
  --glow: 31, 78, 95; --hero-fade: 247, 243, 236;
  --band-1: #1f4e5f; --band-2: #2a6275; --band-3: #173d4a; --band-text: #d8e4e6;
  --cta-2: #163a47; --foot: #14262d;
  font-size: 17px;
}
.look-classic h1, .look-classic h2, .look-classic h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }
.look-classic .mhero h1 b { font-weight: 700; }
.look-classic .mhero h1 span { font-weight: 400; font-style: italic; letter-spacing: 0; }
.look-classic .brand b { font-family: var(--serif); font-weight: 700; }
.look-classic .eyebrow { color: #9a7838; }
.look-classic .mfacts b, .look-classic .mtimeline .y { color: #9a7838; font-family: var(--serif); }
.look-classic .mhead h2::after, .look-classic .mabout h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); margin: 18px auto 0; }
.look-classic .mabout h2::after { margin-left: 0; }
.look-classic .msvc { border-top: 3px solid var(--gold); }
.look-classic .msvc.ask { border-top-style: solid; }
.look-classic footer b { font-family: var(--serif); }
@media (max-width: 760px) {
  .look-soft .mhero { background: #071a50; margin: 10px 10px 0; }
  .look-soft .mhero::before { background: var(--hero-img) no-repeat 80% 20% / cover; }
  .look-soft .mhero .wrap { padding: 0 22px; }
  .look-soft .mband { margin: 10px 10px 0; gap: 10px; }
  .look-soft .nav { display: none; }
}

/* "Before you book" tiles: base in style.css (both themes) */
.look-soft .minfo-item { border: 0; box-shadow: 0 6px 24px rgba(7, 26, 80, .07); }
.look-classic .minfo-item { border-top: 2px solid #b8904a; }
.look-soft .my-hero, .look-soft .my-hero a { color: #fff; }
