/*
Theme Name: Vegas Computer Repair
Description: Local computer repair theme for Las Vegas.
Version: 1.1.0
Requires PHP: 8.0
Text Domain: vegas-computer-repair
*/
:root {
  --ink: #0b0713;
  --ink-2: #170e26;
  --ink-3: #2f1f4a;
  --paper: #ffffff;
  --sand: #f5f1fa;
  --line: #e4dcf0;
  --text: #1c2228;
  --muted: #5b5468;
  --on-ink: #f8f4ff;
  --on-ink-muted: #bdb4cf;
  --accent: #cf3517;
  --accent-dark: #a92a11;
  --neon: #ff4fd8;
  --violet: #6a1fd0;
  --glow: linear-gradient(100deg, #cf3517 0%, #c2128e 100%);
  --radius: 10px;
  --wrap: 1240px;
  --tech: "Orbitron", "Arial Black", sans-serif;
  --display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Outfit", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--body); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; color: inherit; }
h1 { font-family: var(--tech); font-size: clamp(1.7rem, 3.7vw, 3rem); font-weight: 800; letter-spacing: 0; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }

/* Header */
.staging { background: #ffd34d; color: #2b2300; text-align: center; font-size: 13px; font-weight: 600; padding: 5px 12px; }
.utility { background: var(--ink); color: var(--on-ink-muted); font-size: 13.5px; }
.utility .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 7px; padding-bottom: 7px; }
.utility a { color: var(--on-ink); text-decoration: none; font-weight: 600; }
.utility a:hover { color: var(--neon); }
.utility .phones { display: flex; gap: 22px; }
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid transparent; border-image: var(--glow) 1; }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 38px; height: 38px; }
.logo b { font: 800 15px/1.1 var(--tech); letter-spacing: .02em; text-transform: uppercase; }
.logo b span { display: block; color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 11px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { color: var(--accent-dark); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: 0; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 22px; border-radius: 8px; border: 2px solid transparent; background: var(--glow); color: #fff; font: 700 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { filter: brightness(.9); }
.btn.ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn.ghost:hover { background: var(--sand); }
.on-ink .btn.ghost { color: var(--on-ink); }
.on-ink .btn.ghost:hover { background: var(--ink-3); }
.header .btn { min-height: 42px; padding: 8px 16px; font-size: 15px; white-space: nowrap; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero carousel */
.hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 85% 35%, rgba(255, 45, 200, .28), transparent 70%), radial-gradient(70% 100% at 20% 110%, rgba(106, 31, 208, .4), transparent 70%); }
.slide { position: relative; }
.js .slide:not(.active) { display: none; }
.no-js-hide { display: none; }
.js .no-js-hide { display: flex; }
.slide .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: 500px; padding-top: 48px; padding-bottom: 72px; }
.slide .art { max-width: 520px; justify-self: end; width: 100%; }
.art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.slide .art img, .page-hero .art img { aspect-ratio: 4 / 3; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.js .slide.active .copy, .js .slide.active .art { animation: rise .45s ease-out both; }
@keyframes rise { from { transform: translateY(8px); } }
.eyebrow { font: 600 15px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--neon); margin: 0 0 12px; }
.slide .title { font-family: var(--tech); font-weight: 800; font-size: clamp(1.7rem, 3.7vw, 3rem); line-height: 1.14; margin: 0 0 16px; }
.slide .lede { font-size: 1.18rem; color: var(--on-ink-muted); max-width: 34em; margin-bottom: 26px; }
.dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 2; }
.dots .wrap { display: flex; align-items: center; gap: 4px; }
.dot { width: 44px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.dot i { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--ink-3); overflow: hidden; }
.dot i::after { content: ""; display: block; height: 100%; width: 0; background: var(--neon); }
.dot[aria-current="true"] i::after { width: 100%; }
.pause { width: 36px; height: 32px; margin-left: 6px; border: 0; border-radius: 6px; background: none; color: var(--on-ink-muted); cursor: pointer; font-size: 13px; }
.pause:hover { color: var(--on-ink); }

