/* Racha Computer Service — Main Stylesheet (CSP-safe, Zero Inline Overrides, Red-Gold + Dark Tech) */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-xs {
  padding: 7px 12px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
  padding: 14px 20px;
}

.btn-brand {
  background-color: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.btn-brand:hover {
  background-color: var(--brand-hover);
}

.btn-outline {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--gold);
  background-color: var(--soft);
}

.btn-soft {
  background-color: var(--soft);
  color: var(--ink);
  border-color: var(--line);
}

.btn-soft:hover {
  background-color: var(--soft-hover);
  border-color: var(--gold-border);
}

.btn-line {
  background-color: var(--line-green);
  color: #ffffff;
}

.btn-line:hover {
  background-color: var(--line-green-hover);
}

.btn-tech-solid {
  background-color: var(--tech-bg-1);
  color: var(--tech-ink);
  border-color: var(--tech-border);
}

.btn-tech-solid:hover {
  background-color: var(--tech-bg-accent);
}

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

.btn-tech-ghost:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--ink);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.icon-btn:hover {
  background-color: var(--soft);
  border-color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--nav-glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 37px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-strong);
  white-space: nowrap;
}

.brand-name-sub {
  color: var(--brand-text);
}

.brand-meta {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 2px;
  transition: color 0.16s ease;
}

.nav-link:hover {
  color: var(--brand-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-calc-btn,
.header-book-btn {
  display: none;
}

/* Theme Icon Visibility */
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="dark"] .icon-moon {
  display: none;
}

/* Mobile Drawer */
.mobile-drawer {
  border-top: 1px solid var(--line);
  background-color: var(--surface);
  padding-block: 14px 18px;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink);
}

.mobile-nav-link:hover {
  background-color: var(--soft);
}

.mobile-drawer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-block: 36px 48px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.45;
}

.hero-glow-right {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
}

.hero-glow-left {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill);
  background-color: var(--soft);
  border: 1px solid var(--gold-border);
  font-size: 0.78rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.badge-tag {
  background-color: var(--brand);
  color: #ffffff;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink-strong);
  overflow-wrap: break-word;
}

.hero-title-accent {
  display: block;
  margin-top: 4px;
  background: linear-gradient(110deg, var(--brand) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .hero-title-accent {
  background: linear-gradient(110deg, #ff7d85 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  margin: 16px 0 0;
  font-size: 1rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-lead strong {
  color: var(--ink-strong);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-metrics {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-item {
  min-width: 0;
}

.metric-value {
  display: block;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-strong);
}

.metric-value-accent {
  color: var(--brand-text);
}

.metric-label {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Dark Tech Card (shared across Hero Monitor, Estimator Summary, Why Us) */
.tech-card {
  background: linear-gradient(145deg, var(--tech-bg-1) 0%, var(--tech-bg-2) 60%, var(--tech-bg-accent) 100%);
  color: var(--tech-ink);
  border: 1px solid var(--tech-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-tech);
}

.hero-monitor {
  padding: 20px;
}

.monitor-photo {
  display: block;
  position: relative;
  overflow: hidden;
  margin: -20px -20px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--tech-bg-2);
}

.monitor-photo img {
  display: block;
  width: 100%;
  height: clamp(130px, 13vw, 200px);
  object-fit: cover;
  object-position: center 48%;
}

.monitor-photo span {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: #211518e8;
  color: #fff6ea;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: .75rem;
}

.monitor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tech-border-subtle);
}

.monitor-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.monitor-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--tech-gold);
}

.monitor-hours {
  font-size: 0.75rem;
  color: var(--tech-muted);
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: rgba(16, 185, 129, 0.16);
  color: var(--tech-emerald);
  border: 1px solid rgba(52, 211, 153, 0.32);
  white-space: nowrap;
}

.monitor-rows {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.monitor-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background-color: var(--tech-surface);
  border: 1px solid var(--tech-border-subtle);
  color: var(--tech-ink);
  text-align: left;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.monitor-row:hover {
  background-color: var(--tech-surface-2);
  border-color: var(--tech-gold);
  transform: translateY(-1px);
}

.monitor-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.monitor-icon-red {
  background-color: rgba(255, 107, 114, 0.16);
  color: var(--tech-red);
}

.monitor-icon-gold {
  background-color: rgba(241, 204, 118, 0.16);
  color: var(--tech-gold);
}

.monitor-icon-crimson {
  background-color: rgba(180, 8, 18, 0.35);
  color: #ffb4b8;
}

.monitor-row-body {
  flex: 1;
  min-width: 0;
}

.monitor-row-body strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}

.monitor-row-body small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--tech-muted);
}

