/* FNG Medical · layout built to match the approved reference (designed at 1074px, scaled with rem). */

:root {
  --navy-900: #06131f;
  --navy-800: #0a1c2c;
  --navy-700: #0f2537;
  --ink: #0d1f30;
  --ink-2: #33475a;
  --muted: #5d6f80;
  --line: #d7e0e8;
  --bg-soft: #f1f5f8;
  --bg: #ffffff;
  --teal: #2fd9c4;
  --teal-2: #22c7b3;
  --teal-ink: #062b28;
  --teal-text: #35e1cc;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --logo: "Michroma", "Inter", sans-serif;
  --wrap: 59.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 16px at a 1074px-wide window, growing to 19px on large screens */
html { font-size: clamp(14.5px, calc(100vw / 1074 * 15.5), 18.5px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (max-width: 760px) { html { font-size: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; -webkit-tap-highlight-color: rgba(47, 217, 196, .25); }
a, button { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 12px; font-size: 14px; text-decoration: none; }
.skip:focus-visible { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * 3.8rem); margin: 0 auto; padding-inline: 3.8rem; }
.ic { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Type helpers ---------- */
.eyebrow { font: 500 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .65rem; }
.eyebrow-light { color: #d5e2ec; }
h2 { font: 600 2.45rem/1.08 var(--serif); letter-spacing: -.012em; color: var(--ink); display: flex; align-items: center; gap: 1rem; }
.dash { display: inline-block; width: 2.6rem; height: 2px; background: var(--teal-2); flex: none; margin-top: .35rem; }
.rule { display: block; width: 2.6rem; height: 3px; background: var(--teal); border-radius: 2px; }
.rule-dark { background: var(--teal-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 2.05rem; padding: 0 1.45rem;
  border-radius: 999px; font: 500 .74rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-teal { background: var(--teal); color: var(--teal-ink); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.85); color: #fff; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); height: 1.75rem; padding: 0 1.25rem; }
.btn-sm { height: 2rem; border-radius: 4px; padding: 0 1.3rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-teal:hover { background: #5fe8d6; }
  .btn-ghost:hover { background: #fff; color: var(--navy-800); }
  .btn-outline:hover { background: var(--ink); color: #fff; }
  .btn:hover .ic { transform: translate(2px, -1px); }
}
.btn .ic { transition: transform .2s var(--ease); }

/* ---------- Logo ---------- */
.logo { display: inline-grid; justify-items: start; text-decoration: none; color: #fff; line-height: 1; }
.lf { font: 400 1.75rem/1 var(--logo); letter-spacing: .02em; transform: scaleX(1.18); transform-origin: left; }
.lm { font: 500 .52rem/1 var(--sans); letter-spacing: .62em; margin-top: .3rem; padding-left: .08em; }
.logo-sm .lf { font-size: 1.45rem; }
.logo-sm .lm { font-size: .44rem; }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero-scene { position: absolute; inset: 0; }
.hero-img { position: absolute; right: 0; top: -4%; height: 108%; width: auto; max-width: none; min-width: 78%; object-fit: cover; object-position: right center; will-change: transform; }
.hero-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 0%, rgba(6,19,31,.92) 26%, rgba(6,19,31,.45) 44%, rgba(6,19,31,0) 60%); }
.glass {
  position: absolute; right: 1.7rem; bottom: 1.7rem; z-index: 2;
  width: 10.7rem; padding: .7rem .8rem .55rem;
  border: 1px solid rgba(175,215,240,.75); border-radius: .45rem;
  background: rgba(7,22,36,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.glass p { font: 500 .66rem/1.2 var(--sans); color: #eaf3fa; margin-bottom: .35rem; }
.glass svg { width: 100%; height: 3rem; }
.glass small { display: block; margin-top: .35rem; font: 500 .42rem/1 var(--sans); letter-spacing: .14em; color: #9fb6c9; }
.glass .line { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.4s .8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: .9rem 2.5rem 0 3.8rem; }
.nav { display: flex; gap: 2.1rem; margin-left: 9.4rem; margin-right: auto; }
.nav a { font: 400 .74rem/1 var(--sans); text-decoration: none; color: #e9f1f7; position: relative; padding: .4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }

.hero-copy { position: relative; z-index: 2; padding: 2.7rem 3.8rem 1.25rem; max-width: 46rem; }
.hero h1 { font: 600 2.88rem/1.05 var(--serif); letter-spacing: -.012em; color: #fff; margin-top: .25rem; }
.hero h1 span { color: var(--teal-text); }
.hero .rule { margin: 1rem 0 1.05rem; }
.lead { font: 400 .9rem/1.45 var(--sans); color: #e6eef5; max-width: 29rem; }
.d-br { display: inline; }
@media (max-width: 760px) { .d-br { display: none; } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }
.loc { display: flex; align-items: center; gap: .35rem; margin-top: .95rem; font: 400 .72rem/1 var(--sans); color: #e6eef5; }
.loc .ic { width: .95rem; height: .95rem; }

/* ---------- FEATURE STRIP ---------- */
.strip { background: var(--bg-soft); padding: 1.4rem 0 1.5rem; }
.strip-grid { display: grid; grid-template-columns: 1.06fr 1.1fr 1fr 1fr; padding-inline: 3.8rem; max-width: none; }
.feat { display: flex; gap: .85rem; align-items: flex-start; padding: .2rem 1.1rem; border-left: 1px solid var(--line); min-width: 0; }
.feat:first-child { border-left: 0; padding-left: 0; }
.fi { width: 2.45rem; height: 2.45rem; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; margin-top: .05rem; }
.feat h3 { font: 600 .88rem/1.2 var(--serif); color: var(--ink); margin-bottom: .25rem; white-space: nowrap; }
.feat p { font: 400 .7rem/1.4 var(--sans); color: var(--muted); white-space: nowrap; }

/* ---------- ÁREAS ---------- */
.areas { padding: 1.75rem 0 1.4rem; background: linear-gradient(180deg, #f6f9fb, #fff 40%); }
.areas .wrap { max-width: none; padding-inline: 2.5rem; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; padding-inline: 1.3rem 1rem; margin-bottom: .45rem; }
.sec-aside { font: 400 .92rem/1.3 var(--sans); color: var(--muted); padding-bottom: .55rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.card {
  position: relative; background: #fff; border-radius: .3rem; overflow: hidden;
  box-shadow: 0 1px 2px rgba(13,31,48,.06), 0 6px 18px rgba(13,31,48,.07);
  padding: 0 1.35rem 1.6rem; min-height: 17.4rem;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.art { margin: 0 -1.35rem; height: 7.8rem; overflow: hidden; background: #c9d6e2; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.badge { position: relative; z-index: 1; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin: -1.1rem 0 .55rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(13,31,48,.14); }
.badge svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(3) .badge svg rect { fill: none; }
.card h3 { font: 600 1rem/1.18 var(--serif); color: var(--ink); margin-bottom: .55rem; }
.card p { font: 400 .74rem/1.42 var(--sans); color: var(--muted); max-width: 13.2rem; }
.go { position: absolute; right: .9rem; bottom: .95rem; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: #eef3f7; color: var(--ink); transition: background-color .2s ease, color .2s ease, transform .2s var(--ease); }
.go svg { width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(13,31,48,.06), 0 14px 30px rgba(13,31,48,.12); }
  .card:hover .art img { transform: scale(1.05); }
  .card:hover .go { background: var(--teal); color: var(--teal-ink); transform: translateX(2px); }
}

/* ---------- COMO TRABALHAMOS ---------- */
.how { padding: 1.5rem 0 1.1rem; }
.how .wrap { max-width: none; padding-inline: 3.8rem 1.8rem; }
.steps { list-style: none; margin: 1.05rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1.2rem; }
.steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.sic { display: grid; place-items: center; width: 3.65rem; height: 3.65rem; border-radius: 50%; background: #edf2f6; flex: none; margin-top: -.45rem; margin-left: -.45rem; transition: background-color .25s ease; }
.sic svg { width: 1.75rem; height: 1.75rem; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps li:last-child .sic svg rect { fill: var(--ink); stroke: none; }
.steps li > div { flex: 1; min-width: 0; }
.sn { display: flex; align-items: center; gap: 1.6rem; font: 600 .95rem/1 var(--serif); color: var(--ink); }
.sn::after { content: ""; flex: 1; height: 1px; background: #b9c6d1; margin-right: .2rem; }
.steps h3 { font: 600 .98rem/1.2 var(--serif); margin: .45rem 0 .5rem; color: var(--ink); }
.steps p { font: 400 .7rem/1.42 var(--sans); color: var(--muted); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .steps li:hover .sic { background: #d4f6f0; } }

/* ---------- SOBRE ---------- */
.about { background: var(--bg-soft); padding: .7rem 0 1rem; margin-top: .6rem; }
.about-grid { display: grid; grid-template-columns: 27.4rem 20.6rem 1fr; align-items: center; max-width: none; padding-inline: 3.8rem 1.8rem; gap: 0; }
.about-copy { padding: 1.2rem 1.4rem 0 0; }
.about h2 { font-size: 2rem; line-height: 1.04; display: block; white-space: nowrap; }
.about .rule { margin: .7rem 0 .9rem; display: none; }
.about-copy p:not(.eyebrow) { font: 400 .74rem/1.45 var(--sans); color: var(--ink-2); margin-top: .8rem; max-width: 25.6rem; }
.about-copy .btn { margin-top: 1.1rem; }
.about-art { height: 12.7rem; border-radius: 0 .4rem .4rem 0; overflow: hidden; margin-left: -2.2rem; width: calc(100% + 2.2rem); position: relative; background: var(--navy-700); -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 4%, #000 13%); mask-image: linear-gradient(90deg, transparent 0, transparent 4%, #000 13%); }
.about-art img { width: 158%; max-width: none; height: 118%; margin-top: -9%; margin-left: 5%; object-fit: cover; object-position: 0% 30%; will-change: transform; }
.values { list-style: none; margin: 0; padding: 0 0 0 1.9rem; display: grid; gap: 1.55rem; }
.values li { display: flex; align-items: center; gap: 1.2rem; }
.values svg { width: 2.05rem; height: 2.05rem; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.values span { font: 600 .74rem/1.2 var(--serif); color: var(--ink); white-space: nowrap; }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.corridor { position: absolute; inset: 0 0 0 auto; width: 60%; overflow: hidden; }
.corridor img { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; object-position: 60% center; will-change: transform; }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-900) 40%, rgba(6,19,31,.82) 52%, rgba(6,19,31,.25) 72%, rgba(6,19,31,0) 100%); }
.cta-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 24.4rem auto; align-items: start; max-width: none; padding: 1.5rem 3.8rem 1.4rem; }
.cta h2 { font: 600 1.62rem/1.16 var(--serif); color: #fff; display: block; letter-spacing: -.008em; white-space: nowrap; }
.cta .logo { margin-top: 1.95rem; }
.cta-r { border-left: 1px solid rgba(255,255,255,.35); padding: .2rem 0 .2rem 1.45rem; margin-top: 1.25rem; }
.cta-r p { font: 400 .74rem/1.45 var(--sans); color: #e6eef5; margin-bottom: 1rem; }
.cta-r .btn { height: 2.1rem; border-radius: 4px; padding: 0 1.7rem; }

/* ---------- Legal ---------- */
.legal { background: #040d16; color: #9fb2c3; font: 400 .66rem/1.4 var(--sans); }
.legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; padding-block: .8rem; max-width: none; }
.legal a { color: #d6e3ee; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero-img { animation: settle 2.4s var(--ease) both; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { scale: 1.06; } to { scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-depth] { translate: none !important; }
  .glass .line { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .nav { margin-left: 2rem; gap: 1.3rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .about-grid { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; }
  .about-art { width: 100%; margin: 0; }
  .values { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); padding: 0; justify-content: start; gap: 2rem; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .wrap, .areas .wrap, .how .wrap, .about-grid, .strip-grid, .cta-grid { padding-inline: 20px; }
  .bar { padding: 16px 20px 0; }
  .nav { display: none; }
  .bar .btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
  .lf { font-size: 24px; } .lm { font-size: 8px; }
  .hero { min-height: auto; }
  .hero-img { min-width: 0; width: 100%; height: 100%; top: 0; object-position: 66% center; }
  .hero-scene::after { background: linear-gradient(180deg, rgba(6,19,31,.55) 0%, rgba(6,19,31,.82) 45%, var(--navy-900) 100%); }
  .glass { display: none; }
  .hero-copy { padding: 64px 20px 32px; }
  .eyebrow { font-size: 11px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .btn { height: 44px; font-size: 14px; padding: 0 20px; }
  .loc { font-size: 13px; }
  .strip { padding: 24px 0; }
  .strip-grid { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .feat { border-left: 0; padding: 0; gap: 12px; }
  .feat h3 { font-size: 16px; white-space: normal; } .feat p { font-size: 13px; white-space: normal; } .feat p br { display: none; }
  .fi { width: 30px; height: 30px; }
  .areas, .how { padding: 40px 0 24px; }
  .sec-head { display: block; padding: 0; }
  .sec-aside { font-size: 15px; margin-top: 8px; }
  h2 { font-size: 32px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .art { height: 190px; }
  .card { min-height: 0; padding-bottom: 28px; }
  .card h3 { font-size: 19px; } .card h3 br { display: none; }
  .card p { font-size: 15px; max-width: 85%; }
  .go { width: 40px; height: 40px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps h3 { font-size: 18px; } .steps p { font-size: 14px; white-space: normal; } .steps p br { display: none; }
  .sn { font-size: 16px; }
  .about { padding: 36px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about h2 { font-size: 30px; white-space: normal; } .about h2 br { display: none; }
  .about-copy { padding: 0; }
  .about-copy p:not(.eyebrow) { font-size: 15px; }
  .about-copy .btn { height: 44px; }
  .about-art { height: 220px; }
  .values { grid-template-columns: 1fr; gap: 18px; }
  .values span { font-size: 16px; white-space: normal; }
  .corridor { width: 100%; opacity: .5; }
  .cta-shade { background: linear-gradient(180deg, rgba(6,19,31,.7), rgba(6,19,31,.92)); }
  .cta-grid { grid-template-columns: 1fr; padding-block: 40px; }
  .cta h2 { font-size: 26px; white-space: normal; } .cta h2 br { display: none; }
  .cta .logo { display: none; }
  .cta-r { border-left: 0; padding: 0; margin-top: 20px; }
  .cta-r p { font-size: 15px; } .cta-r p br { display: none; }
  .legal { font-size: 12px; }
}
