:root {
  --navy: #0d2438;
  --navy-deep: #081a2a;
  --blue: #0085ad;
  --blue-dark: #006f91;
  --ink: #17212a;
  --muted: #5f6b74;
  --line: #dce5e9;
  --paper: #ffffff;
  --mist: #f3f7f8;
  --amber: #9a6410;
  --amber-bg: #fff7e8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --shadow: 0 24px 70px rgba(13, 36, 56, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 133, 173, 0.4);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  background: var(--navy);
  color: white;
  transform: translateY(-160%);
}

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

.shell {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  padding-bottom: 0.38rem;
  border-bottom: 2px solid var(--blue);
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  margin-top: 0.35rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.77rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.6rem;
  margin-left: auto;
}

.main-nav a,
.back-link {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.back-link:hover {
  color: var(--blue-dark);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--navy);
  color: white;
}

.hero {
  padding: clamp(3rem, 7vw, 6.8rem) 0;
  background:
    linear-gradient(90deg, rgba(0, 133, 173, 0.055) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(rgba(0, 133, 173, 0.055) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(120deg, #ffffff 0%, #f5fafb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

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

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 4.75vw, 4.35rem);
  max-width: 860px;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4.2vw, 3.55rem);
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.65rem;
}

.hero-lead {
  max-width: 690px;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--navy);
  color: white;
}

.button-primary:hover {
  background: var(--blue-dark);
  color: white;
}

.button-secondary {
  border-color: #b9c9d0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.hero-portrait {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  margin: 0 0 0 auto;
  aspect-ratio: 4 / 5;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}

.hero-portrait::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  height: 5px;
  background: var(--blue);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 3rem;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.practice-card {
  min-height: 330px;
  padding: 2rem;
  border: 1px solid var(--line);
  background: white;
}

.practice-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-number {
  display: block;
  margin-bottom: 3rem;
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.contact-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--navy-deep);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.72fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 640px;
  color: #bdcad2;
  font-size: 1.06rem;
}

.eyebrow-light {
  color: #70c5df;
}

.contact-details {
  margin-top: 2rem;
  padding: 1.5rem 0 0 1.5rem;
  border-left: 4px solid var(--blue);
  font-style: normal;
}

.contact-details p {
  margin: 0;
  padding: 0 0 1.35rem;
}

.contact-details p:last-child {
  padding-bottom: 0;
}

.contact-details span {
  display: block;
  margin-bottom: 0.2rem;
  color: #8ca1ae;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details a {
  color: white;
}

.contact-form {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 0.42rem;
  margin-bottom: 1rem;
}

.form-row label {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b7c6cd;
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
}

.form-row textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 133, 173, 0.18);
  outline-offset: 0;
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.privacy-check {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.88rem;
  line-height: 1.5;
}

.privacy-check input {
  width: 1rem;
  height: 1rem;
  margin: 0.18rem 0 0;
}

.form-note {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.button-form {
  width: 100%;
  border: 0;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.button-form:hover {
  background: var(--blue-dark);
  color: white;
}

.form-result {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--mist), white 300px);
}

.form-result-card {
  max-width: 700px;
  padding: clamp(2rem, 5vw, 4rem);
  border-top: 5px solid var(--blue);
  background: white;
  box-shadow: var(--shadow);
}

.form-result-card h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.form-result-card ul {
  color: #8a2f2f;
}

.site-footer {
  padding: 1.4rem 0;
  background: #06131f;
  color: #99a8b1;
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 1.25rem;
}

.footer-inner a {
  color: #ced7dc;
}

.legal-main {
  min-height: 70vh;
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: linear-gradient(180deg, var(--mist), white 260px);
}

.legal-document {
  max-width: 860px;
}

.legal-document h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.legal-document h2 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
}

.legal-document section {
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}

.legal-document p {
  max-width: 760px;
}

.legal-intro {
  color: var(--muted);
}

.draft-alert {
  margin: 2rem 0 2.5rem;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--amber);
  background: var(--amber-bg);
  color: #5e410d;
}

.draft-alert p {
  margin: 0.25rem 0 0;
}

.needs-input {
  padding-inline: 1.25rem !important;
  background: #fffaf1;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 0;
  }

  .brand {
    width: min(360px, 65vw);
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
  }

  .header-cta {
    margin-left: auto;
  }

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

  .hero-portrait {
    max-width: 520px;
    margin: 0;
  }

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

  .practice-card {
    min-height: 0;
  }

  .card-number {
    margin-bottom: 1.6rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.5rem, 1160px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 0;
  }

  .brand {
    width: 100%;
    max-width: 100%;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 1.25rem;
  }

  .brand-copy span {
    font-size: 0.75rem;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .main-nav a {
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .practice-card {
    padding: 1.5rem;
  }

  .contact-grid {
    gap: 2rem;
  }

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

@media (max-width: 360px) {
  .brand-copy span {
    white-space: normal;
  }
}

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

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

@media print {
  .site-header,
  .site-footer,
  .hero-actions {
    display: none;
  }

  body {
    color: #000;
  }
}
