/* Tech Rescue — shared styles. Plain CSS, no build step. */

:root {
  --ink: #17212b;
  --ink-soft: #3d4a57;
  --muted: #56636f;
  --bg: #fffdf8;
  --bg-warm: #fbf4e8;
  --card: #ffffff;
  --line: #e4ddcf;
  --brand: #0b5c57;        /* deep teal: 7.6:1 on white */
  --brand-dark: #08443f;
  --brand-tint: #e3f1ef;
  --accent: #f5b335;       /* warm amber, used with dark text */
  --accent-dark: #c98a12;
  --danger: #a3261b;
  --ok: #1f6b3a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 33, 43, 0.06), 0 6px 20px rgba(23, 33, 43, 0.06);
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1120px;
}

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

html {
  font-size: 112.5%; /* 18px base */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

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

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 92, 87, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-call {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent-dark);
}

.btn-call:hover {
  background: #f8c25a;
  color: var(--ink);
}

.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand-tint);
}

.btn-big {
  min-height: 64px;
  font-size: 1.15rem;
  padding: 16px 32px;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--ink);
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo b {
  color: var(--brand);
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a:hover {
  background: var(--bg-warm);
  color: var(--ink);
}

.header-call {
  margin-left: 8px;
  min-height: 48px;
  padding: 10px 18px;
  font-size: 1rem;
}

@media (max-width: 860px) {
  .main-nav .nav-link {
    display: none;
  }
  .header-call {
    display: none;
  }
}

/* ---------- Mobile sticky action bar (always visible on phones) ---------- */

.mobile-bar {
  display: none;
}

@media (max-width: 860px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(23, 33, 43, 0.08);
  }
  .mobile-bar .btn {
    min-height: 56px;
    padding: 10px 12px;
    font-size: 1.05rem;
  }
  body {
    padding-bottom: 92px;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(1200px 500px at 85% -10%, #fde9c2 0%, rgba(253, 233, 194, 0) 60%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 18px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 20px;
  height: 20px;
  color: var(--ok);
}

.hero-art {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-art svg {
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .hero {
    padding: 36px 0 44px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-art {
    max-width: 420px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

/* Keep headings visible below the sticky header when jumping to #anchors */
[id] {
  scroll-margin-top: 84px;
}

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

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

@media (max-width: 860px) {
  .section {
    padding: 52px 0;
  }
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 6px;
}

.card p {
  color: var(--ink-soft);
  margin: 0;
}

/* Services */

.service {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
}

.icon svg {
  width: 30px;
  height: 30px;
}

/* Steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding-top: 72px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
}

/* Pricing */

.price-card {
  border: 2px solid var(--brand);
  position: relative;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin: 10px 0 6px;
}

.price small {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.ticks li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.ticks svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--ok);
  margin-top: 3px;
}

.guarantee {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 18px;
}

.guarantee h3 {
  color: #fff;
  margin: 0 0 4px;
}

.guarantee p {
  margin: 0;
  color: #dfe6ec;
}

.guarantee .seal {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.1;
}

/* Parent banner */

.parent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .parent {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}

/* Area */

.area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
}

.area li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Reviews placeholder */

.review-slot {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
  text-align: center;
  color: var(--muted);
}

/* FAQ */

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  font-size: 1.08rem;
  position: relative;
  min-height: 56px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--brand);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > div {
  padding: 0 22px 18px;
  color: var(--ink-soft);
}

/* CTA band */

.cta-band {
  background: var(--brand);
  color: #fff;
  border-radius: 24px;
  padding: 44px;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #d9ecea;
  font-size: 1.1rem;
}

.cta-band .btn-outline {
  border-color: #fff;
}

/* ---------- Forms ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .form-card {
    padding: 22px 18px;
  }
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 26px;
}

legend {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 14px;
  padding: 0;
}

.field {
  margin-bottom: 20px;
}

.field label,
.field .label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.req {
  color: var(--danger);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #b9b2a4;
  border-radius: 10px;
  padding: 14px 14px;
  min-height: 56px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 92, 87, 0.18);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

.choices {
  display: grid;
  gap: 10px;
}

.choices.inline {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #d6cfc1;
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 56px;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
}

.choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.choice input {
  width: 24px;
  height: 24px;
  accent-color: var(--brand);
  flex: none;
  margin: 0;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.consent input {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex: none;
}

.notice {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
  border: 2px solid;
}

.notice[hidden] {
  display: none;
}

.notice-info {
  background: #fff6e1;
  border-color: var(--accent-dark);
  color: #4a3504;
}

.notice-error {
  background: #fdeceb;
  border-color: var(--danger);
  color: #5b130d;
}

.notice-ok {
  background: #e7f4ec;
  border-color: var(--ok);
  color: #123d22;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  background: var(--bg-warm);
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 60ch;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 1.6em;
}

.prose li {
  margin-bottom: 0.4em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #d6dde3;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo b {
  color: var(--accent);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #33414e;
  margin-top: 32px;
  padding-top: 18px;
  font-size: 0.9rem;
  color: #aeb9c3;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
