/* ComputerAV — single-page site. Colors and font match the original WordPress design. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/poppins-700i.woff2") format("woff2"); }

:root {
  interpolate-size: allow-keywords; /* lets <details> animate open where supported */
  --purple: #380068;
  --purple-deep: #1c0034;
  --cyan: #00ffff;
  --ink: #1a1a1a;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--purple);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--cyan); color: var(--purple); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.topbar.on {
  background: rgba(28, 0, 52, 0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.brand img { opacity: 0; transition: opacity .35s ease; }
.topbar.on .brand img { opacity: 1; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: 200px; }
nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
nav a { text-decoration: none; opacity: 0.9; }
nav a:hover { opacity: 1; color: var(--cyan); }
.nav-call { background: var(--cyan); color: var(--purple); padding: 8px 16px; border-radius: 999px; font-weight: 600; opacity: 1 !important; }
.nav-call:hover { color: var(--purple) !important; background: #8ffcff; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 36px 0 80px; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 32%, rgba(0, 255, 255, 0.16), transparent 70%),
    radial-gradient(45% 40% at 22% 18%, rgba(139, 61, 255, 0.38), transparent 70%),
    radial-gradient(40% 35% at 80% 70%, rgba(0, 120, 255, 0.22), transparent 70%);
}
.hero-logo { width: min(90vw, 960px); margin: 0 auto 44px; filter: drop-shadow(0 0 48px rgba(0, 255, 255, 0.22)); animation: logoIn 1.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes logoIn { from { opacity: 0; transform: scale(.95) translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(22px, 3vw, 34px); font-style: italic; font-weight: 600; line-height: 1.2; margin: 0 0 14px; }
.hero .lead { text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(13px, 1.6vw, 15px); font-weight: 500; max-width: 760px; margin: 0 auto 34px; opacity: 0.95; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-cyan { background: var(--cyan); color: var(--purple); }
.btn-cyan:hover { background: #8ffcff; }
.btn-dark { background: #000; color: var(--white); }
.btn-dark:hover { background: #222; }

/* Services */
.services { padding: 24px 0 88px; }
.section-title { text-align: center; font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; margin: 0 0 40px; }
.section-title.dark { color: var(--purple); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.card {
  background: var(--cyan); color: var(--purple);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  scroll-margin-top: 96px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
/* Reserve room for the tallest title + tagline in a row so the Read More buttons line up (measured). */
.card-head { min-height: 113px; margin-bottom: 16px; }
@media (min-width: 1240px) { .card-head { min-height: 94px; } }
.card h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; line-height: 1.25; }
.tagline { margin: 0; font-style: italic; font-weight: 600; font-size: 14px; line-height: 1.4; }

/* Read More / Show Less */
.more summary {
  display: inline-flex; align-items: center; gap: 8px;
  list-style: none; cursor: pointer; user-select: none;
  background: var(--purple); color: var(--cyan);
  font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 6px;
  transition: background .15s ease;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease, margin .2s ease;
}
.more[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.more summary:hover { background: #4d0090; }
.more .label-less { display: none; }
.more[open] .label-more { display: none; }
.more[open] .label-less { display: inline; }
.more ul { margin-top: 16px; }
.more::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .35s ease, content-visibility .35s allow-discrete;
}
.more[open]::details-content { block-size: auto; }
.card ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; }
.card li { position: relative; padding-left: 24px; margin: 0 0 8px; }
.card li::before {
  content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2300ffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Stats */
.stats {
  background: linear-gradient(rgba(28, 0, 52, 0.88), rgba(28, 0, 52, 0.88)), url("img/stats-bg.webp") center / cover;
  padding: 64px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--purple); border: 1px solid rgba(0, 255, 255, 0.35); border-radius: var(--radius); padding: 28px 18px; text-align: center; }
.stat:nth-child(even) { background: var(--cyan); color: var(--purple); border-color: var(--cyan); }
.stat strong { display: block; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; }
.stat > span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; opacity: 0.9; }

/* Brands */
.brands { background: var(--white); color: var(--ink); padding: 64px 0 72px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; margin-bottom: 44px; }
.badges img { height: 30px; width: auto; }
.badges img + img { height: 72px; }

/* Brand marquee */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; align-items: center; gap: 72px; width: max-content; padding: 22px 0; animation: scroll 44s linear infinite; }
.marquee.reverse .track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.track img { height: 40px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s ease, opacity .3s ease; }
.track img:hover { filter: none; opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Scroll reveal (added by site.js) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Footer / contact */
.footer { background: #000; text-align: center; }
.footer-inner { padding: 56px 20px 40px; }
.footer-logo { width: 240px; margin: 0 auto 24px; }
.footer h2 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.footer .phone { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.footer .phone a { color: var(--cyan); text-decoration: none; }
.footer .phone a:hover { text-decoration: underline; }
.footer address { font-style: normal; font-size: 15px; opacity: 0.85; }
.copyright { background: var(--ink); font-size: 13px; padding: 16px 20px; opacity: 0.9; }

/* Responsive */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 64px; }
  .topbar-inner { min-height: 60px; }
  .brand img { width: 150px; }
  nav a:not(.nav-call) { display: none; }
  .nav-call { font-size: 14px; padding: 7px 12px; }
  .hero { padding: 28px 0 56px; }
  .hero-logo { width: 92vw; margin-bottom: 32px; }
  .track { gap: 44px; padding: 16px 0; }
  .track img { height: 30px; max-width: 120px; }
  .btn { width: 100%; text-align: center; }
  .grid { grid-template-columns: 1fr; gap: 22px; }
  .card-head { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .card { animation: none; transition: none; }
  .track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .js .reveal { opacity: 1; transform: none; }
  .more::details-content, .more summary::after { transition: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