/* Sections */
.section { padding: 72px 0; }
.section.sand { background: var(--sand); }
.section.ink { background: linear-gradient(120deg, #0b0713, #1d0d38);  color: var(--on-ink); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.07rem; margin: 0; }
.ink .section-head p { color: var(--on-ink-muted); }

.promises { background: var(--sand); border-bottom: 1px solid var(--line); }
.promises ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.promises li { padding: 22px 20px; border-left: 1px solid var(--line); font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.promises li:first-child { border-left: 0; padding-left: 0; }
.promises b { display: block; font: 600 18px/1.3 var(--display); color: var(--ink); margin-bottom: 3px; }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; position: relative; display: flex; flex-direction: column; background: var(--sand); color: var(--ink); border-radius: var(--radius); padding: 26px; text-decoration: none; overflow: hidden; min-height: 300px; transition: transform .15s; }
.tile:hover { transform: translateY(-3px); }
.tile.wide { grid-column: span 3; }
.tile.dark { background: var(--ink); color: var(--on-ink); }
.tile p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; max-width: 30em; }
.tile.dark p { color: var(--on-ink-muted); }
.tile .more { font-weight: 700; font-size: 15px; color: var(--accent-dark); margin-top: auto; }
.tile.dark .more { color: var(--neon); }
.tile .art { margin: -26px -26px 20px; aspect-ratio: 16 / 9; overflow: hidden; }
.tile .art img { border-radius: 0; transition: transform .25s; }
.tile:hover .art img { transform: scale(1.03); }

/* Tabs */
.tablist { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; margin-bottom: 26px; }
.tab { flex: none; padding: 13px 18px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; font: 700 15.5px/1.2 var(--body); color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.js .panel[hidden] { display: none; }
.panel { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; margin-bottom: 26px; }
.js .panel { margin-bottom: 0; }
.checks { list-style: none; columns: 2; column-gap: 32px; }
.checks li { position: relative; padding: 0 0 11px 24px; break-inside: avoid; line-height: 1.4; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; background: var(--accent); border-radius: 2px; }
.panel-cta { background: var(--sand); border-radius: var(--radius); padding: 22px; }
.panel-cta p { font-size: 15px; color: var(--muted); }
.section.sand .panel-cta { background: var(--paper); }

/* Split + steps */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.ink .card { background: var(--ink-2); border-color: var(--ink-3); }
.card ul { padding-left: 1.1em; margin-bottom: 1em; }
.card li { margin-bottom: 5px; }
.card address { font-style: normal; margin-bottom: 12px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--neon); padding-top: 16px; }
.steps li::before { content: "0" counter(s); display: block; font: 700 15px/1 var(--tech); color: var(--neon); margin-bottom: 12px; }
.steps p { color: var(--on-ink-muted); font-size: 15.5px; margin: 0; }
.steps.light li { border-top-color: var(--accent); }
.steps.light li::before { color: var(--accent-dark); }
.steps.light p { color: var(--muted); }

.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; font-size: 15px; margin: 0 0 18px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.areas { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.areas li { background: var(--paper); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; font-size: 14.5px; }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font: 700 1.05rem/1.35 var(--body); padding: 14px 30px 14px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); max-width: 46em; }
.faq { max-width: 860px; }

