/* Tokens e base */
:root {
  --brand: #D9040C;
  --brand-dark: #B6040A;
  --hero-blush: #FFF4F4;
  --hero-panel: #FBE6E8;
  --wine: #750D24;
  --secondary: #464646;
  --ink: #242424;
  --muted: #535353;
  --white: #FFFFFF;
  --soft: #F0F1F2;
  --border: #D7D9DC;
  --whatsapp: #188842;
  --section-space: clamp(3.5rem, 6vw, 6rem);
  --heading: Manrope, Arial, sans-serif;
  --body: Inter, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--heading);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
}

p {
  color: var(--muted);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  padding: 0;
  list-style: none;
}

strong, b {
  font-weight: 600;
}

a, a:visited, a:hover, a:focus, a:focus-visible, a:active {
  color: inherit;
  text-decoration: none;
}

a, button, summary {
  -webkit-tap-highlight-color: transparent;
}

button, summary {
  cursor: pointer;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #252525;
  outline-offset: 4px;
}

.contact :focus-visible, .footer :focus-visible, .differences :focus-visible {
  outline-color: #FFFFFF;
}

.contact-card :focus-visible {
  outline-color: #252525;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-180%);
  background: #FFFFFF;
  color: #242424;
  padding: 12px 20px;
  font-weight: 600;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(1320px, calc(100% - clamp(32px, 6vw, 96px)));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2::before, .about-copy h2::before, .process-intro h2::before, .contact-copy h2::before {
  content: "";
  display: block;
  width: 45px;
  height: 4px;
  margin-bottom: 20px;
  background: var(--brand);
}

.section-heading p, .process-intro > p, .contact-copy p {
  margin-top: 16px;
  max-width: 65ch;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 19px;
  border: 0;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
}

.button i {
  font-size: 19px;
  line-height: 1;
}

.button-brand, .button-brand:visited {
  background: var(--brand);
  color: #FFFFFF;
}

.button-brand:hover, .button-brand:active {
  background: var(--brand-dark);
  color: #FFFFFF;
}

/* 01 Header */
.header, .legal-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner, .legal-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  padding-block: 12px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand-image {
  width: 136px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.menu ul {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 19px);
}

.menu a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--secondary);
}

.menu a:hover {
  color: var(--brand-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-bars::before, .menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

/* Molduras de fotografias: recorte real no CSS, independente do WebP. */
.photo-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.photo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* 02 Hero */
.hero {
  padding-block: clamp(32px, 3.8vw, 56px) clamp(24px, 2.6vw, 36px);
  background: var(--hero-blush);
}

.hero-grid {
  display: grid;
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr) minmax(0, clamp(250px, 30vw, 340px));
  align-items: center;
  gap: 30px clamp(30px, 5vw, 72px);
}

.hero h1 {
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 18px;
}

.hero h2 {
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  line-height: 1.1;
  max-width: 15ch;
}

.hero h2 span {
  color: var(--brand);
}

.hero-copy p {
  margin-top: 24px;
  max-width: 58ch;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-image-wrap {
  position: relative;
  border-radius: 18px;
  padding: 0;
  isolation: isolate;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 14px -12px -12px 14px;
  z-index: -1;
  border: 2px solid var(--brand);
  border-radius: 18px;
}

.hero-photo-frame {
  aspect-ratio: 3 / 4;
}

.hero-image {
  object-fit: cover;
}

.hero-notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--hero-panel);
  border: 1px solid #F1C9CE;
  border-top: 3px solid var(--brand);
  border-radius: 14px;
  padding: 20px 8px;
}

.hero-notes li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 500;
}

.hero-notes li + li {
  border-left: 1px solid #E8BAC0;
}

.hero-notes strong, .hero-notes i {
  color: var(--brand-dark);
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
}

/* 03 Serviços */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #FFFFFF;
}

.service-photo-frame {
  aspect-ratio: 3 / 2;
  border-radius: 17px 17px 0 0;
}

.service-body {
  padding: 24px;
}

