/* ============ FONTS ============ */
@font-face {
  font-family: "Billmake";
  src: url("../fonts/Billmake-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --color-navy: #062671;
  --color-navy-dark: #041a52;
  --color-white: #fefefe;
  --color-blue: #386ade;
  --color-surface: #f4f6fa;
  --color-text: #1a1a2e;
  --color-text-muted: #4a4a5e;
  --color-border: #dde3ef;

  --font-display: "Billmake", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-section: 5.5rem;

  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  --text-2xl: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.3rem + 2.4vw, 2.9rem);

  --radius: 10px;
  --header-height: 72px;
  --max-width: 1200px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}
img, picture { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

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

section[id], #main { scroll-margin-top: var(--header-height); }

/* ============ SCROLL / ENTRANCE ANIMATIONS ============ */
/* Elements start hidden only once JS confirms it can reveal them
   (html.js), so the page is fully visible with no JS at all. */
.js .reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal--rise { transform: translateY(28px); }
.js .reveal--rise-fast { transform: translateY(20px); transition-duration: 0.45s; }
.js .reveal--left { transform: translateX(-48px); }
.js .reveal--right { transform: translateX(48px); }
.js .reveal--fade { transform: none; }

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.reveal--d4 { transition-delay: 0.32s; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

/* ============ LAYOUT PRIMITIVES ============ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-base);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
  border: 2px solid var(--color-navy);
}
.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
}
/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy);
  white-space: nowrap;
}
.nav {
  display: none;
}
.nav__list {
  display: flex;
  gap: var(--space-6);
}
.nav__list a {
  font-weight: 500;
  font-size: var(--text-sm);
}
.nav__list a:hover {
  color: var(--color-blue);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.header__cta {
  padding: 0.6rem 1.1rem;
  font-size: var(--text-sm);
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .nav {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-white);
    padding: var(--space-8) var(--space-6);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s 0.25s;
  }
  .nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .nav__list {
    flex-direction: column;
    gap: var(--space-6);
  }
  .nav__list a {
    font-size: var(--text-xl);
  }
  .nav__cta {
    display: flex;
    margin-top: var(--space-8);
    width: 100%;
  }
  .header__cta {
    display: none;
  }
  .header__actions {
    gap: var(--space-4);
  }
}
@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }
  .nav__list a {
    font-size: var(--text-sm);
  }
  .nav-toggle {
    display: none;
  }
  .nav__cta {
    display: none;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding-block: var(--space-8);
  margin-top: 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}
.footer__legal {
  font-size: var(--text-sm);
  color: var(--color-white);
  opacity: 0.9;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
}
.footer__social:hover {
  color: var(--color-white);
  text-decoration: underline;
}
.site-footer :focus-visible {
  outline-color: var(--color-white);
}
@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 6.5rem;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-8);
  align-items: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: center;
}
.hero__eyebrow {
  display: none;
  color: var(--color-blue);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__title {
  color: var(--color-navy);
}
.hero__subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 46ch;
  margin-inline: auto;
}
.hero__cta {
  margin-top: var(--space-4);
  align-self: center;
}
.hero__art-wrap {
  display: block;
  flex-shrink: 0;
  width: min(360px, 82vw);
}
.hero__art {
  display: block;
  width: 100%;
}
.hero__photo {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .hero {
    padding-block: 10rem;
  }
  .hero__eyebrow {
    display: block;
  }
  .hero .container {
    max-width: 1384px;
  }
  .hero__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .hero__content {
    text-align: left;
  }
  .hero__subtitle,
  .hero__cta {
    margin-inline: 0;
  }
  .hero__cta {
    align-self: flex-start;
  }
  .hero__art-wrap {
    width: 644px;
    justify-self: end;
    transform: translateX(128px);
  }
}

/* ============ SOBRE ============ */
.sobre {
  padding-block: var(--space-section);
  background: var(--color-surface);
}
.sobre__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.sobre__media {
  display: block;
  align-self: center;
  width: min(360px, 80vw);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
}
.sobre__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sobre__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.sobre__content h2 {
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}
.sobre__content p {
  color: var(--color-text);
}
.sobre__quote {
  border-left: 3px solid var(--color-blue);
  padding-left: var(--space-6);
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.sobre__quote p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--color-navy);
}
.sobre__quote cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .sobre__inner {
    flex-direction: row;
    align-items: flex-start;
  }
  .sobre__media {
    flex-shrink: 0;
    align-self: flex-start;
    width: 430px;
  }
}

