/* SOcial – Migrant Support · socialmigration.pt
   Design herdado de socialexpats.org (Lato, dourado #E8B53B, azul #6FAFCE) */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-900-normal.woff2") format("woff2"); }

:root {
  --gold: #E8B53B;
  --gold-dark: #C9961F;
  --blue: #6FAFCE;
  --blue-dark: #5487AD;
  --blue-soft: #EAF4F9;
  --cream: #FDF8EC;
  --ink: #1D1E20;
  --muted: #5A6170;
  --line: #E4E8EE;
  --white: #FFFFFF;
  --radius: 22px;
  --wrap: 1120px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-dark); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: #8A93A2; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s; }
.nav a:hover { color: var(--gold-dark); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav .lang-switch { font-weight: 700; color: var(--blue-dark); border: 2px solid var(--blue); border-radius: 999px; padding: 3px 12px; font-size: 14px; letter-spacing: .5px; }
.nav .lang-switch:hover { background: var(--blue); color: #fff; }
.nav .social { display: flex; gap: 12px; margin-left: 8px; }
.nav .social a { border: 0; color: var(--blue); display: flex; }
.nav .social svg { width: 22px; height: 22px; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font); font-weight: 700; font-size: 18px; text-decoration: none; border-radius: 999px; padding: 13px 30px; background: var(--gold); color: #fff; border: 0; transition: background .2s, transform .2s; cursor: pointer; }
.btn:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--gold); border: 5px solid var(--gold); font-size: 22px; padding: 10px 34px; }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue-dark); padding: 13px 4px; }
.btn-ghost:hover { background: transparent; color: var(--gold-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; text-align: center; color: #fff; background: #2b2b2b url("../img/hero.jpg") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(20,22,26,.55); }
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 700; margin-bottom: .35em; letter-spacing: -.5px; }
.hero .tagline { font-size: clamp(21px, 3.6vw, 44px); font-weight: 700; color: var(--blue); margin: 0 0 1.1em; }
.hero .lead { font-size: clamp(20px, 2.2vw, 26px); max-width: 760px; margin: 0 auto 1.6em; font-weight: 400; }

/* ---------- Page hero (internal pages) ---------- */
.page-hero { padding: 90px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); color: var(--blue); margin-bottom: .25em; }
.page-hero .sub { font-style: italic; color: var(--muted); font-size: 21px; margin-bottom: .6em; }
.page-hero .pill { display: inline-block; background: var(--cream); color: var(--gold-dark); font-weight: 700; padding: 8px 20px; border-radius: 999px; font-size: 16px; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.band-blue { background: var(--blue); color: #fff; }
.band-soft { background: var(--blue-soft); }
.band-cream { background: var(--cream); }
.center { text-align: center; }
.h-gold { color: var(--gold); font-size: clamp(32px, 4vw, 48px); }
.h-blue { color: var(--blue); font-size: clamp(32px, 4vw, 48px); }
.band-blue .h-gold { color: var(--gold); }
.statement { padding: 70px 0; text-align: center; }
.statement h2 { color: var(--gold); font-size: clamp(28px, 3.6vw, 46px); margin-bottom: .4em; }
.statement p { color: var(--blue-dark); font-size: clamp(19px, 2vw, 24px); max-width: 860px; margin: 0 auto; line-height: 1.55; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.media.tall img { aspect-ratio: 4 / 5; }
.media.wide img { aspect-ratio: 4 / 3; }
.media.logo img { max-width: 360px; margin: 0 auto; border-radius: 0; }
.kicker { font-style: italic; font-size: 19px; color: var(--muted); margin-bottom: .4em; }
.band-blue .kicker { color: #fff; opacity: .92; }
.highlight { font-weight: 700; font-size: 19px; }
.band-blue .highlight { color: #fff; }
.band-blue p { font-size: 18.5px; }
.band-blue .btn-ghost { color: #fff; }
.band-blue .btn-ghost:hover { color: var(--cream); }

.portrait { position: relative; }
.portrait .badge { position: absolute; left: -36px; bottom: -10px; width: 150px; background: #fff; border-radius: 0 90px 0 0; padding: 18px 16px 8px 10px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: 0 8px 30px rgba(30,40,60,.07); display: flex; flex-direction: column; }
.card img { border-radius: 16px; margin: -6px -4px 24px; width: calc(100% + 8px); max-width: none; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { font-size: 23px; color: var(--ink); padding-top: 18px; border-top: 5px solid var(--gold); }
.card p { color: #3B404A; font-size: 16.5px; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Notice ---------- */
.notice { border-left: 5px solid var(--gold); background: var(--cream); padding: 22px 26px; border-radius: 0 14px 14px 0; font-weight: 700; color: #4A3A10; margin: 28px 0; }
.notice.blue { border-left-color: var(--blue); background: var(--blue-soft); color: #23435A; }

/* ---------- Prose (long content) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: clamp(30px, 3.6vw, 42px); color: var(--gold); margin-top: 0; }
.prose h3 { font-size: 25px; color: var(--blue-dark); margin-top: 1.6em; }
.lead-q { font-size: 23px; font-weight: 700; color: var(--blue-dark); line-height: 1.35; }
.closing { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--gold); text-align: center; margin: 1.2em 0 0; }

.anchor-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.anchor-nav a { text-decoration: none; border: 2px solid var(--blue); color: var(--blue-dark); padding: 7px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.anchor-nav a:hover { background: var(--blue); color: #fff; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; }
.contact-card h3 { font-size: 23px; color: var(--blue-dark); }
.contact-card.primary { border: 2px solid var(--gold); box-shadow: 0 10px 34px rgba(232,181,59,.15); }
.contact-card .btn { font-size: 16px; padding: 11px 22px; }
.direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 36px; margin-top: 10px; font-size: 18px; }
.direct a { color: var(--ink); text-decoration: none; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.direct a:hover { color: var(--gold-dark); }
.direct svg { width: 22px; height: 22px; color: var(--blue); }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); color: var(--ink); }
.cta p { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 30px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; text-align: center; }
.footer-grid h4 { font-size: 17px; margin-bottom: 14px; }
.footer-grid .logo-f { max-width: 190px; margin: 0 auto; }
.footer-social { display: flex; justify-content: center; gap: 14px; }
.footer-social a { color: var(--blue); }
.footer-social svg { width: 24px; height: 24px; }
.footer-contacts p { margin: 0 0 8px; }
.footer-contacts a { color: var(--ink); }
.partners { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; margin: 44px 0 26px; }
.partners img { height: 42px; width: auto; }
.legal { text-align: center; color: #7A8291; font-size: 14px; }
.legal a { color: #7A8291; }
.legal p { margin: 4px 0; }

/* WhatsApp floating */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 60; }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16.5px; }
  section { padding: 64px 0; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--ink); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .social { margin: 14px 0 0; }
  .nav .lang-switch { align-self: flex-start; margin-top: 14px; border: 2px solid var(--blue); padding: 6px 16px; }
  .split, .cards, .cards.two, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .hero { min-height: 560px; }
  .portrait .badge { left: 10px; width: 120px; }
  .btn-outline { font-size: 19px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .btn { font-size: 16.5px; padding: 12px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Aviso legal de chamada (DL 59/2021) */
.tel-note { display: block; font-size: 12.5px; color: #7A8291; font-weight: 400; line-height: 1.4; margin-top: 2px; }
.tel-block { display: inline-flex; flex-direction: column; align-items: center; }
.direct .tel-note { margin-top: 4px; }
