/*
Theme Name: Läkarhuset Hötorgscity
Theme URI: https://lakarhuset.se/
Author: Läkarhuset Hötorgscity
Description: Ett lätt, responsivt och tillgängligt tema för Läkarhuset Hötorgscity.
Version: 1.1.8
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: lakarhuset-hotorgscity
*/

:root {
  --blue: #063d91;
  --blue-dark: #072857;
  --blue-soft: #eef5ff;
  --orange: #f49a00;
  --ink: #0b2348;
  --body: #24354d;
  --muted: #65748a;
  --line: #dbe4f0;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
  --shadow: 0 18px 45px rgba(16, 37, 67, .10);
  --radius: 22px;
  --max: 1240px;
  --header-offset: 116px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--body);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
.skip-link {
  position: fixed; left: 12px; top: -100px; z-index: 999;
  background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219,228,240,.8);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; min-height: 96px; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 76px; height: 76px; object-fit: contain; }
.desktop-nav { display: flex; gap: 32px; align-items: center; font-size: 15px; font-weight: 650; color: var(--ink); }
.desktop-nav a { text-decoration: none; padding: 10px 2px; }
.desktop-nav a:hover { color: var(--blue); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; border: 0; width: 46px; height: 46px; display: grid; place-items: center; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.hamburger, .hamburger::before, .hamburger::after { width: 28px; height: 3px; background: var(--ink); border-radius: 999px; display: block; content: ""; }
.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(5px); }
.mobile-panel {
  position: absolute; right: 0; top: 58px; min-width: 250px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.mobile-panel a { display: block; text-decoration: none; padding: 12px; border-radius: 8px; font-weight: 650; }
.mobile-panel a:hover { background: var(--surface-2); }

.hero { max-width: var(--max); margin: 0 auto; padding: 30px 24px 0; }
.hero-shell {
  min-height: 520px; display: grid; grid-template-columns: 47% 53%; overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius); background: #f9fbfe; box-shadow: var(--shadow);
  border: 1px solid #edf1f6;
}
.hero-copy {
  padding: 68px 46px 54px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(115deg, #fff 0%, #fff 72%, rgba(255,255,255,.88) 100%);
}
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: 12px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(44px, 5vw, 70px); max-width: 670px; letter-spacing: -.025em; }
.hero-copy > p { margin-top: 24px; max-width: 620px; font-size: 18px; line-height: 1.7; }
.hero-copy > p + p { margin-top: 14px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 21px; border-radius: 10px; font-weight: 750; text-decoration: none; border: 1.5px solid var(--blue);
  transition: transform .18s ease, background-color .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(6,61,145,.18); }
.btn-secondary { background: #fff; color: var(--blue); }
.btn:hover { transform: translateY(-1px); }
.hero-photo { position: relative; min-height: 520px; background: #e6ebf2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(1.08) contrast(.94) saturate(.88); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,0) 22%); pointer-events: none; }
.photo-note {
  position: absolute; left: 50%; top: 9%; z-index: 2; display: block; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 48px); padding: 16px 28px;
  border: 1px solid rgba(255,255,255,.42); border-radius: 10px;
  background: linear-gradient(135deg, rgba(7,40,87,.86), rgba(6,61,145,.72));
  box-shadow: 0 14px 34px rgba(4,24,55,.24); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  color: #fff; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; line-height: 1.12;
  letter-spacing: -.015em; text-align: center; text-wrap: balance;
}

.quick-wrap { max-width: var(--max); margin: -18px auto 0; position: relative; z-index: 4; padding: 0 36px; }
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 16px 35px rgba(16,37,67,.08); overflow: hidden;
}
.quick-item { padding: 22px 18px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; min-height: 132px; }
.quick-item + .quick-item { border-left: 1px solid var(--line); }
.icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); flex: 0 0 auto;
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.quick-item h3 { font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.3; }
.quick-item p { margin-top: 6px; font-size: 13px; color: var(--muted); }

