/* ===== Base / tokens ===== */
:root {
  /* Brand: Cooper Computers */
  --brand-teal: #1F5A6E;
  --brand-teal-dark: #174656;
  --brand-dark: #0E3A47;
  --coral: #F0584A;          /* accent: large/bold text, graphics */
  --coral-hover: #DC4A3C;
  --coral-dark: #C63D2F;     /* coral for small text on white (5.1:1) */
  --coral-50: #FFF1EF;
  /* legacy names mapped to brand */
  --blue-900: var(--brand-dark);
  --blue-700: var(--brand-teal);
  --blue-600: #2A7089;
  --teal-700: var(--brand-teal);
  --teal-600: #2A7089;
  --teal-50: #EEF6F8;
  --ink: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f3f8fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; color: var(--brand-teal); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--blue-900); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ===== Placeholders (intentionally loud) ===== */
.placeholder {
  background: #fff3a3;
  color: #5c4400;
  border: 1.5px dashed #c98a00;
  border-radius: 4px;
  padding: 0 .3em;
  font-weight: 600;
  white-space: normal;
}
.placeholder-on-dark { background: #fde68a; color: #422c00; border-color: #fbbf24; }
.placeholder-note { white-space: nowrap; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-left: .25rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 6px 16px rgba(31, 90, 110, .25); }
.btn-primary:hover { background: #174656; }
.btn-accent { background: var(--coral); color: #fff; font-size: 1.2rem; font-weight: 800; box-shadow: 0 6px 16px rgba(240, 88, 74, .3); }
.btn-accent:hover { background: var(--coral-hover); }
.btn-secondary { background: #fff; color: var(--teal-700); border-color: var(--teal-700); }
.btn-secondary:hover { background: var(--teal-50); }
.btn-small { padding: .45rem 1rem; background: var(--teal-700); color: #fff !important; }
.btn-small:hover { background: #174656; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--blue-900); }
.brand-logo { display: block; height: 52px; width: auto; }
.footer-logo { display: block; height: 84px; width: auto; margin-bottom: .75rem; }
.brand-name { font-weight: 800; font-size: 1.1rem; }
.site-nav ul { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--teal-700); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .4rem; color: var(--blue-900); cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1000px 400px at 90% -10%, rgba(31, 90, 110, .12), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(240, 88, 74, .08), transparent 60%),
    linear-gradient(180deg, #f5fafb, #ffffff);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-700); background: var(--teal-50); border: 1px solid #cfe3e9;
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-right: .5rem; vertical-align: middle; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(31, 90, 110, .15)); }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 1.5rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card-dashed { border-style: dashed; border-color: #b6c3d1; box-shadow: none; background: #fbfdff; }

.icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-50), #fdeeec); color: var(--teal-700); margin-bottom: 1rem;
}
.icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 44px; height: 44px; flex: none; margin: 0; }
.icon-sm svg { width: 22px; height: 22px; }

/* Services */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { display: flex; flex-direction: column; }
.service-card p { color: var(--muted); }
.service-card .price { margin-top: auto; margin-bottom: 0; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.service-card .price a { text-decoration: none; font-weight: 700; }

.price-amount { font-size: 1.25rem; font-weight: 800; color: var(--brand-teal); margin-right: .15rem; }
.price-sub { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-top: .1rem; }
.pricing-note a { font-weight: 700; color: var(--brand-teal); white-space: nowrap; }

/* Pricing */
.price-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.price-card { padding: 1.4rem 1.6rem; }
.price-card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-teal); padding-bottom: .6rem; border-bottom: 2px solid var(--coral); display: inline-block; margin-bottom: .4rem; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.pl-name { font-weight: 600; color: var(--ink); }
.pl-name small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: .1rem; }
.pl-price { flex: none; text-align: right; font-weight: 800; font-size: 1.1rem; color: var(--brand-teal); max-width: 45%; }
.pl-price small { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); }
.price-footnote { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }

/* Steps */
.steps { grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: none; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem 1.6rem; border: 1px solid var(--line); }
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-700); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}

/* Why */
.why-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-item h3 { margin-bottom: .25rem; }
.why-item p { color: var(--muted); margin: 0; }