.monitor-tag {
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.monitor-tag-gold {
  color: var(--tech-gold);
}

.monitor-tag-green {
  color: var(--tech-emerald);
}

.monitor-proof {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--tech-border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.monitor-thumb {
  width: 68px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--tech-border);
  flex-shrink: 0;
}

.monitor-proof-text {
  flex: 1;
  min-width: 0;
}

.monitor-proof-text strong {
  display: block;
  font-size: 0.78rem;
}

.monitor-proof-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--tech-muted);
}

.monitor-chat-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tech-gold);
  white-space: nowrap;
}

.monitor-chat-link:hover {
  text-decoration: underline;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 56px;
}

.section-toned {
  background-color: var(--soft);
  border-block: 1px solid var(--line);
}

.section-header {
  margin-bottom: 32px;
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-text);
  background-color: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.section-title {
  margin: 10px 0 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-strong);
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- 3 Core Pillars ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.pillar-card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.pillar-card-featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-card);
}

.featured-ribbon {
  position: absolute;
  top: -13px;
  right: 20px;
  background: linear-gradient(110deg, var(--brand) 0%, var(--gold) 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.pillar-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background-color: var(--brand-soft);
  color: var(--brand-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-icon-brand {
  background-color: var(--brand);
  color: #ffffff;
}

.pillar-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.pillar-desc {
  margin: 8px 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.pillar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink);
}

.pillar-list li {
  position: relative;
  padding-left: 20px;
}

.pillar-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-ink);
  font-weight: 700;
}

.pillar-foot {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pillar-price {
  font-size: 0.82rem;
  color: var(--muted);
}

.pillar-price strong {
  font-size: 1.05rem;
  color: var(--ink-strong);
}

.text-action-btn {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--brand-text);
  font-size: 0.86rem;
  font-weight: 600;
}

.text-action-btn:hover {
  text-decoration: underline;
}

/* ---------- Complete 13 Services Directory ---------- */
.directory-wrap {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.directory-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.directory-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.directory-sub {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.pill-btn:hover {
  border-color: var(--gold);
  color: var(--ink-strong);
}

.pill-btn.is-active {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

.directory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.dir-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.dir-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.dir-cat {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-ink);
  background-color: var(--gold-soft);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.dir-card h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.dir-card h4 a:hover {
  color: var(--brand-text);
}

.dir-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  flex: 1;
}

.dir-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-text);
}

.dir-link:hover {
  text-decoration: underline;
}

/* ---------- Interactive Estimator ---------- */
.estimator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.estimator-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.est-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.est-item:hover {
  border-color: var(--gold);
}

.est-item.is-selected {
  border-color: var(--brand);
  background-color: var(--brand-soft);
  box-shadow: var(--shadow-soft);
}

.est-select-trigger {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: inherit;
}

.est-check {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background-color: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.est-item.is-selected .est-check {
  background-color: var(--brand);
  border-color: var(--brand);
}

.est-item-body {
  min-width: 0;
}

.est-item-name {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-strong);
  line-height: 1.3;
}

.est-item-desc {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--muted);
}

.est-item-price {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-text);
}

.est-item-price-scope {
  color: var(--gold-ink);
  background-color: var(--gold-soft);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  flex-shrink: 0;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background-color: var(--soft);
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.qty-btn:hover {
  background-color: var(--brand);
  color: #ffffff;
}

.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-strong);
}

/* Sticky Summary Card */
.summary-card {
  padding: 24px;
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tech-border-subtle);
}

