:root {
  --navy: #062e79;
  --blue: #1288ee;
  --blue-strong: #0874d8;
  --sky: #e8f5ff;
  --ink: #10213f;
  --muted: #5d6b80;
  --line: #d7e8f6;
  --paper: #fbfdff;
  --surface: #ffffff;
  --soft: #f4f9fd;
  --warning: #ffb02e;
  --leaf: #2c7a55;
  --clay: #a65f3d;
  --steel: #5d6b80;
  --focus: #ffb02e;
  --shadow: 0 18px 45px rgba(6, 46, 121, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(18, 136, 238, 0.18);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(232, 245, 255, 0.9) 0%, rgba(255, 255, 255, 0.92) 48%, rgba(247, 250, 252, 0.98) 100%);
}

a {
  color: inherit;
}

a,
button {
  touch-action: manipulation;
}

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

img,
svg {
  display: block;
}

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

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 232, 246, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

section[id] {
  scroll-margin-top: 96px;
}

.header-inner,
.section-inner,
.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 250px;
  max-width: min(250px, 42vw);
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--navy);
  background: var(--sky);
}

.header-call,
.primary-call,
.contact-call,
.floating-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.header-call {
  min-width: 184px;
  min-height: 50px;
  padding: 10px 16px;
  border: 1px solid rgba(18, 136, 238, 0.28);
  border-radius: 7px;
  color: var(--navy);
  background: var(--sky);
}

.header-call span,
.header-call strong {
  display: block;
}

