/* Alves Aguiar Advocacia — v1.3 stylesheet.
   Mobile-first. Local fonts only (fonts/), no import, no other host. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
}

:root {
  --page: #eef0f3;
  --alt: #f6f7f9;
  --band: #e6e9ee;
  --ink: #0f1722;
  --ink-2: #3b4452;
  --muted: #4b5563;
  --accent: #2d5a9a;
  --navy: #1f3f6e;
  --footer-bg: #0f1722;
  --footer-text: #b8c0cc;
  --footer-name: #f2f4f7;
  --footer-link: #c9d6ea;
  --logo-light: #9db4d6;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }
}

/* Links in text */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--navy);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Headings */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.4rem;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow-accent {
  color: var(--accent);
  font-weight: 600;
}

/* Tokens for facts only the OP can supply */
.op {
  display: inline;
  color: var(--accent);
  background: rgba(45, 90, 154, 0.06);
  border: 1px dashed rgba(45, 90, 154, 0.5);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
  line-height: 1.5;
}

/* Glass: solid fallback, then the blur where it is supported */
.glass,
.menu {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 34px rgba(15, 23, 34, 0.1);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass,
  .menu {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5));
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
  }
}

/* Header and menu capsule */
.site-header {
  padding: 16px var(--gutter) 0;
}

.menu {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 10px 10px 16px;
  border-radius: 28px;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 100%;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.lockup:hover {
  color: var(--ink);
}

.lockup-logo {
  flex: none;
  width: 40px;
  height: 40px;
  display: block;
}

.lockup-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lockup-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.lockup-sub {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.5;
}

.lockup-sub .op {
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  padding: 0 4px;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  flex: 1 1 100%;
  gap: 0;
}

.menu li {
  margin: 0;
}

.menu li a {
  display: block;
  padding: 10px 7px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink-2);
  border-radius: 999px;
  white-space: nowrap;
}

.menu li a:hover {
  color: var(--ink);
}

.menu li a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.menu li a.menu-cta {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 13px;
}

.menu li a.menu-cta:hover {
  background: var(--navy);
  color: #ffffff;
}

@media (min-width: 640px) {
  .menu {
    border-radius: 999px;
    padding: 10px 10px 10px 22px;
    flex-wrap: nowrap;
  }

  .lockup {
    flex: 0 1 auto;
  }

  .menu ul {
    flex: 0 0 auto;
    gap: 4px 6px;
  }

  .menu li a {
    font-size: 15px;
    padding: 10px 14px;
  }

  .menu li a.menu-cta {
    padding: 10px 20px;
  }

  .lockup-sub {
    font-size: 12px;
  }
}