.service-number {
  display: inline-block;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.service-body p {
  margin-top: 13px;
}

/* 04 Sobre */
.about {
  background: var(--soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.about-photo {
  position: relative;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

.portrait-frame {
  /* Arquivo 9:16; janela editorial 3:4 para preservar a foto 720x960 centralizada. */
  aspect-ratio: 3 / 4;
}

.about-photo figcaption {
  position: relative;
  margin: -35px 14px 0;
  padding: 19px 18px;
  background: #FFFFFF;
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  box-shadow: 0 9px 24px #24242412;
}

.about-photo figcaption strong, .about-photo figcaption span {
  display: block;
}

.about-photo figcaption span {
  color: var(--muted);
  font-size: 14px;
}

.about-copy h2 {
  max-width: 29ch;
  margin-bottom: 20px;
}

.about-copy p {
  max-width: 75ch;
  margin-bottom: 13px;
  line-height: 1.65;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.credentials li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 17px;
  background: #FFFFFF;
  border-radius: 12px;
  border-top: 3px solid var(--brand);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.credentials .years, .credentials i {
  color: var(--brand-dark);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
}

/* 05 Diferenciais */
.differences {
  background: var(--wine);
  color: #FFFFFF;
}

.difference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.differences .section-heading {
  max-width: none;
}

.differences .section-heading h2::before {
  background: #FFA6AE;
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.difference-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-content: start;
  column-gap: 16px;
  row-gap: 6px;
  padding: 23px;
  border: 1px solid #F0D8DC;
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--ink);
}

.difference-item i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--hero-panel);
  font-size: 28px;
  line-height: 1;
  color: var(--brand-dark);
  font-weight: 400;
}

.difference-item h3 {
  grid-column: 2;
}

.difference-item p {
  grid-column: 2;
  color: var(--muted);
}

/* 06 Como funciona */
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
  gap: clamp(30px, 6vw, 84px);
}

.process-note {
  margin-top: 26px;
  padding: 25px;
  border-radius: 16px;
  background: var(--soft);
  border-left: 4px solid var(--brand);
}

.process-note p {
  margin: 10px 0 20px;
}

.process-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 30px;
}

.process-steps li:last-child {
  padding-bottom: 0;
}

.process-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  border-left: 1px solid var(--border);
}

.step-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #FFFFFF;
  border-radius: 12px;
  font-weight: 600;
}

.process-steps h3 {
  margin: 3px 0 8px;
}