.summary-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(241, 204, 118, 0.16);
  color: var(--tech-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-title-group h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.summary-title-group small {
  display: block;
  font-size: 0.72rem;
  color: var(--tech-muted);
}

.reset-btn {
  background: none;
  border: none;
  color: var(--tech-muted);
  font-size: 0.78rem;
  text-decoration: underline;
  padding: 4px;
}

.reset-btn:hover {
  color: var(--tech-ink);
}

.summary-list {
  margin-block: 16px;
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-empty {
  text-align: center;
  padding: 20px 12px;
  border: 1px dashed var(--tech-border-subtle);
  border-radius: var(--radius-md);
  color: var(--tech-muted);
  font-size: 0.82rem;
}

.summary-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
}

.summary-line-qty {
  color: var(--tech-gold);
  font-weight: 600;
  margin-left: 4px;
}

.summary-line-amt {
  font-weight: 600;
  white-space: nowrap;
  color: var(--tech-ink);
}

.onsite-box {
  background-color: var(--tech-surface);
  border: 1px solid var(--tech-border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.onsite-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.onsite-icon {
  color: var(--tech-gold);
}

.onsite-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.onsite-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--tech-muted);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-slider {
  background-color: var(--brand);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.switch input:focus-visible + .switch-slider {
  outline: 3px solid var(--tech-gold);
  outline-offset: 2px;
}

.summary-totals {
  padding-top: 14px;
  border-top: 1px solid var(--tech-border-subtle);
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--tech-muted);
}

.onsite-fee-val {
  color: var(--tech-ink);
  font-weight: 600;
}

.onsite-fee-free {
  color: var(--tech-emerald);
}

.total-main-row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.total-figure {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tech-gold);
  line-height: 1.1;
}

.total-unit {
  font-size: 0.9rem;
  color: var(--tech-muted);
  margin-left: 4px;
}

.scope-extra-note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--tech-gold);
  font-weight: 500;
}

.total-disclaimer {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--tech-muted);
}

.summary-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-line-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.btn-sm-wide {
  padding: 10px 12px;
  font-size: 0.82rem;
  border-radius: 12px;
}

/* ---------- Why Choose Us Banner ---------- */
.why-banner {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.why-glow {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 204, 118, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.why-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tech-gold);
}

.why-title {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.28;
}

.why-desc {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--tech-muted);
}

.why-contact-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--tech-gold);
}

.why-contact-strip a {
  text-decoration: underline;
  font-weight: 600;
}

.why-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.why-item {
  background-color: var(--tech-surface);
  border: 1px solid var(--tech-border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.why-item-icon {
  color: var(--tech-gold);
  margin-bottom: 10px;
}

.why-item h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.why-item p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--tech-muted);
}

/* ---------- Portfolio & Video ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.portfolio-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.portfolio-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: var(--soft);
}

.portfolio-meta {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.portfolio-meta strong {
  font-size: 0.94rem;
  color: var(--ink-strong);
}

.portfolio-meta span {
  font-size: 0.78rem;
  color: var(--muted);
}

.video-panel {
  margin-top: 28px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.video-copy h3 {
  margin: 10px 0 0;
  font-size: 1.25rem;
  color: var(--ink-strong);
}

.video-copy p {
  margin: 8px 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-player-wrap video {
  width: 100%;
  border-radius: var(--radius-md);
  background-color: #0f0a0c;
  aspect-ratio: 16 / 9;
}

/* ---------- News & Downloads ---------- */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.news-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}

.news-cat {
  background-color: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.news-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink-strong);
}

.news-card h3 a:hover {
  color: var(--brand-text);
}

.news-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  flex: 1;
}

.resources-split {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.resource-panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.resource-panel h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink-strong);
}

.resource-sub {
  margin: 4px 0 16px;
  font-size: 0.84rem;
  color: var(--muted);
}

.quick-links-list,
.quick-links-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.quick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background-color: var(--soft);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quick-item:hover {
  border-color: var(--gold);
  background-color: var(--surface);
}

.quick-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-strong);
}

.quick-item small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.quick-arrow {
  color: var(--brand-text);
  font-weight: 700;
}

/* ---------- FAQ & Location ---------- */
.faq-location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.faq-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.faq-trigger {
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: none;
  color: var(--ink-strong);
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-plus {
  font-size: 1.2rem;
  color: var(--brand-text);
  flex-shrink: 0;
}

.faq-panel {
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.faq-panel p {
  margin: 0;
}

.location-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.location-card h3 {
  margin: 10px 0 14px;
  font-size: 1.2rem;
  color: var(--ink-strong);
}

.contact-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-dl dt {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-dl dd {
  margin: 2px 0 0;
  font-size: 0.92rem;
  color: var(--ink-strong);
}

.contact-dl a {
  color: var(--brand-text);
  font-weight: 600;
}

.location-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: 40px;
  padding-bottom: 92px; /* Space for mobile sticky bottom bar */
}

.footer-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-callout h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--ink-strong);
}