/* Home hero */
.hero {
  background-color: var(--page);
  background-image: linear-gradient(180deg, rgba(238, 240, 243, 0.5) 0%, rgba(238, 240, 243, 0.74) 45%, rgba(238, 240, 243, 0.95) 85%, #eef0f3 100%), url("img/hero-s2.webp");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  padding-bottom: 56px;
}

.hero-body {
  width: 100%;
  max-width: 1160px;
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  max-width: 14ch;
  text-wrap: balance;
}

.hero .tagline {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}

.actions {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.button-primary:hover {
  background: var(--navy);
  color: #ffffff;
}

.button-glass {
  color: var(--ink);
  font-weight: 500;
}

.button-glass:hover {
  color: var(--ink);
}

.strip {
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  border-radius: 24px;
  overflow: hidden;
}

.strip > div {
  flex: 1 1 240px;
  min-width: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid rgba(15, 23, 34, 0.08);
}

.strip > div:last-child {
  border-bottom: 0;
}

.strip dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .hero-body {
    margin-top: 96px;
    gap: 28px;
  }

  .hero {
    padding-bottom: 72px;
  }

  .strip {
    margin-top: 56px;
  }

  .strip > div {
    border-bottom: 0;
    border-right: 1px solid rgba(15, 23, 34, 0.08);
  }

  .strip > div:last-child {
    border-right: 0;
  }
}

/* Home sections */
.inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.band {
  background-color: var(--band);
  background-image: linear-gradient(180deg, #eef0f3 0%, rgba(230, 233, 238, 0.8) 18%, rgba(230, 233, 238, 0.8) 82%, #eef0f3 100%), url("img/band-a1.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  padding: 64px var(--gutter);
}

.band .inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tech {
  background: var(--page);
  padding: 64px var(--gutter);
}

.tech .inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tech .card p {
  font-size: 17px;
  line-height: 1.55;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

.section-head p:last-child {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 250px;
  min-width: 0;
  margin: 0;
  padding: 28px 26px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card h3 {
  margin: 0;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--ink-2);
  flex-grow: 1;
}

.about {
  background: var(--alt);
  padding: 64px var(--gutter);
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about .photo-slot {
  flex: 1 1 280px;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 28px;
  background: linear-gradient(160deg, #e6e9ee, #dce0e7);
  border: 1px dashed rgba(45, 90, 154, 0.45);
}

.about-body {
  flex: 999 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-body p {
  margin: 0;
}

.panels {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.panel {
  flex: 1 1 260px;
  min-width: 0;
  padding: 22px 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 34, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel p {
  margin: 0;
  line-height: 1.5;
}

.panel .label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.first-contact {
  background-color: var(--page);
  background-image: linear-gradient(180deg, rgba(238, 240, 243, 0.5) 0%, rgba(238, 240, 243, 0.74) 45%, rgba(238, 240, 243, 0.95) 85%, #eef0f3 100%), url("img/hero-s2.webp");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  padding: 64px var(--gutter);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}

.contact-grid > div:first-child {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steps li {
  margin: 0;
  display: flex;
  gap: 18px;
  align-items: baseline;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

.step-num {
  min-width: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.contact-card {
  flex: 1 1 340px;
  min-width: 0;
  padding: 30px 26px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card h3 {
  font-size: 24px;
}

.contact-card p {
  margin: 0;
}

.contact-card .small {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.contact-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 34, 0.08);
}

.contact-list dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  font-size: 17px;
}

@media (min-width: 900px) {
  .band,
  .tech,
  .about,
  .first-contact {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .contact-card {
    padding: 36px 34px;
  }
}

/* Inner pages: title band */
.page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--band);
  padding-bottom: 8px;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #eef0f3 0%, rgba(230, 233, 238, 0.8) 18%, rgba(230, 233, 238, 0.8) 82%, #eef0f3 100%);
}

.page-head .band-img {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -2;
  display: block;
  width: 260%;
  max-width: none;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: left bottom;
}

@media (min-width: 640px) {
  .page-head .band-img {
    width: 200%;
  }
}

@media (min-width: 900px) {
  .page-head .band-img {
    width: 180%;
  }
}

.page-title {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 0 40px;
}

.page-title h1 {
  text-wrap: balance;
}

@media (min-width: 900px) {
  .page-title {
    padding: 72px 0 56px;
  }
}

/* Inner pages: content on the page color, white cards */
.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.content {
  padding-top: 24px;
  padding-bottom: 32px;
}

.content > p {
  color: var(--ink-2);
}

.content > section,
.note,
.slot {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 34, 0.08);
  border-radius: 24px;
  padding: 24px;
  margin: 0 0 16px;
}

.content > section h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.content > section > :last-child {
  margin-bottom: 0;
}

.content h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.slot {
  padding: 18px 24px;
}

.slot p {
  margin: 0;
}

.content > section .slot {
  background: var(--alt);
}

.notice {
  margin: 0 0 16px;
  padding: 16px 20px;
  border: 1px solid rgba(45, 90, 154, 0.25);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  background: rgba(45, 90, 154, 0.06);
}

.notice p {
  margin: 0;
}

.note {
  border-left: 5px solid var(--accent);
}

.note p {
  margin: 0 0 0.5rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.photo-slot {
  max-width: 20rem;
  min-height: 12rem;
  margin: 0 0 1rem;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed rgba(45, 90, 154, 0.5);
  border-radius: 20px;
  background: var(--band);
}

.photo-slot .op {
  border: 0;
  background: transparent;
  padding: 0;
}

.rights {
  list-style: none;
  padding-left: 0;
}

.rights li {
  padding-left: 2.6rem;
  text-indent: -2.6rem;
}

.rights .num {
  display: inline-block;
  width: 2.1rem;
  margin-right: 0.5rem;
  text-indent: 0;
  font-weight: 600;
  color: var(--accent);
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding: 48px var(--gutter) 56px;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 14px;
}

.footer-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-id,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-links {
  max-width: 360px;
}

.site-footer p {
  margin: 0;
}

.footer-logo {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}

.footer-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--footer-name);
}

.site-footer a {
  color: var(--footer-link);
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer a:focus-visible {
  outline-color: var(--footer-link);
}

.site-footer .op {
  color: var(--footer-link);
  background: transparent;
  border: 1px dashed rgba(201, 214, 234, 0.55);
}
