/* ═══════════════════════════════════════════════════════════════════════════
   Cebu Tech Masters · Canonical Backseat Studio Engine Stylesheet
   100/100 Core Web Vitals · 0.000 CLS · .bs- Primitives · Self-Hosted Fonts
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Self-Hosted Variable Font Definition (Zero External Network Requests) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
  src: url('assets/fonts/plus-jakarta-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Critical Theme Design Tokens (:root) */
:root {
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --accent: #38BDF8;
  --bg-page: #060913;
  --bg-surface: #0D1324;
  --bg-card: rgba(13, 19, 36, 0.78);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: #1E293B;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;
  --container-max: 88rem; /* 1408px 4K widescreen canvas */
}

/* 3. Universal Box Sizing & Fluid Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* 4. Engine Layout Primitives (.bs- Namespace) */
.bs-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.bs-density-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.bs-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .bs-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.bs-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
}

.bs-card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.bs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.bs-btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.bs-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
}

.bs-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
  color: var(--text-main);
}

.bs-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* 5. Section Specific Layouts */

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-main);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Hero Section */
.hero-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 38rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-media-wrapper {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  background: var(--bg-surface);
}

.hero-media-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Stats Section */
.stats-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(17, 24, 39, 0.35);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item .stat-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Services Section */
.section-padding {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.service-card-price-turnaround {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
}

.service-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.service-turnaround {
  color: var(--text-muted);
}

/* Why Choose Us Section */
.why-section {
  background: rgba(17, 24, 39, 0.25);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 1.5rem;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.author-loc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.star-rating {
  color: #F59E0B;
  letter-spacing: 0.1em;
}

/* FAQ Accordion List */
.faq-grid {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  padding: 1.5rem;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Quote Form Section */
.quote-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 48rem;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(9, 13, 22, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Subscribe Strip */
.subscribe-strip {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin: 3rem auto;
}

.subscribe-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 28rem;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex: 1;
  min-width: 180px;
}

/* Contact & Hours Section */
.contact-section {
  border-top: 1px solid var(--border-color);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9375rem;
}

.hours-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
}

.hours-row:last-child {
  border-bottom: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Desktop & Mobile Drawer Navigation */
.nav-desktop-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.nav-desktop-links a:hover { color: var(--text-main); }
@media (min-width: 820px) {
  .nav-desktop-links { display: flex; }
  .nav-mobile-trigger { display: none !important; }
}
.nav-mobile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.nav-mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 320px);
  height: 100dvh;
  margin: 0;
  padding: 1.5rem;
  border: none;
  border-left: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
}
.nav-mobile-drawer::backdrop { background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.drawer-close-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; }
.drawer-links { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.5rem; }
.drawer-links a { font-weight: 600; font-size: 1rem; color: var(--text-main); }

/* 4K Ambient Backdrop & Grid Polish */
@media (min-width: 1600px) {
  :root { --container-max: 96rem; }
}

/* Multi-Location .bs-map Primitive */
.bs-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(13, 19, 36, 0.95), rgba(30, 41, 59, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.bs-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.bs-map-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 2rem;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(99, 102, 241, 0.22), transparent 65%);
}
.bs-map-locations {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bs-map-loc-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(13, 19, 36, 0.65);
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.bs-map-loc-btn.is-active,
.bs-map-loc-btn:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.14);
  transform: translateY(-1px);
}

/* Multi-Step Alpine Form Builder Styles */
[x-cloak] { display: none !important; }
.bs-form-shell { display: flex; flex-direction: column; gap: 1.25rem; }
.bs-step-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.bs-step-pill {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background: rgba(6, 9, 19, 0.6);
}
.bs-step-pill.is-current {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.18);
  color: #E0E7FF;
}
.bs-step-pill.is-done {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--accent);
}
.bs-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}
.bs-choice-chip {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(6, 9, 19, 0.72);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bs-choice-chip.is-selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.2);
  color: #FFFFFF;
}
