/* ==========================================================================
   ComputerHulp.tech
   Warm, calm, local. Display in Fraunces, text in Inter, both self-hosted,
   so no third-party font requests and nothing to explain on the privacy page.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:          #faf8f5;
  --bg-tint:     #f2eee8;
  --bg-deep:     #ece6dd;
  --surface:     #ffffff;
  --ink:         #15202b;
  --ink-2:       #53616f;
  --ink-3:       #7c8996;
  --line:        #e7dfd4;
  --line-strong: #d5c9ba;

  --red:       #c82d28;
  --red-deep:  #9d2320;
  --red-soft:  #fdeceb;
  --blue:      #183abd;
  --blue-soft: #eaeefb;
  --green:     #2b7a63;
  --green-soft:#e4f1ec;

  --radius-s: 12px;
  --radius:   18px;
  --radius-l: 26px;

  --shadow-s: 0 1px 2px rgba(21, 32, 43, .05), 0 2px 6px rgba(21, 32, 43, .04);
  --shadow-m: 0 2px 6px rgba(21, 32, 43, .06), 0 16px 34px rgba(21, 32, 43, .08);
  --shadow-l: 0 10px 24px rgba(21, 32, 43, .09), 0 36px 70px rgba(21, 32, 43, .13);

  --wrap: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --sans:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #11151a;
    --bg-tint:     #161b22;
    --bg-deep:     #1a2028;
    --surface:     #1a2027;
    --ink:         #edeff2;
    --ink-2:       #a6aeb9;
    --ink-3:       #7f8894;
    --line:        #262e37;
    --line-strong: #364049;

    --red:        #ff5e54;
    --red-deep:   #ff8279;
    --red-soft:   #2c1a19;
    --blue:       #7a96ff;
    --blue-soft:  #171d33;
    --green:      #5cc3a4;
    --green-soft: #15251f;

    --shadow-s: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow-m: 0 2px 6px rgba(0, 0, 0, .4), 0 16px 34px rgba(0, 0, 0, .45);
    --shadow-l: 0 10px 24px rgba(0, 0, 0, .45), 0 36px 70px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  --bg: #11151a; --bg-tint: #161b22; --bg-deep: #1a2028; --surface: #1a2027;
  --ink: #edeff2; --ink-2: #a6aeb9; --ink-3: #7f8894;
  --line: #262e37; --line-strong: #364049;
  --red: #ff5e54; --red-deep: #ff8279; --red-soft: #2c1a19;
  --blue: #7a96ff; --blue-soft: #171d33;
  --green: #5cc3a4; --green-soft: #15251f;
}

/* --------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; }

h1, .display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.02em;
  font-variation-settings: 'SOFT' 40, 'opsz' 100;
  text-wrap: balance;
}

h2.section-title {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.018em;
  font-variation-settings: 'SOFT' 40, 'opsz' 72;
  text-wrap: balance;
}

h3 { font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }

p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.muted { color: var(--ink-2); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--ink);
  padding: 12px 18px; border-radius: 0 0 var(--radius) 0; box-shadow: var(--shadow-m);
}
.skip:focus { left: 0; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 17px; height: 17px; }
.icon-lg { width: 30px; height: 30px; }

/* ------------------------------------------------------------- header --- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 93%, transparent); }

.header-inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 30px; width: auto; }
.brand-logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo-dark  { display: block; }
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-tint); border: 1px solid var(--line);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status.is-open { color: var(--green); background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 26%, transparent); }
.status.is-open .status-dot { background: var(--green); animation: breathe 2.8s var(--ease) infinite; }

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); }
  62%      { box-shadow: 0 0 0 7px transparent; }
}

.lang a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.lang a:hover { color: var(--ink); }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--sans); font-weight: 580; font-size: 15.5px; line-height: 1;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease),
              background .24s var(--ease), border-color .24s var(--ease);
}
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }

.btn-call {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--red) 26%, transparent),
              0 14px 30px color-mix(in srgb, var(--red) 22%, transparent);
}
.btn-call::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.28) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-call:hover::after { transform: translateX(120%); }
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 4px 12px color-mix(in srgb, var(--red) 32%, transparent), 0 20px 42px color-mix(in srgb, var(--red) 26%, transparent); }
.btn-call:active { transform: translateY(0); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-s); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink-3); box-shadow: var(--shadow-m); }

/* --------------------------------------------------------------- hero --- */

