/* Amarae Immigration Law: shared visual system.
   Refinement: readable legal notices, generous prose rhythm, mobile-first contact.
   System fonts only. No font assets, external requests, or font redistribution. */

:root {
  --navy: #12324A;
  --navy-deep: #0C2436;
  --navy-line: #2C4C66;
  --teal: #0F5C55;
  --teal-dark: #0A3F3A;
  --amber: #E8A33D;
  --amber-dark: #D18E28;
  --ink: #1B2430;
  --muted: #3D4A57;
  --line: #D5DDE4;
  --mist: #F1F3F0;
  --white: #FFFFFF;
  --on-navy: #E4ECF2;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --wrap: 1120px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--navy-line) var(--mist); }
::selection { background: var(--amber); color: var(--navy-deep); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
}

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; color: var(--navy); }
p { margin: 0 0 1em; }
p { max-width: 70ch; }
p + h2, ul + h2, .notice + h2 { margin-top: 48px; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

a { color: var(--teal); text-underline-offset: 0.2em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { color: var(--teal-dark); }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
  border-radius: 2px;
}
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible {
  outline-color: var(--amber);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 800px; }

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); text-decoration: underline; }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
}
.call-btn:hover { background: var(--mist); color: var(--navy); }
.call-btn svg { flex: none; }

.site-nav { border-top: 1px solid var(--navy-line); }
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: 12px;
  min-height: 48px;
  color: var(--on-navy);
  font-size: 1.125rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--white); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
}
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-dark); color: var(--ink); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.link-light { color: var(--white); font-size: 1.125rem; }
.link-light:hover { color: var(--on-navy); }

/* Sections */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-mist { background: var(--mist); }
.section-intro { color: var(--muted); margin-bottom: 32px; }

/* The headline leads; the explanation and first action stay together. */
.hero { background: var(--navy); color: var(--white); padding-top: 64px; padding-bottom: 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: start; }
.hero h1 { color: var(--white); max-width: 21ch; grid-row: span 2; margin: 0; }
.hero .lede { font-size: 1.3125rem; line-height: 1.65; color: var(--on-navy); margin: 8px 0 0; }
.hero .btn-row { align-self: end; gap: 20px; }

/* Page headers share the same calm, spacious reading hierarchy. */
.page-head { background: var(--navy); color: var(--white); padding-top: 48px; padding-bottom: 56px; }
.page-head h1 { color: var(--white); margin-bottom: 20px; }
.page-head p { color: var(--on-navy); font-size: 1.25rem; margin: 0; max-width: 60ch; }

