/* ==========================================================================
   PCKlinik.eu — global design system
   Navy design language carried over from pcklinik.dk / the EN mockup.
   ========================================================================== */

:root {
  --navy: #16305C;
  --navy-deep: #0E2242;
  --blue: #2E5FD4;
  --blue-soft: #EAF0FC;
  --ink: #1A2537;
  --muted: #5C6B85;
  --line: #E4E8F0;
  --bg: #F6F7FA;
  --white: #ffffff;
  --green: #1E9E6A;
  --pill-bg: rgba(255, 255, 255, 0.12);
  --pill-border: rgba(255, 255, 255, 0.25);
  --shadow-card: 0 8px 24px -18px rgba(20, 40, 80, 0.25);
  --shadow-lift: 0 18px 40px -24px rgba(20, 40, 80, 0.35);
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--white);
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--blue); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; padding-bottom: 16px;
}
.brand img { height: 40px; width: auto; }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main > .nav-item { position: relative; }
nav.main a {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 0; display: inline-flex; align-items: center; gap: 5px;
}
nav.main a:hover, nav.main a.active { color: var(--blue); }
nav.main a.active { border-bottom: 2px solid var(--blue); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lift); padding: 8px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(6px); display: none;
  transition: all .16s ease; z-index: 60;
}
.dropdown.open > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); display: block; }
.dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 8px; font-weight: 500;
  font-size: 13.5px; white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--blue-soft); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 13px 24px; border-radius: 8px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 1px solid transparent; transition: all .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #315ec4; }