.band { background: linear-gradient(100deg, #5a17b8 0%, #c2128e 55%, #cf3517 100%); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; padding-top: 38px; padding-bottom: 38px; }
.band h2 { margin: 0 0 4px; }
.band p { margin: 0; }
.band .btn { background: #fff; color: #7a1296; }
.band .btn:hover { background: var(--sand); }
.band .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.band .btn.ghost:hover { background: rgba(0, 0, 0, .2); }

/* Service page */
.page-hero { background: radial-gradient(60% 120% at 85% 20%, rgba(255, 45, 200, .2), transparent 70%), radial-gradient(60% 120% at 10% 120%, rgba(106, 31, 208, .35), transparent 70%), var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding-top: 46px; padding-bottom: 54px; }
.page-hero p.lede { font-size: 1.14rem; color: var(--on-ink-muted); max-width: 36em; margin-bottom: 24px; }
.page-hero .art { max-width: 400px; justify-self: end; width: 100%; }
.crumbs { font-size: 14px; color: var(--on-ink-muted); margin-bottom: 14px; }
.crumbs a { color: var(--on-ink-muted); }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose > ul { padding-left: 1.15em; margin-bottom: 1em; }
.prose li { margin-bottom: 5px; }
.aside { position: sticky; top: 96px; background: var(--sand); border-radius: var(--radius); padding: 24px; }
.aside h2 { font-size: 1.2rem; }
.aside ul { list-style: none; margin-bottom: 16px; }
.aside li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.aside .btn { width: 100%; margin-top: 8px; }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: 15px; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; margin-top: 6px; padding: 12px; font: 400 16px/1.4 var(--body); color: var(--text); background: #fff; border: 1px solid #a9a397; border-radius: 7px; }
.form textarea { min-height: 130px; resize: vertical; }
.form .note { font-size: 14px; color: var(--muted); margin: 0; }

/* Footer */
.footer { background: var(--ink); color: var(--on-ink-muted); font-size: 15px; padding: 54px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h2 { font: 700 13px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 7px; }
.footer a { color: var(--on-ink-muted); text-decoration: none; }
.footer a:hover { color: var(--neon); text-decoration: underline; }
.footer .logo { color: var(--on-ink); margin-bottom: 14px; }
.footer .logo b span { color: var(--neon); }
.legal { border-top: 1px solid var(--ink-3); margin-top: 36px; padding-top: 18px; font-size: 13.5px; }

.callbar { display: none; }

@media (max-width: 1120px) {
  .menu-btn { display: block; order: 3; margin-left: 0; }
  .header .btn { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 14px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0, 0, 0, .1); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 900px) {
  .slide .wrap, .page-hero .wrap, .two-col, .panel, .split { grid-template-columns: 1fr; }
  .slide .wrap { min-height: 0; gap: 18px; padding-top: 34px; }
  .slide .art { max-width: none; grid-row: 1; }
  .slide .art img { aspect-ratio: 16 / 9; }
  .page-hero .art { display: none; }
  .promises ul { grid-template-columns: 1fr 1fr; }
  .promises li, .promises li:first-child { padding: 15px 12px 15px 0; border-left: 0; }
  .tile, .tile.wide { grid-column: span 3; min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 80px; }
  body { font-size: 16px; padding-bottom: 62px; }
  .wrap { padding: 0 16px; }
  .utility .tag { display: none; }
  .utility { font-size: 12.5px; }
  .utility .phones { width: 100%; justify-content: space-between; gap: 10px; }
  .utility a { white-space: nowrap; }
  .header .btn { display: none; }
  .menu-btn { margin-left: auto; }
  .section { padding: 50px 0; }
  .tile, .tile.wide { grid-column: 1 / -1; }
  .checks { columns: 1; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .band .btns, .band .btn, .slide .btns .btn { width: 100%; }
  .dot { width: 38px; }
  .dot i { width: 30px; }
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); }
  .callbar a { padding: 16px 8px; text-align: center; color: #fff; font-weight: 700; text-decoration: none; }
  .callbar a:first-child { background: var(--glow); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* WordPress additions */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
.hp { position: absolute; left: -9999px; }
.notice { padding: 13px 16px; border-radius: 8px; font-weight: 600; }
.notice.ok { background: #e3f3e6; color: #17512a; }
.notice.bad { background: #fbe6e1; color: #8a2410; }
.prose ul.checks { padding-left: 0; margin-bottom: 1em; }
.prose small { color: var(--muted); }
.page-hero .product-photo { margin: 0; display: block; }
.page-hero .product-photo img { height: auto; object-fit: contain; background: var(--ink-2); }
.page-hero .product-photo figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--on-ink-muted); }
.page-hero .product-photo figcaption a { color: var(--on-ink-muted); }
@media (max-width: 900px) { .page-hero .product-photo { max-width: none; } .page-hero .product-photo img { aspect-ratio: 16 / 9; } }
.brand-links a { text-decoration: none; color: var(--text); display: block; }
.brand-links a:hover { color: var(--accent-dark); }
