/* Mark's Appliance Repair — shared design system (site.css)
   Owner: orchestrator. Page subagents may only APPEND under a
   banner comment reading page: <slug>. Do not edit sections above. */

:root {
  --primary: #c1001b;
  --primary-glow: #e4141f;
  --primary-foreground: #ffffff;

  --background: #fdfbfa;
  --card: #ffffff;
  --foreground: #14181d;
  --muted-foreground: #6e6e73;
  --border: #e8e3e0;

  --secondary: #171b1f;
  --charcoal: #0c1016;
  --white: #ffffff;

  --shadow-bold: 0 12px 30px -10px rgba(193, 0, 27, 0.45);
  --shadow-card: 0 10px 30px -12px rgba(20, 24, 29, 0.14);
  --radius: 12px;

  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 80rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

.font-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.text-gradient-red {
  background: linear-gradient(100deg, var(--primary) 0%, var(--primary-glow) 60%, #ff3b45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-bold);
}
.btn-primary:hover { background: var(--primary-glow); transform: scale(1.05); }
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 2rem;
  backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn svg { width: 1.25rem; height: 1.25rem; }

.icon { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.topbar { background: var(--foreground); color: var(--background); }
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
@media (min-width: 768px) { .topbar-inner { padding: 0.5rem 2rem; } }
.topbar-inner .tb { display: flex; align-items: center; gap: 0.5rem; }
.topbar .icon { width: 0.875rem; height: 0.875rem; color: var(--primary-glow); }
.topbar a:hover { color: var(--primary-glow); }
.topbar-clock { display: none; }
@media (min-width: 768px) { .topbar-clock { display: flex; } }

.navbar { background: var(--background); border-bottom: 1px solid rgba(232, 227, 224, 0.7); }
.navbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}
@media (min-width: 768px) { .navbar-inner { padding: 0.75rem 2rem; } }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 48px; width: 48px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.06em; line-height: 1; color: var(--foreground); }
.brand-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.brand-text { display: none; }
@media (min-width: 640px) { .brand-text { display: block; } }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--foreground); transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-call { display: none; }
@media (min-width: 768px) { .nav-call { display: inline-flex; } }
.nav-call .icon { width: 1rem; height: 1rem; }
.menu-btn { display: inline-flex; background: none; border: none; padding: 0.5rem; color: var(--foreground); cursor: pointer; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.menu-btn .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- Hero ---------- */
.bg-hero {
  background:
    linear-gradient(115deg, #0b0e14 0%, #131419 32%, #582b2b 72%, #8f0d18 100%);
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-top: 6rem;
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.30; }
.hero-photo .grad1 { position: absolute; inset: 0; background: linear-gradient(90deg, var(--charcoal) 0%, rgba(12,16,22,0.85) 45%, transparent 100%); }
.hero-photo .grad2 { position: absolute; inset: 0; background: linear-gradient(0deg, var(--charcoal) 0%, transparent 55%); }
.hero-grid {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  padding: 5rem 1rem;
}
@media (min-width: 768px) { .hero-grid { padding: 5rem 2rem; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: repeat(12, 1fr); padding: 8rem 2rem; } }
.hero-copy { grid-column: span 8; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(193, 0, 27, 0.4);
  background: rgba(193, 0, 27, 0.12);
  border-radius: 999px; padding: 0.375rem 1rem;
  backdrop-filter: blur(4px);
}
.dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--primary-glow); animation: pulse 2s ease-in-out infinite; }
.eyebrow-pill span:last-child { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.25em; color: rgba(255,255,255,0.9); }

.hero h1 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.9;
  color: #fff;
  font-size: clamp(3.5rem, 11vw, 8rem);
}
.hero-lead { margin-top: 2rem; max-width: 42rem; font-size: 1.2rem; line-height: 1.6; color: rgba(255,255,255,0.8); }
.hero-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-cta .btn-outline .icon { transition: transform 0.2s ease; }
.hero-cta .btn-outline:hover .icon { transform: translateX(4px); }

