/* ==========================================================================
   TCL MI TV Repair & Services — Red & White Official-Grade Stylesheet
   ========================================================================== */
:root {
  --red: #d71920;
  --red-dark: #a81016;
  --red-soft: #fff2f3;
  --red-border: #f7c7c9;
  --white: #ffffff;
  --surface: #f8f9fb;
  --surface-alt: #f2f4f7;
  --ink: #14161a;
  --ink-muted: #4b5563;
  --ink-light: #6b7280;
  --border: #e5e7eb;
  --success: #15803d;
  --success-bg: #dcfce7;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(20, 22, 26, 0.05);
  --shadow-md: 0 12px 32px rgba(20, 22, 26, 0.08);
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Announcement / Top Bar */
.top-utility {
  background: var(--red);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.top-utility__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}

.top-utility a {
  color: var(--white);
  font-weight: 600;
}

.top-utility__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__sub {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--red);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.primary-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
  align-items: center;
}

.primary-nav__list a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.primary-nav__list a:hover,
.primary-nav__list a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-outline {
  background: var(--white);
  color: var(--red);
  border-color: var(--red);
}

.btn-outline:hover {
  background: var(--red-soft);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-alt);
}

.btn-sm {
  padding: 0.52rem 1rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #fff6f6 60%, #ffecee 100%);
  border-bottom: 1px solid var(--red-border);
  padding: 3.5rem 0 4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid var(--red-border);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero h1 .accent {
  color: var(--red);
  display: block;
  margin-top: 0.25rem;
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  max-width: 58ch;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow-sm);
}

.hero__facts strong {
  display: block;
  font-size: 0.92rem;
  color: var(--red);
}

.hero__facts span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.hero__media {
  background: var(--white);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--red-soft {
  background: var(--red-soft);
  border-top: 1px solid var(--red-border);
  border-bottom: 1px solid var(--red-border);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--ink-muted);
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card--highlight {
  border-top: 4px solid var(--red);
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.card__footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  border: 1px solid var(--red-border);
}

/* Steps */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
}

/* Booking Form & Ticket Card */
.booking-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.booking-card {
  background: var(--white);
  border: 1px solid var(--red-border);
  border-top: 5px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  outline: 2px solid rgba(215, 25, 32, 0.16);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.checkbox-row input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--red);
}

.ticket-receipt {
  margin-top: 1.5rem;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.ticket-receipt__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}

.ticket-receipt__eyebrow {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--red);
}

.ticket-receipt__id {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}

.ticket-status-pill {
  background: var(--success-bg);
  color: var(--success);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.ticket-receipt__lead {
  font-size: 0.94rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.ticket-receipt__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.ticket-receipt__grid dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-light);
  font-weight: 700;
}

.ticket-receipt__grid dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.93rem;
}

.ticket-receipt__full {
  grid-column: 1 / -1;
}

.ticket-receipt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Reviews / GMB Box */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.review-card--placeholder {
  border-style: dashed;
  border-color: var(--red-border);
  background: #fffafa;
}

.review-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.review-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--red);
  background: var(--red-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.review-badge--placeholder {
  color: var(--ink-muted);
  background: var(--surface-alt);
}

.review-date {
  font-size: 0.8rem;
  color: var(--ink-light);
}

.review-card__text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.review-card__author {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
}

.review-card__author span {
  color: var(--ink-light);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 1.15rem 1.35rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.35rem 1.2rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Breadcrumbs & Page Hero */
.page-hero {
  background: linear-gradient(135deg, #ffffff 0%, #fff3f4 100%);
  border-bottom: 1px solid var(--red-border);
  padding: 2.5rem 0 2.75rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.86rem;
  color: var(--ink-light);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--ink-light);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.15;
}

.page-hero p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 68ch;
}

/* Article / Prose */
.prose {
  max-width: 78ch;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 1.18rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.notice-box {
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-size: 0.94rem;
}

/* Map / GMB Card */
.gmb-card {
  background: var(--white);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.address-block {
  font-style: normal;
  color: var(--ink-muted);
  margin: 0.65rem 0 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.tag-list li,
.filter-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 4px solid var(--red);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin: 0 0 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.86rem;
  color: var(--ink-light);
}

/* Sticky Mobile Bar */
.mobile-sticky-cta {
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero__grid,
  .booking-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    background: var(--white);
    border-bottom: 2px solid var(--red);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero__facts,
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid,
  .ticket-receipt__grid {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: 70px;
  }

  .mobile-sticky-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: var(--white);
    border-top: 2px solid var(--red);
    padding: 0.6rem 0.85rem;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  }
}

@media print {
  .top-utility,
  .site-header,
  .mobile-sticky-cta,
  .site-footer,
  .btn {
    display: none !important;
  }
  .ticket-receipt {
    border: 2px solid #000;
    box-shadow: none;
  }
}