.section { max-width: var(--max); margin: 0 auto; padding: 76px 24px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section h2 { font-size: clamp(34px, 4vw, 49px); }
.doctor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.doctor-card {
  border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden;
  box-shadow: 0 8px 24px rgba(16,37,67,.05); display: flex; flex-direction: column;
}
.portrait { aspect-ratio: 4 / 3; background: #e8edf3; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.doctor-card:nth-child(2) .portrait img { object-position: center 8%; }
.doctor-card:nth-child(3) .portrait img { object-position: center 23%; }
.doctor-card:nth-child(4) .portrait img { object-position: center 25%; }
.doctor-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.doctor-body h3 { font-size: 27px; }
.specialty { margin-top: 7px; min-height: 50px; color: var(--muted); font-size: 14px; }
.doctor-link {
  margin-top: auto; min-height: 50px; border-radius: 10px; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  font-weight: 800; text-decoration: none; font-size: 14px; box-shadow: 0 8px 18px rgba(6,61,145,.14);
  transition: transform .18s ease, background-color .18s ease;
}
.doctor-link:hover { background: var(--blue-dark); transform: translateY(-1px); }
.doctor-link span { font-size: 19px; line-height: 1; }
.call-button {
  margin-top: 18px; min-height: 50px; border: 1.5px solid var(--blue); border-radius: 10px;
  color: var(--blue); display: flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; font-weight: 800; font-size: 14px; padding: 10px 12px; text-align: center;
}
.doctor-phone {
  margin-top: 10px; min-height: 42px; padding: 8px 11px; font-size: 13px; font-weight: 750;
  background: #fff; border-width: 1px; color: var(--blue);
}
.doctor-phone:hover { background: var(--blue-soft); }

.info-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); padding: 28px; }
.panel h2 { font-size: 38px; }
.lead { font-size: 17px; margin-top: 12px; color: var(--body); }
.entry-list { margin-top: 22px; display: grid; gap: 10px; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.entry strong { color: var(--ink); display: block; }
.entry span { color: var(--muted); font-size: 14px; }
.entry.primary { border-color: #acc8ed; box-shadow: inset 4px 0 0 var(--blue); }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.check { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 900; }

/* Läkarsidor */
.doctor-page { --accent: #063d91; --accent-soft: #eef5ff; }
.doctor-page.dr-kollberg { --accent: #0b4f87; --accent-soft: #eef6fb; }
.doctor-page.dr-daniel { --accent: #7b3f55; --accent-soft: #fbf1f5; }
.doctor-page.dr-oliai { --accent: #0a6a64; --accent-soft: #eef9f7; }
.doctor-page.dr-linden { --accent: #4e5f3d; --accent-soft: #f3f7ee; }
.current-notice-wrap { max-width: var(--max); margin: 0 auto; padding: 22px 24px 0; }
.current-notice {
  border: 1px solid #e4b75f; border-left: 6px solid #d88700; border-radius: 14px;
  background: #fff8e8; padding: 20px 24px; box-shadow: 0 8px 22px rgba(99,68,12,.07);
}
.current-notice-title { margin-top: 0 !important; font-family: inherit; font-size: 22px; font-weight: 850; color: #4f3508; }
.current-notice p { margin-top: 5px; color: #61491c; line-height: 1.6; }

.doctor-hero { max-width: var(--max); margin: 0 auto; padding: 38px 24px 0; }
.doctor-hero-shell {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); min-height: 470px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
}
.doctor-hero-copy { padding: 64px 54px; display: flex; flex-direction: column; justify-content: center; }
.doctor-hero h1 { font-size: clamp(48px, 6vw, 78px); }
.doctor-title { margin-top: 14px; font-size: 20px; color: var(--accent); font-weight: 750; }
.doctor-summary { margin-top: 22px; max-width: 700px; font-size: 18px; line-height: 1.75; }
.doctor-hero-photo { background: #e8edf3; min-height: 470px; }
.doctor-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.doctor-page.dr-daniel .doctor-hero-photo img { object-position: center 8%; }
.doctor-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.doctor-actions .btn { border-color: var(--accent); }
.doctor-actions .btn-primary { background: var(--accent); box-shadow: none; }
.doctor-actions .btn-secondary { color: var(--accent); }
.doctor-content { max-width: var(--max); margin: 0 auto; padding: 54px 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.doctor-content-single { grid-template-columns: minmax(0, 860px); }
.content-card, .contact-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 30px; box-shadow: 0 8px 24px rgba(16,37,67,.05); }
.content-card + .content-card { margin-top: 18px; }
.content-card h2, .contact-card h2 { font-size: 34px; }
.content-card p { margin-top: 16px; line-height: 1.75; }
.content-card ul { margin: 16px 0 0; padding-left: 22px; }
.content-card li + li { margin-top: 8px; }
.contact-card { position: sticky; top: var(--header-offset); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, white); }
.contact-label { margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.contact-number { display: block; margin-top: 5px; font-size: 27px; color: var(--ink); font-weight: 850; text-decoration: none; }
.contact-card .call-button { border-color: var(--accent); background: var(--accent); color: #fff; }
.contact-card .call-button.phone-secondary { background: #fff; color: var(--accent); min-height: 44px; font-size: 13px; }
.contact-hours { margin-top: 7px; font-size: 18px; line-height: 1.6; }
.contact-hours strong { color: var(--ink); }
.service-button {
  margin-top: 14px; min-height: 50px; border: 1.5px solid var(--accent); border-radius: 10px;
  background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 800; font-size: 14px; padding: 11px 14px; text-align: center;
}
.service-button:hover { background: color-mix(in srgb, var(--accent) 7%, white); }
.featured-service {
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
  border-color: color-mix(in srgb, var(--accent) 25%, white);
}
.service-eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 850; margin-bottom: 8px; }
.service-button.service-button-primary { background: var(--accent); color: #fff; }
.service-button.service-button-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.prescription-note { margin-top: 18px !important; padding: 14px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.contact-guidance { margin-top: 12px; padding: 13px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--body); font-size: 14px; line-height: 1.55; }
.contact-priority-note { margin-top: 13px; padding: 13px 14px; border-radius: 10px; background: #fff; color: var(--body); font-size: 14px; line-height: 1.6; }
.form-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 750; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #8fa2bb; border-radius: 10px; padding: 12px 13px; background: #fff; color: var(--body); }
.field textarea { min-height: 110px; resize: vertical; }
.form-help { color: var(--muted); font-size: 13px; }
.form-submit { margin-top: 18px; border: 0; border-radius: 10px; padding: 14px 20px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; }
.form-submit:disabled { cursor: wait; opacity: .68; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-result { display: none; margin-top: 16px; padding: 14px; border-radius: 10px; background: #edf8f2; border: 1px solid #a9d7bc; color: #235f3b; }
.form-result.show { display: block; }
.form-result-error { background: #fff1f0; border-color: #e3aaa5; color: #7d2520; }

.fallback-content { max-width: 820px; min-height: 50vh; margin: 0 auto; padding: 60px 24px; }
.fallback-content h1 { font-size: clamp(42px, 6vw, 68px); }
.fallback-content p { margin-top: 20px; }

footer { margin-top: 42px; border-top: 1px solid var(--line); background: #fafbfd; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 34px 24px 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; }
.footer-links a { text-decoration: none; }
.copyright { color: var(--muted); font-size: 13px; }

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-copy { padding: 48px 34px 34px; }
  .hero-photo { min-height: 360px; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(255,255,255,.42), transparent 22%); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item + .quick-item { border-left: 0; }
  .quick-item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .quick-item:nth-child(2n) { border-right: 0; }
  .doctor-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .doctor-hero-shell { grid-template-columns: 1fr; }
  .doctor-hero-photo { min-height: 380px; }
  .doctor-content { grid-template-columns: 1fr; }
  .contact-card { position: static; }
}

@media (min-width: 783px) {
  .admin-bar .site-header { top: 32px; }
}

@media (max-width: 680px) {
  :root { --header-offset: 92px; }
  .header-inner { min-height: 76px; padding: 8px 16px; }
  .brand img { width: 58px; height: 58px; }
  .hero { padding: 0; }
  .hero-shell { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .hero-copy { padding: 38px 20px 26px; }
  .eyebrow { font-size: 11px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(39px, 12vw, 53px); }
  .hero-copy > p { font-size: 16px; line-height: 1.65; margin-top: 18px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 23px; }
  .btn { width: 100%; }
  .hero-photo { min-height: 265px; }
  .photo-note { top: 20px; max-width: calc(100% - 32px); padding: 12px 18px; font-size: clamp(24px, 8vw, 34px); }
  .quick-wrap { padding: 0 14px; margin-top: -10px; }
  .quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 14px;
  }
  .quick-item {
    min-width: 0;
    min-height: 142px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    padding: 16px 12px;
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line);
  }
  .quick-item:nth-child(2n) { border-right: 0 !important; }
  .quick-item:nth-child(n+3) { border-bottom: 0; }
  .quick-item .icon { width: 34px; height: 34px; }
  .quick-item .icon svg { width: 19px; height: 19px; }
  .quick-item h3 { font-size: 14px; }
  .quick-item p { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
  .section { padding: 58px 16px 0; }
  .section-head { align-items: start; margin-bottom: 18px; }
  .section h2 { font-size: 38px; }
  .doctor-grid { grid-template-columns: 1fr; gap: 12px; }
  .doctor-card { display: grid; grid-template-columns: 104px 1fr; min-height: 150px; }
  .portrait { aspect-ratio: auto; height: 100%; }
  .doctor-body { padding: 15px 14px; }
  .doctor-body h3 { font-size: 24px; }
  .specialty { min-height: auto; font-size: 13px; margin-top: 3px; }
  .doctor-link { margin-top: 10px; min-height: 48px; padding: 11px 12px; }
  .call-button { margin-top: 8px; min-height: 40px; font-size: 12.5px; }
  .info-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; border-radius: 14px; }
  .panel h2 { font-size: 34px; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 26px 18px 36px; }
  .footer-brand img { width: 62px; height: 62px; }
  .footer-links { gap: 12px 17px; }
  .current-notice-wrap { padding: 14px 14px 0; scroll-margin-top: var(--header-offset); }
  .current-notice { padding: 17px 16px; border-radius: 12px; }
  .current-notice-title { font-size: 20px; }
  .doctor-hero { padding: 0; }
  .doctor-hero-shell { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .doctor-hero-copy { padding: 38px 20px 28px; }
  .doctor-hero h1 { font-size: 49px; }
  .doctor-title { font-size: 17px; }
  .doctor-summary { font-size: 16px; }
  .doctor-hero-photo { min-height: 330px; }
  .doctor-content { padding: 42px 16px 0; }
  .content-card, .contact-card { padding: 22px 18px; }
  .content-card h2, .contact-card h2 { font-size: 31px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

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