/* Service area */
.area-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.area-inner h2 { margin-bottom: .4rem; }

.area-lead { font-size: 1.2rem; font-weight: 700; color: var(--blue-900); }
.town-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.town-list li { background: #fff; border: 1px solid #cfe3e9; color: var(--teal-700); font-weight: 600; font-size: .92rem; padding: .3rem .8rem; border-radius: 999px; }
.options-title { margin-top: .5rem; }
.option-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.option-list li::marker { color: var(--teal-700); }
.area-map { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.area-map svg { display: block; width: 100%; height: auto; }
.area-map figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.map-town circle { fill: #1F5A6E; stroke: #fff; stroke-width: 2; }
.map-town text { font: 600 16px var(--font); fill: #1f2937; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.map-home text { font: 800 19px var(--font); fill: #0E3A47; paint-order: stroke; stroke: #eaf3f6; stroke-width: 4px; }
.map-state { font: 700 13px var(--font); fill: #64748b; letter-spacing: .08em; }
.map-ring { font: 700 12px var(--font); fill: #1F5A6E; }
.map-compass text { font: 700 12px var(--font); fill: #0E3A47; }

.town-list li.visit-only { border-color: #f5b3ab; background: var(--coral-50); color: var(--coral-dark); }
.town-list .tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-left: .25rem; }
.map-town circle.visit-only-dot, .map-legend circle.visit-only-dot { fill: #fff; stroke: #F0584A; stroke-width: 3; }
.map-legend circle { fill: #1F5A6E; stroke: #fff; stroke-width: 2; }
.map-legend text { font: 600 16px var(--font); fill: #374151; }

.pricing-note {
  margin: 1.5rem 0 0; padding: .9rem 1.2rem; border-radius: var(--radius);
  background: var(--teal-50); border: 1px solid #cfe3e9; color: var(--ink);
}
.pricing-note { border-left: 4px solid var(--coral); }
.pricing-note strong { color: var(--coral-dark); }

/* Services CTA strip */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
  margin-top: 1.5rem; padding: 1.1rem 1.4rem; border: 1.5px dashed #b6c3d1; border-radius: var(--radius); background: #fbfdff;
}
.cta-strip p { margin: 0; color: var(--muted); }
.cta-strip strong { color: var(--blue-900); }
.btn-small-outline { padding: .55rem 1.1rem; flex: none; }

/* Hero facts */
.hero-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--ink); font-weight: 600; font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.contact-list li { padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: .35rem; }
label { font-weight: 600; font-size: .95rem; }
input, select, textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: .7rem .85rem; border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal-600); }
textarea { resize: vertical; }
.form-note { margin: 0; font-size: .88rem; color: var(--muted); text-align: center; }
.form-note-active { color: #5c4400; background: #fff3a3; border: 1.5px dashed #c98a00; border-radius: 8px; padding: .6rem; }

/* Footer */
.site-footer { background: var(--blue-900); color: #cbd5e1; padding: 3rem 0 1.5rem; }
.site-footer p { margin: 0 0 .4rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-contact { text-align: right; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.contact-list a { font-weight: 600; word-break: break-word; }
.fb-link { display: inline-flex; align-items: center; gap: .4rem; vertical-align: bottom; }
.fb-icon { flex: none; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--brand-teal); fill: #fff; }
.fb-link:hover .fb-icon { background: var(--coral); }
.footer-social { margin-top: .9rem !important; display: flex; justify-content: flex-end; }
.site-footer a.footer-fb { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background .15s ease; }
.site-footer a.footer-fb svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer a.footer-fb:hover, .site-footer a.footer-fb:focus-visible { background: var(--coral); text-decoration: none; }
.call-short { display: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #94a3b8; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; }
  .site-nav li a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn-small { margin-top: .8rem; width: 100%; padding: .75rem; }
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; }
}

@media (max-width: 760px) {

  .brand-logo { height: 40px; }
  .footer-logo { height: 64px; }
  .hero-art { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .services-grid, .steps, .why-grid, .area-inner, .contact-inner, .price-columns { grid-template-columns: 1fr; }
  .area-inner, .contact-inner { gap: 2rem; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-social { justify-content: flex-start; }
}

@media (max-width: 340px) {
  .call-full { display: none; }
  .call-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ===== Chat widget ("Message us") ===== */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-launcher {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.25rem .85rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1rem; color: #fff;
  background: var(--brand-teal); box-shadow: 0 10px 24px rgba(14, 58, 71, .3), 0 0 0 3px #fff;
  transition: transform .15s ease, background .15s ease, opacity .2s ease, visibility .2s;
}
.chat-launcher::after { content: ""; position: absolute; top: 4px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); border: 2px solid #fff; }
.chat-launcher { position: relative; }
.chat-launcher:hover { background: var(--brand-teal-dark); transform: translateY(-2px); }
.chat-open .chat-launcher::after { display: none; }
.chat-dodge .chat-launcher { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); }

.chat-panel {
  position: absolute; right: 0; bottom: calc(100% + 14px);
  width: min(370px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 110px)); overflow-y: auto;
  background: #fff; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(14, 58, 71, .28);
}
.chat-panel[hidden] { display: none; }
.chat-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
  padding: 1rem 1rem .9rem 1.2rem; background: var(--brand-teal); color: #fff; border-bottom: 4px solid var(--coral);
}
.chat-head h2 { color: #fff; font-size: 1.1rem; margin: 0 0 .15rem; letter-spacing: 0; }
.chat-head p { margin: 0; font-size: .88rem; color: #d7e9ef; }
.chat-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.chat-close:hover { background: rgba(255, 255, 255, .26); }
.chat-body { padding: 1rem 1.2rem 1.1rem; }
.chat-greeting { margin: 0 0 .9rem; padding: .7rem .9rem; background: var(--teal-50); border-radius: 14px 14px 14px 4px; font-size: .95rem; color: var(--ink); }
.chat-form { display: grid; gap: .75rem; }
.chat-form[hidden] { display: none; }
.chat-field { display: grid; gap: .25rem; }
.chat-field label { font-size: .9rem; }
.chat-field input, .chat-field textarea { padding: .6rem .75rem; font-size: 1rem; }
.chat-field [aria-invalid="true"] { border-color: var(--coral-dark); background: var(--coral-50); }
.chat-contact { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.chat-contact legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: .1rem; }
.chat-hint { margin: -.2rem 0 0; font-size: .85rem; color: var(--muted); }
.chat-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.chat-error { margin: 0; color: var(--coral-dark); font-weight: 600; font-size: .92rem; }
.chat-error:empty { display: none; }
.chat-send { font-size: 1.05rem; padding: .8rem 1rem; }
.chat-send:disabled { opacity: .7; cursor: progress; transform: none; }
.chat-foot { margin: 0; text-align: center; font-size: .88rem; color: var(--muted); }
.chat-foot a { font-weight: 700; }
.chat-success { text-align: center; padding: .75rem .25rem .25rem; }
.chat-success[hidden] { display: none; }
.chat-success-icon { width: 56px; height: 56px; margin: 0 auto .75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--coral); color: #fff; }
.chat-success-text { font-size: 1.05rem; font-weight: 700; color: var(--brand-teal); outline: none; }

@media (max-width: 760px) {
  .chat { right: 14px; bottom: 14px; }
  .chat-launcher { padding: 0; width: 60px; height: 60px; justify-content: center; }
  .chat-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chat-launcher svg { width: 28px; height: 28px; }
  .chat-open .chat-launcher { display: none; }
  .chat-panel { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .site-footer { padding-bottom: calc(1.5rem + 76px); }
}
@media (prefers-reduced-motion: reduce) { .chat-launcher { transition: none; } }

/* Repair form status */
.form-note-ok { color: #14532d; background: #ecfdf3; border: 1.5px solid #86efac; border-radius: 8px; padding: .7rem; font-weight: 600; }
.form-note-err { color: var(--coral-dark); background: var(--coral-50); border: 1.5px solid #f7b4ad; border-radius: 8px; padding: .7rem; font-weight: 600; }
.contact-form .chat-hp { position: absolute; }
.contact-form button:disabled { opacity: .7; cursor: progress; }
.link-button { font: inherit; font-weight: 600; color: var(--blue-700); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