.header-call span {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.header-call strong {
  font-size: 1.05rem;
}

.hero {
  display: grid;
  min-height: calc(100svh - 82px);
  align-items: center;
  padding: 42px 0 54px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
}

.hero-inner::after {
  content: "";
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(6, 46, 121, 0.09), rgba(6, 46, 121, 0.42)),
    url("assets/servitaly-logo.png") center / min(82%, 620px) auto no-repeat,
    linear-gradient(145deg, #ffffff, #dceffd 54%, #f8fbfc);
  box-shadow: var(--shadow);
}

.emergency-panel {
  padding: 36px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin-top: 24px;
  font-size: 5.2rem;
}

h2 {
  font-size: 3.2rem;
}

h3 {
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.24rem;
  text-wrap: pretty;
}

.primary-call {
  width: min(100%, 460px);
  min-height: 88px;
  margin-top: 0;
  padding: 16px 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 18px 36px rgba(8, 116, 216, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-call:hover,
.primary-call:focus-visible,
.floating-call:hover,
.floating-call:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(8, 116, 216, 0.34);
}

.primary-call:active,
.header-call:active,
.contact-call:active,
.floating-call:active,
.service-card:active {
  transform: translateY(1px);
}

.call-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  font-size: 1.55rem;
}

.primary-call small,
.floating-call small,
.contact-call small {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-call strong {
  display: block;
  font-size: 2.45rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.trust-row span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.services-section,
.process-section,
.contact-section {
  padding: 72px 0;
}

.section-heading {
  display: block;
  margin-bottom: 26px;
}

.section-heading h2 {
  max-width: 760px;
}

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

.service-card {
  --accent: var(--blue-strong);
  --accent-rgb: 8, 116, 216;
  display: grid;
  min-height: 292px;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(6, 46, 121, 0.06);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.42);
  border-top-color: var(--accent);
  box-shadow: 0 18px 36px rgba(var(--accent-rgb), 0.14);
  transform: translateY(-2px);
}

.service-card--water {
  --accent: #0874d8;
  --accent-rgb: 8, 116, 216;
}

.service-card--power {
  --accent: #d78d21;
  --accent-rgb: 215, 141, 33;
}

.service-card--work {
  --accent: #5d6b80;
  --accent-rgb: 93, 107, 128;
}

.service-card--garden {
  --accent: var(--leaf);
  --accent-rgb: 44, 122, 85;
}

.service-card--drywall {
  --accent: var(--clay);
  --accent-rgb: 166, 95, 61;
}

.service-card--lock {
  --accent: #203f86;
  --accent-rgb: 32, 63, 134;
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  font-size: 1.8rem;
}

.service-body {
  display: block;
  min-width: 0;
}

.service-kicker {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.service-body > span:not(.service-kicker) {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.service-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  align-self: end;
  margin-top: 20px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.process-section {
  background: var(--navy);
}

.process-section .eyebrow,
.process-section h2 {
  color: #fff;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 184px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #d8ebff;
  background: rgba(255, 255, 255, 0.08);
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps);
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--warning);
  font-weight: 900;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  color: #fff;
  font-size: 1.2rem;
}

.steps span {
  margin-top: 8px;
}

.contact-section {
  background: var(--soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.contact-layout p {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-call {
  min-width: 290px;
  min-height: 112px;
  padding: 18px 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-call strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.site-footer {
  padding: 32px 0 118px;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.footer-inner img {
  width: 190px;
  height: auto;
}

.footer-inner p {
  max-width: 500px;
  margin: 0;
  text-align: right;
}

.floating-call {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 25;
  min-width: 252px;
  min-height: 72px;
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 16px 35px rgba(6, 46, 121, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.floating-call .call-icon {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
}

.floating-call strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .main-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner::after {
    min-height: 240px;
    background-size: min(86%, 620px) auto;
  }

  h1 {
    max-width: 12ch;
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-copy {
    font-size: 1.12rem;
  }

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

  .service-card {
    min-height: 250px;
  }

  .process-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-call {
    width: min(100%, 360px);
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .hero-inner {
    width: min(100% - 22px, 1120px);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 70px;
    gap: 10px;
  }

  .brand img {
    width: 148px;
  }

  .header-call {
    min-width: 0;
    min-height: 48px;
    padding: 9px 11px;
  }

  .header-call span {
    display: none;
  }

  .header-call strong {
    font-size: 0.98rem;
  }

  .hero {
    min-height: auto;
    padding: 18px 0 28px;
  }

  .emergency-panel {
    padding: 14px 0 0;
  }

  .hero-inner::after {
    content: none;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  h1 {
    max-width: 100%;
    margin-top: 18px;
    font-size: 2.28rem;
    line-height: 1.06;
  }

  h2 {
    font-size: 1.78rem;
    line-height: 1.12;
  }

  h3 {
    font-size: 1.08rem;
  }

  .primary-call {
    width: 100%;
    min-height: 74px;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .primary-call small,
  .floating-call small,
  .contact-call small {
    font-size: 0.72rem;
  }

  .primary-call strong {
    font-size: 1.92rem;
  }

  .call-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .hero-copy {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.42;
  }

  .trust-row {
    gap: 7px;
    margin-top: 16px;
  }

  .trust-row span {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.84rem;
  }

  .services-section,
  .process-section,
  .contact-section {
    padding: 42px 0;
  }

  .services-section {
    padding-top: 30px;
  }

  .section-heading {
    display: block;
    margin-bottom: 18px;
  }

  .services-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    font-size: 1.45rem;
  }

  .service-kicker {
    min-height: 18px;
    margin-bottom: 3px;
    padding: 2px 6px;
    font-size: 0.58rem;
  }

  .service-body > span:not(.service-kicker) {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .service-cta {
    min-height: 48px;
    align-self: center;
    margin-top: 0;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .steps li {
    min-height: auto;
    padding: 18px;
  }

  .steps li::before {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
  }

  .contact-layout p {
    font-size: 1rem;
  }

  .contact-call {
    width: 100%;
    min-width: 0;
    min-height: 84px;
  }

  .contact-call strong {
    font-size: 1.75rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner p {
    text-align: left;
  }

  .floating-call {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    min-width: 0;
    min-height: 64px;
    border-radius: 8px;
    padding: 10px 14px;
  }

  .floating-call strong {
    font-size: 1.18rem;
  }
}

@media (max-width: 360px) {
  .brand img {
    width: 132px;
  }

  .header-call strong {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.12rem;
  }

  .primary-call strong {
    font-size: 1.68rem;
  }

  .floating-call strong {
    font-size: 1.06rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