.btn-outline { background: transparent; color: var(--navy-deep); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }
.btn-white { background: #fff; color: var(--navy-deep); }
.btn-white:hover { background: #eef1f7; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff; padding: 64px 0 72px;
}
.hero .eyebrow, .eyebrow-light {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #A9C1F0; font-weight: 700; margin-bottom: 16px;
}
.hero h1 { font-size: 42px; line-height: 1.15; font-weight: 800; margin: 0 0 20px; max-width: 800px; }
.hero p.lead { font-size: 16.5px; line-height: 1.7; color: #C7D3EC; max-width: 660px; margin: 0 0 26px; }
.hero .badge-line { color: #A9C1F0; font-weight: 600; font-size: 14px; margin-bottom: 12px; }

.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.badge {
  background: var(--pill-bg); border: 1px solid var(--pill-border); color: #fff;
  padding: 9px 16px; border-radius: 100px; font-size: 13px; font-weight: 500;
}
.badge.check::before { content: "✓ "; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-text-link { color: #C7D3EC; text-decoration: none; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; }
.hero-text-link:hover { color: #fff; }

/* ---------- Sections ---------- */
section { }
.section { padding: 64px 0; }
.section.alt { background: var(--bg); }
.eyebrow { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #1D4ED8; font-weight: 700; margin-bottom: 14px; }
.section h2 { font-size: 30px; font-weight: 800; margin: 0 0 18px; color: var(--navy-deep); max-width: 760px; line-height: 1.2; }
.section .sub { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 720px; margin: 0 0 36px; }
h3 { color: var(--navy-deep); }

.lead-copy p { color: var(--muted); font-size: 15.5px; line-height: 1.8; max-width: 760px; }
.lead-copy strong { color: var(--ink); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-card);
}
.card h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 15px;
}

/* Linkable category cards (shop, services) */
a.card-link { text-decoration: none; color: inherit; display: block; transition: all .15s ease; }
a.card-link:hover { border-color: var(--blue); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
a.card-link .arrow { color: var(--blue); font-weight: 700; margin-top: 12px; display: inline-block; font-size: 14px; }

/* Service/brand small cards */
.brand-card h3 { display: flex; align-items: center; gap: 8px; }
.brand-card .models { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Consistent Lucide icon per device type across the brand grid */
.brand-icon { width: 40px; height: 40px; background: #EFF4FF; color: #1D4ED8; }
.brand-icon svg { width: 20px; height: 20px; display: block; }

/* ---------- Model table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.models { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.models th, table.models td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.models th { background: var(--bg); color: var(--navy-deep); font-weight: 700; font-size: 13px; }
table.models tr:last-child td { border-bottom: 0; }
table.models td:first-child { font-weight: 600; color: var(--ink); }
table.models td.issue { color: var(--muted); }

/* ---------- Why list ---------- */
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.why-list li { padding-left: 30px; position: relative; color: var(--muted); font-size: 15px; line-height: 1.6; }
.why-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.why-list li strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px;
  background: #fff; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy-deep);
  font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 16px 22px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lift); position: relative; }
.price-card .tag { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.price-card .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 5px 14px; border-radius: 100px; text-transform: uppercase;
}
.price-card h3 { font-size: 20px; margin: 0 0 6px; }
.price-card .blurb { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; min-height: 40px; }
.price-card .price { font-size: 30px; font-weight: 800; color: var(--navy-deep); }
.price-card .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-card .vat { font-size: 12.5px; color: var(--muted); margin: 2px 0 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.price-card li { font-size: 13.5px; padding-left: 26px; position: relative; color: var(--ink); }
.price-card li.yes::before { content: "✓"; color: var(--green); position: absolute; left: 0; font-weight: 800; }
.price-card li.no { color: #5A6473; }
.price-card li.no::before { content: "–"; color: #5A6473; position: absolute; left: 0; }
.price-card .btn { justify-content: center; width: 100%; margin-top: auto; }
.price-card .fine { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- Placeholder note (Stripe / products / photos) ---------- */
.placeholder-note {
  background: #FFF7E6; border: 1px dashed #E0B34D; color: #7A5B10;
  border-radius: 10px; padding: 12px 16px; font-size: 13px; margin: 8px 0;
}
.img-placeholder {
  aspect-ratio: 4 / 3; width: 100%; border-radius: 10px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue-soft), #dfe7f7);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 13px; font-weight: 600; text-align: center; padding: 12px;
}

/* ---------- Product cards ---------- */
.product-card { display: flex; flex-direction: column; }
.product-card h3 { font-size: 16px; margin: 0 0 6px; }
.product-card .desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; flex: 1; }
.product-card .price-tag { font-size: 20px; font-weight: 800; color: var(--navy-deep); margin-bottom: 14px; }
.product-card .btn { justify-content: center; }

/* ---------- Trust / info blocks ---------- */
.trust-line { background: var(--blue-soft); border-radius: 12px; padding: 16px 22px; color: var(--navy-deep); font-size: 14.5px; font-weight: 500; }
.info-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-block .nap p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.info-block .nap strong { color: var(--ink); }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Contact form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-card); }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy-deep); margin-bottom: 6px; }
input, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fff;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,111,224,0.12); }
textarea { resize: vertical; min-height: 120px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-card); }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; font-size: 15px;
}
.step h3 { font-size: 16px; margin: 0 0 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- Cross-links ---------- */
.crosslinks { display: flex; gap: 14px; flex-wrap: wrap; }
.crosslinks a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 100px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; color: var(--navy-deep); transition: all .15s ease;
}
.crosslinks a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; border-radius: 18px; padding: 44px; text-align: center; }
.cta-band h2 { color: #fff; font-size: 26px; margin: 0 0 12px; }
.cta-band p { color: #C7D3EC; margin: 0 0 24px; font-size: 15.5px; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C7D3EC; padding: 54px 0 30px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .3px; }
.site-footer a { color: #C7D3EC; text-decoration: none; font-size: 13.5px; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 13.5px; margin: 0 0 9px; }
.site-footer .logo-foot { height: 34px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; font-size: 12.5px; color: #8DA0C4; display: block; }
.footer-nap { color: #C7D3EC; font-weight: 500; margin-bottom: 5px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.spacer { height: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .grid-2, .info-block, .form-row.two, .why-list { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  .section h2 { font-size: 25px; }
  nav.main { display: none; }
  nav.main.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 32px 20px;
  }
  nav.main.open .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; margin: 0; display: block; }
  nav.main.open a { padding: 11px 0; }
  .nav-toggle { display: block; }
  .wrap { padding: 0 20px; }
  .cta-band { padding: 30px 22px; }
}
@media (max-width: 560px) {
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 50px; }
}

/* ---------- Service callout (urgent / safety notes) ---------- */
.callout { background: #FFF4E5; border-left: 4px solid #E0912F; border-radius: 8px; padding: 14px 18px; color: #7A5312; font-size: 14.5px; line-height: 1.6; margin: 8px 0 24px; }
.callout strong { color: #5E3F0B; }

/* ---------- Check list (Mac hub "common problems") ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(2, 1fr); }
.check-list li { padding-left: 28px; position: relative; color: var(--muted); font-size: 15px; line-height: 1.5; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
@media (max-width: 700px) { .check-list { grid-template-columns: 1fr; } }

/* ---------- Dropdown section headers + tall-menu scroll ---------- */
.dropdown-menu { max-height: 80vh; overflow-y: auto; }
.dropdown-header { display: block; padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.dropdown-header:not(:first-child) { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }

/* ---------- Homepage split-hero path cards ---------- */
.hero-paths { margin-top: 10px; }
.hero-paths .card h3 { font-size: 18px; }
.hero-paths .card p { font-size: 14px; }

/* ---------- Services cascading flyout ---------- */
.dropdown-menu a, .flyout-panel a { display: block; }   /* prevent item concatenation */
.flyout-menu { min-width: 210px; width: max-content; padding: 6px; overflow: visible; max-height: none; }
.flyout-cat { position: relative; }
.flyout-cat-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 12px; margin: 0; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.flyout-cat-label:hover, .flyout-cat:hover > .flyout-cat-label { background: var(--blue-soft); color: var(--blue); }
.flyout-cat-label span { color: var(--muted); font-size: 12px; }
.flyout-panel { position: absolute; top: -6px; left: 100%; margin-left: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 6px; min-width: 232px; max-height: 76vh; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateX(6px); transition: all .16s ease; z-index: 70; display: none; }
.flyout-cat.expanded > .flyout-panel { opacity: 1; visibility: visible; transform: none; display: block; }
.flyout-panel a { padding: 9px 12px; border-radius: 8px; font-weight: 500; font-size: 13.5px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.flyout-panel a:hover { background: var(--blue-soft); color: var(--blue); }

@media (max-width: 900px) {
  nav.main.open .flyout-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; margin: 0; max-height: none; display: block; }
  nav.main.open .flyout-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; margin: 0; padding: 0 0 0 14px; max-height: none; display: none; }
  nav.main.open .flyout-cat.expanded > .flyout-panel { display: block; }
  nav.main.open .flyout-cat-label { padding: 11px 0; }
}

/* ---------- RTL (Arabic /ar/ section) ---------- */
[lang="ar"], [dir="rtl"] { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Arial", sans-serif; }
[dir="rtl"] { text-align: right; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .cta-band, [dir="rtl"] .cta-band h2 { text-align: center; }
[dir="rtl"] .callout { text-align: right; }
.lang-switch a { color: inherit; text-decoration: none; font-weight: 600; }
.lang-switch a:hover { text-decoration: underline; }

[dir="rtl"] .dropdown-menu { left: auto; right: 0; }
[dir="rtl"] .flyout-panel { left: auto; right: 100%; margin-left: 0; margin-right: 4px; transform: translateX(-6px); }
[dir="rtl"] .flyout-cat.expanded > .flyout-panel { transform: none; }
[dir="rtl"] .flyout-cat-label { text-align: right; }

/* Contact form status messages (AJAX submit) */
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.form-status--ok { background: #e7f6ec; color: #1a6b39; border: 1px solid #b6e2c4; }
.form-status--error { background: #fdecec; color: #a12626; border: 1px solid #f3c2c2; }
