/* ── The Bloom Immigration Inc. ─────────────────────────────
   Palette derives from the printed identity: navy + pearl.
   No accent colour by design, the type and the navy
   "at a glance" block carry all the contrast.
   ────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Karla:wght@400;500;600;700&display=swap');

:root {
  --ink:        #14304C;
  --ink-deep:   #0C2138;
  --paper:      #FBFAF8;
  --paper-alt:  #F2F0EB;
  --slate:      #5A6876;
  --slate-soft: #8A94A0;
  --rule:       #DFDBD4;
  --brass:      #9C7A3C;
  --brass-soft: #C4A667;

  --display: 'Playfair Display', Georgia, serif;
  --body:    'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Masthead ───────────────────────────────────────────── */

.masthead {
  border-bottom: 2px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.15rem;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0;
  text-decoration: none;
  line-height: 1;
  display: block;
}
.wordmark small {
  display: block;
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate-soft);
  margin-top: .3rem;
}

/* ── Navigation ─────────────────────────────────────────── */

.nav { display: flex; align-items: center; gap: 2rem; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-list > li { position: relative; }

.nav-list a,
.nav-toggle {
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--ink);
  background: none;
  border: 0;
  padding: .35rem 0;
  cursor: pointer;
  font-family: var(--body);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.nav-list a:hover,
.nav-toggle:hover { color: var(--slate); }

.nav-list a[aria-current="page"] {
  border-bottom: 1px solid var(--brass);
}

.nav-toggle svg { width: 8px; height: 8px; transition: transform .18s ease; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + .6rem);
  left: -1.1rem;
  min-width: 15rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  display: none;
  box-shadow: 0 12px 28px -18px rgba(20,48,76,.5);
}
.submenu.open { display: block; }
/* Invisible bridge over the gap above, so the cursor stays inside the
   hoverable area while moving from the toggle down to the menu. */
.submenu::before {
  content: "";
  position: absolute;
  top: -.6rem;
  left: 0;
  right: 0;
  height: .6rem;
}
.submenu li + li { border-top: 1px solid var(--rule); }
.submenu a {
  display: block;
  padding: .7rem 1.1rem;
  letter-spacing: .06em;
  text-transform: none;
  font-size: .85rem;
}
.submenu a:hover { background: var(--paper-alt); color: var(--ink); }

.nav-cta { display: none; }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  padding: .72rem 1.35rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background .18s ease, color .18s ease;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); border-color: var(--brass); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.nav-burger {
  display: none;
  background: none; border: 0; padding: .4rem;
  cursor: pointer; color: var(--ink);
}
.nav-burger svg { width: 22px; height: 22px; }

/* ── Hero ───────────────────────────────────────────────── */

.hero { padding-block: clamp(4rem, 11vw, 8rem) clamp(3rem, 8vw, 5.5rem); }

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 9vw, 6.5rem);
}
.hero-split .hero-copy .lede { margin-bottom: 1.8rem; }
.hero-split .hero-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.hero-split .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-image { order: -1; aspect-ratio: 4 / 5; max-width: 20rem; margin-inline: auto; }
}

.eyebrow {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate);
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 1.5rem;
  max-width: 18ch;
}
h1 em { font-style: normal; }

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: var(--measure);
  margin: 0 0 2.4rem;
}

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

/* ── Sections ───────────────────────────────────────────── */

section { padding-block: clamp(3rem, 7vw, 5rem); }
section + section { border-top: 2px solid var(--rule); }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 1.2rem;
  max-width: 22ch;
}

h3 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 .8rem;
}

p { max-width: var(--measure); }
p + p { margin-top: 1.1rem; }

.prose p, .prose li { color: var(--slate); }
.prose ul { max-width: var(--measure); padding-left: 1.1rem; }
.prose li + li { margin-top: .5rem; }
.prose h2 { color: var(--ink); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }

/* ── Service index cards ────────────────────────────────── */

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.9rem 1.7rem 1.7rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1 1 15rem;
  min-height: 12rem;
  transition: background .18s ease, border-color .18s ease;
}
.service-card:hover { background: var(--paper-alt); border-color: var(--brass); }

