:root {
  --navy: #203a59;
  --navy-deep: #142a43;
  --gold: #b9975b;
  --gold-light: #d4bd91;
  --ivory: #fcfbf8;
  --paper: #ffffff;
  --ink: #263342;
  --muted: #6f7882;
  --line: #ded8cd;
  --shadow: 0 24px 60px rgba(20, 42, 67, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: 12px; transform: translateY(-160%); background: var(--navy); color: white; padding: 10px 14px; border-radius: 4px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(32,58,89,.09); backdrop-filter: blur(14px); }
.site-header.compact { position: static; }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { display: block; width: 48px; height: 48px; flex: 0 0 48px; }
.brand-logo.small { width: 40px; height: 40px; flex-basis: 40px; }
.brand-name { color: var(--navy); font: 700 18px/1.1 var(--serif); }
.brand-name small { display: block; margin-top: 5px; color: var(--gold); font: 700 10px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 700; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold); }
.main-nav .nav-contact { padding: 9px 16px; border: 1px solid var(--gold); border-radius: 999px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 6px 0; background: var(--navy); transition: .2s; }
.back-link { color: var(--navy); font-size: 14px; font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 5px; }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ivory) 0%, #fff 72%); }
.hero::before,
.hero::after { content: ""; position: absolute; right: clamp(30px, 7vw, 120px); pointer-events: none; }
.hero::before { top: 54px; width: 148px; height: 3px; background: var(--gold); }
.hero::after { top: 65px; width: 104px; height: 2px; background: var(--navy); opacity: .82; }
.hero-grid { min-height: 620px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 80px; padding-block: 90px 105px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 0; color: var(--navy); font: 700 clamp(42px, 5.5vw, 72px)/1.08 var(--serif); letter-spacing: -.025em; }
.hero-lead { max-width: 720px; margin: 28px 0 0; color: #53606c; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; border: 1px solid transparent; border-radius: 2px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--navy); }
.button-primary:hover { background: var(--navy-deep); }
.button-secondary { color: var(--navy); border-color: var(--gold); background: transparent; }
.button-secondary:hover { background: #fff; }
.hero-note { margin: 35px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .11em; text-transform: uppercase; }
.hero-mark { align-self: center; display: grid; justify-items: center; position: relative; }
.hero-logo { display: block; width: 220px; height: 220px; filter: drop-shadow(0 18px 24px rgba(20,42,67,.09)); }
.hero-rule { width: 2px; height: 82px; margin: 22px 0 16px; background: var(--gold); position: relative; }
.hero-rule i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--gold); }
.hero-mark p { margin: 0; color: var(--navy); text-align: center; font: 700 17px/1.45 var(--serif); }
.hero-line { position: absolute; left: 0; bottom: 18px; height: 1px; }
.hero-line-gold { width: 72%; background: var(--gold); }
.hero-line-navy { width: 41%; bottom: 11px; background: var(--navy); }