.hero-trust { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.hero-trust .stars { display: flex; }
.hero-trust .stars .icon { width: 1rem; height: 1rem; fill: var(--primary-glow); color: var(--primary-glow); }
.hero-trust b { font-weight: 600; }
.hero-trust .divider { width: 1px; height: 1rem; background: rgba(255,255,255,0.2); }

.hero-stats { display: none; grid-column: span 4; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .hero-stats { display: flex; } }
.hero-stats .wrap { position: relative; }
.hero-stats .glow { position: absolute; inset: 0; border-radius: 999px; background: rgba(193,0,27,0.3); filter: blur(60px); }
.stat-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.stat {
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
  padding: 1.25rem 1.5rem; border-radius: 12px; backdrop-filter: blur(12px);
}
.stat .num { font-family: var(--font-display); font-size: 2.25rem; color: #fff; line-height: 1; }
.stat .lbl { margin-top: 0.35rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.6); }

/* ---------- Brands strip ---------- */
.brands { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--card); padding: 3.5rem 0; }
.brands-eyebrow { text-align: center; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted-foreground); }
.brands-grid {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: repeat(2, 1fr);
  align-items: center; gap: 2.5rem 2rem;
}
@media (min-width: 640px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .brands-grid { grid-template-columns: repeat(6, 1fr); } }
.brands-grid .cell { display: flex; height: 4rem; align-items: center; justify-content: center; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s ease, opacity 0.3s ease; }
.brands-grid .cell:hover { filter: grayscale(0); opacity: 1; }
.brands-grid img { max-height: 3rem; width: auto; max-width: 140px; object-fit: contain; }

/* ---------- Section shells ---------- */
.section { padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }
.eyebrow { font-size: 0.875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3em; color: var(--primary); }
.section h2 { margin-top: 1rem; font-family: var(--font-display); text-transform: uppercase; color: var(--foreground); font-size: clamp(3rem, 7vw, 4.5rem); line-height: 0.95; }
.section .lead { margin-top: 1.5rem; font-size: 1.15rem; color: var(--muted-foreground); }
.head-wrap { max-width: 48rem; }

/* ---------- Services ---------- */
.services { background: var(--background); }
.cards { margin-top: 4rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; height: 100%; overflow: hidden; border: 1px solid var(--border);
  background: var(--card); padding: 2rem; border-radius: 14px; box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-bold); }
.card .blob { position: absolute; right: 0; top: 0; height: 8rem; width: 8rem; transform: translate(3rem,-3rem); border-radius: 999px; background: rgba(193,0,27,0.05); transition: background 0.3s ease; }
.card:hover .blob { background: rgba(193,0,27,0.1); }
.card .inner { position: relative; }
.icon-badge { display: inline-flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center; border-radius: 10px; background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-bold); }
.icon-badge .icon { width: 1.75rem; height: 1.75rem; }
.card h3 { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.9rem; text-transform: uppercase; color: var(--foreground); }
.card p { margin-top: 0.75rem; color: var(--muted-foreground); }
.card-cta {
  display: flex; height: 100%; align-items: center; justify-content: center; text-align: center;
  border-radius: 14px; padding: 2rem; box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, var(--secondary), var(--charcoal));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-cta:hover { transform: translateY(-4px); box-shadow: var(--shadow-bold); }
.card-cta .big { font-family: var(--font-display); font-size: 2.25rem; text-transform: uppercase; color: #fff; }
.card-cta p { margin-top: 0.75rem; color: rgba(255,255,255,0.7); }
.card-cta .link { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-glow); }

/* ---------- About ---------- */
.about { position: relative; overflow: hidden; background: var(--secondary); color: #fff; }
.about .dots { position: absolute; inset: 0; opacity: 0.1; background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0); background-size: 32px 32px; }
.about-grid { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; gap: 4rem; padding: 0 1rem; }
@media (min-width: 768px) { .about-grid { padding: 0 2rem; } }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, 1fr); align-items: center; } }
.about .eyebrow { color: var(--primary-glow); }
.about h2 { color: #fff; }
.about p { margin-top: 1.5rem; font-size: 1.15rem; color: rgba(255,255,255,0.75); }
.about-features { display: grid; gap: 1rem; }
@media (min-width: 640px) { .about-features { grid-template-columns: repeat(2, 1fr); } }
.feature { height: 100%; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 14px; backdrop-filter: blur(4px); transition: border-color 0.3s ease, background 0.3s ease; }
.feature:hover { border-color: rgba(193,0,27,0.4); background: rgba(255,255,255,0.1); }
.feature .icon { width: 2rem; height: 2rem; color: var(--primary-glow); }
.feature h3 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; }
.feature p { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.7); }