.hero { position: relative; padding: clamp(46px, 7vw, 92px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }

.hero-glow {
  position: absolute; inset: -34% -14% auto -14%; height: 700px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 76% 30%, color-mix(in srgb, var(--red)  15%, transparent), transparent 70%),
    radial-gradient(34% 44% at 20% 6%,  color-mix(in srgb, var(--blue) 13%, transparent), transparent 72%),
    radial-gradient(30% 38% at 50% 78%, color-mix(in srgb, var(--green) 9%, transparent), transparent 74%);
  filter: blur(10px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.09); }
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(30px, 5vw, 60px); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 520; color: var(--red-deep);
  background: var(--red-soft);
  border: 1px solid color-mix(in srgb, var(--red) 20%, transparent);
  padding: 7px 15px 7px 12px; border-radius: 999px; margin-bottom: 24px;
}

.hero h1 { font-size: clamp(38px, 5.6vw, 66px); max-width: 15ch; }

.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 50ch; margin-top: 22px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Wraps to two lines at narrow widths, so the icon hangs at the first line. */
.hero-note {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 24px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3);
  max-width: 46ch;
}
.hero-note .icon { margin-top: 2px; }

/* the calm line: noise on the left, settled on the right */

.hero-art { position: relative; }

.art-frame {
  position: relative;
  border-radius: var(--radius-l);
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--surface) 96%, var(--blue) 4%),
    var(--surface) 60%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  padding: 30px 28px 26px;
  overflow: hidden;
}
.art-frame::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 18% 0%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 70%);
  pointer-events: none;
}

.art-caption {
  position: relative;
  font-size: 13px; font-weight: 560; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}

.art-svg { position: relative; width: 100%; height: auto; overflow: visible; }

.art-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art-line-1 { stroke: var(--red);   opacity: .95; }
.art-line-2 { stroke: var(--blue);  opacity: .55; }
.art-line-3 { stroke: var(--green); opacity: .38; }

.art-draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s var(--ease) forwards; }
.art-draw-2 { animation-delay: .25s; }
.art-draw-3 { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.art-end { fill: var(--red); }
.art-end-halo { fill: none; stroke: var(--red); stroke-width: 1.4; opacity: 0; transform-origin: center; animation: endpulse 3.2s var(--ease) 2.2s infinite; }
@keyframes endpulse {
  0%   { opacity: .7; r: 7; }
  70%  { opacity: 0;  r: 20; }
  100% { opacity: 0;  r: 20; }
}

.art-chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 520; color: var(--ink-2);
  background: var(--bg-tint); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
}
.chip .icon { color: var(--red); }

/* ----------------------------------------------------------- sections --- */

.section { padding: clamp(60px, 8vw, 110px) 0; }

.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red-deep); margin-bottom: 16px;
}

.section-title { font-size: clamp(29px, 3.6vw, 43px); max-width: 17ch; }
.section .lead { margin-bottom: 8px; }

.services { background: var(--bg-tint); border-block: 1px solid var(--line); }

.card-grid { display: grid; gap: 18px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  position: relative; isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--red) 7%, transparent), transparent 55%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--red) 28%, var(--line)); }
.card:hover::before { opacity: 1; }

.card-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(150deg, var(--red-soft), color-mix(in srgb, var(--red-soft) 40%, var(--surface)));
  color: var(--red-deep);
  border: 1px solid color-mix(in srgb, var(--red) 16%, transparent);
  margin-bottom: 20px;
  transition: transform .3s var(--ease);
}
.card:hover .card-icon { transform: translateY(-2px) rotate(-3deg); }