/* 08 Avaliações */
.reviews {
  background: var(--soft);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  padding: 28px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.review-card i {
  font-size: 32px;
  color: var(--brand-dark);
}

.review-card h3 {
  font-size: 17px;
  margin: 6px 0 12px;
}

/* 11 FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
}

/* Sticky Scroll do título do FAQ */
@media (min-width: 901px) {
  .faq-grid > .section-heading {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}

.faq-items {
  border-top: 1px solid var(--border);
}

details {
  border-bottom: 1px solid var(--border);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  padding: 17px 8px;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  color: var(--brand-dark);
}

.faq-mark {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  color: var(--brand-dark);
  background: var(--soft);
  border-radius: 8px;
  font-size: 22px;
}

.faq-mark::before {
  content: "+";
}

details[open] .faq-mark::before {
  content: "−";
}

details p {
  padding: 0 8px 20px;
  max-width: 75ch;
}

/* 12 Contato */
.contact {
  background: var(--secondary);
  color: #FFFFFF;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.contact-copy h2::before {
  background: #FFFFFF;
}

.contact-copy p {
  color: #F1F1F1;
  font-size: 18px;
}

.contact-card {
  padding: clamp(22px, 4vw, 38px);
  color: var(--ink);
  background: #FFFFFF;
  border-radius: 18px;
}

.contact-card h3 {
  color: var(--secondary);
}

.contact-list {
  display: grid;
  gap: 17px;
  margin: 24px 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-list li > i {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: #F0F1F2;
  border-radius: 9px;
  font-size: 21px;
}

.contact-list li > div {
  min-width: 0;
}

.contact-list span, .contact-list strong {
  display: block;
}

.contact-list span {
  color: var(--muted);
  font-size: 14px;
}

.contact-list a {
  color: var(--brand-dark);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--ink);
}

.contact-card .button {
  width: 100%;
}

/* 13 Footer */
.footer {
  background: #242424;
  color: #FFFFFF;
  text-align: center;
  padding-block: 29px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 8px;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.footer p {
  color: #F0F0F0;
  font-size: 14px;
}

.footer p a {
  color: #FFFFFF;
  font-weight: 600;
}

.footer a:hover {
  color: #FFFFFF;
  background: #464646;
  border-radius: 3px;
}

/* Páginas legais e 404 */
.legal-content {
  padding-block: var(--section-space);
}

.prose {
  max-width: 780px;
}

.prose h1, .error-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.prose section {
  margin-top: 32px;
}

.prose h2 {
  font-size: 23px;
  margin-bottom: 12px;
}

.prose a {
  color: var(--brand-dark);
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

.error-main {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding-block: 60px;
  text-align: center;
}

.error-content {
  max-width: 700px;
}

.error-content .brand {
  margin-bottom: 24px;
}

.error-code {
  color: var(--brand-dark);
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
}

.error-content .button {
  margin-top: 24px;
}

/* Responsividade */
@media (max-width: 1180px) {
  .header-inner {
    gap: 12px;
    min-height: 76px;
  }
  .header-cta {
    margin-left: auto;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    display: none;
  }
  .menu.is-open {
    display: block;
  }
  .menu ul {
    display: grid;
    gap: 0;
    padding: 10px 24px 18px;
  }
  .menu a {
    display: flex;
    padding: 8px 0;
  }
  .menu li + li {
    border-top: 1px solid var(--border);
  }
  .service-body {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .about-grid, .difference-layout, .process-grid, .faq-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h2 {
    max-width: 18ch;
  }
  .hero-image-wrap {
    width: 100%;
  }
  .hero-notes li {
    padding: 8px 10px;
    font-size: 14px;
  }
  .service-grid, .difference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .about-photo {
    max-width: 380px;
  }
  .about-copy h2 {
    max-width: 28ch;
  }
  .credentials {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .credentials li {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .difference-layout, .faq-grid {
    gap: 8px;
  }
  .contact-card {
    max-width: 650px;
  }
}

/* Hero em telas estreitas: retrato centralizado e altura controlada. */
@media (max-width: 740px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-image-wrap {
    width: min(100%, 280px);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner, .legal-head-inner {
    gap: 8px;
    min-height: 68px;
  }
  .brand-image {
    width: 105px;
  }
  .header-cta {
    padding: 10px 12px;
    min-height: 44px;
    font-size: 14px;
  }
  .hero h1 {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .hero h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8vw, 2.65rem);
  }
  .hero-copy p {
    margin-top: 18px;
  }
  .hero-actions {
    margin-top: 23px;
    gap: 10px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-grid {
    gap: 26px;
  }
  .hero-image-wrap::before {
    inset: 8px -7px -7px 8px;
  }
  .hero-notes {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 18px;
  }
  .hero-notes li {
    justify-content: flex-start;
    padding: 13px 0;
  }
  .hero-notes li + li {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .service-grid, .about-grid, .difference-grid, .review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-photo {
    max-width: 380px;
  }
  .about-copy h2 {
    max-width: none;
  }
  .about-copy p {
    line-height: 1.65;
  }
  .section-heading {
    margin-bottom: 24px;
  }
  .process-steps li {
    gap: 15px;
  }
  .contact-copy p {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .header-inner .brand-image {
    width: 91px;
  }
  .header-cta {
    padding-inline: 9px;
  }
  .header-cta i {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* CTA WhatsApp: regra final de cascata para todos os estados e descendentes */
a.cta-whatsapp, a.cta-whatsapp:visited, a.cta-whatsapp:focus, a.cta-whatsapp:focus-visible {
  background: #188842;
  color: #FFFFFF;
  border: 0;
  opacity: 1;
  filter: none;
}

a.cta-whatsapp:hover, a.cta-whatsapp:active {
  background: #126B33;
  color: #FFFFFF;
  border: 0;
}

a.cta-whatsapp *, a.cta-whatsapp:hover *, a.cta-whatsapp:focus-visible * {
  color: #FFFFFF;
  opacity: 1;
  filter: none;
  text-decoration: none;
}

/* WhatsApp: glifo de contorno, menor e sem herdar o peso do texto */
i.ri-whatsapp-line, i.ri-whatsapp-line::before {
  font-weight: 400;
  -webkit-text-stroke: 0;
}

a.cta-whatsapp i.ri-whatsapp-line {
  font-size: 17px;
  font-weight: 400;
}
