:root {
  --blue: #245778;
  --blue-deep: #173a55;
  --blue-dark: #102d43;
  --red: #d83f4a;
  --red-dark: #bd303a;
  --light: #f4f7f9;
  --logo-bg: #f7f7f7;
  --gray: #68737b;
  --border: #d9e1e6;
  --white: #ffffff;
  --shadow-sm: 0 10px 28px rgba(16, 45, 67, 0.08);
  --shadow-lg: 0 22px 55px rgba(8, 35, 54, 0.20);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--blue-dark);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--blue-dark);
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 247, 0.97);
  border-bottom: 1px solid rgba(16, 45, 67, 0.10);
  backdrop-filter: blur(12px);
}

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

.brand {
  flex: 0 0 auto;
  display: block;
}

.brand img {
  width: 228px;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 750;
}

.nav a {
  position: relative;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--red);
  transition: right 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  right: 0;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--blue-dark);
  line-height: 1.2;
  text-decoration: none;
  font-weight: 850;
}

.header-phone span {
  margin-bottom: 4px;
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 63, 74, 0.28), transparent 28%),
    linear-gradient(120deg, #2e6285 0%, #173a55 66%, #102d43 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  left: -260px;
  bottom: -340px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.hero-copy {
  max-width: 720px;
}

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

.hero .eyebrow {
  color: #ffd0d4;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5.4vw, 4.85rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-text {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.hero-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-weight: 800;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link.dark {
  color: var(--blue);
}

.hero-card {
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: 38px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-top: 7px solid var(--red);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.hero-card h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.hero-card > p:not(.card-kicker) {
  margin: 0 0 26px;
  color: var(--gray);
}

.card-kicker {
  margin: 0 0 5px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 900;
}

.card-actions {
  display: grid;
  gap: 13px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(16, 45, 67, 0.13);
  font: inherit;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 22px rgba(16, 45, 67, 0.19);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.nav a:focus-visible,
.header-phone:focus-visible,
.text-link:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(216, 63, 74, 0.45);
  outline-offset: 4px;
}

.btn.primary {
  background: var(--red);
}

.btn.primary:hover {
  background: var(--red-dark);
}

.btn.secondary {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue);
  box-shadow: none;
}

.btn.secondary:hover {
  color: var(--white);
  background: var(--blue);
}

.btn.full {
  width: 100%;
}

.btn.outline {
  color: var(--blue);
  background: transparent;
  border-color: #aac0ce;
  box-shadow: none;
}

.btn.outline:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.btn.large {
  min-height: 54px;
  padding-inline: 28px;
}

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading > p:last-child,
.service-card p,
.area-copy p,
.request-panel p,
.contact-card > p,
.faq-heading > p:last-child,
.faq-list p {
  color: var(--gray);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 260px;
  padding: 30px 26px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #b9cbd6;
  box-shadow: 0 16px 34px rgba(16, 45, 67, 0.12);
}

.service-card h3 {
  color: var(--blue);
}

.service-card p {
  margin-bottom: 0;
}

.service-number {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.service-area-section {
  color: var(--white);
  background: var(--blue-deep);
}

.service-area-section .eyebrow {
  color: #ffc8cd;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: clamp(36px, 7vw, 92px);
}

.service-area-section h2 {
  max-width: 720px;
}

.area-copy p {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.78);
}

.area-copy .text-link {
  color: var(--white);
}

.accent {
  background: var(--light);
}

.request-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding: 44px 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.request-panel h2 {
  margin-bottom: 10px;
}

.request-panel p {
  max-width: 650px;
  margin-bottom: 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.25fr);
  gap: clamp(44px, 7vw, 90px);
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 150px;
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 24px 46px 24px 0;
  cursor: pointer;
  list-style: none;
  color: var(--blue-dark);
  font-size: 1.08rem;
  font-weight: 850;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1.65rem;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: -8px 0 24px;
  padding-right: 42px;
}

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

.contact-card {
  max-width: 980px;
  padding: 56px 48px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8fafb);
  border: 1px solid var(--border);
  border-top: 6px solid var(--red);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-card > p {
  max-width: 680px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions.centered {
  justify-content: center;
  margin-top: 26px;
}

.site-footer {
  padding: 30px 0 96px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--blue-dark);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.mobile-cta {
  display: none;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 98px;
  }

  .brand img {
    width: 205px;
  }

  .nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
  }

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 94px;
  }

  body {
    padding-bottom: 70px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 88px;
    gap: 14px;
  }

  .brand img {
    width: 178px;
  }

  .header-phone {
    font-size: 0.9rem;
  }

  .header-phone span {
    font-size: 0.65rem;
  }

  .hero {
    padding: 58px 0 64px;
  }

  .hero-grid,
  .split-section,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-card {
    max-width: none;
    justify-self: stretch;
    padding: 30px;
  }

  .hero-inline-actions {
    gap: 17px;
  }

  .section {
    padding: 64px 0;
  }

  .split-section,
  .faq-layout {
    gap: 28px;
  }

  .request-panel {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 28px;
    text-align: center;
  }

  .request-panel .btn {
    justify-self: center;
  }

  .faq-heading {
    position: static;
  }

  .contact-card {
    padding: 42px 24px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

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

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 10px;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(16, 45, 67, 0.12);
    backdrop-filter: blur(12px);
  }

  .mobile-cta a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--blue);
    text-decoration: none;
    font-weight: 850;
  }

  .mobile-cta a:last-child {
    background: var(--red);
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 155px;
  }

  .header-phone {
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .hero-card {
    padding: 27px 22px;
  }

  .hero-inline-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .service-card {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

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

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

/* Keep the simplified contact label in the brand accent color. */
.contact-card > .eyebrow {
  color: var(--red);
}
.contact-section {
  padding-top: 90px;
  padding-bottom: 90px;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 48px;
  text-align: center;
}

.contact-card h2 {
  max-width: 700px;
  margin: 10px auto 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
}

.contact-text {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.contact-card .hero-actions {
  justify-content: center;
  gap: 16px;
}

.contact-card .btn {
  min-width: 180px;
}

@media (max-width: 560px) {
  .contact-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .contact-card {
    padding: 42px 22px;
  }

  .contact-card .hero-actions {
    flex-direction: column;
  }

  .contact-card .btn {
    width: 100%;
    max-width: 280px;
  }
}
/* Final mobile contact-button override: span the full width of the contact card. */
@media (max-width: 560px) {
  .contact-card .hero-actions {
    width: 100%;
    align-items: stretch;
  }

  .contact-card .hero-actions .btn {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* Center the logo in the mobile header after navigation is hidden. */
@media (max-width: 980px) {
  .header-inner {
    justify-content: center;
  }

  .header-right {
    display: none;
  }

  .brand {
    margin-inline: auto;
  }
}