.service-card .card-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 .6rem;
}
.service-card .card-note {
  font-size: .9rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}
.service-card .card-from {
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate-soft);
}

/* ── Signature: the "At a glance" specimen block ────────── */

.glance {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  margin-block: 2.6rem 3rem;
  border-top: 2px solid var(--brass);
}

.glance-title {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(251,250,248,.55);
  margin: 0 0 1.6rem;
}

.glance-rows { display: grid; gap: 1px; background: rgba(251,250,248,.16); }

.glance-row {
  background: var(--ink);
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  padding: 1rem .2rem;
  align-items: start;
}

.glance-row dt {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(251,250,248,.6);
  margin: 0;
}

.glance-row dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--paper);
}
.glance-row dd .fig {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0;
  line-height: 1.1;
  display: block;
}

/* ── Fees ───────────────────────────────────────────────── */

.fee-block { border-top: 2px solid var(--rule); padding-block: 1.9rem; }
.fee-block:last-of-type { border-bottom: 2px solid var(--rule); }

.fee-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.fee-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.fee-price {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0;
  white-space: nowrap;
}
.fee-price span {
  font-family: var(--body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate-soft);
  display: block;
  text-align: right;
  margin-bottom: .1rem;
}

.fee-lines { list-style: none; margin: 1.1rem 0 0; padding: 0; max-width: var(--measure); }
.fee-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .5rem 0;
  border-top: 1px dotted var(--rule);
  font-size: .95rem;
  color: var(--slate);
}
.fee-lines li span:last-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

.fee-note { font-size: .9rem; color: var(--slate); margin: 1rem 0 0; }

.fine {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  max-width: 46rem;
}
.fine li {
  font-size: .85rem;
  color: var(--slate);
  padding: .55rem 0 .55rem 1.4rem;
  position: relative;
  line-height: 1.55;
}
.fine li::before {
  content: '\2022';
  position: absolute; left: 0;
  color: var(--slate-soft);
}

/* ── Contact ────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.contact-block p { margin: 0; color: var(--slate); }
.contact-block a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-block a:hover { border-color: var(--ink); }

/* ── Placeholder marker (delete once filled in) ─────────── */

.todo {
  border: 1px dashed #B98A2E;
  background: #FDF8EC;
  color: #6E5316;
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
  font-size: .88rem;
  line-height: 1.6;
  max-width: 46rem;
}
.todo strong {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.todo p { max-width: none; margin: 0; color: inherit; }

/* ── CTA strip ──────────────────────────────────────────── */

.cta-strip {
  background: var(--ink-deep);
  color: var(--paper);
  padding-block: clamp(3rem, 7vw, 4.5rem);
  border-top: 0;
}
.cta-strip h2 { color: var(--paper); margin-bottom: 1rem; }
.cta-strip p { color: rgba(251,250,248,.72); margin-bottom: 2rem; }
.cta-strip .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta-strip .btn:hover { background: transparent; color: var(--paper); }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  border-top: 2px solid var(--rule);
  padding-block: 3rem 2.2rem;
  font-size: .85rem;
  color: var(--slate);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer h3 { color: var(--slate-soft); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: .25rem 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer-legal {
  border-top: 2px solid var(--rule);
  padding-top: 1.6rem;
  font-size: .78rem;
  color: var(--slate-soft);
  line-height: 1.6;
  max-width: none;
}

/* ── Mobile ─────────────────────────────────────────────── */

@media (max-width: 860px) {
  .masthead .wrap { padding-inline: 1rem; }
  .nav-burger { display: block; order: 3; }
  .nav { gap: .4rem; }
  .nav > .btn {
    order: 2;
    font-size: .72rem;
    padding: .52rem .65rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.4rem;
  }
  .nav-list.open { display: flex; }
  .nav-list > li { border-bottom: 1px solid var(--rule); }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-list a, .nav-toggle { padding: .95rem 0; width: 100%; justify-content: space-between; }

  .submenu {
    position: static;
    border: 0;
    box-shadow: none;
    background: var(--paper-alt);
    padding: 0;
    margin-bottom: .6rem;
  }
  .submenu a { padding: .8rem 1rem; }

  .masthead-inner { position: relative; }

  .glance-row { grid-template-columns: 1fr; gap: .35rem; }
}

/* ── FAQ accordion ──────────────────────────────────────── */

.faq { max-width: 46rem; margin-top: 2.5rem; }

.faq details {
  border-top: 2px solid var(--rule);
}
.faq details:last-of-type { border-bottom: 2px solid var(--rule); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  position: absolute;
  right: .35rem;
  top: 1.75rem;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--slate-soft);
  border-bottom: 1.5px solid var(--slate-soft);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  transform: rotate(225deg);
  top: 1.95rem;
}

.faq summary:hover { color: var(--slate); }

.faq .answer {
  padding: 0 2.5rem 1.6rem 0;
  color: var(--slate);
  font-size: .97rem;
  line-height: 1.65;
}
.faq .answer p { max-width: none; margin: 0; }
.faq .answer p + p { margin-top: .9rem; }
.faq .answer a { color: var(--ink); }

.faq-group {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate-soft);
  margin: 3rem 0 .2rem;
}
.faq-group:first-child { margin-top: 0; }

