/* Rosa Branca Cosméticos — base visual compartilhada */
@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/quicksand-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --pine: #103F38;
  --forest: #0E5B50;
  --green: #147A69;
  --mint: #DDEDE7;
  --mist: #F1F7F4;
  --petal: #D8A6AD;
  --blush: #F4E7E7;
  --ivory: #FBF7F1;
  --ink: #15221F;
  --muted: #60706B;
  --line: #DCE4E1;
  --white: #FFF;
  --danger: #9B3240;
  --font-sans: Quicksand, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --header-height: 72px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 10px 28px rgba(16, 63, 56, .08);
  --shadow-md: 0 18px 46px rgba(16, 63, 56, .14);
  --ease: 180ms ease;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-height: 80px; }
}

@media (min-width: 1440px) {
  :root { --gutter: 40px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a, button, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(20, 122, 105, .16); }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }

::selection { background: var(--petal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--petal); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--pine);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(100%, calc(var(--container) + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: 64px; }
.section--soft { background: var(--mist); }
.section--blush { background: var(--blush); }
.section--dark { background: var(--pine); color: var(--white); }
.section--dark .section__eyebrow { color: var(--mint); }
.section__head { max-width: 730px; margin-bottom: 32px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow,
.eyebrow {
  margin-bottom: 16px;
  color: var(--forest);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.2px;
  line-height: 22px;
  text-transform: uppercase;
}
.display,
h1, h2, h3 { font-weight: 700; letter-spacing: -.5px; }
h1, .h1 { max-width: 16ch; font-size: 32px; line-height: 38px; text-wrap: balance; }
h2, .h2 { font-size: 30px; line-height: 38px; text-wrap: balance; }
h3, .h3 { font-size: 22px; line-height: 28px; }
.lead { max-width: 62ch; font-size: 16px; color: var(--muted); line-height: 28px; }
.section--dark .lead { color: var(--mint); }
.prose > * + * { margin-top: 1rem; }
.prose { max-width: 68ch; color: var(--muted); }
.section--dark .prose { color: var(--mint); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.button:hover { background: var(--pine); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--large { min-height: 56px; padding-inline: 1.5rem; }
.button--light { background: var(--white); color: var(--pine); }
.button--light:hover { background: var(--mint); }
.button--outline { border-color: currentColor; background: transparent; color: var(--forest); }
.button--outline:hover { background: var(--mint); color: var(--pine); }
.button--on-dark { border-color: rgba(255,255,255,.5); color: var(--white); }
.button--on-dark:hover { border-color: var(--white); background: var(--white); color: var(--pine); }
.button-group { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 28px; }

/* Header: use .site-header--overlay on pages whose hero can carry the nav. */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 241, .96);
  backdrop-filter: blur(12px);
  transition: background var(--ease), box-shadow var(--ease), color var(--ease), border-color var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 5px 24px rgba(16, 63, 56, .12); }
.header__bar { display: flex; min-height: var(--header-height); align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; }
.brand img {
  width: auto;
  height: 42px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(19%) saturate(1119%) hue-rotate(119deg) brightness(91%) contrast(93%);
}
.desktop-nav, .header__actions { display: none; }
.menu-toggle {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--pine);
}
.menu-toggle__lines, .menu-toggle__lines::before, .menu-toggle__lines::after { width: 20px; height: 2px; border-radius: 4px; background: currentColor; content: ""; transition: transform var(--ease); }
.menu-toggle__lines { position: relative; }
.menu-toggle__lines::before { position: absolute; top: -6px; left: 0; }
.menu-toggle__lines::after { position: absolute; top: 6px; left: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { transform: translateY(-6px) rotate(-45deg); }

.site-drawer { position: fixed; z-index: 120; inset: 0 0 0 auto; display: grid; width: min(86vw, 380px); padding: 28px var(--gutter); transform: translateX(101%); overflow-y: auto; overscroll-behavior: contain; background: var(--ivory); box-shadow: -20px 0 50px rgba(16, 63, 56, .18); transition: transform 240ms ease; }
.site-drawer.is-open { transform: translateX(0); }
.site-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; align-self: start; }
.site-drawer__nav { display: grid; align-content: center; gap: .35rem; }
.site-drawer__nav a { min-height: 48px; padding: .65rem 0; border-bottom: 1px solid var(--line); color: var(--pine); font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.site-drawer__nav a.is-active { color: var(--green); }
.drawer-backdrop { position: fixed; z-index: 110; inset: 0; border: 0; background: rgba(16, 63, 56, .42); opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.hero { position: relative; overflow: clip; padding-block: clamp(72px, 13vw, 160px); background: var(--pine); color: var(--white); }
.hero::after { position: absolute; z-index: 0; right: -18%; bottom: -42%; width: min(75vw, 860px); aspect-ratio: 1; border: 1px solid rgba(221, 237, 231, .18); border-radius: 45% 55% 53% 47% / 58% 40% 60% 42%; content: ""; }
.hero--soft { background: var(--mist); color: var(--pine); }
.hero--soft .lead { color: var(--muted); }
.hero__grid { position: relative; z-index: 1; display: grid; align-items: center; gap: 2.5rem; }
.hero__copy { max-width: 720px; }
.hero__copy .eyebrow { color: var(--mint); }
.hero--soft .eyebrow { color: var(--forest); }
.hero__copy .lead { margin-top: 1.25rem; color: rgba(255,255,255,.82); }
.hero__visual { position: relative; min-height: 240px; border-radius: 48% 52% 43% 57% / 44% 40% 60% 56%; background: linear-gradient(135deg, var(--petal), var(--blush)); }
.hero__visual img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

.metric-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--line); }
.metric { min-width: 0; padding: 1.4rem; background: var(--white); }
.metric__value { display: block; color: var(--forest); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.metric__label { display: block; margin-top: .5rem; color: var(--muted); font-size: 16px; line-height: 24px; }
.card-grid { display: grid; gap: 16px; }
.card { min-width: 0; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.card--mint { background: var(--mint); }
.card--petal { background: var(--blush); border-color: var(--petal); }
.card__icon { display: grid; width: 48px; height: 48px; margin-bottom: 1.1rem; place-items: center; border-radius: 15px; background: var(--mint); color: var(--forest); }
.card__icon svg { width: 24px; height: 24px; }
.card p { margin-top: .65rem; color: var(--muted); }
.card a:not(.button) { color: var(--forest); font-weight: 700; }
.card--dark { background: var(--forest); border-color: var(--forest); color: var(--white); }
.card--dark p { color: var(--mint); }

.steps { display: grid; gap: 1rem; list-style: none; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.step::before { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--blush); color: var(--pine); content: counter(step, decimal-leading-zero); counter-increment: step; font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.step p { margin-top: .35rem; color: var(--muted); }
.section--dark .step::before { background: var(--petal); }
.section--dark .step p { color: var(--mint); }

.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field label { color: var(--pine); font-size: 16px; font-weight: 700; }
.field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: .72rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); outline: none; }
.field textarea { min-height: 132px; resize: vertical; }
.field :is(input, select, textarea):focus-visible { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(20, 122, 105, .2); }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--danger); }
.field__hint, .field__error { font-size: 16px; }
.field__hint { color: var(--muted); }
.field__error { color: var(--danger); font-weight: 700; }

