/* Rabelo Clean — shared styles
   Layout: editorial left-aligned grid; brand palette fixed by the client (baby blue, white, navy), single light look. */
:root {
  color-scheme: light;
  --navy: #071a36;
  --navy-2: #133460;
  --baby: #cfe8f7;
  --baby-soft: #eaf5fc;
  --white: #ffffff;
  --mute: #4b6585;
  --line: #d8e6f1;
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;
  --wrap: 1200px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--font-body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.label { font-family: var(--font-label); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: 1.12rem; color: var(--mute); max-width: 58ch; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 18px; } .mt-l { margin-top: 32px; }

.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-body); transition: transform .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-baby { background: var(--baby); color: var(--navy); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 400px) { .brand { gap: 8px; } .brand img { width: 40px; height: 40px; } .brand b { font-size: .98rem; } }
/* phones: header WhatsApp becomes an icon button (the floating button does the heavy lifting) */
@media (max-width: 520px) {
  .top .top-actions .btn { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .top .top-actions .btn svg { width: 20px; height: 20px; }
  .top .top-actions .btn span { display: none; }
}
.nav { display: flex; gap: 26px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top .btn { padding: .65rem 1.1rem; font-size: .9rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }

/* ---------- breadcrumb + page head (inner pages) ---------- */
.crumbs { font-size: .86rem; color: var(--mute); padding-top: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { background: linear-gradient(180deg, var(--baby-soft), var(--white)); padding-bottom: 48px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 16px; max-width: 20ch; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(7,26,54,.35); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--baby-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { display: grid; align-content: start; gap: 10px; padding: 20px 22px 24px; }
.post-card h3 { font-size: 1.2rem; line-height: 1.2; }
.post-card p { color: var(--mute); font-size: .95rem; }
.meta { font-family: var(--font-label); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: flex; gap: 12px; flex-wrap: wrap; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(28px, 5vw, 72px); padding-block: 24px 96px; }
.prose { max-width: 70ch; font-size: 1.07rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2em; letter-spacing: -.02em; line-height: 1.12; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--navy-2); text-underline-offset: 3px; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 18px; width: 100%; max-height: 560px; object-fit: cover; }
.posts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose figcaption { font-size: .86rem; color: var(--mute); margin-top: 8px; }
.callout { background: var(--baby-soft); border-radius: 18px; padding: 20px 22px; }
.callout b { font-family: var(--font-display); }
.aside { align-self: start; position: sticky; top: 96px; display: grid; gap: 16px; }
.aside-card { border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 12px; }
.aside-card img { width: 64px; height: 64px; }
.aside-card p { color: var(--mute); font-size: .95rem; }

/* ---------- contact page ---------- */
.contact-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); padding-block: 24px 96px; }
.form { display: grid; gap: 16px; background: var(--baby-soft); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form small { color: var(--mute); font-weight: 400; }
.info { display: grid; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info span { color: var(--mute); }
.info b { font-weight: 600; }

/* ---------- CTA strip + footer ---------- */
.cta-strip { background: var(--navy); color: var(--white); }
.cta-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; }
.cta-strip h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 22ch; }
.cta-strip p { color: #b9cde3; margin-top: 10px; }
footer { background: #04122a; color: #b9cde3; font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 28px; }
footer h4 { font-family: var(--font-display); color: var(--white); font-size: 1rem; margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--white); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
footer .about img { width: 64px; height: 64px; margin-bottom: 12px; }

/* ---------- reveal ---------- */
.rv { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.pre { opacity: 0; transform: translateY(24px); }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--navy); }
  .menu-btn { display: grid; }
  .top .btn span { display: none; }
  .posts, .posts.two, .article, .contact-page { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  footer .about { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .btn, .post-card { transition: none; }
  .js .rv.pre { opacity: 1; transform: none; }
}

/* ---------- floating WhatsApp (mostly for phones) ---------- */
.wa-float { position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(7,26,54,.45); transform: translateY(120px); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.wa-float.show { transform: none; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wa 2.4s infinite; }
@keyframes wa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

@media (min-width: 861px) { .wa-float { width: 62px; height: 62px; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } .wa-float { transition: none; } }