.card h3 { font-size: 19.5px; margin-bottom: 10px; }
.card p  { color: var(--ink-2); font-size: 15.5px; }

/* --------------------------------------------------------------- steps -- */

.steps { display: grid; gap: 20px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.step {
  position: relative; padding: 30px 26px 28px;
  border-radius: var(--radius-l); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }

.step-n {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(150deg, var(--blue), color-mix(in srgb, var(--blue) 72%, #000));
  color: #fff; font-family: var(--display); font-size: 17px; font-weight: 600;
  margin-bottom: 18px; box-shadow: 0 6px 16px color-mix(in srgb, var(--blue) 26%, transparent);
}

.step h3 { font-size: 18.5px; margin-bottom: 9px; }
.step p  { color: var(--ink-2); font-size: 15.5px; }

/* ---------------------------------------------------------------- area -- */

.area { background: var(--bg-tint); border-block: 1px solid var(--line); }

.area-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(30px, 5vw, 58px); align-items: start; }

.towns { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 22px; }

.towns a {
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; box-shadow: var(--shadow-s);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.towns a:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: var(--shadow-m); }

.town-name  { font-weight: 560; font-size: 15.5px; }
.town-drive { font-size: 12.5px; color: var(--ink-3); }

.hours-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 26px; box-shadow: var(--shadow-m); }
.hours-title { display: flex; align-items: center; gap: 9px; font-size: 18px; margin-bottom: 18px; font-family: var(--display); font-weight: 600; }

.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 10px 0; text-align: left; font-weight: 450; }
.hours td { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours tr + tr { border-top: 1px solid var(--line); }
.hours .is-today th, .hours .is-today td { color: var(--red-deep); font-weight: 620; }

.hours-note { font-size: 13.5px; margin-top: 18px; }

/* ------------------------------------------------------------- contact -- */

.contact-band { position: relative; text-align: center; overflow: hidden; }
.contact-band::before {
  content: ''; position: absolute; inset: auto -10% -60% -10%; height: 420px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--red) 11%, transparent), transparent 70%);
}
.contact-inner { position: relative; }
.contact-inner .section-title, .contact-inner .lead { margin-inline: auto; }
.contact-inner .lead { margin-bottom: 0; }

.contact-actions { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.contact-tile {
  display: grid; justify-items: center; gap: 4px;
  padding: 28px 22px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; box-shadow: var(--shadow-s);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.contact-tile:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: var(--shadow-m); }
.contact-tile .icon { color: var(--red); margin-bottom: 10px; width: 26px; height: 26px; }

.tile-label { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.tile-value { font-weight: 580; font-size: 17px; }

/* -------------------------------------------------------------- footer -- */

.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 76px) 0 0; }

.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }

.footer-logo { height: 26px; width: auto; margin-bottom: 16px; }
.footer-col p { font-size: 14.5px; max-width: 34ch; }

.footer-head { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }

.footer-list { font-size: 15px; color: var(--ink-2); font-style: normal; }
.footer-list li + li { margin-top: 9px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--ink); text-decoration: underline; }

.footer-base { border-top: 1px solid var(--line); margin-top: 44px; padding-block: 24px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.footer-base p { font-size: 14px; }

/* ------------------------------------------------------- sticky callbar -- */
/* Phones only. On desktop the header already carries the number. */

.callbar { display: none; }

@media (max-width: 720px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 10px;
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 93%, transparent);
    backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--line);
    transform: translateY(115%);
    transition: transform .36s var(--ease);
  }
  .callbar.is-visible { transform: translateY(0); }
  .callbar .btn { flex: 1; }
}

/* -------------------------------------------------------------- reveal -- */

[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .66s var(--ease), transform .66s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 80ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .art-draw { stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art   { max-width: 520px; }
  .area-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .status { display: none; }
  .header-actions .btn-call span { display: none; }
  .header-actions .btn-call { padding: 11px; }
  .brand-logo { height: 26px; }
  .hero h1 { max-width: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-art { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  main { padding-bottom: 78px; }
}
