/* Materna pitch. Palette comes from the brand's own logo (terracotta) and the beige uniforms.
   Shape rule: surfaces 20px, controls 12px. One theme at a time, follows the system. */
:root {
  --bg: #f8f0ec;
  --ink: #3a2620;
  --muted: #6f5249;
  --accent: #b8471f;
  --accent-hover: #9a3a18;
  --on-accent: #fff8f4;
  --blush: #efd9d0;
  --panel: #4a2c22;
  --on-panel: #f8e9e1;
  --panel-muted: #dcc3b8;
  --line: #e2cdc4;
  --r-surface: 20px;
  --r-control: 12px;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1411;
    --ink: #f6e8e1;
    --muted: #cdb2a7;
    --accent: #e0764a;
    --accent-hover: #eb8a61;
    --on-accent: #2a120a;
    --blush: #2d1c17;
    --panel: #4b2a1e;
    --on-panel: #f8e9e1;
    --panel-muted: #dcc3b8;
    --line: #3b2a24;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2rem, 1240px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; text-wrap: balance; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; }
p { margin: 0; }

/* Buttons: solid, material, no glow */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .8rem 1.5rem;
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1 var(--font-text); text-decoration: none; white-space: nowrap;
  border-radius: var(--r-control);
  transition: background-color .2s, transform .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 2.5rem; padding: .6rem 1rem; font-size: .9375rem; }
.btn-light { background: var(--on-panel); color: #3a2620; }
.btn-light:hover { background: #fff; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.link:hover { text-decoration-color: var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: 700 1.35rem/1 var(--font-display); letter-spacing: -.02em; }
.brand img { width: 2.5rem; height: 2.5rem; border-radius: 50%; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center; min-height: calc(100svh - 4.25rem); padding-block: 2.5rem 4rem;
}
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 1.5rem; max-width: 34ch; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--muted); }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

.hero-photo { position: relative; max-width: 30rem; width: 100%; justify-self: end; isolation: isolate; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-surface); }
.disc { position: absolute; z-index: -1; width: 82%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); right: -12%; top: -7%; }

/* Services: asymmetric, one big tile and two smaller */
.cuidados { padding-block: clamp(4rem, 9vw, 8rem); }
.tiles { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.tile { background: var(--blush); border-radius: var(--r-surface); padding: clamp(1.5rem, 3vw, 2.5rem); grid-column: span 5; display: flex; flex-direction: column; gap: .85rem; justify-content: flex-end; min-height: 15rem; }
.tile p { color: var(--muted); max-width: 40ch; }
.tile-main { grid-column: span 7; grid-row: span 2; background: var(--panel); color: var(--on-panel); position: relative; overflow: hidden; min-height: 28rem; }
.tile-main h3 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.05; max-width: 14ch; position: relative; }
.tile-main p { color: var(--panel-muted); position: relative; }
/* two nested rings echo the logo: a mother and a baby */
.rings { position: absolute; right: -5%; top: -10%; width: 44%; aspect-ratio: 1; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--on-panel) 22%, transparent); }
.rings::after { content: ""; position: absolute; right: 14%; bottom: 10%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }

/* Statement */
.statement { padding-block: clamp(2rem, 6vw, 5rem) clamp(4rem, 9vw, 8rem); }
.big { font: 600 clamp(2rem, 4.8vw, 4.4rem)/1.08 var(--font-display); letter-spacing: -.03em; max-width: 20ch; margin-left: clamp(0rem, 8vw, 8rem); text-wrap: balance; }

/* Nurses */
.enfermeiras { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: clamp(4rem, 9vw, 8rem); }
.sub { margin-top: 1.1rem; color: var(--muted); max-width: 34ch; }
.people { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
.people li { display: grid; gap: .1rem; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
.people strong { font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--font-display); letter-spacing: -.02em; }
.people span { color: var(--muted); }
.people a { width: fit-content; font-weight: 600; text-underline-offset: 4px; }
.enf-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.enf-photos img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--r-surface); }
.enf-photos img:nth-child(2) { margin-top: 3.5rem; }

/* Contact */
.contato { padding-bottom: clamp(3rem, 6vw, 5rem); }
.panel { background: var(--panel); color: var(--on-panel); border-radius: var(--r-surface); padding: clamp(2rem, 6vw, 5rem); }
.panel h2 { max-width: 14ch; }
.panel > p { margin: 1.25rem 0 2rem; color: var(--panel-muted); max-width: 40ch; }
.panel dl { margin: clamp(2rem, 5vw, 3.5rem) 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem clamp(2rem, 6vw, 5rem); border-top: 1px solid color-mix(in srgb, var(--on-panel) 20%, transparent); padding-top: 1.75rem; }
.panel dt { font-size: .875rem; color: var(--panel-muted); }
.panel dd { margin: .15rem 0 0; font-weight: 600; }
.panel a { text-underline-offset: 4px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem 2.5rem; color: var(--muted); font-size: .9375rem; }

/* Motion. Hidden states exist only when JS runs (html.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(105%); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + 150ms); }
@keyframes rise { to { transform: none; } }

.js .hero-photo img { opacity: 0; transform: translateY(18px) scale(.985); animation: photo-in .9s var(--ease) .45s forwards; }
.js .disc { transform: translate(-14%, 10%) scale(.8); opacity: 0; animation: disc-in 1.1s var(--ease) .25s forwards; }
@keyframes photo-in { to { opacity: 1; transform: none; } }
@keyframes disc-in { to { opacity: 1; transform: none; } }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

.lw { display: inline-block; white-space: nowrap; }
.js [data-letters] .l { display: inline-block; opacity: 0; transform: translateY(.5em); }
.js [data-letters].in .l { animation: letter-in .8s var(--ease) forwards; animation-delay: calc(var(--n) * 16ms); }
@keyframes letter-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w > span, .js .hero-photo img, .js .disc, .js [data-letters] .l { animation: none !important; opacity: 1 !important; transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Tablet and phone */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 2rem 3.5rem; }
  .hero-photo { justify-self: start; max-width: 26rem; margin-right: 12%; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile-main { grid-column: auto; grid-row: auto; }
  .tile-main { min-height: 22rem; }
  .enfermeiras { grid-template-columns: 1fr; }
  .panel dl { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand span { font-size: 1.2rem; }
  .actions { gap: 1rem 1.5rem; }
  .enf-photos img:nth-child(2) { margin-top: 2rem; }
}
