/* Retford Computers — mobile-first */

:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #475569;
  --primary: #0f2744;
  --primary-light: #1a3a5c;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --whatsapp: #25d366;
  --whatsapp-border: #128c7e;
  --border: #e2e8f0;
  --win10-bg: #ecfdf5;
  --win10-border: #0d9488;
  --tap-min: 48px;
  --space-touch: 0.75rem;
  --font-body: 1rem;
  --sticky-bar-h: 3.5rem;
  --container: 72rem;
  --gutter: 1rem;
  --radius: 0.5rem;
  --shadow: 0 1px 3px rgba(15, 39, 68, 0.08);
  --focus-ring: 0 0 0 3px rgba(13, 148, 136, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 480px) {
  .container {
    padding-inline: 1.25rem;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.1);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding-block: 0.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--primary);
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.logo:hover {
  color: var(--accent-dark);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--primary);
  border-radius: 1px;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0.75rem var(--gutter);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--bg);
  color: var(--primary);
}

@media (min-width: 768px) {
  .site-nav {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    padding: 0;
  }

  .site-nav a {
    min-height: auto;
    padding: 0.5rem 0;
  }

  .logo {
    flex: 0 1 auto;
  }

  .header-inner {
    flex-wrap: nowrap;
  }
}

.btn--header {
  display: none;
  flex-shrink: 0;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .btn--header {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.btn:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--call {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media (hover: hover) {
  .btn--call:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
  }
}

.btn--whatsapp {
  background: var(--surface);
  color: var(--text);
  border-color: var(--whatsapp-border);
}

@media (hover: hover) {
  .btn--whatsapp:hover {
    background: #f0fdf4;
    color: var(--text);
  }
}

.btn--reviews {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

@media (hover: hover) {
  .btn--reviews:hover {
    background: var(--bg);
    color: var(--primary);
  }
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-touch);
  margin-block: 1.25rem;
}

.cta-group .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .cta-group--row,
  .contact .cta-group,
  .hero .cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-group .btn {
    width: auto;
    min-width: 12rem;
    flex: 0 1 auto;
  }
}

/* Hero */
.hero {
  padding-block: 2rem 1.5rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.2;
  color: var(--primary);
}

.hero-sub {
  margin: 0 0 1rem;
  font-size: clamp(1.0625rem, 3vw, 1.25rem);
  font-weight: 600;
  color: var(--text-muted);
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 40rem;
}

.hero-next {
  margin: 0 0 0.75rem;
  font-size: var(--font-body);
  color: var(--text-muted);
  max-width: 40rem;
}

.hero-trust {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.hero-detail {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  text-decoration: none;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--accent);
  background: var(--win10-bg);
}

@media (min-width: 1024px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .hero-inner .cta-group,
  .hero-inner .hero-next,
  .hero-inner .hero-trust {
    grid-column: 1;
  }

  .hero-detail,
  .chips {
    grid-column: 1 / -1;
  }
}

/* Trust strip */
.trust-strip {
  background: var(--primary);
  color: #f1f5f9;
  padding-block: 1.25rem;
}

.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trust-strip li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.trust-strip li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.trust-strip a {
  color: #fff;
  font-weight: 600;
}

.trust-strip a:hover {
  color: #99f6e4;
}

@media (min-width: 768px) {
  .trust-strip ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }

  .trust-strip li {
    flex: 1 1 45%;
  }
}

@media (min-width: 1024px) {
  .trust-strip li {
    flex: 1 1 auto;
  }
}

/* Sections */
.section {
  padding-block: 2.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  line-height: 1.3;
  color: var(--primary);
}

.section-intro {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1rem;
}

.areas-seo {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Services */
.service-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--primary);
}

.service-helps {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.service-card ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  flex: 1;
}

.service-card li {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.service-link {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
}

.cta-group--section {
  margin-top: 0;
}

/* Windows 10 */
.windows-highlight {
  background: var(--win10-bg);
  border-block: 1px solid #a7f3d0;
}

.windows-highlight .container {
  border-left: 4px solid var(--win10-border);
  padding-left: calc(var(--gutter) + 0.5rem);
}

.win10-urgency {
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.windows-highlight p {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.win10-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  max-width: 40rem;
}

.win10-list li {
  margin-bottom: 0.35rem;
}

.win10-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Process */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  max-width: 40rem;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.5rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.9375rem;
  top: 2rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  color: var(--primary);
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.process-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 40rem;
}

@media (min-width: 1024px) {
  .steps {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }

  .steps li {
    padding-left: 0;
    padding-top: 3rem;
    text-align: center;
  }

  .steps li::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .steps li::after {
    display: none;
  }
}

/* Why choose */
.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
}

.why-grid li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Reviews */
.reviews {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.reviews-inner {
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}

.rating-display {
  margin-bottom: 1rem;
}

.rating-score {
  display: block;
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stars {
  display: block;
  font-size: 1.5rem;
  color: #f59e0b;
  letter-spacing: 0.15em;
  margin: 0.25rem 0;
}

.rating-label {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.reviews p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.reviews-honest {
  font-size: 0.9375rem;
  font-style: italic;
}

.reviews .btn--reviews {
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
}

/* FAQs */
.faq-list {
  max-width: 40rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, var(--bg) 0%, #eef2f7 100%);
}

.contact-sub {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.0625rem;
  color: var(--primary);
}

.contact-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  max-width: 40rem;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.contact-phone {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-phone a {
  color: var(--primary);
  text-decoration: none;
}

/* Footer */
.site-footer {
  padding-block: 2rem;
  background: var(--primary);
  color: #e2e8f0;
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.0625rem !important;
  color: #fff;
}

/* Mobile sticky bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem var(--gutter);
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  min-height: calc(var(--sticky-bar-h) + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(15, 39, 68, 0.1);
}

.mobile-bar .btn {
  flex: 1;
  min-height: var(--tap-min);
  padding: 0.75rem 0.5rem;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}

/* Print */
@media print {
  .site-header,
  .mobile-bar,
  .nav-toggle {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}
