:root {
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: #ffffff;
  padding-bottom: 76px;
}

body.menu-open {
  overflow: hidden;
}

body,
p,
li,
td,
th,
a,
button,
input,
textarea {
  font-size: 16px;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 700;
}

h1 {
  font-size: 39px;
}

h2 {
  font-size: 31px;
}

h3,
h4 {
  font-size: 22px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(54px, 5vw, 82px);
  }

  h2 {
    font-size: clamp(38px, 3vw, 54px);
  }
}

.site-shell {
  background:
    radial-gradient(circle at 88% 8%, rgba(168, 160, 212, 0.42), transparent 32rem),
    radial-gradient(circle at 8% 38%, rgba(99, 158, 145, 0.18), transparent 30rem),
    #ffffff;
}

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(47, 37, 110, 0.1);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.logo-text {
  color: #111827;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-dark .logo-text {
  color: #ffffff !important;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  color: #111827 !important;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(47, 37, 110, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(47, 37, 110, 0.14);
}

.desktop-nav,
.desktop-phone {
  display: none !important;
}

.mobile-menu-button {
  display: inline-flex !important;
}

@media (min-width: 768px) {
  .desktop-nav,
  .desktop-phone {
    display: flex !important;
  }

  .mobile-menu-button,
  .mobile-drawer,
  .mobile-sticky-call {
    display: none !important;
  }
}

.mobile-drawer {
  position: fixed;
  z-index: 55;
  top: 75px;
  right: 0;
  left: 0;
  display: none;
  background: #ffffff;
  border-bottom: 1px solid rgba(47, 37, 110, 0.14);
  box-shadow: 0 28px 80px rgba(23, 18, 58, 0.22);
}

.mobile-drawer.is-open {
  display: block;
}

.nav-link {
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.phone-button,
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 38px rgba(47, 37, 110, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.phone-button:hover,
.cta-button:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 24px 54px rgba(47, 37, 110, 0.34);
}

.cta-button::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  opacity: 0;
  animation: ctaPulse 2.4s ease-out infinite;
}

@keyframes ctaPulse {
  0% { transform: scale(0.96); opacity: 0.62; }
  70% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1.1); opacity: 0; }
}

.hero-section {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding-top: 110px;
  overflow: hidden;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(18, 14, 48, 0.94) 0%, rgba(47, 37, 110, 0.82) 43%, rgba(47, 37, 110, 0.35) 100%), url("../images/hero-technician.jpg");
  background-size: cover;
  background-position: center;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.dark-panel h2,
.dark-panel h3,
.section-dark h2,
.section-dark h3 {
  color: #ffffff !important;
}

.hero-section p,
.dark-panel p,
.dark-panel li,
.section-dark p,
.section-dark li {
  color: rgba(255, 255, 255, 0.9);
}

.stars {
  color: #F6C453;
  letter-spacing: 0.12em;
  font-size: 22px;
  text-shadow: 0 6px 18px rgba(246, 196, 83, 0.22);
}

.trust-badges img {
  width: auto;
  height: 48px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(8, 5, 30, 0.28);
}

.accent-rule {
  width: 64px;
  height: 5px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.bento-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(47, 37, 110, 0.1);
  box-shadow: 0 20px 60px rgba(47, 37, 110, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 158, 145, 0.5);
  box-shadow: 0 30px 90px rgba(47, 37, 110, 0.18);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(47, 37, 110, 0.08) 0.7px, transparent 0.7px);
  background-size: 10px 10px;
  opacity: 0.55;
}

.icon-box {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid rgba(168, 160, 212, 0.5);
  flex: 0 0 auto;
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

.split-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.split-text,
.split-image {
  width: 100%;
}

.split-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

@media (min-width: 900px) {
  .split-row {
    flex-direction: row;
    align-items: stretch;
  }

  .split-text {
    flex: 0 0 65%;
  }

  .split-image {
    flex: 0 0 35%;
  }

  .split-row.reverse {
    flex-direction: row-reverse;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.review-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  scroll-snap-align: start;
  background: #ffffff;
  color: #374151;
  border: 1px solid rgba(47, 37, 110, 0.12);
  box-shadow: 0 18px 48px rgba(47, 37, 110, 0.1);
}

.review-card strong,
.review-card h3 {
  color: #111827;
}

@media (min-width: 768px) {
  .review-track {
    grid-auto-columns: calc((100% - 2rem) / 3);
  }
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(47, 37, 110, 0.12);
  background: #ffffff;
}

.table-wrap table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(47, 37, 110, 0.1);
  color: #374151;
}

.table-wrap th {
  color: #111827;
  background: #f5f3ff;
}

.process-item {
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
}

.zip-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(99, 158, 145, 0.45);
  font-weight: 800;
}

.mobile-sticky-call {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0.9rem 0.85rem calc(0.9rem + env(safe-area-inset-bottom));
  background: #17123A;
  color: #ffffff !important;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 -14px 38px rgba(23, 18, 58, 0.35);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms ease, opacity 260ms ease;
}

.mobile-sticky-call.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.footer-link {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.footer-link:hover {
  color: #ffffff;
}

@media (min-width: 768px) {
  .mobile-sticky-call,
  .mobile-sticky-call.is-visible,
  .mobile-drawer,
  .mobile-drawer.is-open,
  .mobile-menu-button {
    display: none !important;
  }
}

footer,
footer p,
footer a,
footer li {
  font-size: 14px;
}

.fade-up {
  animation: fadeUp 700ms ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
