:root {
  --ice: #4e9cd7;
  --snow: #f4f7fa;
  --steel: #c5cdd6;
  --ink: #111827;
  --slate: #334155;
  --dark: #0f172a;
  --white: #ffffff;
  --line: rgba(78, 156, 215, 0.32);
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--slate);
  background: var(--snow);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4, .logo-text {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(32px, 7vw, 66px); }
h2 { font-size: clamp(26px, 5vw, 44px); }
h3, h4 { font-size: clamp(22px, 4vw, 28px); }
p, li, td, th, a, button { font-size: 16px; }

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

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

.site-shell { overflow: hidden; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.topbar {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(244, 247, 250, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(197, 205, 214, 0.72);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--dark), #20304a);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
  border: 1px solid rgba(78, 156, 215, 0.55);
}

.logo-text { font-size: 20px; font-weight: 900; }

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

.desktop-nav a {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  padding: 12px 4px;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover { border-color: var(--ice); color: var(--dark); }

.phone-button, .primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, var(--ice), #256fa6);
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 16px 38px rgba(78, 156, 215, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.phone-button:hover, .primary-button:hover, .secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(78, 156, 215, 0.38);
  filter: brightness(1.04);
}

.hamburger {
  display: inline-grid !important;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--steel);
  background: var(--white);
  color: var(--dark);
}

.hamburger span, .hamburger span::before, .hamburger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hamburger span::before { transform: translateY(-7px); }
.hamburger span::after { transform: translateY(5px); }

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  background: rgba(244, 247, 250, 0.98);
  border-bottom: 1px solid var(--steel);
}

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

.mobile-menu a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid rgba(197, 205, 214, 0.6);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
}

.mobile-menu .phone-button { margin-top: 16px; width: 100%; color: #ffffff; }

.hero {
  position: relative;
  min-height: 820px;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(8, 15, 30, 0.94) 0%, rgba(8, 15, 30, 0.82) 45%, rgba(8, 15, 30, 0.44) 100%), url('../images/hero-technician.jpg');
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::before, .steel-section::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.14) 0 2px, transparent 3px),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.16) 48%, transparent 56%);
  opacity: 0.6;
  animation: frostSweep 9s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding: 86px 0 70px;
}

.eyebrow {
  color: var(--ice);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

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

.hero-copy p { color: rgba(255, 255, 255, 0.92); max-width: 720px; }

.stars { color: #78c7ff; font-size: 24px; letter-spacing: 0.08em; margin: 18px 0 12px; }

.gallery-icons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 10px 0 24px; }

.gallery-icons img {
  width: auto;
  height: 50px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 5px 8px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 88% 100%, 0 100%);
}