/* ============ ESPECIALIDADES ============ */
.especialidades {
  padding-block: var(--space-section);
}
.especialidades h2 {
  color: var(--color-navy);
  max-width: 30ch;
  margin-bottom: var(--space-8);
}
.especialidades__panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr;
}
.especialidade-col {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.especialidade-col:first-child {
  border-bottom: 1px solid var(--color-border);
}
.especialidade-icon {
  color: var(--color-blue);
}
.especialidade-col h3 {
  color: var(--color-navy);
}
.especialidade-col p {
  color: var(--color-text);
}

@media (min-width: 640px) {
  .especialidades__panel {
    grid-template-columns: 1fr 1fr;
  }
  .especialidade-col:first-child {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
  }
}

/* ============ COMO FUNCIONA ============ */
.como-funciona {
  padding-block: var(--space-section);
  background: var(--color-surface);
}
.como-funciona h2 {
  color: var(--color-navy);
  margin-bottom: var(--space-8);
}
.steps {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.steps__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1.5px solid var(--color-border);
}
.steps__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.steps__item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-navy);
  font-size: var(--text-lg);
}
.steps__item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.como-funciona__photo {
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============ CTA BAND ============ */
.cta-band {
  padding-block: var(--space-8);
  background: var(--color-surface);
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.cta-band__inner p {
  color: var(--color-text);
  font-size: var(--text-lg);
}

@media (min-width: 640px) {
  .cta-band__inner {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============ FAQ ============ */
.faq {
  padding-block: var(--space-section);
}
.faq h2 {
  color: var(--color-navy);
  margin-bottom: var(--space-8);
}
.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}
.faq__item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-6);
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  list-style: none;
}
.faq__item summary h3 {
  font: inherit;
  color: inherit;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-navy);
}
.faq__item.is-open summary::after {
  content: "\2212";
}
.faq__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq__item.is-open .faq__content {
  grid-template-rows: 1fr;
}
.faq__content p {
  overflow: hidden;
  margin: 0;
  padding-top: var(--space-4);
  color: var(--color-text);
}

/* ============ DEPOIMENTOS ============ */
.depoimentos {
  padding-block: var(--space-section);
  background: var(--color-surface);
}
.depoimentos h2 {
  color: var(--color-navy);
  margin-bottom: var(--space-8);
}
.depoimentos__grid {
  display: grid;
  gap: var(--space-6);
}
.depoimento-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}
.depoimento-card__quote {
  color: var(--color-blue);
}
.depoimento-card p {
  color: var(--color-text);
}
.depoimento-card footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.depoimento-card__stars {
  color: var(--color-navy);
  letter-spacing: 2px;
}
.depoimento-card cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.depoimentos__note {
  margin-top: var(--space-8);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .depoimentos__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============ CTA FINAL + CONTATO ============ */
.cta-final {
  padding-block: var(--space-section);
  background: var(--color-navy);
  color: var(--color-white);
}
.cta-final .btn-primary {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}
.cta-final .btn-primary:hover {
  background: var(--color-surface);
  border-color: var(--color-surface);
}
.cta-final :focus-visible {
  outline-color: var(--color-white);
}
.cta-final__banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-16);
}
.cta-final__banner h2 {
  color: var(--color-white);
  max-width: 32ch;
}
.cta-final__grid {
  display: grid;
  gap: var(--space-8);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-white);
}
.contact-info svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-white);
}
.contact-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .cta-final__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .contact-map {
    aspect-ratio: auto;
    height: 260px;
  }
}
