/* ============================================
   FIX MACS & PC — Design System v2
   Apple-eske: soft neutrals, restrained blue accent,
   system type, generous whitespace, gentle depth.
   ============================================ */

:root {
  --ink: #1D1D1F;
  --ink-soft: #6E6E73;
  --ink-faint: #86868B;
  --paper: #FFFFFF;
  --surface: #F5F5F7;
  --surface-deep: #E8E8ED;
  --line: #E3E3E6;
  --line-strong: #D2D2D7;
  --blue: #0066CC;
  --blue-deep: #0050A0;
  --blue-tint: #EEF4FC;
  --amber: #BF7327;
  --amber-tint: #FBF3E9;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max-w: 1180px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.45em;
  letter-spacing: -0.022em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--blue);
  display: inline-block;
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 590;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--line-strong); background: var(--surface); }
.btn-outline:hover { background: var(--surface-deep); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--ink-faint); background: var(--surface); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo .mark {
  width: 30px; height: 30px;
  background: var(--ink);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
}
.logo .mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4DA3FF, #0066CC);
}
.logo small { font-weight: 400; font-size: 11.5px; display: block; color: var(--ink-faint); letter-spacing: -0.005em; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--ink); }
.main-nav .dropdown { position: relative; }
.main-nav .dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -40px;
  right: -40px;
  height: 14px;
}
.main-nav .dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  width: 300px;
  display: none;
  max-height: 420px;
  overflow-y: auto;
}
.main-nav .dropdown:hover .dropdown-panel { display: block; }
.dropdown-panel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink);
}
.dropdown-panel a:hover { background: var(--surface); color: var(--blue); }
.dropdown-panel .panel-foot {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink);
  flex-shrink: 0; transition: background 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--surface); border-color: var(--ink-faint); }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .icon-btn { width: 34px; height: 34px; } .icon-btn svg { width: 16px; height: 16px; } }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px 0; border-radius: 1px; }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.nav-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 24px 24px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 40;
  }
  .main-nav.nav-open > a,
  .main-nav.nav-open .dropdown > a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav .dropdown-panel { display: none; }
  .main-nav .dropdown.dropdown-open .dropdown-panel {
    display: block;
    position: static;
    transform: none;
    width: 100%;
    max-height: none;
    box-shadow: none;
    backdrop-filter: none;
    background: var(--surface);
    margin: 4px 0 8px;
  }
  .nav-toggle { display: block; }
  .header-cta .btn-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  background: linear-gradient(180deg, #FAFAFB 0%, var(--paper) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 19px; max-width: 46ch; margin-bottom: 32px; color: var(--ink-soft); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.trust-row { display: flex; gap: 32px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item .num { font-weight: 700; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.trust-item .lbl { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }

.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; max-width: 400px; height: auto; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 17px; }

/* ---------- Component / Repair Grid ---------- */
.repair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 16px;
}
.repair-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.repair-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.repair-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}
.repair-card .icon-wrap svg { width: 24px; height: 24px; }
.repair-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.repair-card p { font-size: 13.5px; margin-bottom: 16px; }
.repair-card .card-link { font-size: 13.5px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }
.repair-card .card-link svg { width: 14px; height: 14px; }

/* ---------- Model Grid / list ---------- */
.model-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.model-toolbar input[type=search] {
  flex: 1;
  min-width: 220px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
}
.model-toolbar input[type=search]:focus { outline: none; border-color: var(--blue); background: var(--paper); }
.filter-pill {
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 980px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.filter-pill.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-pill:not(.active):hover { border-color: var(--ink-faint); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.model-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.model-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.model-card .fam-tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface);
  padding: 4px 11px;
  border-radius: 980px;
  color: var(--ink-soft);
}
.model-card h3 { font-size: 16px; margin-bottom: 1px; }
.model-card .spec-line { font-size: 13px; color: var(--ink-faint); }
.model-card .model-nums { font-size: 12.5px; color: var(--blue); font-weight: 500; }

