/* TLC Tech Care site styles. Every text pair below was checked with computed WCAG 2 contrast;
   the numbers live in TLC_SITE_HANDOFF.md. Light values come from the Heart Hug logo kit. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("fonts/nunito-latin-variable.woff2") format("woff2-variations"),
       url("fonts/nunito-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --ground: #FDF4EA;
  --card: #FFFDF8;
  --ink: #2B1A14;
  --muted: #6B4A3E;
  --line: #F0DFCF;
  --action: #B23A1E;
  --action-hover: #8C2E16;
  --on-action: #FFFDF8;
  --peach: #FDEBDD;
  --band: #2B1A14;
  --band-text: #FFFDF8;
  --band-muted: #E9D8CC;
  --band-accent: #FFA58F;
  --band-line: #2B1A14;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1C110D;
    --card: #2A1A14;
    --ink: #FDF4EA;
    --muted: #D2BCAF;
    --line: #4A3329;
    --action: #FF9479;
    --action-hover: #FFB3A1;
    --on-action: #1C110D;
    --band: #2A1A14;
    --band-text: #FDF4EA;
    --band-muted: #D2BCAF;
    --band-accent: #FF9479;
    --band-line: #4A3329;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: var(--action); }
a:hover { color: var(--action-hover); }
a:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

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

.skip { position: absolute; left: 16px; top: -60px; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* Opening soon banner */
.banner { background: var(--action); color: var(--on-action); text-align: center; padding: 12px 16px; }
.banner p { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: 0.02em; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-grow: 1; }
.brand:hover { color: var(--ink); }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.brand-tag { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--action); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 17px; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--action); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; font-size: 19px; font-weight: 800; text-decoration: none; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn-secondary { background: var(--card); color: var(--ink); border: 2px solid var(--ink); }
.btn-secondary:hover { color: var(--ink); background: var(--peach); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 17px; }
.nav .btn-small { color: var(--on-action); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn svg { flex-shrink: 0; }

.eyebrow { margin: 0 0 16px; font-size: 15px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--action); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.hero h1 { margin: 0 0 20px; font-size: 64px; line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; }
.lede { margin: 0 0 32px; font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.hero-art { flex: 1 1 360px; display: flex; justify-content: center; }
.halo { width: 420px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--peach); display: flex; align-items: center; justify-content: center; }
.halo img { width: 82%; }

/* Visit strip */
.visit { padding-bottom: 72px; }
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.visit-item { padding: 28px 32px; display: flex; gap: 16px; }
.visit-item + .visit-item { border-left: 1px solid var(--line); }
.visit-item svg { flex-shrink: 0; margin-top: 2px; color: var(--action); }
.visit-item h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.visit-item .big { margin: 0 0 8px; font-size: 19px; line-height: 1.45; font-weight: 700; }
.visit-item .big a { color: var(--ink); text-decoration: none; }
.visit-item .note { margin: 0; font-size: 17px; line-height: 1.45; color: var(--muted); }
.visit-item > div > a { font-size: 17px; font-weight: 700; }

/* Device cards */
.fix { padding-bottom: 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.01em; }
.section-head a { font-size: 18px; font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.card h3 { margin: 16px 0 8px; font-size: 23px; font-weight: 800; }
.card p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.tile { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #FDEBDD; }
.tile svg { width: 54px; height: 54px; }

/* Dark band */
.band { background: var(--band); color: var(--band-text); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; padding-top: 80px; padding-bottom: 80px; }
.band-copy { flex: 999 1 520px; min-width: 0; }
.band .eyebrow { color: var(--band-accent); margin-bottom: 14px; }
.band h2 { margin: 0 0 20px; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.band p { margin: 0; font-size: 20px; line-height: 1.6; color: var(--band-muted); max-width: 36em; }
.checks { flex: 1 1 340px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.5; }
.checks li { display: flex; gap: 14px; }
.checks svg { flex-shrink: 0; margin-top: 3px; color: var(--band-accent); }
.plain-list { flex: 1 1 340px; margin: 0; padding: 0 0 0 22px; font-size: 18px; line-height: 1.9; }

/* Repairs page */
.page-head { padding-top: 64px; padding-bottom: 40px; }
.page-head h1 { margin: 0 0 16px; font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { margin: 0; font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 40em; }
.repair-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 64px; }
.repair-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-align: center; }
.repair-card .tile { width: 64px; height: 64px; }
.repair-card .tile svg { width: 48px; height: 48px; }
.repair-card h2 { margin: 12px 0 14px; font-size: 30px; font-weight: 800; }
.repair-card ul { margin: 0; padding: 0; list-style: none; font-size: 18px; line-height: 1.9; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 80px; }
.cta h2 { margin: 0 0 8px; font-size: 32px; font-weight: 800; }
.cta p { margin: 0; font-size: 19px; color: var(--muted); }

/* 404 */
.lost { text-align: center; padding-top: 80px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; }
.lost img { width: 180px; height: 180px; margin-bottom: 24px; }
.lost h1 { margin: 0 0 12px; font-size: 44px; font-weight: 800; }
.lost p { margin: 0 0 28px; font-size: 19px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 36px; padding-bottom: 36px; font-size: 17px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.foot-brand img { width: 32px; height: 32px; }
.tlc-note { margin: 0; flex-basis: 100%; font-size: 15px; }

/* Phone widths */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .visit-item + .visit-item { border-left: 0; border-top: 1px solid var(--line); }
  .repair-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .banner { padding: 10px 16px; }
  .banner p { font-size: 16px; letter-spacing: 0; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 20px; }
  .brand-tag { font-size: 12px; letter-spacing: 0.08em; }
  .nav { gap: 20px; width: 100%; }
  .nav .btn-small { margin-left: auto; }
  .hero { padding-top: 32px; padding-bottom: 28px; gap: 24px; flex-direction: column-reverse; align-items: stretch; }
  .hero-copy, .hero-art { flex: none; }
  .halo { width: 200px; }
  .hero h1 { font-size: 40px; line-height: 1.06; margin-bottom: 14px; }
  .lede { font-size: 18px; margin-bottom: 24px; }
  .btn-row { flex-direction: column; gap: 12px; }
  .btn { font-size: 18px; }
  .eyebrow { font-size: 14px; letter-spacing: 0.12em; margin-bottom: 10px; }
  .visit { padding-bottom: 40px; }
  .visit-item { padding: 20px; }
  .fix { padding-bottom: 48px; }
  .section-head h2 { font-size: 30px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { padding: 20px; }
  .card h3 { margin-top: 10px; font-size: 20px; }
  .card p { font-size: 16px; }
  .tile { width: 56px; height: 56px; }
  .tile svg { width: 42px; height: 42px; }
  .band .wrap { padding-top: 44px; padding-bottom: 44px; gap: 24px; }
  .band h2 { font-size: 32px; }
  .band p { font-size: 17px; }
  .checks { font-size: 16px; gap: 14px; }
  .page-head { padding-top: 36px; padding-bottom: 28px; }
  .page-head h1 { font-size: 40px; }
  .page-head p { font-size: 18px; }
  .repair-card { padding: 24px; }
  .repair-card h2 { font-size: 26px; }
  .cta { padding-top: 44px; padding-bottom: 56px; }
  .cta h2 { font-size: 26px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 28px; padding-bottom: 28px; font-size: 16px; }
}