.section { padding: 90px 0; }
.section-heading { max-width: 760px; margin: 0 auto 55px; text-align: center; }
.section-heading-left { margin: 0; text-align: left; }
.section h2, .legal-content h1 { margin: 0; color: var(--navy); font: 700 clamp(34px, 4vw, 52px)/1.18 var(--serif); letter-spacing: -.02em; }
.section-heading > p:last-child { max-width: 690px; margin: 20px auto 0; color: var(--muted); font-size: 17px; }
.section-heading-left > p:last-child { margin-inline: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { position: relative; min-height: 245px; padding: 32px; border: 1px solid var(--line); background: white; transition: transform .2s, box-shadow .2s; }
.service-card::before { content: ""; position: absolute; left: 32px; top: 0; width: 80px; height: 3px; background: var(--gold); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(20,42,67,.08); }
.service-number { color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.service-card h3, .process-list h3 { margin: 56px 0 14px; color: var(--navy); font: 700 25px/1.25 var(--serif); }
.service-card p, .process-list p { margin: 0; color: var(--muted); }

.section-process { color: white; background: var(--navy); }
.section-process h2 { color: white; }
.section-process .section-heading > p:last-child { color: #c6d0da; }
.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); }
.process-list li { display: grid; grid-template-columns: 54px 1fr; gap: 24px; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.process-list li > span { color: var(--gold-light); font-size: 13px; font-weight: 800; }
.process-list h3 { margin: 0 0 7px; color: white; font-size: 23px; }
.process-list p { color: #c6d0da; }

.section-about { background: var(--navy); color: white; }
.about-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: 90px; align-items: center; }
.about-portrait { display: block; width: min(100%, 360px); height: auto; justify-self: center; padding: 8px; border: 1px solid var(--gold); background: var(--ivory); box-shadow: 0 24px 48px rgba(7,20,34,.24); }
.section-about h2 { color: white; }
.about-copy h2 { max-width: 700px; }
.about-copy > p:not(.eyebrow) { color: #d7dfe6; font-size: 17px; }
.about-copy blockquote { margin: 30px 0 0; padding: 8px 0 8px 24px; border-left: 3px solid var(--gold); color: white; font: 700 22px/1.55 var(--serif); }

.certificate-grid { display: grid; grid-template-columns: 1.2fr .45fr; gap: 100px; align-items: center; }
.certificate-copy > p:not(.eyebrow):not(.privacy-note) { color: var(--muted); font-size: 17px; }
.text-button { padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--gold); background: transparent; color: var(--navy); font-weight: 800; cursor: pointer; }
.text-button span { color: var(--gold); }
.privacy-note { margin-top: 15px; color: var(--muted); font-size: 12px; }
.certificate-preview { display: block; width: min(100%, 300px); justify-self: end; border: 0; background: transparent; cursor: zoom-in; padding: 10px; position: relative; text-align: center; text-decoration: none; }
.certificate-frame { display: block; position: relative; padding: 12px; background: var(--ivory); border: 1px solid var(--gold); box-shadow: var(--shadow); transform: rotate(1deg); transition: transform .25s; }
.certificate-frame::after { content: ""; position: absolute; inset: 25px; border: 1px solid var(--navy); pointer-events: none; }
.certificate-frame img { display: block; }
.certificate-preview:hover .certificate-frame { transform: rotate(0) translateY(-4px); }
.certificate-caption { display: block; margin-top: 22px; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.certificate-dialog { width: min(820px, calc(100% - 28px)); max-height: 92vh; padding: 0; border: 1px solid var(--gold); background: var(--ivory); box-shadow: var(--shadow); }
.certificate-dialog::backdrop { background: rgba(20,42,67,.78); backdrop-filter: blur(4px); }
.certificate-dialog img { display: block; max-height: calc(92vh - 72px); margin: auto; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: white; background: var(--navy); }
.dialog-head h2 { margin: 0; font: 700 18px/1.2 var(--serif); }
.dialog-head button { width: 38px; height: 38px; border: 0; color: white; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }

.section-contact { color: white; background: var(--navy-deep); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: start; }
.section-contact h2 { color: white; max-width: 680px; }
.section-contact p { color: #c6d0da; max-width: 650px; font-size: 17px; }
.eyebrow-light { color: var(--gold-light); }
.contact-details { display: grid; gap: 0; font-style: normal; border-top: 1px solid rgba(255,255,255,.25); }
.contact-details a, .contact-details p { display: grid; grid-template-columns: 95px 1fr; gap: 22px; margin: 0; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.25); color: white; text-decoration: none; font-size: 16px; }
.contact-details a:hover { color: var(--gold-light); }
.contact-details span { color: var(--gold-light); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.site-footer { padding: 30px 0; background: var(--ivory); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: var(--navy); font: 700 15px/1.25 var(--serif); }
.footer-brand small { color: var(--gold); font: 700 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 22px; }
.site-footer nav a { color: var(--navy); font-size: 12px; font-weight: 700; text-underline-offset: 4px; }

.legal-main { padding: 84px 0 110px; }
.legal-content { max-width: 850px; }
.legal-content h1 { margin-bottom: 48px; font-size: clamp(40px, 6vw, 62px); }
.legal-content h2 { margin: 38px 0 10px; color: var(--navy); font: 700 24px/1.3 var(--serif); }
.legal-content p { color: #53606c; }
.legal-content a { color: var(--navy); text-underline-offset: 4px; }
.legal-note { margin-top: 50px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

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

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: 70px; display: none; padding: 18px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 8px 4px; }
  .main-nav .nav-contact { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 70px; padding-block: 80px 110px; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { width: 190px; height: 190px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .about-grid, .certificate-grid, .contact-grid { grid-template-columns: 1fr; gap: 58px; }
  .about-portrait { width: min(100%, 340px); }
  .certificate-preview { max-width: 300px; justify-self: center; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 70px; }
  .brand-logo { width: 43px; height: 43px; flex-basis: 43px; }
  .brand-name { font-size: 16px; }
  .hero-grid { padding-block: 65px 96px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-note { line-height: 1.8; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 38px; }
  .section h2 { font-size: 36px; }
  .service-card { padding: 30px 24px; }
  .service-card h3 { margin-top: 38px; }
  .process-list li { grid-template-columns: 32px 1fr; gap: 14px; }
  .about-copy blockquote { font-size: 19px; }
  .certificate-preview { padding: 6px; }
  .contact-details a, .contact-details p { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer nav { justify-content: center; }
  .back-link { font-size: 12px; }
}

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