.footer-callout p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-cols {
  padding-block: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.footer-brand {
  display: block;
  font-size: 1rem;
  color: var(--ink-strong);
}

.footer-about {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 42ch;
}

.footer-links {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-links a:hover,
.footer-text-btn:hover {
  color: var(--brand-text);
}

.footer-text-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Mobile Sticky Bottom Bar ---------- */
.mobile-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background-color: var(--bar-glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.mobile-bar-tel {
  background-color: var(--soft);
  color: var(--ink-strong);
  border: 1px solid var(--line);
}

.mobile-bar-line {
  background-color: var(--line-green);
  color: #ffffff;
}

.mobile-bar-quote {
  background-color: var(--brand);
  color: #ffffff;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  margin: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(17, 8, 11, 0.68);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-tech);
}

.modal-backdrop:not([open]) { display: none; }
body:has(.modal-backdrop[open]) { overflow: hidden; }
.modal-backdrop::backdrop { background: transparent; }
.desktop-line-link { color: var(--tech-gold); font-size: .84rem; text-align: center; text-decoration: underline; }
.booking-confirmation { margin: 0; font-weight: 600; }
.summary-line-amt { white-space: normal; text-align: right; min-width: 5em; }
.qty-btn:disabled { opacity: .5; cursor: default; }
.sr-only, .copy-helper {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 639px) {
  .est-item { flex-wrap: wrap; }
  .est-select-trigger { flex-basis: 100%; }
  .qty-stepper { margin-inline-start: 34px; }
  .qty-btn { width: 40px; height: 40px; }
  .modal-dialog { max-height: calc(100dvh - 32px); }
}

.modal-head {
  background: linear-gradient(110deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

.modal-form {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background-color: var(--paper);
  color: var(--ink-strong);
  font-size: 0.9rem;
}

.form-field textarea {
  resize: vertical;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
}

.consent-check input {
  margin-top: 4px;
  flex-shrink: 0;
}

.form-error {
  margin: 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-soft);
  color: var(--brand-text);
  font-size: 0.84rem;
  font-weight: 600;
}

.modal-proto-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--soft);
  font-size: 0.76rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- Cookie Bar & Toast ---------- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 72px;
  z-index: 58;
  max-width: 440px;
  margin-left: auto;
  background-color: var(--tech-bg-1);
  color: var(--tech-ink);
  border: 1px solid var(--tech-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-tech);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-bar p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--tech-muted);
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 120;
  background-color: var(--tech-bg-1);
  color: var(--tech-ink);
  border: 1px solid var(--tech-border);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-tech);
  max-width: calc(100% - 32px);
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(52, 211, 153, 0.2);
  color: var(--tech-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Responsive Breakpoints ---------- */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .summary-line-pair {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

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

  .footer-cols {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }

  .site-footer {
    padding-bottom: 40px;
  }

  .cookie-bar,
  .toast {
    bottom: 20px;
  }

  .header-book-btn {
    display: inline-flex;
  }

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

  .resources-split {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (min-width: 1200px) {
  .main-nav {
    display: flex;
    gap: 16px;
  }

  .mobile-menu-btn,
  .mobile-drawer {
    display: none !important;
  }
}

@media (min-width: 1440px) {
  .header-calc-btn {
    display: inline-flex;
  }
}

@media (min-width: 992px) {
  .hero-section {
    padding-block: 48px 56px;
  }

  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 36px;
  }

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

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

  .estimator-grid {
    grid-template-columns: 7fr 5fr;
    gap: 28px;
  }

  .estimator-right {
    position: sticky;
    top: 88px;
  }

  .why-grid {
    grid-template-columns: 5fr 7fr;
    gap: 32px;
  }

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

  .video-panel {
    grid-template-columns: 5fr 7fr;
  }

  .faq-location-grid {
    grid-template-columns: 7fr 5fr;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 0.98rem;
  }

  .brand-meta {
    font-size: 0.68rem;
  }

  .mobile-bar-btn {
    font-size: 0.72rem;
    padding-inline: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