/* ── Contact form ───────────────────────────────────────── */

.form { max-width: 38rem; margin-top: 2.4rem; }

.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate);
  margin-bottom: .5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: .8rem .9rem;
  transition: border-color .16s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%235A6876' stroke-width='1.4'%3E%3Cpath d='M1 3l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 11px;
  padding-right: 2.4rem;
}

.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.field-hint {
  font-size: .82rem;
  color: var(--slate-soft);
  margin: .45rem 0 0;
}

/* honeypot, hidden from people, visible to bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1.2rem;
  padding: .9rem 1.1rem;
  font-size: .92rem;
  line-height: 1.55;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok  { background: var(--paper-alt); border-left: 2px solid var(--ink); color: var(--ink); }
.form-status.err { background: #FDECEA; border-left: 2px solid #A5342A; color: #7C2820; }

button.btn[disabled] { opacity: .55; cursor: progress; }

/* ── Logo in the masthead ───────────────────────────────────────── */

.wordmark-logo { display: block; line-height: 0; }
.wordmark-logo img {
  height: 46px;
  width: auto;
  display: block;
}
@media (max-width: 860px) {
  .wordmark-logo img { height: 32px; }
}

/* ── Sixth card: the "not sure" route ───────────────────────────── */

.service-card-alt { background: var(--paper-alt); }
.service-card-alt:hover { background: var(--rule); }
.service-card-alt .card-from { color: var(--ink); font-weight: 600; }

/* ── Process ────────────────────────────────────────────────────── */

.process {
  list-style: none;
  counter-reset: none;
  margin: 2.2rem 0 0;
  padding: 0;
  max-width: 46rem;
}
.process li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-top: 2px solid var(--rule);
  align-items: start;
}
.process li:last-child { border-bottom: 2px solid var(--rule); }
.step-n {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--slate-soft);
  line-height: 1.1;
}
.step-body { font-size: .95rem; line-height: 1.6; color: var(--slate); }
.step-body strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .25rem;
}

/* ── Footer copyright ───────────────────────────────────────────── */

.footer-copyright {
  margin-top: 1rem;
  font-size: .78rem;
  color: var(--slate-soft);
  line-height: 1.6;
}

/* ── Footer tagline and bottom bar ──────────────────────────────── */

.footer-tagline {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 2.4rem;
  max-width: none;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--rule);
}
.footer-bar p {
  margin: 0;
  max-width: none;
  font-size: .78rem;
  color: var(--slate-soft);
  line-height: 1.6;
}
.footer-bar p:last-child { text-align: right; }

@media (max-width: 640px) {
  .footer-bar { flex-direction: column; }
  .footer-bar p:last-child { text-align: left; }
}
