/* Portugal Vivo suite palette: portugal-vivo-studio/docs/brand/portugal_vivo_suite_colour_system.html
   Parent brand is Atlantic Blue. Green slash and armillary gold are shared by every app.
   Light theme is Azulejo Cream. Gold fails 4.5:1 on blue and on cream, so it only
   ever decorates; no text is set in it. */
:root {
  --blue: #2C5F8A;
  --blue-deep: #1F4565;
  --green: #045E02;
  --gold: #D19C18;
  --cream: #F5F2EB;
  --paper: #FFFFFF;
  --ink: #1B2A38;
  --ink-soft: #46586A;
  --speaks-red: #6C030B;
  --rule: #DAD4C6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
a:focus-visible, .card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 69, 101, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(209, 156, 24, 0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}
.brand img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 0 0 2px rgba(209, 156, 24, 0.4); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 32px; letter-spacing: 0.01em; }
.brand-name .vivo { color: #E9C46A; }
nav.links { display: flex; gap: 28px; align-items: center; }
nav.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  opacity: 0.85;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
}
nav.links a:hover { opacity: 1; color: #E9C46A; }
header.site a:focus-visible { outline-color: #E9C46A; }

.hero {
  background: var(--blue);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: var(--green);
  border-bottom-left-radius: 160px;
}

.hero-copy { padding: 64px 0 84px; position: relative; z-index: 1; }
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.12;
  max-width: 640px;
}
.hero-copy h1 .accent { color: #E9C46A; }
.hero-copy p {
  margin-top: 18px;
  max-width: 560px;
  font-size: 19px;
  color: #E6EEF5;
}
.dots { display: flex; gap: 10px; margin-top: 28px; }
.dots i { display: block; border-radius: 50%; background: var(--gold); }
.dots i:nth-child(1) { width: 14px; height: 14px; opacity: 0.9; }
.dots i:nth-child(2) { width: 10px; height: 10px; opacity: 0.65; margin-top: 4px; }
.dots i:nth-child(3) { width: 7px; height: 7px; opacity: 0.4; margin-top: 7px; }

section { padding: 56px 0 8px; scroll-margin-top: 110px; }
.label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
}
.rule { width: 32px; border: 0; border-top: 2px solid var(--speaks-red); margin: 10px 0 24px; }

h2 { font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--ink); }

.card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--speaks-red);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.card:hover { box-shadow: 0 6px 22px rgba(27, 42, 56, 0.12); }
.card img { width: 112px; height: 112px; border-radius: 24px; }
.card h3 { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.card p { margin-top: 6px; color: var(--ink-soft); }
.card .go { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--blue); }

.note { margin-top: 28px; color: var(--ink-soft); max-width: 620px; }

footer { margin-top: 64px; background: var(--blue-deep); color: #D7E3EE; padding: 32px 0; font-size: 15px; }
footer a { color: #fff; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

@media (max-width: 560px) {
  .card { grid-template-columns: 1fr; text-align: left; }
  .hero::after { width: 96px; height: 96px; border-bottom-left-radius: 96px; }
  .hero-copy { padding: 44px 0 64px; }
  .nav { padding: 10px 16px; }
  .brand img { width: 52px; height: 52px; border-radius: 12px; }
  .brand-name { font-size: 22px; }
  nav.links { gap: 16px; }
}