/* Service list (home) */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.service-list li { margin: 0; padding: 24px 0; border-top: 1px solid var(--line); }
.service-list h3 { margin-bottom: 8px; max-width: 32ch; }
.service-list h3 a { color: var(--teal); text-decoration: underline; text-decoration-color: var(--line); }
.service-list h3 a:hover { text-decoration-color: currentColor; }
.service-list p { margin: 0; color: var(--muted); }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.steps li {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Closing call to action */
.cta { text-align: center; }
.cta .wrap { max-width: 680px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta h2, .cta p { margin: 0; }
.cta p { color: var(--muted); }

/* Legal notice box */
.notice {
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--mist);
  margin: 0 0 48px;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.notice-strong { font-weight: 700; color: var(--navy); }
.notice-soft { border-color: var(--line); background: var(--mist); }

/* Services page */
.jump-list { list-style: none; padding: 0; margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.jump-list li { margin: 0; }
.jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  font-size: 1.125rem;
}
.jump-list a:hover { border-color: var(--navy); background: var(--mist); text-decoration: underline; }

.service { padding-top: 48px; padding-bottom: 24px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.service:first-of-type { border-top: 0; }
.service h3 { font-size: 1.25rem; margin-top: 28px; margin-bottom: 8px; }
.term { color: var(--muted); }

/* Facts list (consultations) */
.facts {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.facts li { margin: 0; background: var(--mist); border-radius: var(--radius); padding: 20px; }
.facts .label { display: block; font-size: 1.125rem; color: var(--muted); margin-bottom: 8px; }
.facts .value { display: block; font-size: 1.25rem; font-weight: 700; color: var(--navy); }

.checklist { padding-left: 1.3em; }
.checklist li { padding-left: 8px; margin-bottom: 12px; }
.checklist li::marker { color: var(--teal); }

/* Contact page */
.contact-cards {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
}
.contact-cards li { margin: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.contact-cards li:last-child { grid-column: 1 / -1; max-width: 70ch; }
.contact-cards h2 { font-size: 1.875rem; margin-bottom: 12px; }
.contact-cards .big { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-cards .small { font-size: 1.125rem; color: var(--muted); margin-top: 12px; margin-bottom: 0; }

/* Portrait */
.portrait { margin: 0 0 28px; max-width: 320px; }
.portrait img { border-radius: var(--radius); border: 1px solid var(--line); }

/* About layout */
.about-grid { display: grid; gap: 8px 48px; }
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 300px 1fr; align-items: start; }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy); font-size: 1.125rem; padding-top: 56px; padding-bottom: 32px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--on-navy); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.footer-notice { border: 1px solid #557187; border-radius: var(--radius); padding: 24px; }
.footer-notice p { margin: 0; }
.footer-notice p + p { margin-top: 8px; }
.footer-notice .notice-strong { color: var(--white); }
.footer-name { font-family: var(--serif); font-weight: 700; color: var(--white); margin: 0; }
.site-footer p { margin: 0 0 6px; }
.site-footer .small { font-size: 1.125rem; color: var(--on-navy); margin-top: 16px; }
.footer-nav ul { list-style: none; margin: 40px 0 16px; padding: 24px 0 0; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-block; padding: 8px 0; min-height: 44px; }
.copyright { font-size: 1.125rem; color: var(--on-navy); margin-top: 8px; }

/* Keep all legal copy readable when dark surfaces are removed for print. */
@media print {
  .site-nav, .skip-link, .call-btn { display: none; }
  body, .site-header, .hero, .page-head, .site-footer, .notice { background: white; color: black; }
  .site-header *, .hero *, .page-head *, .site-footer *, .notice * { color: black !important; }
  .hero .wrap { display: block; }
  .section { padding-block: 24px; }
}

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

/* The practice name keeps its established two-line signature. */
.brand-pre {
  display: block;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--on-navy);
}
.brand-name { display: block; }

@media (max-width: 859px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { grid-row: auto; max-width: 25ch; }
  .hero .lede { max-width: 55ch; margin: 0; }
  .section { padding-block: 56px; }
  .hero { padding-block: 40px 56px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { flex-direction: row; }
}

@media (max-width: 540px) {
  .header-bar { padding-block: 20px; gap: 20px; }
  .brand { font-size: 1.5rem; }
  .call-btn { width: 100%; justify-content: center; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding-inline: 12px; }
  .hero h1 { max-width: 20ch; }
  .hero .lede, .page-head p { font-size: 1.1875rem; }
  .btn-row { align-items: stretch; flex-direction: column; }
  .btn-row > a:not(.btn) { align-self: flex-start; padding-block: 8px; }
  .btn { width: 100%; }
  .page-head { padding-block: 32px 40px; }
  .service-list, .contact-cards { grid-template-columns: 1fr; }
  .section { padding-block: 40px; }
  .notice, .footer-notice { padding: 20px; }
  .notice { margin-bottom: 32px; }
  .portrait { max-width: 260px; }
  .facts { grid-template-columns: 1fr; gap: 8px; }
  .facts li { padding: 16px 20px; }
  .facts .label { margin-bottom: 0; }
  .jump-list { flex-direction: column; }
  .jump-list a { width: 100%; }
}
