/* Patrícia Condesso — Global Mobility & Immigration
   Palette: ink navy / warm ivory / bronze accent */

:root {
  --ink: #13273d;
  --ink-soft: #3c5068;
  --ivory: #faf8f3;
  --paper: #ffffff;
  --bronze: #a8824a;
  --bronze-dark: #8a6a39;
  --line: #e5dfd3;
  --max: 1080px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bronze-dark); }
a:hover, a:focus { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* Header */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--bronze); }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus { color: var(--ink); border-bottom-color: var(--bronze); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--bronze); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--ivory) 0%, #f3efe6 100%);
  border-bottom: 1px solid var(--line);
  padding: 5.5rem 0 5rem;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem; align-items: center; }
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-photo {
  justify-self: center;
  width: min(280px, 60vw);
  height: auto;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 12px 40px rgba(19, 39, 61, 0.18);
}
.about-photo {
  float: right;
  width: min(200px, 40vw);
  height: auto;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 8px 28px rgba(19, 39, 61, 0.15);
  margin: 0 0 1rem 1.5rem;
}
@media (max-width: 860px) {
  .hero .wrap { text-align: center; }
  .hero .wrap > div:first-child { order: 2; }
  .hero-photo { order: 1; width: min(160px, 45vw); margin-bottom: 0.5rem; }
  .hero .cta-row { justify-content: center; }
  .about-photo { float: none; display: block; margin: 0 auto 1.5rem; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: #1d3a58; }
.btn-ghost { color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover, .btn-ghost:focus { background: var(--ink); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Sections */
section { padding: 4.5rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.section-intro { color: var(--ink-soft); max-width: 44em; margin-bottom: 2.5rem; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--bronze);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
}
.section-alt .card { background: var(--ivory); }
.card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.97rem; color: var(--ink-soft); }
.card a.more { display: inline-block; margin-top: 0.9rem; color: var(--bronze-dark); font-weight: 600; text-decoration: none; font-size: 0.93rem; }
.card a.more:hover, .card a.more:focus { text-decoration: underline; }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1.75rem 1.5rem; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--bronze);
  margin-bottom: 0.5rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.steps p { font-size: 0.95rem; color: var(--ink-soft); }

/* Prose pages */
.page-head { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--ivory) 0%, #f3efe6 100%); }
.page-head h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.18; margin-bottom: 0.75rem; }
.page-head p { color: var(--ink-soft); max-width: 44em; font-size: 1.12rem; }
.prose { max-width: 46em; }
.prose p { margin-bottom: 1.25rem; }
.prose h2 { margin-top: 2.25rem; }
.prose ul { margin: 0 0 1.25rem 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.placeholder { color: #6e6553; font-style: italic; }

/* Blockquote / credential strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.strip div { padding: 1rem; }
.strip strong { font-family: var(--serif); font-size: 1.9rem; display: block; color: var(--bronze-dark); }
.strip span { font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.strip-note { color: var(--ink-soft); max-width: 44em; margin: 2rem auto 0; text-align: center; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 4rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4cfdc; max-width: 40em; margin: 0 auto 2rem; }
.cta-band .btn-primary { background: var(--bronze-dark); }
.cta-band .btn-primary:hover, .cta-band .btn-primary:focus { background: #6f5530; }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; }

/* Article listing */
.post-list { list-style: none; max-width: 46em; }
.post-list li { border-bottom: 1px solid var(--line); padding: 1.75rem 0; }
.post-list h2, .post-list h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 0.4rem; }
.post-list h2 a, .post-list h3 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover, .post-list h2 a:focus, .post-list h3 a:hover, .post-list h3 a:focus { color: var(--bronze-dark); text-decoration: underline; }
.post-meta { font-size: 0.85rem; color: #6e6553; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; }
.post-list p { color: var(--ink-soft); font-size: 0.98rem; }

/* Comparison table */
.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { text-align: left; padding: 0.85rem 1rem; border: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--ink); color: #fff; font-family: var(--serif); font-weight: 600; }
.compare-table tbody th { background: var(--ivory); font-weight: 600; white-space: nowrap; }
.compare-table tbody tr:nth-child(even) td { background: var(--ivory); }
.compare-table a { color: var(--bronze-dark); font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* FAQ */
.faq-list h2 { font-size: 1.25rem; margin-top: 2rem; }
.faq-list h2:first-child { margin-top: 0; }

/* Contact */
.form-note { font-size: 0.85rem; color: #6e6553; margin-top: 0.75rem; }
.contact-checklist { margin: 0.5rem 0 1.5rem 1.1rem; }
.contact-checklist li { margin-bottom: 0.35rem; }
.btn-email { font-size: 1.1rem; padding: 1rem 2.2rem; word-break: break-all; }
.contact-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin: 2rem 0 1rem; }
.contact-facts dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-dark); font-weight: 600; }
.contact-facts dd { margin: 0.15rem 0 0; }
@media (max-width: 600px) { .contact-facts { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #0e1e30; color: #b9c5d3; padding: 3rem 0 2rem; font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font-family: var(--serif); color: #fff; font-size: 1.05rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #b9c5d3; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid #24374d; margin-top: 1.5rem; padding-top: 1.25rem; font-size: 0.82rem; color: #8496aa; }

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .grid-3, .steps, .strip { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-nav ul { gap: 0.85rem; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: 0.88rem; }
  .site-header .wrap { justify-content: center; padding-top: 0.6rem; padding-bottom: 0.6rem; }
}
