:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --ink: #182d40;
  --muted: #4c545b;
  --accent: #825337;
  --line: #dcd5cb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.65 var(--sans); }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: absolute; top: 1rem; left: 1rem; z-index: 3; transform: translateY(-200%); padding: .6rem 1rem; background: white; }
.skip:focus { transform: none; }

.wrap { width: min(1152px, calc(100% - 6rem)); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
.header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { display: block; padding-block: .35rem; }
.brand img { display: block; width: clamp(11.5rem, 18vw, 14rem); height: auto; }
.footer small { display: block; font: 500 .69rem/1.3 var(--sans); color: var(--muted); margin-top: .4rem; }
nav { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.65rem); }
nav a { text-decoration: none; font-size: .88rem; font-weight: 600; }
nav a:hover, .text-link:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-contact, .menu { padding: .55rem .95rem; border: 1px solid #aa9789; border-radius: 99px; background: transparent; color: var(--ink); }
.nav-contact span, .button span, .text-link span { margin-left: .45rem; }

.hero { display: grid; grid-template-columns: 1.16fr .84fr; align-items: center; gap: clamp(2rem, 6vw, 6.35rem); padding-block: clamp(2.3rem, 5.7vw, 5.4rem); }
.eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .115em; text-transform: uppercase; margin: 0 0 1.12rem; }
.eyebrow::before { content: ""; width: 1.7rem; height: 1px; background: currentColor; flex: 0 0 auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.06; }
h1 { max-width: 11ch; font-size: clamp(3rem, 6.4vw, 6.1rem); letter-spacing: -.058em; }
h2 { max-width: 17ch; font-size: clamp(2.55rem, 4.35vw, 4.15rem); letter-spacing: -.04em; text-wrap: balance; }
h3 { font-size: 1.95rem; letter-spacing: -.035em; }
em { color: var(--accent); font-weight: 400; }
.lead { max-width: 30rem; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.17rem); margin: 1.5rem 0 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.3rem; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .72rem 1.18rem; border-radius: 99px; background: var(--ink); color: white; text-decoration: none; font-size: .87rem; font-weight: 700; }
.button:hover { background: #2f4a62; }
.text-link { text-decoration: none; font-size: .85rem; font-weight: 700; padding-block: .5rem; color: var(--accent); }
.portrait { overflow: hidden; margin: 0; border-radius: 50% 50% .85rem .85rem / 30% 30% .85rem .85rem; background: #ccc; outline: 1px solid #b38b6e; outline-offset: .55rem; }
.portrait img { width: 100%; height: auto; aspect-ratio: 5/6; object-fit: cover; object-position: center 54%; display: block; }

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.25rem, 6vw, 6rem); }
.shaded { background: #eee9df; border-block: 1px solid var(--line); }
.prose { max-width: 36rem; color: var(--muted); font-size: 1.05rem; }
.prose p:first-child { margin-top: 0; }
.prose p:last-child, #areas .prose { margin-bottom: 0; }
.method-overview { gap: clamp(1.75rem, 5vw, 4.5rem); }
.method-overview h2 { color: #471228; }
.method-overview h2 em { color: #782b46; }
.method-art {
  margin: 0;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent),
    linear-gradient(to bottom, black 95%, transparent);
  mask-composite: intersect;
}
.method-art img { display: block; width: 100%; height: auto; }
.method-link { display: inline-block; margin-top: .45rem; }

.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.3rem; }
.methods article { border: 1px solid var(--line); border-top: 2px solid #b99172; padding: clamp(1.2rem, 3vw, 2.1rem); background: #fffcf7; border-radius: .5rem; }
.methods p { color: var(--muted); margin-bottom: 0; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; padding: 0; margin: 0; list-style: none; font-weight: 600; }
.area-list li { border-bottom: 1px solid #d0c7bc; padding: .7rem 0; }
#areas { border-block-end: 0; }
.contact {
  --contact-photo-height: min(21rem, 42.857vw);
  display: grid;
  align-items: center;
  min-height: var(--contact-photo-height);
  padding-block: 1.5rem;
  background-color: #fcf3e7;
  background-image:
    linear-gradient(90deg, #fcf3e7 0%, rgba(252, 243, 231, .85) 25%, rgba(252, 243, 231, .7) 43%, transparent 66%),
    url("karla-contato.webp");
  background-size: calc(var(--contact-photo-height) * 7 / 3) 100%, auto var(--contact-photo-height);
  background-position: right center;
  background-repeat: no-repeat;
  color: #341827;
}
.contact:focus-visible { outline: none; }
.contact .split {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  width: min(46rem, calc(100% - 2.5rem));
}
.contact em, .contact .eyebrow { color: #75452e; }
.contact-details p:first-child { max-width: 27rem; margin-top: 0; }
.contact .button { background: #591c35; color: #fff8ec; }
.contact .button:hover { background: #742b46; }
.contact-status { color: #75452e; margin-bottom: 0; font-size: .9rem; }

@media (max-width: 760px) {
  .contact {
    --contact-photo-height: 42.857vw;
    padding-block: 1.6rem;
    background-image:
      linear-gradient(to bottom, transparent 73%, #fcf3e7),
      linear-gradient(90deg, rgba(252, 243, 231, .96), rgba(252, 243, 231, .83) 53%, rgba(252, 243, 231, .36) 82%, rgba(252, 243, 231, .25)),
      url("karla-contato.webp");
    background-size: 100% var(--contact-photo-height), 100% var(--contact-photo-height), 100% auto;
    background-position: right top;
  }
  .contact h2 { font-size: clamp(2rem, 7.5vw, 2.9rem); }
}
.footer { padding-block: 1.25rem calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1.25rem; flex-wrap: wrap; }
.footer a { text-decoration: none; font-size: .85rem; }
.footer .footer-brand { font: 400 1.45rem/1 var(--serif); }
.footer-social { width: auto; gap: .45rem; }
.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.footer-social a:hover { background: var(--ink); color: var(--paper); }
.footer-social svg { width: 21px; height: 21px; }
.footer-credit { margin: .95rem 0 0; border-top: 1px solid var(--line); padding-top: .7rem; text-align: center; color: var(--muted); font-size: .85rem; }
.footer-credit a { font-weight: 700; color: var(--ink); }

@media (max-width: 480px) {
  .footer-main { flex-direction: column; align-items: center; text-align: center; }
}

@media (min-width: 961px) {
  .hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: clamp(25rem, 35.5vw, 37rem);
    padding-block: clamp(1.75rem, 2.7vw, 3rem);
    grid-template-columns: 45% minmax(0, 1fr);
    gap: 0;
    background: #ddcbbb;
  }

  .hero h1 {
    font-size: clamp(3rem, 5.35vw, 5.15rem);
  }

  .hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, transparent 36%, rgba(248, 245, 239, .68) 56%, rgba(248, 245, 239, .72) 76%, rgba(248, 245, 239, .24) 100%);
  }

  .hero-copy {
    grid-column: 2;
    max-width: 46rem;
    padding-right: clamp(2.5rem, 7vw, 8rem);
  }

  .hero .portrait {
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: 0;
    outline: none;
  }

  .hero .portrait picture,
  .hero .portrait img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero .portrait img {
    width: 107%;
    margin-left: -6.5%;
    aspect-ratio: auto;
    object-position: center 7%;
  }
}

@media (max-width: 960px) {
  .wrap { width: calc(100% - 3.5rem); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .header { flex-wrap: wrap; min-height: 76px; gap: .65rem .85rem; padding-block: .8rem; }
  .brand img { width: 10.5rem; }
  .menu { cursor: pointer; font-size: .85rem; font-weight: 700; }
  nav { width: 100%; flex-wrap: wrap; gap: .4rem 1rem; }
  nav.is-compact { display: none; }
  nav.is-open { display: flex; }
  nav a { padding-block: .4rem; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero {
    --hero-copy-top: clamp(12rem, 62vw, 20rem);
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: var(--hero-copy-top) 1.25rem 2.75rem;
    gap: 0;
  }

  .hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(
      to bottom,
      transparent calc(var(--hero-copy-top) - 5rem),
      rgba(248, 245, 239, .9) var(--hero-copy-top),
      var(--paper) calc(var(--hero-copy-top) + 12rem)
    );
  }

  .hero .portrait {
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: 0;
    outline: none;
  }

  .hero .portrait img {
    position: absolute;
    top: clamp(-14rem, -28vw, -4.75rem);
    left: 0;
    aspect-ratio: auto;
  }
  h1 { max-width: 12ch; font-size: clamp(2.95rem, 11vw, 5rem); }
  .methods { grid-template-columns: 1fr; margin-top: 1.5rem; }
  #abordagem .split > p { margin: 0; }
}
@media (max-width: 360px) {
  .brand img { width: 9.5rem; }
  .area-list { column-gap: .9rem; }
}
.site-intro { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .site-intro {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: radial-gradient(ellipse at center, #fffdf9, var(--paper) 68%);
    animation: intro-screen 3s ease both;
  }

  .site-intro img {
    width: min(78vw, 32rem);
    height: auto;
    animation: intro-logo 3s ease both;
  }

  .skip:focus ~ .site-intro { display: none; }

  @keyframes intro-screen {
    0%, 73% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
  }

  @keyframes intro-logo {
    0% { opacity: 0; transform: translateY(.45rem) scale(.98); }
    24%, 100% { opacity: 1; transform: translateY(0) scale(1); }
  }
}

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

.floating-booking {
  position: fixed;
  right: calc(clamp(.75rem, 2vw, 1.5rem) + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .15rem .2rem;
  color: #591c35;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.floating-booking:hover span { text-decoration: underline; text-underline-offset: .2em; }
.floating-booking:focus-visible { outline-color: #591c35; }
.floating-booking img { display: block; width: 3.75rem; height: auto; }
.floating-booking span { -webkit-text-stroke: 2px #fff8ec; paint-order: stroke fill; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .breeze-in {
    --breeze-drift: -.3rem;
    animation: breeze-in 760ms cubic-bezier(.22, .65, .28, 1) backwards;
  }

  .hero-copy { animation-delay: 2.85s; }
  .breeze-in:nth-child(even) { --breeze-drift: .3rem; animation-delay: 85ms; }
  .methods > .breeze-in:nth-child(3) { animation-delay: 150ms; }
  .hero-copy:focus-within,
  .breeze-in:focus-within { animation: none; }

  @keyframes breeze-in {
    from { opacity: .3; transform: translate(var(--breeze-drift), .65rem); }
    65% { opacity: .97; transform: translate(0, .1rem); }
    to { opacity: 1; transform: translate(0, 0); }
  }
}
