/* Microtech Computer Center — single stylesheet, no frameworks */
:root {
  --navy: #333645;
  --dark: #292b37;
  --blue: #2878ad;
  --blue-dark: #1f6391;
  --text: #8f919b;
  --text-light: #b4b6c0;
  --heading: #333645;
  --amber: #ffaa06;
  --line: #e4e4e8;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-weight: 400; color: var(--heading); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.logo img { width: 240px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #fff; font-size: 14px; font-weight: 500; padding: 30px 14px; display: block;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #9e9e9e; background: rgba(255,255,255,.04); }
.nav a.nav-cta {
  margin-left: 12px; padding: 8px 22px; background: #eee; color: var(--navy);
  border-radius: 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.nav a.nav-cta:hover { background: #fff; color: var(--navy); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--blue); }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .logo img { width: 200px; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a.nav-cta { margin: 14px 24px; text-align: center; }
}

/* ---------- Buttons / separators ---------- */
.btn {
  display: inline-block; background: var(--blue); color: #fff; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; padding: 12px 30px; border-radius: 3px;
  transition: background .2s;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.sep { width: 114px; height: 2px; background: #5e6276; margin: 18px auto 36px; border: 0; }
.section-title { font-size: clamp(28px, 4vw, 36px); text-transform: uppercase; text-align: center; margin: 0; }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark { background: var(--dark); color: var(--text-light); }
.section-dark .sep { background: #5e6276; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy) url(hero.jpg) center / cover no-repeat;
  color: #fff; text-align: center; padding: 150px 0 160px;
}
.hero h1 {
  color: #fff; font-size: clamp(34px, 6vw, 60px); text-transform: uppercase; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 24px;
}
.hero h1::before, .hero h1::after { content: ""; width: 52px; height: 2px; background: #fff; flex: none; }
@media (max-width: 600px) {
  .hero { padding: 80px 0 90px; }
  .hero h1::before, .hero h1::after { width: 24px; }
  .banner { height: 260px; }
}
.hero p { max-width: 680px; margin: 0 auto 36px; font-size: 17px; color: rgba(255,255,255,.85); }

/* ---------- Page banner (inner pages) ---------- */
.banner {
  position: relative; background: var(--navy) center / cover no-repeat;
  height: 360px; display: flex; align-items: center; justify-content: center;
}
.banner svg.curve { position: absolute; left: 0; bottom: -1px; width: 100%; height: 100px; }
.banner h1 {
  position: relative; z-index: 1; color: var(--navy); font-size: clamp(32px, 5vw, 48px);
  text-transform: uppercase; margin: 0; padding: 0 24px; text-align: center;
  text-shadow: 0 0 24px rgba(255,255,255,.9);
}
.banner-tall { height: auto; min-height: 420px; padding: 90px 0 140px; }
.banner-text { position: relative; z-index: 1; text-align: center; max-width: 620px; padding: 0 24px; }
.banner-text h1 { text-transform: none; font-size: clamp(38px, 6vw, 56px); padding: 0; }
.banner-text .sep { margin: 22px auto 30px; }
.banner-text p { color: #6d6f7b; margin: 0; }
.banner-text-wide { max-width: 640px; }
.banner-text h1.upper { text-transform: uppercase; }

.not-found-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 28px; }

/* Services grids: outlined gold icon circles, as on the original */
.section-dark.services-outline .icon-circle { background: none; border: 1.5px solid #c9a227; }

/* Repair Status forms on the dark section */
.forms-dark { margin-top: 0; }
.forms-dark .panel { background: none; border: 0; padding: 0; }
.forms-dark h3 { color: #fff; }
.forms-dark .field label { color: var(--text-light); }
.forms-dark .field input { background: #fff; border-color: #fff; }

/* ---------- Info bar ---------- */
.info { border-bottom: 1px solid var(--line); background: #fff; }
.info .wrap { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-top: 40px; padding-bottom: 36px; }
.info h4 { color: #5774a0; letter-spacing: .06em; text-transform: uppercase; font-size: 16px; margin-bottom: 8px; }
.info p { margin: 0; line-height: 1.7; }
.info a { color: var(--text); }
@media (max-width: 700px) {
  .info .wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- About ---------- */
.about {
  position: relative; padding: 80px 0 100px;
  background: #e6e6e6 url(about.jpg) center bottom / cover no-repeat;
}
.about::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55); }
.about > .wrap { position: relative; }
.about .lead { color: #5f616f; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; align-items: center; }
.card {
  background: #fff; text-align: center; padding: 44px 30px; color: var(--text);
  box-shadow: 0 2px 20px rgba(0,0,0,.04);
}
.card h3 { font-size: 22px; margin: 14px 0 12px; color: var(--navy); }
.card .icon { width: 32px; height: 32px; margin: 0 auto; color: #5f616f; }
.card.feature { background: var(--navy); color: var(--text-light); padding: 56px 30px; }
.card.feature h3 { color: var(--blue); }
.card.feature .icon-circle { background: var(--blue); color: #fff; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }

.icon-circle {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto; background: var(--navy); color: #fff;
}
.icon-circle svg { width: 28px; height: 28px; }

/* ---------- Services grid ---------- */
.services { padding: 80px 0 90px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px; margin-top: 60px; text-align: center; }
.services-grid h3 { font-size: 20px; margin: 18px 0 6px; }
.services-grid p { margin: 0; }
.services-grid ul { list-style: none; padding: 0; margin: 0; }
.section-dark .icon-circle { background: var(--blue); }
@media (max-width: 860px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.work {
  position: relative; padding: 90px 0 110px; text-align: center;
  background: #eee url(work-bg.jpg) center bottom / cover no-repeat;
}
.work::before { content: ""; position: absolute; inset: 0; background: rgba(238,238,238,.5); }
.work > .wrap { position: relative; }
.work p { color: #5f616f; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 80px 0 90px; }
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 20px; }
.quote {
  margin: 0; text-align: center; padding: 30px 22px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 4px;
  display: flex; flex-direction: column; justify-content: center;
}
.quote .source { display: block; font-size: 12px; color: #8a8c98; margin-top: 2px; }
@media (max-width: 1000px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.rating { text-align: center; margin-top: 44px; }
.rating p { color: #fff; font-size: 17px; margin-bottom: 18px; }
.rating strong { font-weight: 500; }
.rating .stars { color: var(--amber); letter-spacing: 3px; font-size: 20px; margin-right: 6px; }
.quote p { color: var(--amber); font-size: 18px; font-style: italic; margin-bottom: 14px; }
.quote p::before { content: "\201C"; } .quote p::after { content: "\201D"; }
.quote cite { color: #fff; font-style: normal; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
@media (max-width: 700px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Generic content sections ---------- */
.block { padding: 80px 0; }
.block-navy { background: var(--navy); color: var(--text-light); }
.block-navy .section-title, .block-navy h3 { color: #fff; }
.block-navy a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; align-items: center; margin-top: 40px; }
.partners img { width: 100%; max-width: 200px; margin: 0 auto; opacity: .75; transition: opacity .2s; }
.partners img:hover { opacity: 1; }
@media (max-width: 760px) { .partners { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Repair status forms ---------- */
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.panel { background: #fff; border: 1px solid var(--line); padding: 34px 32px; border-radius: 4px; }
.panel h3 { font-size: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.field input {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; color: var(--navy);
  border: 1px solid #d2d3d9; border-radius: 3px; background: #fafafb;
}
.field input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
@media (max-width: 760px) { .forms, .row2 { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.contact-info h4 { color: var(--blue); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin: 0 0 4px; }
.contact-info p { margin-bottom: 22px; }
.map { width: 100%; height: 420px; border: 0; display: block; background: #e8e8e8; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal (selector list mirrors REVEAL in site.js) ---------- */
html.anim :is(.section-title, .sep, .about .lead, .services .narrow, .block .narrow, .work p,
  .info .wrap > div, .services-grid > div, .quote, .partners img, .panel, .card, .contact-info, .map) {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
html.anim :is(.card, .contact-info, .map) { transform: scale(.9); }
html.anim .sep { transform: scaleX(0); }
html.anim :is(.section-title, .sep, .about .lead, .services .narrow, .block .narrow, .work p,
  .info .wrap > div, .services-grid > div, .quote, .partners img, .panel, .card, .contact-info, .map).in {
  opacity: 1; transform: none;
}
html.anim .partners img.in { opacity: .75; }
html.anim .partners img.in:hover { opacity: 1; }

/* Hero entrance: title lines grow, text rises in */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.anim .hero h1 { animation: rise .9s .1s both cubic-bezier(.2,.7,.2,1); }
html.anim .hero h1::before, html.anim .hero h1::after { animation: grow .7s .6s both ease-out; }
html.anim .hero p { animation: rise .9s .35s both cubic-bezier(.2,.7,.2,1); }
html.anim .hero .btn { animation: rise .9s .55s both cubic-bezier(.2,.7,.2,1); }
html.anim .banner h1 { animation: rise .9s .1s both cubic-bezier(.2,.7,.2,1); }

/* Parallax backgrounds: pure CSS, desktop only (iOS ignores fixed backgrounds) */
@media (min-width: 1025px) and (hover: hover) {
  .hero, .about, .work, .banner { background-attachment: fixed; }
}

@media (prefers-reduced-motion: reduce) {
  html.anim * { animation: none !important; transition: none !important; }
  html.anim :is(.section-title, .sep, .about .lead, .services .narrow, .block .narrow, .work p,
    .info .wrap > div, .services-grid > div, .quote, .partners img, .panel, .card, .contact-info, .map) { opacity: 1; transform: none; }
  .hero, .about, .work, .banner { background-attachment: scroll; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--text-light); padding: 60px 0 0; text-align: center; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: var(--text-light); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.site-footer .partners-img { width: 170px; margin: 6px auto 0; }
.copy { margin-top: 50px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #8a8c98; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
