/* Martin’s Computer Services — mobile-first static site */
:root {
  --navy: #0b3d5c;
  --navy-deep: #072a40;
  --navy-soft: #134a6b;
  --sky: #7ec8e3;
  --sky-soft: #e8f6fb;
  --accent: #f4a261;
  --accent-hover: #e08e4a;
  --cream: #f7f5f1;
  --white: #ffffff;
  --text: #1a2330;
  --text-muted: #4a5568;
  --border: #d5dde5;
  --shadow: 0 8px 28px rgba(11, 61, 92, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
  --header-h: 68px;
  --sticky-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy-soft);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  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: block;
  padding: 0.95rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
  min-height: 48px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--sky-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--sky-soft);
  color: var(--navy);
}

.btn-accent {
  background: var(--accent);
  color: var(--navy-deep);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-icon {
  font-style: normal;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(126, 200, 227, 0.35), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  padding: 2.25rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
}

.lead {
  margin: 0 0 1.35rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-points li::before {
  content: "✓";
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
}

.hero-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.hero-card-text {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-card .btn {
  margin-bottom: 0.65rem;
}

.hero-card .btn-primary {
  background: var(--accent);
  color: var(--navy-deep);
}

.hero-card .btn-primary:hover {
  background: var(--accent-hover);
  color: var(--navy-deep);
}

.hero-card .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero-card .btn-accent {
  background: var(--sky);
  color: var(--navy-deep);
}

.hero-card-meta {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--white);
}

.section-remote {
  background: linear-gradient(180deg, var(--sky-soft), var(--cream));
}

.section-contact {
  background: var(--white);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 4.5vw, 2.1rem);
  line-height: 1.2;
  color: var(--navy);
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(11, 61, 92, 0.04);
}

.remote-grid,
.services-grid,
.testimonials-grid {
  display: grid;
  gap: 1rem;
}

.remote-card h3,
.service-card h3,
.about-card h3,
.form-title {
  margin: 0 0 0.65rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.highlight-card {
  background: var(--navy);
  color: var(--white);
  border-color: transparent;
}

.highlight-card h3 {
  color: var(--white);
}

.highlight-card p {
  color: rgba(255, 255, 255, 0.9);
}

.highlight-card .btn {
  margin-top: 0.55rem;
}

.highlight-card .btn-primary {
  background: var(--accent);
  color: var(--navy-deep);
}

.highlight-card .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.highlight-card .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.checklist,
.steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.highlight-card .checklist,
.highlight-card .steps {
  color: rgba(255, 255, 255, 0.9);
}

.checklist li,
.steps li {
  margin-bottom: 0.45rem;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

.highlight-card .checklist li::before {
  color: var(--sky);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.about-facts {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.about-facts a {
  font-weight: 600;
}

.testimonial {
  margin: 0;
}

.testimonial p {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  color: var(--text);
}

.testimonial footer {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.contact-address {
  font-style: normal;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.form-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--sky-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: var(--white);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy);
  outline: 3px solid rgba(126, 200, 227, 0.45);
  outline-offset: 0;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.95rem;
  color: var(--navy);
}

.form-status.is-error {
  color: #9b1c1c;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 2rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand strong {
  color: var(--white);
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Sticky mobile CTAs */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(11, 61, 92, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sticky-h);
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
}

.sticky-call {
  background: var(--navy);
  color: var(--white);
}

.sticky-email {
  background: var(--sky-soft);
  color: var(--navy);
}

.sticky-remote {
  background: var(--accent);
  color: var(--navy-deep);
}

.sticky-btn:hover {
  filter: brightness(0.96);
  color: inherit;
}


/* Remote download (single Splashtop SOS link) */
.remote-download-wrap {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  text-align: center;
}

.btn-download-sos {
  width: 100%;
  max-width: 28rem;
  min-height: 58px;
  font-size: 1.12rem;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.btn-download-sos:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.download-hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.download-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  min-height: 88px;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
  color: inherit;
  box-shadow: 0 12px 32px rgba(11, 61, 92, 0.16);
}

.download-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--sky-soft);
  color: var(--navy);
  flex-shrink: 0;
}

.download-mac .download-icon {
  background: #111;
  color: #fff;
  font-size: 1.9rem;
}

.download-win .download-icon {
  background: #0078d4;
  color: #fff;
  font-size: 1.55rem;
}

.download-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}

.download-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.download-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.download-file {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
}

.download-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.download-card:hover .download-cta {
  background: var(--navy-deep);
}

.remote-layout {
  display: grid;
  gap: 1rem;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.how-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-text {
  color: var(--text-muted);
  padding-top: 0.2rem;
}

.step-text strong {
  color: var(--text);
}

.remote-friendly-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.remote-contact-card .btn {
  margin-top: 0.55rem;
}

@media (min-width: 640px) {
  .remote-layout {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }
}

@media (min-width: 900px) {
  .download-card {
    padding: 1.35rem 1.4rem;
  }

  .download-title {
    font-size: 1.45rem;
  }
}

/* Tablet+ */
@media (min-width: 640px) {
  .logo-name {
    font-size: 1.05rem;
    white-space: normal;
  }

  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .remote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .remote-card.highlight-card {
    grid-column: 1 / -1;
  }

  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    gap: 0.15rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1.4fr 0.9fr;
    align-items: center;
    gap: 2rem;
  }

  .remote-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .remote-card.highlight-card {
    grid-column: auto;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }

  /* Keep sticky on desktop too for strong CTAs, but slightly softer */
  .sticky-cta {
    max-width: 420px;
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}


.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.hero-brand {
  margin: 1.25rem 0 0.25rem;
}

.hero-logo {
  width: min(200px, 55vw);
  height: auto;
  border-radius: 50%;
  background: #000;
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .hero-grid {
    align-items: center;
  }
  .hero-brand {
    margin-top: 1.5rem;
  }
  .hero-logo {
    width: 220px;
  }
}