.hero-cta-text { font-weight: 900; color: #ffffff; margin-top: 20px; }

.benefit-panel, .frost-card, .service-card, .process-card, .review-card, .faq-card {
  background: rgba(255, 255, 255, 0.92);
  color: var(--slate);
  border: 1px solid rgba(197, 205, 214, 0.78);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.benefit-panel { padding: 26px; backdrop-filter: blur(16px); background: rgba(15, 23, 42, 0.64); border-color: rgba(78, 156, 215, 0.45); }
.benefit-panel h3, .benefit-panel p, .benefit-panel li { color: #ffffff; }
.benefit-list { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }

.icon-box {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(78, 156, 215, 0.16);
  border: 1px solid rgba(78, 156, 215, 0.44);
  color: var(--ice);
}

.icon-box svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.section { padding: 72px 0; position: relative; }
.section-tight { padding: 50px 0; }
.section-title { max-width: 820px; margin-bottom: 34px; }
.section-title p { margin-top: 12px; }
.ice-rule { width: 74px; height: 3px; background: linear-gradient(90deg, var(--ice), transparent); margin-top: 16px; }

.two-col {
  display: grid;
  gap: 26px;
  align-items: center;
}

.two-col .text-col { order: 2; }
.two-col .image-col { order: 1; }
.image-frame { position: relative; border: 1px solid var(--steel); box-shadow: var(--shadow); background: var(--white); padding: 10px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.image-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,0.62); pointer-events: none; }
.image-frame img { width: 100%; height: 340px; object-fit: cover; }

.service-grid { display: grid; gap: 18px; }
.service-card { padding: 24px; transition: transform 180ms ease, border-color 180ms ease; }
.service-card:hover { transform: translateY(-4px); border-color: var(--ice); }
.service-card ul { padding-left: 20px; }
.service-card li { margin-bottom: 9px; }
.service-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }

.steel-section {
  position: relative;
  color: #e5eef7;
  background: linear-gradient(135deg, #101a2a, #233044 48%, #101827);
  isolation: isolate;
}

.steel-section p, .steel-section li, .steel-section td, .steel-section th { color: #e5eef7; }

.table-wrap { overflow-x: auto; border: 1px solid rgba(197, 205, 214, 0.72); background: var(--white); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 16px; border-bottom: 1px solid rgba(197, 205, 214, 0.7); text-align: left; color: var(--slate); }
th { background: #e9f3fb; color: var(--ink); font-weight: 900; }

.numbered-list { counter-reset: repair; display: grid; gap: 16px; padding: 0; list-style: none; }
.numbered-list li { counter-increment: repair; display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: var(--white); border: 1px solid var(--steel); padding: 18px; }
.numbered-list li::before { content: counter(repair); width: 44px; height: 44px; display: grid; place-items: center; background: var(--dark); color: #ffffff; font-weight: 900; }

.process-grid { display: grid; gap: 16px; }
.process-card { padding: 22px; }
.process-card strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 8px; }

.parts-list, .coverage-list, .pricing-list { display: grid; gap: 10px; padding-left: 20px; }

.cta-band { background: linear-gradient(135deg, var(--dark), #1f3e5a); color: #ffffff; border-top: 1px solid rgba(78,156,215,0.38); border-bottom: 1px solid rgba(78,156,215,0.38); }
.cta-band h2, .cta-band p { color: #ffffff; }

.map-frame { border: 1px solid var(--steel); box-shadow: var(--shadow); background: var(--white); padding: 10px; }
.map-frame iframe { width: 100%; height: 430px; display: block; }

.reviews-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.slider-controls { display: flex; gap: 10px; }
.slider-controls button { width: 46px; height: 46px; border: 1px solid var(--steel); background: var(--white); color: var(--ink); font-weight: 900; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 86%); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin; }
.review-card { scroll-snap-align: start; padding: 24px; min-height: 260px; }
.review-card .stars { color: #1976ad; font-size: 18px; margin: 0 0 12px; }
.review-card strong { color: var(--ink); display: block; margin-top: 16px; }

.faq-grid { display: grid; gap: 16px; }
.faq-card { padding: 22px; }
.faq-card h3 { margin-bottom: 10px; }

.footer { background: #07111f; color: #dbeafe; padding: 52px 0 30px; }
.footer p, .footer a, .footer li { color: #dbeafe; font-size: 14px; }
.footer h3 { color: #ffffff; }
.footer-grid { display: grid; gap: 28px; }
.footer .logo-text { color: #ffffff; }
.footer-links { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.disclaimer { border-top: 1px solid rgba(219,234,254,0.18); margin-top: 28px; padding-top: 20px; }

.mobile-sticky-call {
  display: none !important;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 17, 31, 0.96);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.mobile-sticky-call .phone-button { width: 100%; min-height: 54px; color: #ffffff; padding-inline: 10px; font-size: 15px; }

@keyframes frostSweep {
  0%, 100% { transform: translateX(-2%); opacity: 0.38; }
  50% { transform: translateX(2%); opacity: 0.78; }
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fadeIn 700ms ease both; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero { min-height: 760px; }
  .section { padding: 56px 0; }
  body { padding-bottom: 78px; }
  .mobile-sticky-call.is-visible { display: block !important; transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
  .desktop-nav { display: flex !important; align-items: center; gap: 18px; }
  .desktop-phone { display: inline-flex !important; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr); align-items: center; padding: 132px 0 100px; }
  .two-col { grid-template-columns: minmax(0, 65%) minmax(260px, 35%); }
  .two-col.reverse { grid-template-columns: minmax(260px, 35%) minmax(0, 65%); }
  .two-col .text-col { order: 1; }
  .two-col .image-col { order: 2; }
  .two-col.reverse .image-col { order: 1; }
  .two-col.reverse .text-col { order: 2; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; }
  .mobile-sticky-call, .mobile-sticky-call.is-visible { display: none !important; opacity: 0 !important; transform: translateY(110%) !important; }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-track { grid-auto-columns: calc((100% - 48px) / 3); }
}
/* Fix mobile layout in the model numbers section */
@media (max-width: 767px) {

/* Allow grid children to shrink to the screen width */
.two-col,
.two-col.reverse,
.two-col .text-col,
.two-col .image-col,
#models,
#models .container,
#models .section-title {
min-width: 0;
max-width: 100%;
}

/* Prevent heading words from being clipped */
#models h2 {
max-width: 100%;
font-size: 26px;
line-height: 1.2;
letter-spacing: -0.02em;
white-space: normal;
overflow-wrap: anywhere;
word-break: normal;
}

/* Make the table horizontally scrollable */
#models .table-wrap {
display: block;
width: 100%;
max-width: 100%;
min-width: 0;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
touch-action: pan-x;
}

#models table {
width: 620px;
min-width: 620px;
max-width: none;
table-layout: auto;
}

#models th,
#models td {
white-space: nowrap;
}
}