.site-footer { padding-top: 56px; background: var(--ink); color: var(--mint); }
.footer__grid { display: grid; gap: 2rem; padding-bottom: 2.25rem; }
.footer__brand img { width: auto; height: 48px; filter: brightness(0) invert(1); }
.footer__brand p { max-width: 34ch; margin-top: 1rem; }
.footer__title { margin-bottom: .7rem; color: var(--white); font-size: 16px; font-weight: 700; letter-spacing: .14em; line-height: 24px; text-transform: uppercase; }
.footer__links { display: grid; gap: .2rem; list-style: none; }
.footer__links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--mint); text-decoration: none; }
.footer__links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__bar { padding-block: 1rem; border-top: 1px solid rgba(221, 237, 231, .18); color: rgba(221, 237, 231, .7); font-size: 16px; line-height: 24px; }

.whatsapp-float { position: fixed; z-index: 90; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: #1B9B61; color: var(--white); box-shadow: var(--shadow-md); transition: transform var(--ease), opacity var(--ease); }
.whatsapp-float:hover { transform: scale(1.04); }
.whatsapp-float:active { transform: scale(.98); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* Motion starts only after JS, so content remains readable if a script fails. */
.has-js .js-reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.has-js .js-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .form-grid--two { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  body { font-size: 17px; line-height: 30px; }
  .section { padding-block: 120px; }
  .section__head { margin-bottom: 64px; }
  .section__eyebrow,
  .eyebrow { font-size: 16px; line-height: 22px; letter-spacing: 2.5px; }
  h1, .h1 { font-size: 48px; line-height: 56px; letter-spacing: -1.5px; }
  h2, .h2 { font-size: 44px; line-height: 55px; letter-spacing: -1px; }
  h3, .h3 { font-size: 24px; line-height: 30px; }
  .lead { font-size: 17px; line-height: 30px; }
  .button-group { margin-top: 32px; }
  .site-header--overlay { position: absolute; width: 100%; border-color: transparent; background: transparent; backdrop-filter: none; color: var(--white); }
  .site-header--overlay:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
  .site-header--overlay.is-scrolled { position: fixed; background: rgba(251, 247, 241, .96); color: var(--ink); }
  .site-header--overlay.is-scrolled .brand img { filter: brightness(0) saturate(100%) invert(20%) sepia(19%) saturate(1119%) hue-rotate(119deg) brightness(91%) contrast(93%); }
  .desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); margin-left: auto; }
  .desktop-nav a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-bottom: 2px solid transparent; color: var(--pine); font-size: 16px; font-weight: 700; text-decoration: none; }
  .desktop-nav a:hover, .desktop-nav a[aria-current="page"], .desktop-nav a.is-active { border-color: var(--petal); color: var(--forest); }
  .site-header--overlay:not(.is-scrolled) .desktop-nav a { color: var(--white); }
  .site-header--overlay:not(.is-scrolled) .desktop-nav a:hover, .site-header--overlay:not(.is-scrolled) .desktop-nav a[aria-current="page"], .site-header--overlay:not(.is-scrolled) .desktop-nav a.is-active { color: var(--white); border-color: var(--petal); }
  .header__actions { display: flex; align-items: center; gap: .7rem; }
  .header__actions .button { min-height: 44px; padding-inline: 1rem; }
  .site-header--overlay:not(.is-scrolled) .header__actions .button { border-color: var(--white); background: var(--white); color: var(--pine); }
  .menu-toggle, .site-drawer, .drawer-backdrop { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(340px, .8fr); gap: clamp(3rem, 7vw, 7rem); }
  .hero__visual { min-height: 460px; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid--three { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .step { display: block; }
  .step::before { margin-bottom: 1.15rem; }
  .footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
  .whatsapp-float { width: auto; height: 52px; padding: 0 18px; gap: 8px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .whatsapp-float::after { content: "Fale conosco"; font-size: 16px; font-weight: 700; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .has-js .js-reveal { opacity: 1; transform: none; }
}
