/* apenasflavia.com — single stylesheet.
   Values ported 1:1 from the old Elementor/WordPress site (see docs/design.md). */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
}

:root {
  --bg: #f9f9f9;
  --text: #7a7a7a;          /* paragraph text */
  --dark: #54595f;          /* text on yellow */
  --photo-band: #e9e9e9;    /* grey band behind the profile photo */
  --radius: 30px;           /* pill buttons / cards */
  --gap: 9px;               /* vertical gap between blocks */
  --column: 500px;          /* content column width on desktop */

  /* button colours */
  --whatsapp: #60c71d;
  --back: #c2c5c0;
  --yellow: #fff300;
  --blue-card: #418dd5;
  --blue: #2072af;
  --purple: #8d20af;
  --violet: #9618b3;
  --crimson: #c20b4b;
  --youtube: #db2412;
  --facebook: #315be9;
  --instagram: #e1306c;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- layout ---------- */
.page {
  width: 100%;
  max-width: calc(var(--column) + 20px);
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ---------- profile photo ---------- */
.photo {
  background: var(--photo-band);
  display: flex;
  justify-content: center;
}
.photo a { display: block; border-radius: 50%; }
.photo a:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.photo img { width: 156px; height: 140px; }

/* ---------- text ---------- */
.text { text-align: center; }
.text p { margin: 0 0 0.9rem; }
.text p:last-child { margin-bottom: 0; }
.title { text-align: center; margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }

/* ---------- buttons (Elementor "sm" button, justified) ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 48px;                /* mobile tap target (CLAUDE.md: mobile first) */
  padding: 12px 24px;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: filter 0.2s ease;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.btn svg { width: 1em; height: 1em; flex: none; fill: currentColor; }

.btn--whatsapp  { background: var(--whatsapp); }
.btn--dark      { background: var(--dark); }
.btn--outline   { background: transparent; color: var(--dark); box-shadow: inset 0 0 0 2px var(--dark); }
.btn--back      { background: var(--back); }
.btn--purple    { background: var(--purple); }
.btn--violet    { background: var(--violet); }
.btn--crimson   { background: var(--crimson); }
.btn--youtube   { background: var(--youtube); }
.btn--facebook  { background: var(--facebook); }
.btn--instagram { background: var(--instagram); }

/* ---------- highlight cards (button + caption on a coloured pill) ---------- */
.card {
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.card .btn { background: transparent; }
.card h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}
.card--yellow { background: var(--yellow); }
.card--yellow .btn, .card--yellow h2 { color: var(--dark); }
.card--blue { background: var(--blue-card); }
.card--blue .btn, .card--blue h2 { color: #fff; }

/* ---------- image gallery (unused for now; kept for future event pages) ---------- */
.gallery { display: flex; flex-direction: column; gap: var(--gap); }
.gallery img { width: 100%; background: var(--photo-band); }

/* ---------- utilities ---------- */
.print-only { display: none; }

/* ---------- curriculum (/curriculo/) ---------- */
.page--wide { max-width: 760px; }
.cv-header { text-align: center; }
.cv-name { margin: 4px 0 0; font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: var(--dark); }
.cv-role { margin: 2px 0 0; font-size: 1rem; }
.cv-actions, .cv-footer { display: grid; gap: var(--gap); }
.btn svg { transition: transform 0.2s ease; }
.btn.is-open svg { transform: rotate(180deg); }

.cv-body { display: flex; flex-direction: column; gap: 12px; }
.cv-section {
  background: #fff;
  border-radius: 20px;
  padding: 18px 18px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.04);
}
.cv-section h2 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.cv-section h3 { margin: 14px 0 2px; font-size: 0.95rem; color: var(--dark); }
.cv-section h3:first-of-type { margin-top: 0; }
.cv-section p { margin: 0; }
.cv-profile { color: var(--dark); }

.cv-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cv-chips li { display: flex; gap: 10px; align-items: flex-start; color: var(--dark); }
.cv-chips svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--whatsapp); }