/* ---------- Spec table (model detail page) ---------- */
.spec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spec-row { display: grid; grid-template-columns: 170px 1fr; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { padding: 15px 20px; background: var(--surface); font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.spec-row dd { margin: 0; padding: 15px 20px; font-size: 15px; font-weight: 500; color: var(--ink); }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--ink-faint); font-weight: 500; }
.crumb a:hover { color: var(--ink); }
.crumb span.sep { color: var(--line-strong); }

/* ---------- Page header band (model & repair detail) ---------- */
.page-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 46px;
}
.page-band .crumb a { color: var(--ink-faint); }
.page-band h1 { color: var(--ink); margin-bottom: 12px; }
.page-band p { color: var(--ink-soft); max-width: 60ch; font-size: 17px; }
.tag-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.tag { font-size: 13px; font-weight: 500; background: var(--paper); border: 1px solid var(--line-strong); padding: 6px 14px; border-radius: 980px; color: var(--ink-soft); }

/* ---------- Page band with device/repair illustration ---------- */
.page-band-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .page-band-grid { grid-template-columns: 1fr; } .page-band-visual { display: none; } }
.page-band-visual { display: flex; align-items: center; justify-content: center; }
.page-band-visual svg { width: 100%; max-width: 260px; height: auto; }
.repair-hero-icon { width: 100%; max-width: 220px; height: auto; }

/* ---------- Two col layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Symptom list ---------- */
.symptom-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.symptom-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 17px;
}
.symptom-list svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--amber); margin-top: 1px; }

/* ---------- Process steps ---------- */
.process-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding-bottom: 28px;
  position: relative;
}
.process-steps li::after {
  content: "";
  position: absolute;
  left: 18px; top: 38px; bottom: 0;
  width: 1px;
  background: var(--line);
}
.process-steps li:last-child::after { display: none; }
.process-steps li::before {
  content: counter(step);
  font-weight: 600;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 14.5px;
  z-index: 1;
}
.process-steps h4 { margin-bottom: 4px; font-size: 16px; }
.process-steps p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Form (sidebar enquiry) ---------- */
.enquiry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-md);
}
.enquiry-card h3 { margin-bottom: 4px; }
.enquiry-card .sub { font-size: 13.5px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--blue-tint);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent-row { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--ink-faint); margin-bottom: 18px; }
.consent-row input { width: auto; margin-top: 3px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  background: var(--blue-tint);
  border: 1px solid #BFDBF7;
  border-radius: 13px;
  padding: 20px;
  text-align: center;
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 15px;
}
.form-success.show { display: block; }
.enquiry-card form.hidden { display: none; }

/* ---------- Full enquiry page form ---------- */
.full-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.full-form .field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .full-form .field-row-3, .field-row { grid-template-columns: 1fr; } }

/* ---------- Why us strip ---------- */
.why-strip { background: var(--surface); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
@media (max-width: 800px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-item .icn { color: var(--blue); width: 26px; height: 26px; margin-bottom: 14px; }
.why-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.why-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); color: var(--ink-soft); padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h5 { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); margin-bottom: 18px; }
.site-footer .flinks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .flinks a { font-size: 13.5px; color: var(--ink-soft); }
.site-footer .flinks a:hover { color: var(--ink); }
.site-footer .logo { color: var(--ink); margin-bottom: 16px; }
.site-footer p.about { font-size: 13.5px; color: var(--ink-faint); max-width: 36ch; }
.footer-bottom {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); margin: 60px 0; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.badge-row .b {
  font-size: 12.5px;
  border: 1px solid var(--line-strong);
  padding: 7px 14px;
  border-radius: 980px;
  color: var(--ink-soft);
  background: var(--paper);
}
.related-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.related-models a {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px 17px;
  font-size: 14px;
  font-weight: 600;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  display: block;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.related-models a:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--blue); }
.related-models a span { display: block; font-weight: 400; color: var(--ink-faint); font-size: 12.5px; margin-top: 4px; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  body { font-size: 16px; }
}
