/* Section measurements and motion parameters checked against auto-spatny.at. */
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1280px; padding-inline: 16px; margin-inline: auto; }
.section { padding-block: 80px; }
h2, .history h2 { font-size: 36px; line-height: 40px; }
.section-heading { max-width: none; margin-bottom: 64px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading > p:last-child { max-width: 672px; margin: 0 auto; font-size: 18px; line-height: 28px; }
.section-heading::after { display: none; }
.sub-page .brand img { filter: brightness(0) invert(1); }
.home-page .hero-content { padding: 80px 16px; margin-top: 40px; animation: none; }
.hero-badge { margin-bottom: 32px; padding: 8px 16px; font-size: 14px; line-height: 20px; }
.home-page .hero h1 { margin-bottom: 24px; font-size: 48px; line-height: 60px; }
.home-page .hero-intro { margin-bottom: 48px; font-size: 20px; line-height: 32.5px; }
.home-page .hero-contact { gap: 16px; }
.home-page .hero-contact .button { width: auto; padding: 14px 32px; min-height: 60px; font-size: 18px; line-height: 28px; }
.button { transition: background .3s, color .3s, transform .3s, box-shadow .3s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 20px 40px #01489e33; }
.trust-strip { padding-block: 48px; border-block: 1px solid #1f2937; }
.trust-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding-block: 0; }
.trust-grid > div { flex-direction: column; justify-content: flex-start; gap: 0; padding: 0; border: 0; text-align: center; }
.trust-grid svg { width: 32px; height: 32px; margin-bottom: 8px; }
.trust-grid span, .trust-grid strong { font-size: 14px; line-height: 20px; color: #d1d5db; }
.trust-grid strong { display: inline; }
.services { background: #f4f4f5; }
.service-cards { grid-template-columns: 1fr; gap: 32px; }
.service-card { height: 100%; padding: 32px; border: 2px solid #1f2937; border-radius: 12px; align-items: stretch; }
.service-card::after { background: linear-gradient(to top,#000,#0008,#0000001a); }
.service-card .card-icon { position: static; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; margin-bottom: 24px; border-radius: 12px; background: #1f2937cc; transition: background .3s; }
.card-icon svg { width: 32px; height: 32px; }
.service-card h3 { margin: 0 0 16px; font-size: 24px; line-height: 32px; }
.service-card p { margin: 0; font-size: 16px; line-height: 26px; color: #d1d5db; }
.service-card-wrap:first-child .service-card, .service-card:is(:hover,:focus-visible) { border-color: var(--red); }
.service-card-wrap:focus-visible .service-card { border-color: var(--red); outline: 3px solid var(--red); outline-offset: 3px; }
.service-card-wrap:first-child .card-icon, .service-card:is(:hover,:focus-visible) .card-icon { background: var(--red); }
.service-cards:has(.service-card-wrap:not(:first-child) .service-card:is(:hover,:focus-visible)) .service-card-wrap:first-child .service-card { border-color: #1f2937; }
.service-cards:has(.service-card-wrap:not(:first-child) .service-card:is(:hover,:focus-visible)) .service-card-wrap:first-child .card-icon { background: #1f2937cc; }
.service-card:hover > img { transform: none; }
.workshop { background: linear-gradient(#f4f4f5,#fff); overflow: hidden; }
.workshop .section-heading { margin-bottom: 80px; }
.workshop .section-heading > p:last-child { max-width: 768px; font-size: 20px; line-height: 28px; }
.workshop .section-heading::after { display: block; width: 96px; height: 4px; margin: 32px auto 0; background: linear-gradient(to right,transparent,var(--red),transparent); }
.timeline::before { display: none; width: 4px; left: calc(50% - 2px); background: var(--red); }
.timeline-row, .timeline-row.reverse { display: flex; flex-direction: column; gap: 32px; min-height: 0; margin-bottom: 128px; }
.timeline-row:last-child { margin-bottom: 0; }
.timeline-copy, .timeline-row.reverse .timeline-copy { flex: 1; width: 100%; padding: 0; text-align: center; }
.timeline-copy h3 { max-width: 448px; margin: 0 auto 24px; font-size: 30px; line-height: 36px; }
.timeline-copy p { max-width: 448px; margin-inline: auto; font-size: 18px; line-height: 29.25px; }
.timeline-dot, .timeline-row.reverse .timeline-dot { width: 80px; height: 80px; flex-shrink: 0; margin: 0; align-self: center; border: 0; box-sizing: border-box; background: linear-gradient(135deg,#1764b8,var(--red)); box-shadow: 0 25px 50px -12px #0004; }
.timeline-dot svg { width: 40px; height: 40px; }
.timeline-row > .timeline-photo, .timeline-row.reverse > .timeline-photo { flex: 1; position: relative; width: 100%; height: 320px; min-height: 320px; margin: 0; border-radius: 24px; box-shadow: 0 25px 50px -12px #0004; }
.timeline-photo img, .timeline-row:first-child .timeline-photo img { object-position: center 40%; }
.timeline-photo::before, .timeline-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.timeline-photo::before { background: #0000001a; }
.timeline-photo::after { background: linear-gradient(to top,#0000004d,transparent); opacity: 0; transition: opacity .5s; }
.timeline-photo:hover::after { opacity: 1; }
.photo-number { position: absolute; top: 24px; right: 24px; color: white; opacity: .3; mix-blend-mode: overlay; font-size: 72px; font-weight: 700; line-height: 72px; z-index: 2; }
.timeline-end { margin: 96px auto 0; padding: 12px 24px; border: 1px solid #01489e33; border-radius: 999px; font-size: 16px; line-height: 24px; font-weight: 500; background: #01489e1a; text-align: center; }
.timeline-end svg { width: 20px; height: 20px; flex-shrink: 0; }
.history { background: #f4f4f5; overflow: hidden; }
.history-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.history-symbol { display: block; width: 48px; height: 48px; margin-bottom: 24px; color: var(--red); }
.history h2 { margin-bottom: 24px; }
.history-copy > p:not(.eyebrow) { font-size: 18px; line-height: 29.25px; margin-bottom: 24px; }
.history-image { margin: 0 24px 24px 0; width: auto; max-width: none; }
.history-image > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center; padding: 0; border: 4px solid var(--red); border-radius: 16px; }
.year-badge { width: 128px; height: 128px; right: -24px; bottom: -24px; border: 0; background: linear-gradient(135deg,#1764b8,var(--red)); box-shadow: 0 25px 50px -12px #0004; }
.year-badge strong { font-size: 30px; line-height: 36px; font-weight: 700; }
.year-badge > span { font-size: 10px; line-height: 16px; letter-spacing: normal; }
.reviews > .container { max-width: 1024px; }
.reviews .section-heading { margin-bottom: 24px; }
.reviews .section-heading > p { color: #9ca3af; }
.review-carousel { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: 16px; }
.review-viewport { min-width: 0; overflow: hidden; border-radius: 12px; }
.review-slides { display: flex; transition: transform .6s ease; }
.quote { display: flex; flex: 0 0 100%; min-width: 0; flex-direction: column; min-height: 260px; max-width: none; margin: 0; padding: 32px; border: 1px solid #374151; border-radius: 12px; }
.review-source { margin-bottom: 20px; color: #a8c3e8; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.quote figcaption { margin-top: auto; }
.quote-mark { display: block; width: 48px; height: 48px; opacity: .5; margin-bottom: 24px; }
.quote blockquote { margin: 0 0 32px; font-size: 20px; line-height: 1.55; font-style: normal; }
.quote blockquote strong { color: #c8ddff; }
.quote figcaption { flex-direction: column; align-items: flex-start; gap: 16px; }
.review-person { gap: 16px; }
.review-person strong { font-size: 18px; line-height: 28px; font-weight: 700; }
.review-person div > span { font-size: 14px; line-height: 20px; color: #9ca3af; }
.avatar { display: block; width: 48px; height: 48px; flex-shrink: 0; object-fit: cover; background: #dbeafe; }
.stars { font-size: 18px; color: #facc15; letter-spacing: 2px; }
.review-carousel > button { width: 48px; height: 48px; display: grid; place-items: center; background: #1f2937; color: white; border: 1px solid #526074; border-radius: 50%; cursor: pointer; }
.review-carousel > button:hover { background: var(--red); }
.review-carousel > button:focus-visible { outline: 2px solid #c8ddff; outline-offset: 3px; }
.review-carousel > button svg { width: 18px; height: 18px; }
.google-reviews-link { display: block; width: fit-content; margin: 24px auto 0; color: var(--accent-light); font-size: 14px; text-underline-offset: 4px; }
.google-reviews-link:hover { text-decoration: underline; }
.contact { background: #f4f4f5; }
.contact > .container { max-width: 896px; }
.contact .section-heading { margin-bottom: 40px; }
.contact .section-heading h2 { margin-bottom: 24px; }
.contact .section-heading p { max-width: none; font-size: 20px; line-height: 28px; }
.closing-actions { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
.closing-actions .button { padding: 14px 32px; min-height: 60px; background: white; border: 2px solid var(--red); border-radius: 12px; color: var(--red); font-size: 18px; font-weight: 500; line-height: 28px; }
.closing-actions .button:hover { background: var(--red); color: white; }
.footer { padding: 48px 0 32px; }
.footer-grid { grid-template-columns: 1fr; gap: 32px; }
.footer h2 { font-size: 18px; line-height: 28px; margin-bottom: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 32px; }
/* Shared inner-page hero and content layouts. */
.sub-hero { position: relative; isolation: isolate; min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 64px 16px 0; text-align: center; color: white; }
.sub-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.team-hero > img { object-position: center top; }
.sub-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top,#000b,#0006,transparent); }
.sub-hero-content { max-width: 896px; animation: sub-hero-enter 1.5s ease-out both; }
.sub-hero h1 { margin-bottom: 24px; font-size: 48px; line-height: 48px; }
.sub-hero p { color: #e5e7eb; font-size: 20px; line-height: 28px; }
.team-directory { background: var(--navy); color: white; }
.people-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.person-card { border: 2px solid #374151; border-radius: 12px; overflow: hidden; background: #1f2937; }
.person-card:first-child { border-color: var(--red); }
.person-card > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.person-card > div { padding: 24px; }
.person-card h2 { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.person-card p { font-size: 16px; line-height: 24px; color: #d1d5db; }
.team-history-cta { text-align: center; background: #f4f4f5; }
.team-history-cta h2, .team-history-cta p { margin-bottom: 24px; }
.team-history-cta p { font-size: 18px; }
.service-directory { background: #f4f4f5; overflow: hidden; }
.service-panel { display: grid; grid-template-columns: 1fr; background: #111827; color: white; border: 1px solid #1f2937; border-radius: 12px; overflow: hidden; margin-bottom: 64px; scroll-margin-top: 104px; }
.service-panel:last-child { margin-bottom: 0; }
.service-panel-copy { padding: 24px; }
.service-panel-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 16px; border-radius: 12px; background: var(--red); margin-bottom: 24px; }
.service-panel h2 { font-size: 30px; line-height: 36px; margin-bottom: 16px; }
.service-panel p { font-size: 18px; line-height: 29.25px; color: #d1d5db; margin-bottom: 16px; }
.service-panel .button { margin-top: 16px; }
.service-panel-photo { position: relative; height: 256px; }
.service-panel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-hero { padding: 64px 16px 0; }
.contact-hero > div { animation: sub-hero-enter 1.5s ease-out both; }
.reveal { transition: opacity var(--reveal-duration,1.2s) ease-out, transform var(--reveal-duration,1.2s) ease-out; transition-delay: var(--reveal-delay,0s); }
@keyframes sub-hero-enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (min-width: 640px) {
  .container { padding-inline: 24px; }
  .home-page .hero-content { padding-inline: 24px; }
  .closing-actions { flex-direction: row; }
}
@media (min-width: 768px) {
  h2, .history h2 { font-size: 48px; line-height: 48px; }
  .home-page .hero h1 { font-size: 60px; line-height: 60px; }
  .home-page .hero-intro { font-size: 24px; line-height: 32px; }
  .trust-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .service-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .timeline-copy h3 { font-size: 36px; line-height: 40px; }
  .history-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-image { margin: 0; }
  .quote { padding: 48px; }
  .quote blockquote { font-size: 24px; line-height: 32px; }
  .quote figcaption { flex-direction: row; align-items: center; }
  .footer-grid, .people-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sub-hero { min-height: 70vh; padding-top: 48px; }
  .sub-hero h1 { font-size: 60px; line-height: 60px; }
  .contact-hero { padding: 48px 32px 0; }
  .service-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-panel:nth-child(even) > .service-panel-photo { grid-column: 1; grid-row: 1; }
  .service-panel:nth-child(even) .service-panel-copy { grid-column: 2; }
  .service-panel-copy { padding: 48px; }
  .service-panel h2 { font-size: 36px; line-height: 40px; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 32px; }
  .home-page .hero-content { padding-inline: 32px; }
  .home-page .hero h1 { font-size: 72px; line-height: 72px; }
  .timeline::before { display: block; }
  .timeline-row { flex-direction: row; }
  .timeline-row.reverse { flex-direction: row-reverse; }
  .timeline-copy { text-align: right; }
  .timeline-row.reverse .timeline-copy { text-align: left; }
  .footer-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .people-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .timeline-row > .timeline-photo { flex: auto; }
  .home-page .hero h1 { overflow-wrap: anywhere; }
  .review-carousel { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 8px; }
  .review-carousel > button { width: 36px; height: 36px; }
  .quote { min-height: 360px; padding: 20px; }
  .quote blockquote { font-size: 17px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .review-slides { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .home-page .hero-content, .sub-hero-content, .contact-hero > div { animation: none; }
  .button:hover { transform: none; }
  .timeline-photo img, .timeline-photo::after { transition: none; }
}
.about-toggle.current { background: var(--red); color: white; }
.direct-contact { padding: 32px; border: 0; background: linear-gradient(135deg,var(--red),#002e68); }
.direct-icon { display: block; width: 48px; height: 48px; margin: 0 auto 16px; }
.direct-contact p, .direct-contact > a:last-child { color: #dbeafe; }
.direct-phone { margin: 24px auto 16px; padding: 14px 32px; background: white; color: var(--red); }
.direct-phone:hover { background: #f3f4f6; }
.footer { border-top: 1px solid white; padding-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
.team-hero > img { object-position: center; }

.service-panel-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.service-panel-icon svg { width: 32px; height: 32px; }
.service-panel .button { padding: 8px 16px; min-height: 36px; border-radius: 6px; font-size: 14px; line-height: 20px; }
@media (min-width: 768px) { .service-panel-photo { height: auto; } }
@media (max-width: 1023px) {
  .timeline-row > .timeline-photo, .timeline-row.reverse > .timeline-photo { flex: 0 0 320px; height: 320px; }
}
/* The requested contrast correction keeps the menu readable over every section. */
.header, .header.scrolled, .legal-page .header {
  background: rgba(17,24,39,.94);
  color: white;
  border-bottom-color: #ffffff26;
  box-shadow: 0 4px 18px #00000014;
}
.header .brand img { filter: brightness(0) invert(1); }
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: var(--red);
  color: white;
  box-shadow: 0 4px 18px #0003;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.back-to-top:hover { background: var(--red-dark); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.back-to-top svg { width: 24px; height: 24px; }
@media (max-width: 767px) { .back-to-top { bottom: 84px; right: 16px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } .back-to-top:hover { transform: none; } }
.nav-services { position: relative; }
.services-menu-heading { display: flex; align-items: center; border-radius: 8px; }
.services-menu-heading:has([aria-current="page"]) { background: var(--red); }
.services-home { display: flex; align-items: center; gap: 12px; padding: 8px 2px 8px 16px; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.services-home > svg { display: none; }
.services-home:hover { color: var(--accent-light); }
.services-toggle { display: grid; place-items: center; width: 28px; min-height: 36px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.services-toggle:hover { background: #ffffff1a; }
.services-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.services-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.services-links { display: none; position: absolute; top: calc(100% + 4px); left: 0; width: 256px; overflow: hidden; background: #111827f5; backdrop-filter: blur(24px); border: 1px solid #374151; border-radius: 12px; box-shadow: 0 25px 50px -12px #0004; color: #d1d5db; }
.services-links.open { display: block; }
.services-links a { display: block; padding: 12px 16px; font-size: 14px; line-height: 20px; }
.services-links a:hover, .services-links a:focus-visible { background: #ffffff1a; color: white; }
@media (min-width: 768px) and (max-width: 1023px) {
  .header-inner { gap: 8px; }
  .header .brand img { width: 140px; }
  .header nav { gap: 8px; }
  .nav-links > a, .about-toggle { padding-inline: 8px; }
  .services-home { padding-left: 8px; }
}
@media (max-width: 767px) {
  .services-home { flex: 1; padding: 14px 16px; font-size: 16px; line-height: 24px; }
  .services-home > svg { display: block; width: 20px; height: 20px; }
  .services-toggle { width: 48px; min-height: 48px; }
  .services-menu-heading:has([aria-current="page"]) { color: white; }
  .services-links { position: static; width: auto; margin: 0 0 8px 20px; background: #eef2f7; color: #374151; border: 0; box-shadow: none; backdrop-filter: none; }
  .services-links a { padding: 12px 16px; font-size: 15px; line-height: 22px; }
  .services-links a:hover, .services-links a:focus-visible { color: var(--red); background: #e2e8f0; }
  .services-toggle:hover { background: #01489e1a; }
}
@media (prefers-reduced-motion: reduce) { .services-toggle svg { transition: none; } }

/* Google review slider. */
.reviews { background: var(--navy); color: #fff; }
.reviews > .container { max-width: 1180px; }
.reviews .section-heading { margin-bottom: 36px; }
.reviews .section-heading > p { color: #b9c8dc; }
.reviews em { color: #a9d0ff; }
.review-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); column-gap: 24px; align-items: center; }
.review-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; color: #d5e2f1; font-size: 13px; }
.review-summary strong { color: #fff; font-size: 17px; letter-spacing: .02em; }
.review-summary-stars { background: linear-gradient(90deg,#f6aa19 94%,#d5d8dd 94%); background-clip: text; -webkit-background-clip: text; color: transparent; letter-spacing: 3px; font-size: 19px; line-height: 1; }
.review-summary-google { margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: -.07em; color: #4285f4; }
.review-summary-google span:nth-child(1), .review-summary-google span:nth-child(4) { color: #4285f4; }
.review-summary-google span:nth-child(2), .review-summary-google span:nth-child(6) { color: #ea4335; }
.review-summary-google span:nth-child(3) { color: #fbbc05; }
.review-summary-google span:nth-child(5) { color: #34a853; }
.review-carousel { position: relative; display: block; min-width: 0; padding-inline: 20px; }
.review-viewport { border-radius: 0; }
.review-slides { gap: 14px; }
.quote { position: relative; flex: 0 0 calc((100% - 28px)/3); min-height: 250px; padding: 22px; border: 1px solid #ffffff24; border-radius: 4px; background: #1f2937; color: #f2f5f9; }
.quote figcaption { display: block; margin: 0 34px 14px 0; }
.review-person { gap: 10px; }
.review-person strong { display: block; font-size: 14px; line-height: 18px; color: #fff; }
.review-person div > span { font-size: 12px; line-height: 17px; color: #aebdd0; }
.avatar { width: 38px; height: 38px; }
.review-google { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.review-google img { display: block; width: 20px; height: 20px; }
.quote > .stars { font-size: 16px; letter-spacing: 1px; color: #f6aa19; }
.quote blockquote { margin: 12px 0 0; font-size: 13px; line-height: 1.55; font-style: normal; color: #e1e7ef; }
.quote blockquote strong { color: inherit; font-weight: 700; }
.review-carousel > button { position: absolute; z-index: 1; top: calc(50% - 20px); width: 40px; height: 40px; background: #fff; color: #263748; border: 1px solid #dce6ef; box-shadow: 0 2px 8px #0004; }
.review-carousel > button:hover { background: #eef3f9; color: var(--red); }
.review-carousel > .review-prev { left: -20px; }
.review-carousel > .review-next { right: -20px; }
.review-summary .google-reviews-link { margin: 0; color: #b6d7ff; text-decoration: underline; line-height: 1.5; }
@media (min-width: 768px) and (max-width: 1099px) {
  .quote { flex-basis: calc((100% - 14px)/2); }
}
@media (max-width: 767px) {
  .review-layout { grid-template-columns: minmax(0,1fr); row-gap: 24px; }
  .review-summary { align-items: center; text-align: center; }
  .review-carousel { grid-column: 1; padding-inline: 12px; }
  .quote { flex-basis: 100%; min-height: 230px; padding: 20px; }
  .quote blockquote { font-size: 14px; }
  .review-carousel > .review-prev { left: -12px; }
  .review-carousel > .review-next { right: -12px; }
}