/* ---------- Areas ---------- */
.areas { background: var(--background); }
.areas .center { text-align: center; }
.areas h2 { margin-left: auto; margin-right: auto; }
.area-pills { margin: 3rem auto 0; max-width: 56rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border);
  background: var(--card); padding: 0.625rem 1.25rem; border-radius: 999px; font-weight: 600;
  color: var(--foreground); box-shadow: var(--shadow-card); transition: border-color 0.3s ease, color 0.3s ease;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill .icon { width: 1rem; height: 1rem; color: var(--primary); }

/* ---------- Reviews ---------- */
.reviews { background: #f4f1ee; }
.review-grid { margin-top: 4rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review { position: relative; height: 100%; background: var(--card); padding: 2rem; border-radius: 14px; box-shadow: var(--shadow-card); }
.review .quote-mark { position: absolute; right: 1.5rem; top: 1.5rem; width: 2.5rem; height: 2.5rem; color: rgba(193,0,27,0.15); }
.review .stars { display: flex; gap: 0.125rem; }
.review .stars .icon { width: 1.25rem; height: 1.25rem; fill: var(--primary); color: var(--primary); }
.review .body { margin-top: 1.25rem; color: rgba(20,24,29,0.85); line-height: 1.6; }
.review .attrib { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.review .attrib .name { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; color: var(--foreground); }
.review .attrib .role { font-size: 0.875rem; color: var(--muted-foreground); }
.reviews-cta { margin-top: 3rem; display: flex; justify-content: center; }
.reviews-cta .icon { width: 1.25rem; height: 1.25rem; transition: transform 0.2s ease; }
.reviews-cta a:hover .icon { transform: translateX(4px); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; color: #fff; }
.contact .dots { position: absolute; inset: 0; opacity: 0.1; background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0); background-size: 40px 40px; }
.contact-grid { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; gap: 3rem; padding: 0 1rem; }
@media (min-width: 768px) { .contact-grid { padding: 0 2rem; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact .eyebrow { color: var(--primary-glow); }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,0.75); max-width: 32rem; }
.contact-methods { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.method { display: flex; align-items: center; gap: 1rem; }
.method .badge { display: inline-flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: 10px; }
.method .badge.red { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-bold); transition: transform 0.25s ease; }
.method:hover .badge.red { transform: scale(1.1); }
.method .badge.ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); transition: background 0.25s ease; }
.method:hover .badge.ghost { background: rgba(255,255,255,0.2); }
.method .badge .icon { width: 1.25rem; height: 1.25rem; }
.method .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); }
.method .v { font-weight: 600; color: #fff; }
.method .v.big { font-family: var(--font-display); font-size: 1.5rem; }

.lead-form { border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 18px; backdrop-filter: blur(12px); }
@media (min-width: 768px) { .lead-form { padding: 2rem; } }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-top: 1rem; }
.field:first-child, .form-row .field { margin-top: 0; }
.field label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.7); }
.field input, .field select, .field textarea {
  margin-top: 0.5rem; width: 100%; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05); padding: 0.75rem 1rem; border-radius: 8px; color: #fff;
  font-family: var(--font-body); font-size: 1rem;
}
.field textarea { resize: vertical; }
.field select option { background: var(--secondary); color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-glow); box-shadow: 0 0 0 3px rgba(228,20,31,0.4); }
.form-submit { margin-top: 1.5rem; width: 100%; justify-content: center; }
.form-note { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--secondary); color: #fff; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 2.5rem; padding: 4rem 1rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); padding: 4rem 2rem; } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { height: 56px; width: 56px; object-fit: contain; }
.footer-brand .name { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-brand .sub { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.5); }
.footer-desc { margin-top: 1.25rem; max-width: 24rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.footer-col .title { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-glow); }
.footer-col ul { margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
/* the page .services section is light-on-light; the footer column must stay on the dark footer */
.footer-col.services { background: transparent; }
.footer-col.services li { margin-bottom: 0.5rem; }
.footer-col.contact li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.footer-col.contact .icon { width: 1rem; height: 1rem; color: var(--primary-glow); }
.footer-col.contact a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bar-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 1.25rem 1rem; font-size: 0.75rem; color: rgba(255,255,255,0.5); }
@media (min-width: 768px) { .footer-bar-inner { padding: 1.25rem 2rem; } }

/* ---------- Motion ----------
   Entrance reveals reproduce the source's framer-motion fade-up.
   These are pure-CSS on-load animations with fill-mode both: the
   animation always runs, so elements always end fully visible.
   No stylesheet rule ever leaves real content hidden. */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }
.reveal.d5 { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .dot { animation: none; }
}
