:root {
  --blue: #004eb1;
  --blue-dark: #003f90;
  --ink: #111820;
  --muted: #626a73;
  --surface: #f3f5f7;
  --surface-dark: #e9edf1;
  --line: #dce1e6;
  --white: #fff;
  --shadow: 0 18px 45px rgba(17, 24, 32, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header, .profile-hero, .service-strip, .section, .contact, footer { width: min(100% - 48px, 1280px); margin-inline: auto; }
.site-header { min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 34px; border-bottom: 1px solid var(--line); }
.location { justify-self: start; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.location::before { content: ""; width: 9px; height: 9px; display: inline-block; margin-right: 10px; border-radius: 50%; background: var(--blue); }
nav { display: flex; align-items: center; gap: 38px; font-size: 15px; font-weight: 700; }
nav a { position: relative; padding: 12px 0; }
nav a::after { content: ""; position: absolute; right: 100%; bottom: 5px; left: 0; height: 2px; background: var(--blue); transition: right .18s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.header-contact { justify-self: end; display: flex; align-items: center; gap: 8px; }
.header-phone { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 8px 11px; border: 1px solid var(--blue); border-radius: 6px; color: var(--blue); font-size: 12px; font-weight: 800; white-space: nowrap; }
.header-phone:hover { color: var(--white); background: var(--blue); }

.profile-hero { display: grid; min-height: 690px; grid-template-columns: 390px 1fr; margin-top: 38px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.profile-visuals { position: relative; min-width: 0; display: grid; grid-template-rows: 1.02fr .98fr; gap: 4px; padding: 18px; background: var(--surface-dark); }
.portrait-card, .logo-card { min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; border: 10px solid var(--white); background: var(--white); }
.portrait-frame { position: relative; width: min(100%, 245px); }
.portrait-frame::before { content: ""; position: absolute; top: -12px; right: 12px; bottom: 12px; left: -12px; border: 4px solid var(--blue); }
.portrait-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; }
.logo-card { position: relative; background: var(--surface); }
.logo-card img { position: relative; z-index: 2; width: min(100%, 270px); border: 8px solid var(--white); box-shadow: 0 12px 28px rgba(17, 24, 32, .12); }
.binary { position: absolute; color: rgba(0, 78, 177, .09); font-size: 76px; font-weight: 900; letter-spacing: .08em; line-height: 1; }
.binary-one { top: -10px; left: -30px; }
.binary-two { right: -82px; bottom: -4px; }

.profile-content { min-width: 0; display: flex; flex-direction: column; padding: 36px; }
.profile-copy { position: relative; flex: 1; padding: 34px 42px 38px; background: var(--surface); }
.profile-copy::after { content: ""; position: absolute; top: 22px; right: -18px; bottom: -18px; width: 1px; background: var(--line); }
.eyebrow { margin: 0 0 21px; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; }
h1 { max-width: 760px; font-size: clamp(53px, 5.2vw, 76px); line-height: 1.01; }
.profile-intro { max-width: 790px; margin: 27px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.profile-intro + .profile-intro { margin-top: 16px; }
.promise-list { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 29px 0 0; padding: 0; list-style: none; }
.promise-list li { position: relative; padding-left: 18px; white-space: nowrap; font-size: 15px; font-weight: 800; }
.promise-list li::before { content: ""; position: absolute; top: .65em; left: 0; width: 8px; height: 8px; background: var(--blue); }
.profile-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 35px 10px 29px; }
.button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 0 25px; border-radius: 6px; font-weight: 800; transition: transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--blue); box-shadow: 0 12px 25px rgba(0, 78, 177, .2); }
.text-link { color: var(--blue); font-weight: 800; border-bottom: 1px solid var(--blue); }
.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin: 0 10px; padding: 26px 0 6px; border-top: 1px solid var(--line); }
.profile-facts dt { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.profile-facts dd { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-strip a { min-height: 88px; display: flex; align-items: center; gap: 15px; padding: 20px 23px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.service-strip strong { min-width: 48px; color: var(--blue); font-size: 12px; letter-spacing: .06em; }
.service-strip span { font-weight: 700; }

.section { padding: 118px 0; }
.section-intro { max-width: none; margin-bottom: 55px; }
h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.section-intro > p:last-child { max-width: none; margin: 25px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid article { min-height: 255px; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: background .18s ease; }
.service-grid article:hover { background: var(--surface); }
.number { color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
h3 { margin-top: 35px; font-size: 26px; }
.service-grid p { max-width: 520px; margin: 13px 0 0; color: var(--muted); line-height: 1.7; }

.contact { display: flex; align-items: center; justify-content: space-between; gap: 70px; margin-bottom: 90px; padding: 68px 72px; color: var(--white); background: var(--blue); }
.contact .eyebrow { color: var(--white); }
.contact h2 { max-width: 700px; }
.contact p:not(.eyebrow) { margin: 20px 0 0; color: rgba(255, 255, 255, .82); font-size: 17px; }
.contact p.business-hours { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 26px; font-size: 15px; }
.business-hours strong { color: var(--white); }
.business-hours span { color: rgba(255, 255, 255, .82); }
.contact-actions { min-width: 490px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-button { min-height: 72px; flex-direction: column; gap: 3px; padding: 12px 16px; line-height: 1.25; text-align: center; }
.contact-label { font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.button-white .contact-label { color: var(--blue); opacity: .75; }
.button-outline .contact-label { color: rgba(255, 255, 255, .72); }
.button-white { color: var(--blue); background: var(--white); }
.button-outline { border: 1px solid var(--white); color: var(--white); }

footer { display: grid; grid-template-columns: 1.1fr 1fr 1.05fr; gap: 32px; padding: 48px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer strong, footer span { display: block; }
footer strong { color: var(--ink); font-size: 20px; }
footer > div:nth-child(2) strong { white-space: nowrap; }
footer span { margin-top: 4px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-address { margin: 3px 0 0; color: var(--muted); font-style: normal; line-height: 1.55; }
.footer-hours { color: var(--muted); line-height: 1.55; }
.footer-links a:hover { color: var(--blue); }
footer > p { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }

.legal { width: min(100% - 48px, 860px); margin: 70px auto 100px; padding: 52px; border: 1px solid var(--line); }
.legal h1 { font-size: 52px; }
.legal section { margin-top: 38px; }
.legal h2 { margin-bottom: 12px; font-size: 26px; line-height: 1.2; }
.legal h3 { margin: 25px 0 8px; font-size: 20px; letter-spacing: -.025em; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 10px 0 18px; padding-left: 22px; }
.legal strong { color: var(--ink); }
.legal a:not(.header-phone) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-note { padding: 18px 20px; border-left: 4px solid var(--blue); background: var(--surface); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 800; }
.legal-updated { margin-top: 35px; font-size: 13px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (max-width: 1180px) {
  .header-contact-email { display: none; }
}
@media (max-width: 960px) {
  .header-contact-mobile { display: none; }
  .contact { align-items: flex-start; flex-direction: column; }
  .contact-actions { width: 100%; min-width: 0; }
  footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .profile-hero { grid-template-columns: 330px 1fr; }
  .profile-content { padding: 28px; }
  .profile-copy { padding: 32px; }
  h1 { font-size: clamp(49px, 5.5vw, 66px); }
}
@media (max-width: 860px) {
  .profile-hero { grid-template-columns: 1fr; }
  .profile-visuals { grid-template-rows: none; grid-template-columns: repeat(2, 1fr); }
  .portrait-card, .logo-card { min-height: 310px; }
  .portrait-frame { width: min(100%, 220px); }
  .logo-card img { width: min(100%, 250px); }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-contact { display: none; }
  .profile-content { padding: 24px; }
  .profile-copy { padding: 31px 28px; }
}
@media (max-width: 580px) {
  .site-header, .profile-hero, .service-strip, .section, .contact, footer { width: min(100% - 28px, 1280px); }
  .site-header { min-height: 0; grid-template-columns: 1fr; gap: 3px; padding: 12px 0 9px; }
  .location { justify-self: center; white-space: nowrap; font-size: 10px; }
  .location::before { width: 7px; height: 7px; margin-right: 7px; }
  nav { justify-self: center; gap: 24px; font-size: 13px; }
  nav a { padding: 7px 0; }
  .profile-hero { margin-top: 18px; }
  .profile-visuals { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 6px; padding: 12px; }
  .portrait-card { min-height: 255px; padding: 20px; border-width: 7px; }
  .logo-card { min-height: 245px; border-width: 7px; }
  .portrait-frame { width: min(100%, 205px); padding: 7px; border: 3px solid var(--blue); background: var(--white); }
  .portrait-frame::before { display: none; }
  .logo-card img { width: min(100%, 210px); border-width: 6px; }
  .binary { font-size: 62px; }
  .profile-content { padding: 0; }
  .profile-copy { padding: 37px 24px 34px; }
  .profile-copy::after { display: none; }
  .profile-copy .eyebrow { margin-bottom: 17px; font-size: 11px; letter-spacing: .1em; }
  h1 { font-size: clamp(30px, 9.5vw, 40px); line-height: 1.06; }
  h1 br { display: none; }
  .profile-intro { margin-top: 22px; font-size: 16px; line-height: 1.65; }
  .promise-list { align-items: flex-start; flex-direction: column; }
  .promise-list li { white-space: normal; }
  .profile-actions { align-items: stretch; flex-direction: column; gap: 20px; padding: 28px 24px; }
  .profile-actions .text-link { align-self: flex-start; }
  .profile-facts { grid-template-columns: 1fr; gap: 18px; margin: 0; padding: 24px; }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip a { min-height: 76px; }
  .section { padding: 84px 0; }
  .section-intro { margin-bottom: 38px; }
  h2 { font-size: clamp(36px, 10vw, 43px); }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 0; padding: 31px 26px; }
  .contact { gap: 42px; margin-bottom: 68px; padding: 46px 25px; }
  .contact-actions { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  footer > p { grid-column: 1; }
  .legal { width: min(100% - 28px, 860px); margin: 40px auto 70px; padding: 30px 24px; }
  .legal h1 { font-size: 40px; }
  .legal h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