.cv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cv-item { display: grid; gap: 1px; padding-left: 14px; border-left: 3px solid var(--photo-band); }
.cv-when { font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.cv-what { color: var(--dark); font-weight: 600; line-height: 1.35; }
.cv-where { font-size: 0.92rem; }
.cv-desc { font-size: 0.92rem; margin-top: 2px !important; }

@media (min-width: 640px) {
  .cv-actions, .cv-footer { grid-template-columns: 1fr 1fr; }
  .cv-section { padding: 24px 28px 26px; }
  .cv-name { font-size: 2rem; }
  .is-full .cv-item { grid-template-columns: 110px 1fr; column-gap: 16px; }
  .is-full .cv-when { grid-row: 1 / span 3; padding-top: 2px; }
}

/* ---------- print (curriculum PDF) ---------- */
@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  body { background: #fff; color: #222; font-size: 10.5pt; line-height: 1.45; }
  .no-print, .photo { display: none !important; }
  .print-only { display: block; }
  .page, .page--wide { max-width: none; padding: 0; gap: 10px; }
  .cv-header { text-align: left; border-bottom: 2px solid #222; padding-bottom: 8px; }
  .cv-name { font-size: 20pt; color: #111; }
  .cv-role { color: #444; }
  .cv-contact { margin: 4px 0 0; font-size: 9.5pt; color: #444; }
  .cv-section { box-shadow: none; border-radius: 0; padding: 0; background: none; }
  .cv-section h2 { color: #111; border-bottom: 1px solid #ccc; padding-bottom: 3px; margin-bottom: 8px; }
  .cv-chips { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .cv-chips svg { color: #222; }
  .cv-list { gap: 8px; }
  .cv-item { border: 0; padding: 0; grid-template-columns: 26mm 1fr; column-gap: 4mm; break-inside: avoid; }
  .cv-when { grid-row: 1 / span 3; color: #222; }
  .cv-what, .cv-profile, .cv-chips li { color: #111; }
  .cv-where, .cv-desc { color: #444; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- O Tao do Corpo (/otaodocorpo/) — mobile first ---------- */
.tao { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } /* room for the sticky CTA */
.tao main { display: flex; flex-direction: column; gap: 28px; padding: 0 16px; max-width: 1080px; margin: 0 auto; }

.tao-top { max-width: 1080px; margin: 0 auto; padding: 10px 16px; }
.tao-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--dark); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.tao-back img { width: 36px; height: 32px; object-fit: cover; border-radius: 50%; }

.tao-hero { display: flex; flex-direction: column; gap: 18px; }
.tao-hero__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--photo-band); }
.tao-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tao-hero__text { text-align: center; }
.tao-eyebrow { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.tao-hero h1 { margin: 2px 0 0; font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1.05; font-weight: 700; color: var(--dark); letter-spacing: -0.01em; }
.tao-tagline { margin: 4px 0 0; font-size: 1.1rem; font-style: italic; }
.tao-lead { margin: 14px auto 18px; max-width: 34ch; font-size: 1.05rem; color: var(--dark); }
.tao-cta { max-width: 420px; margin: 0 auto; font-size: 16px; min-height: 52px; }

.tao-h2 { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--dark); text-align: center; }
.tao-sub { margin: 4px 0 14px; text-align: center; }

.tao-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tao-tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-height: 128px; height: 100%; padding: 16px; border-radius: 22px;
  background: var(--blue); color: #fff; text-decoration: none;
  transition: transform 0.15s ease, filter 0.2s ease;
}
.tao-tile:active { transform: scale(0.97); }
.tao-tile:hover, .tao-tile:focus-visible { filter: brightness(1.08); }
.tao-tile:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.tao-tile svg { width: 28px; height: 28px; fill: currentColor; margin-bottom: auto; }
.tao-tile strong { font-size: 1.05rem; line-height: 1.2; }
.tao-tile span { font-size: 0.85rem; opacity: 0.9; line-height: 1.3; }
.tao-tile--purple { background: var(--purple); }
.tao-tile--violet { background: var(--violet); }

.tao-about { display: flex; flex-direction: column; gap: 18px; }
.tao-about__photo { width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.tao-about__text { display: flex; flex-direction: column; gap: 14px; }
.tao-about__text p { margin: 0; }
.tao-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tao-checks li { display: flex; gap: 10px; color: var(--dark); }
.tao-checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--whatsapp); }

.tao-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tao-gallery figure { margin: 0; }
.tao-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.tao-gallery figcaption { margin-top: 6px; font-size: 0.85rem; text-align: center; }

.tao-offer { background: var(--yellow); color: var(--dark); border-radius: var(--radius); padding: 26px 20px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.tao-offer p { margin: 0; }
.tao-offer__kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.tao-offer__title { margin: 0; font-size: 2.4rem; line-height: 1; font-weight: 700; }
.tao-offer .btn { margin-top: 10px; }

.tao-footer { max-width: 1080px; margin: 36px auto 0; padding: 20px 16px; text-align: center; font-size: 0.9rem; }
.tao-footer p { margin: 10px 0 0; }
.tao-footer p a { display: inline-block; padding: 13px 4px; color: var(--dark); font-weight: 500; }
.tao-social { display: flex; justify-content: center; gap: 12px; }
.tao-social a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--dark); }
.tao-social a.is-instagram { background: var(--instagram); }
.tao-social a.is-youtube { background: var(--youtube); }
.tao-social a.is-facebook { background: var(--facebook); }
.tao-social svg { width: 22px; height: 22px; fill: currentColor; }

.tao-sticky {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: var(--radius);
  background: var(--whatsapp); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.tao-sticky svg { width: 22px; height: 22px; fill: currentColor; }
.tao-sticky { transition: transform 0.25s ease, opacity 0.25s ease; }
.tao-sticky.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (min-width: 700px) {
  .tao main { gap: 48px; padding: 0 24px; }
  .tao-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tao-tile { min-height: 150px; padding: 20px; }
  .tao-about { flex-direction: row; align-items: center; gap: 36px; }
  .tao-about__photo { flex: 0 0 300px; margin: 0; }
  .tao-about .tao-h2 { text-align: left; }
  .tao-gallery { gap: 16px; }
  .tao-offer { padding: 40px; }
  .tao-offer .btn { max-width: 360px; margin: 10px auto 0; }
}
@media (min-width: 700px) {
  .tao-hero { flex-direction: row-reverse; align-items: center; gap: 32px; }
  .tao-hero__media { flex: 1 1 48%; aspect-ratio: 1; }
  .tao-hero__text { flex: 1 1 52%; text-align: left; }
  .tao-lead { margin-left: 0; }
  .tao-cta { margin: 0; }
}
@media (min-width: 960px) {
  .tao { padding-bottom: 0; }
  .tao-sticky { display: none; }
  .tao-hero { gap: 56px; }
  .tao-h2, .tao-sub { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .tao-tile, .btn, .btn svg { transition: none; }
}

/* ---------- Home: bento grid (mobile first) ---------- */
.home { background: #f4f4f2; }
.bento {
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 16px 14px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
}
.bento-head { display: flex; align-items: center; gap: 12px; min-height: 60px; color: #33373b; text-decoration: none; }
.bento-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.bento-head > span { display: flex; flex-direction: column; }
.bento-head strong { font-size: 1.25rem; line-height: 1.2; }
.bento-head > span > span { font-size: 0.9rem; color: #6b7075; }

.bento-social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bento-social a {
  min-height: 48px; border-radius: var(--radius); color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 500;
}
.bento-social svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.bento-social .is-instagram { background: var(--instagram); }
.bento-social .is-youtube { background: var(--youtube); }
.bento-social .is-facebook { background: var(--facebook); }

.bento-row, .bento-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.tile {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 92px; padding: 14px; border-radius: 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  color: #fff; text-decoration: none; background: var(--blue);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.tile:active { transform: scale(0.97); }
.tile:hover, .tile:focus-visible { filter: brightness(1.06); }
.tile:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.tile > svg { width: 26px; height: 26px; fill: currentColor; }
.tile strong { font-size: 1rem; line-height: 1.2; }
.tile--dark { background: var(--dark); }
.tile--whatsapp { background: var(--whatsapp); }
.tile--blue { background: var(--blue); }

/* photo tiles: image fills the tile, label sits on a dark fade for contrast */
.tile--photo { min-height: 150px; padding: 0; justify-content: flex-end; background: var(--photo-band); }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.tile__label {
  display: flex; flex-direction: column; gap: 1px; padding: 28px 14px 12px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.68));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.tile__label > span { font-size: 0.8rem; opacity: 0.92; }
.bento-row .tile--photo { min-height: 120px; }
.tile--hero { min-height: 190px; }
.tile--hero .tile__label strong { font-size: 1.3rem; }

@media (min-width: 700px) {
  .bento { max-width: 760px; padding-top: 28px; gap: 14px; }
  .bento-row, .bento-grid { gap: 14px; }
  .bento-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile--photo { min-height: 190px; }
  .bento-row .tile--photo { min-height: 160px; }
  .tile--hero { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
