/* ============================================================
   Dra. Cíntia Pessin · Dermatologista · Porto Alegre/RS
   style.css — base: reset, tokens, tipografia, anatomia de
   seção, header, hero, seção 02, rodapé, cookie bar, FAB,
   movimento. (Seções 03–10 internas = job 2b, anexa aqui.)
   ============================================================ */

@layer reset, tokens, base, components, motion;

/* ---------- 1 · RESET ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }

  * { margin: 0; }

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

  body {
    min-height: 100vh;
    min-height: 100svh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  img, svg, video, canvas { display: block; max-width: 100%; }
  img { height: auto; }

  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }

  a { color: inherit; }

  p, h1, h2, h3, h4 { overflow-wrap: break-word; }

  ul[class], ol[class] { list-style: none; padding: 0; }

  address { font-style: normal; }

  summary { display: list-item; cursor: pointer; }

  dialog { border: 0; padding: 0; background: none; max-width: none; max-height: none; }

  [hidden] { display: none !important; }
}

/* ---------- 2 · TOKENS ---------- */
@layer tokens {
  :root {
    /* papéis de cor (hex fallback + oklch) */
    --paper: #F4F1EC;            --paper: oklch(0.963 0.007 65);
    --lavanda: #EBD4F4;          --lavanda: oklch(0.887 0.047 315);
    --cream: #CCBAAB;            --cream: oklch(0.782 0.035 62);
    --ink: #5F493D;              --ink: oklch(0.418 0.036 55);
    --navy: #1E1F30;             --navy: oklch(0.245 0.035 280);
    --accent: #A96C49;           --accent: oklch(0.543 0.089 48);
    --accent-ink: #7C4626;       --accent-ink: oklch(0.435 0.07 48);
    --blue: #085A94;             --blue: oklch(0.48 0.11 248);

    /* derivados escolhidos */
    --paper-2: #EFE7DC;          --paper-2: oklch(0.925 0.016 70);
    --lavanda-2: #E4C6F1;        --lavanda-2: oklch(0.852 0.06 315);
    --skin-1: #F5B89D;           --skin-1: oklch(0.815 0.075 48);
    --skin-2: #D08E7E;           --skin-2: oklch(0.665 0.085 38);
    --ink-soft: rgb(84 66 53);
    --ink-faint: rgb(95 73 61 / .95);
    --text-on-dark: #F3EDF6;     --text-on-dark: oklch(0.94 0.015 320);
    --line: rgb(95 73 61 / .14);
    --line-strong: rgb(95 73 61 / .30);
    --whats: #1FA855;

    /* gradiente-assinatura + variantes */
    --grad-main: linear-gradient(130deg, #F4F1EC 0%, #EBD9F2 46%, #F2E9DE 100%);
    --grad-main: linear-gradient(130deg, oklch(0.963 0.007 65) 0%, oklch(0.905 0.042 315) 46%, oklch(0.935 0.02 75) 100%);
    --grad-soft: linear-gradient(130deg, #F4F1EC 0%, #EDE0F5 100%);
    --grad-soft: linear-gradient(130deg, oklch(0.963 0.007 65) 0%, oklch(0.905 0.035 315) 100%);
    --grad-skin: linear-gradient(135deg, #F5B89D 0%, #D08E7E 100%);
    --grad-skin: linear-gradient(135deg, oklch(0.815 0.075 48) 0%, oklch(0.665 0.085 38) 100%);
    --grad-cta: linear-gradient(135deg, #A96C49 0%, #D08E7E 100%);
    --grad-cta: linear-gradient(135deg, oklch(0.543 0.089 48) 0%, oklch(0.665 0.085 38) 100%);

    /* tipografia */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* espaçamento */
    --s-1: .25rem;
    --s-2: .5rem;
    --s-3: .75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --sec-pad: clamp(4.5rem, 11vh, 7.5rem);
    --gutter: clamp(1.25rem, 5vw, 3rem);

    /* raios */
    --radius-sm: 12px;
    --radius-panel: 24px;
    --radius-card: 28px;
    --radius-media: 36px;
    --radius-pill: 999px;
    --arch: 999px 999px var(--radius-media) var(--radius-media);

    /* sombras */
    --shadow-soft: 0 22px 60px rgb(95 73 61 / .12);
    --shadow-card: 0 14px 34px rgb(95 73 61 / .10);
    --shadow-hover: 0 24px 54px rgb(169 108 73 / .16);
    --shadow-cta: 0 14px 30px rgb(169 108 73 / .24);
    --border-soft: 1px solid rgb(95 73 61 / .14);

    /* vidro claro de recepção */
    --glass-bg: rgb(255 253 249 / .66);
    --glass-line: 1px solid rgb(169 108 73 / .18);

    /* movimento */
    --dur: .3s;
    --dur-slow: .6s;
    --ease: cubic-bezier(.22, 1, .36, 1);

    /* layout */
    --container: 1140px;
  }
}

/* ---------- 3 · BASE / TIPOGRAFIA / ANATOMIA ---------- */
@layer base {
  body {
    font-family: var(--font-body);
    font-size: clamp(.95rem, .9rem + .35vw, 1.05rem);
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    text-wrap: balance;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 4.9rem);
    line-height: 1.15;
    letter-spacing: -.015em;
  }

  h2 {
    font-size: clamp(1.85rem, 1.35rem + 2.5vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -.01em;
  }

  h3 {
    font-size: clamp(1.3rem, 1.15rem + .9vw, 2.1rem);
    line-height: 1.2;
  }

  strong { font-weight: 700; color: var(--navy); }

  ::selection { background: var(--lavanda); color: var(--navy); }

  :focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* rótulos */
  .kicker {
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-ink);
    max-width: 58ch;
  }

  .section-num {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .3em;
    color: var(--ink);
  }

  .section-lede {
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 56ch;
  }

  /* anatomia obrigatória: toda seção é uma tela */
  .section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--sec-pad) var(--gutter);
  }

  .section > * {
    width: 100%;
    max-width: var(--container);
  }

  .section-head {
    display: grid;
    gap: .6rem;
    margin-bottom: clamp(2rem, 4vh, 3.2rem);
    max-width: 56rem;
  }

  /* respiros em lavanda — só o fundo da seção, o miolo é job 2b */
  .shelf-section   { background: var(--grad-soft); }
  .testi-section   { background: var(--lavanda); }
  .contato-section { background: var(--grad-soft); }
  .cta-final       { background: var(--grad-main); text-align: center; }
}

/* ---------- 4 · COMPONENTES DA BASE ---------- */
@layer components {

  /* ----- header ----- */
  .site-header {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    width: 100%;
    padding: .85rem var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }

  .site-header.is-scrolled {
    background: rgb(255 253 249 / .85);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgb(95 73 61 / .06);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    min-width: 0;
  }

  .monogram { width: 44px; height: 44px; flex: 0 0 auto; }

  .monogram text {
    stroke-dasharray: 130;
    stroke-dashoffset: 130;
    animation: mono-draw 1.8s var(--ease) .25s forwards;
  }

  .brand-name {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
  }

  .nav-desktop ul {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 1.9rem);
  }

  .nav-desktop a {
    position: relative;
    display: inline-block;
    padding: .35rem 0;
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
  }

  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-skin);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }

  .nav-desktop a:hover::after,
  .nav-desktop a:focus-visible::after { transform: scaleX(1); }

  /* botão hambúrguer */
  .nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--glass-bg);
    border: var(--glass-line);
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* menu móvel: painel sob o header, aberto via .is-open */
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 39;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    padding: var(--s-4) var(--gutter) var(--s-6);
    background: rgb(255 253 249 / .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur);
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    animation: menu-in .35s var(--ease);
  }

  .mobile-menu li + li { border-top: 1px solid var(--line); }

  .mobile-menu a {
    display: block;
    padding: .95rem .25rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
  }

  .mobile-menu a:active { color: var(--accent-ink); }

  /* ----- hero ----- */
  .hero { background: var(--grad-main); overflow: hidden; }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .hero-copy { max-width: 38rem; }

  .hero-copy .section-num { margin-bottom: .4rem; }

  .hero-copy h1 { margin: .55rem 0 .3rem; }

  .hero-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.15rem, 1rem + .9vw, 1.5rem);
    line-height: 1.3;
    color: var(--accent-ink);
    margin-top: .35rem;
  }

  .hero-lede {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 52ch;
    margin-top: 1rem;
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.4rem;
  }

  .chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    border: var(--glass-line);
    color: var(--navy);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
    backdrop-filter: blur(14px);
  }

  .hero-cta { margin-top: 1.7rem; }

  /* botão pill terracota */
  .btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: fit-content;
    min-width: 170px;
    max-width: 300px;
    min-height: 48px;
    padding: .85rem 1.6rem;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #FFFDF9;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-cta);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  }

  .btn-pill:hover {
    transform: translateY(-2px);
    background: var(--grad-cta);
    box-shadow: var(--shadow-hover);
  }

  .btn-pill:active { transform: translateY(0); }

  /* retrato em arco — selo fora da moldura */
  .hero-media {
    display: grid;
    justify-items: center;
    gap: 1.1rem;
  }

  .hero-arch {
    width: min(100%, 440px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--arch);
    box-shadow: var(--shadow-soft);
    background: var(--paper-2);
  }

  .hero-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
  }

  /* selo de avaliação em vidro claro */
  .review-seal {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    width: fit-content;
    padding: .7rem 1rem;
    border-radius: var(--radius-pill);
    background: rgb(255 253 249 / .72);
    border: var(--glass-line);
    color: var(--navy);
    font-size: .82rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgb(95 73 61 / .10);
    backdrop-filter: blur(16px);
  }

  .review-seal .stars { color: var(--accent-ink); letter-spacing: .08em; }

  /* grão editorial (SVG inline, sem imagem externa) */
  .grain { position: relative; isolation: isolate; }

  .grain::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 120px 120px;
  }

  .grain > * { position: relative; z-index: 2; }

  /* ----- 02 · a médica ----- */
  .medica-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .medica-copy {
    display: grid;
    gap: 1.05rem;
    max-width: 38rem;
  }

  .medica-copy p { max-width: 60ch; }

  .medica-sub { margin-top: .6rem; }

  .consulta-steps {
    display: grid;
    gap: .85rem;
    counter-reset: passo;
    margin: .4rem 0 .2rem;
  }

  .consulta-steps li {
    position: relative;
    padding-left: 2.4rem;
    line-height: 1.5;
  }

  .consulta-steps li::before {
    counter-increment: passo;
    content: counter(passo, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: .05em;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    color: var(--accent-ink);
  }

  .consulta-steps li::after {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 1.4em;
    bottom: -.95rem;
    width: 1px;
    background: linear-gradient(180deg, rgb(169 108 73 / .5), transparent);
  }

  .consulta-steps li:last-child::after { display: none; }

  .medica-quote {
    margin: .6rem 0 .4rem;
    padding: .35rem 0 .35rem 1.15rem;
    border-left: 2px solid var(--accent);
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
    line-height: 1.35;
    color: var(--ink);
  }

  .medica-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-media);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
  }

  /* ----- rodapé ----- */
  .site-footer {
    position: relative;
    padding: clamp(3rem, 7vh, 4.5rem) var(--gutter) 1.6rem;
    background: linear-gradient(180deg, var(--paper) 0%, var(--lavanda) 22%, var(--lavanda-2) 100%);
    color: var(--navy);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr .85fr;
    gap: clamp(1.8rem, 4vw, 3.5rem);
    align-items: start;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
  }

  .footer-brand { display: grid; gap: .35rem; justify-items: start; }

  .footer-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: .55rem;
  }

  .footer-role { font-size: .9rem; font-weight: 600; color: var(--ink); }

  .footer-crm {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--accent-ink);
  }

  .footer-areas {
    font-size: .82rem;
    line-height: 1.55;
    color: var(--ink-faint);
    max-width: 42ch;
  }

  .footer-legal {
    font-size: .85rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 34ch;
  }

  .footer-nav ul { display: grid; gap: .55rem; }

  .footer-nav a {
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }

  .footer-nav a:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

  .footer-credits {
    max-width: var(--container);
    margin: 2.6rem auto 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgb(95 73 61 / .18);
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    color: var(--ink-soft);
  }

  /* ----- cookie bar ----- */
  .cookie-bar {
    position: fixed;
    left: 50%;
    bottom: clamp(12px, 3vh, 26px);
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(720px, calc(100% - 24px));
    max-height: calc(100svh - 24px);
    padding: .95rem 1.15rem;
    border-radius: var(--radius-panel);
    background: rgb(255 253 249 / .88);
    border: var(--glass-line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    animation: bar-up .5s var(--ease);
  }

  .cookie-text {
    font-size: .82rem;
    line-height: 1.5;
    color: var(--ink);
  }

  .cookie-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
  }

  .cookie-accept { min-width: 120px; min-height: 44px; padding: .6rem 1.2rem; }

  .cookie-decline {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: .4rem .3rem;
  }

  .cookie-decline:hover { color: var(--accent-ink); }

  /* ----- FAB WhatsApp ----- */
  .wa-fab {
    position: fixed;
    right: clamp(14px, 3vw, 26px);
    bottom: clamp(14px, 3vh, 26px);
    z-index: 55;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whats);
    color: #fff;
    box-shadow: 0 14px 34px rgb(31 168 85 / .35);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  }

  .wa-fab svg { width: 28px; height: 28px; }

  .wa-fab::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgb(31 168 85 / .45);
    animation: wa-pulse 2.6s var(--ease) infinite;
  }

  .wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 40px rgb(31 168 85 / .42); }
}

/* ---------- 5 · MOVIMENTO ---------- */
@layer motion {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--delay, 0s);
  }

  .reveal.is-in { opacity: 1; transform: none; }

  .d1 { --delay: .08s; }
  .d2 { --delay: .16s; }
  .d3 { --delay: .24s; }
  .d4 { --delay: .32s; }

  @keyframes mono-draw {
    to { stroke-dashoffset: 0; }
  }

  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }

  @keyframes bar-up {
    from { opacity: 0; transform: translate(-50%, 14px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
  }

  @keyframes wa-pulse {
    0%   { transform: scale(.92); opacity: .9; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
  }
}

/* ---------- 6 · BREAKPOINTS ---------- */
@media (max-width: 1100px) {
  .hero-grid, .medica-grid { gap: clamp(1.8rem, 4vw, 3rem); }
  .footer-grid { gap: 2rem; }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .hero-copy { max-width: 40rem; margin-inline: auto; text-align: center; }
  .hero-copy .chips { justify-content: center; }
  .hero-copy .kicker { margin-inline: auto; }

  .hero-arch { width: min(100%, 400px); }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }

  .nav-toggle { display: inline-flex; }

  .medica-grid { grid-template-columns: 1fr; }

  .medica-media { max-width: 520px; margin-inline: auto; }
}

@media (max-width: 840px) {
  :root { --sec-pad: clamp(3.5rem, 9vh, 5.5rem); }

  .hero-copy h1 { max-width: 12ch; margin-inline: auto; }
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }

  .footer-brand { justify-items: center; text-align: center; }
  .footer-legal { max-width: 46ch; margin-inline: auto; text-align: center; }
  .footer-nav ul { justify-items: center; }
}

@media (max-width: 720px) {
  .brand-name { font-size: 1.02rem; }
  .monogram { width: 40px; height: 40px; }
}

@media (max-width: 640px) {
  .section { align-items: stretch; }
  .section > * { margin-inline: auto; }

  .hero-tagline { font-size: 1.12rem; }
}

@media (max-width: 560px) {
  .btn-pill { width: 100%; max-width: 300px; }
  .hero-cta { display: flex; justify-content: center; }

  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; gap: .7rem; }
  .cookie-actions { justify-content: center; }
}

@media (max-width: 480px) {
  :root { --gutter: 1.1rem; }

  .chip { font-size: .72rem; padding: .5rem .75rem; }
  .review-seal { font-size: .76rem; padding: .6rem .85rem; }
  .hero-arch { border-radius: 220px 220px var(--radius-media) var(--radius-media); }
}

@media (max-width: 420px) {
  .brand-name { font-size: .95rem; }
  .nav-toggle { width: 42px; height: 42px; }
  .wa-fab { width: 52px; height: 52px; }
}

/* ---------- 7 · MOVIMENTO REDUZIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }

  .reveal { opacity: 1; transform: none; transition: none; }

  .monogram text { stroke-dashoffset: 0; animation: none; }

  .wa-fab::after { animation: none; opacity: 0; }

  .mobile-menu, .cookie-bar { animation: none; }
}

/* ============================================================
   SEÇÕES INTERNAS (03–09) — job 2b
   ============================================================ */

/* ---------- 03 · especialidades — a estante ---------- */
.bookshelf {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 3vw, 2.6rem);
}

.shelf-note {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 62ch;
}

.shelf-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: .6rem 1.4rem;
  list-style: none;
  max-width: 68ch;
  min-width: 0;
  margin-top: .6rem;
}

.shelf-legend li {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: .9rem;
  border-left: 2px solid var(--accent);
}

.shelf-legend strong { color: var(--accent-ink); font-weight: 700; }

/* camada invisível que fecha o detalhe ao clicar fora (JS tira o hidden) */
.shelf-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: var(--radius-panel);
  cursor: default;
}

.shelf {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(.9rem, 1.9vw, 1.5rem);
  margin: 0;
  padding: 0 0 .4rem;
}

.shelf-item { perspective: 1200px; }

.book {
  display: grid;
  grid-template-rows: auto auto;
  gap: .55rem;
  width: clamp(104px, 9.8vw, 142px);
  text-align: left;
  transform: rotateY(calc((var(--i, 3) - 3) * 1.4deg));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease), width .55s var(--ease);
}

.book:hover,
.book:focus-visible {
  transform: translateY(-8px) rotateY(0deg);
}

/* lombo escuro na borda esquerda da capa */
.book-spine {
  grid-area: 1 / 1;
  justify-self: start;
  align-self: stretch;
  width: 11px;
  z-index: 2;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgb(18 16 28 / .78), rgb(18 16 28 / .34) 55%, rgb(255 255 255 / .12) 82%, transparent);
  pointer-events: none;
}

.book-art {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  aspect-ratio: 848 / 1264;
  overflow: hidden;
  border-radius: 4px 14px 14px 4px;
  background: var(--navy) var(--cover-img) center / cover no-repeat;
  box-shadow: 0 18px 34px -10px rgb(30 31 48 / .30), 0 5px 12px rgb(30 31 48 / .12);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}

/* corte de páginas na borda direita */
.book-art::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 0;
  width: 4px;
  border-radius: 0 2px 2px 0;
  background: repeating-linear-gradient(180deg, #EFE8DC 0 2px, #D8CCBE 2px 4px);
  opacity: .55;
}

/* brilho que varre a capa no hover */
.book-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / .34) 48%, transparent 64%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease);
  pointer-events: none;
}

.book:hover .book-art::after,
.book:focus-visible .book-art::after { transform: translateX(130%); }

.book:hover .book-art,
.book:focus-visible .book-art {
  box-shadow: 0 26px 44px -12px rgb(30 31 48 / .38), 0 8px 16px rgb(30 31 48 / .14);
}

.book-caption {
  grid-area: 2 / 1;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
  text-align: center;
  color: var(--ink-soft);
  transition: opacity .4s var(--ease);
}

/* fonte de dados do painel (permanece oculta; o JS copia para bp-*) */
.book-data { display: none; }

/* modo detalhe: um livro em destaque, painel ao lado no grid */
.bookshelf[data-mode="detail"] {
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  align-items: center;
}

.bookshelf[data-mode="detail"] .shelf { justify-content: center; }

.bookshelf[data-mode="detail"] .shelf-item:not(.is-selected):not(:has(.is-selected)) { display: none; }

.bookshelf[data-mode="detail"] .book.is-selected,
.book.is-selected {
  width: clamp(170px, 20vw, 232px);
  transform: rotateY(-26deg);
}

.book.is-selected .book-caption { opacity: 0; }

.book.is-selected .book-art {
  box-shadow: 26px 30px 52px rgb(30 31 48 / .34), 0 0 0 1px rgb(169 108 73 / .28);
}

.book-panel {
  position: relative;
  z-index: 4;
  display: none;
  width: 100%;
  max-width: 580px;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border-radius: var(--radius-panel);
  background: var(--glass-bg);
  border: var(--glass-line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.bookshelf[data-mode="detail"] .book-panel {
  display: block;
  animation: panel-in .5s var(--ease);
}

.bp-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ink-soft);
  background: rgb(95 73 61 / .08);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}

.bp-close:hover {
  transform: rotate(90deg);
  color: var(--accent-ink);
  background: rgb(169 108 73 / .14);
}

.bp-kicker, .bd-kicker { margin-bottom: .55rem; }

.bp-title, .bd-title {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1.15;
}

.bp-tagline, .bd-tagline {
  margin-top: .45rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.35;
  color: var(--accent-ink);
}

.bp-desc, .bd-desc {
  margin-top: .85rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
}

.bp-bullets, .bd-bullets {
  display: grid;
  gap: .55rem;
  margin: 1.05rem 0 0;
}

.bp-bullets li, .bd-bullets li {
  position: relative;
  padding-left: 1.45rem;
  font-size: .92rem;
  line-height: 1.45;
}

.bp-bullets li::before, .bd-bullets li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .44em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-skin);
  box-shadow: 0 0 0 2px rgb(169 108 73 / .18);
}

.bp-cta-wrap { margin-top: 1.35rem; }

.bp-cta { min-width: 210px; }

.bd-cta {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--accent-ink);
}

/* ---------- 04 · o cuidado — caderno ---------- */
.caderno-section { background: var(--paper); }

.caderno-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.caderno-note {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 62ch;
}

.caderno-stage {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.sketchbook-frame {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--paper-2);
  min-height: clamp(400px, 58vh, 640px);
  box-shadow: var(--shadow-soft);
  transition: height .5s var(--ease), min-height .5s var(--ease), opacity .4s var(--ease);
}

.sketchbook-frame[data-state="loading"] {
  background: linear-gradient(110deg, var(--paper-2) 30%, var(--lavanda) 50%, var(--paper-2) 70%);
  background-size: 220% 100%;
  animation: caderno-shimmer 1.8s linear infinite;
}

.sketchbook-frame[data-state="error"] { display: none; }

.caderno-fallback {
  border: var(--border-soft);
  border-radius: var(--radius-panel);
  background: rgb(255 253 249 / .55);
  overflow: hidden;
}

.caderno-fallback summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.3rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
}

.caderno-fallback summary::-webkit-details-marker { display: none; }

.caderno-fallback summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent-ink);
  transition: transform .3s var(--ease);
}

.caderno-fallback[open] summary::after { transform: rotate(45deg); }

.caderno-steps {
  display: grid;
  gap: 1.1rem;
  padding: .4rem 1.3rem 1.4rem;
}

.caderno-steps li {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 1rem;
}

.caderno-steps img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.caderno-steps h3 { font-size: 1.05rem; margin-bottom: .2rem; }

.caderno-steps p { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }

.caderno-fallback[open] .caderno-steps { animation: faq-in .35s var(--ease); }

.caderno-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-media);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.caderno-media figcaption {
  margin-top: .7rem;
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
  color: var(--ink-soft);
}

.caderno-cta {
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
  text-align: center;
}

/* ---------- 05 · depoimentos ---------- */
.testi-seal-wrap { margin-top: .3rem; }

.testi-note {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 62ch;
}

.testi-slider {
  width: min(100%, 880px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: rgb(255 253 249 / .55);
  border: var(--glass-line);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.testi-track {
  display: flex;
  transition: transform .65s var(--ease);
}

.testi-slide {
  flex: 0 0 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  padding: clamp(2rem, 4.5vw, 3.2rem) clamp(1.5rem, 4vw, 3rem) 1.4rem;
}

.testi-slide blockquote { max-width: 60ch; text-align: center; }

.testi-slide blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.12rem, 1rem + .85vw, 1.55rem);
  line-height: 1.42;
  color: var(--navy);
  text-wrap: pretty;
}

.testi-slide blockquote footer {
  margin-top: 1.1rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.testi-nav {
  display: flex;
  justify-content: center;
  gap: .8rem;
  padding: .4rem 0 1.4rem;
}

.testi-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: var(--border-soft);
  background: var(--paper);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.testi-btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #FFFDF9;
}

.testi-prev, .testi-next { padding-bottom: 4px; }

/* ---------- 06 · perguntas frequentes ---------- */
.faq-section { background: var(--paper); }

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: .9rem 1.2rem;
}

.faq-body {
  border: var(--border-soft);
  border-radius: var(--radius-panel);
  background: rgb(255 253 249 / .55);
  backdrop-filter: blur(10px);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}

.faq-body[open] {
  border-color: var(--line-strong);
  background: rgb(255 253 249 / .82);
  box-shadow: var(--shadow-card);
}

.faq-body summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.faq-body summary::-webkit-details-marker { display: none; }

.faq-body summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-ink);
  transition: transform .3s var(--ease);
}

.faq-body[open] summary::after { transform: rotate(45deg); }

.faq-body > p {
  padding: 0 1.3rem 1.2rem;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}

.faq-body[open] > p { animation: faq-in .35s var(--ease); }

/* ---------- 07 · onde atendo ---------- */
.onde-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: start;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.onde-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-media);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.onde-media figcaption {
  margin-top: .7rem;
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
  color: var(--ink-soft);
}

.onde-info {
  display: grid;
  align-content: start;
  gap: 1.05rem;
  min-width: 0;
}

.onde-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.onde-tab {
  padding: .6rem 1.15rem;
  border-radius: var(--radius-pill);
  border: var(--border-soft);
  background: rgb(255 253 249 / .5);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.onde-tab.is-active {
  background: var(--navy);
  border-color: transparent;
  color: var(--text-on-dark);
}

.onde-address {
  padding: 1.2rem 1.4rem;
  border: var(--border-soft);
  border-radius: var(--radius-panel);
  background: rgb(255 253 249 / .6);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink);
}

.onde-plus {
  display: block;
  margin-top: .55rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink-faint);
}

.onde-desc {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

.onde-list {
  list-style: none;
  display: grid;
  gap: .45rem;
}

.onde-list li {
  font-size: .93rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 1.2rem;
  position: relative;
}

.onde-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--accent);
}

.onde-hours { font-size: .92rem; font-weight: 600; color: var(--ink-soft); }

.onde-route { margin-top: -.2rem; }

.route-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

.route-link::after { content: "→"; }

.route-link:hover { border-bottom-color: currentColor; }

.consent {
  display: grid;
  justify-items: start;
  gap: .8rem;
  padding: 1.1rem 1.3rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-panel);
  background: rgb(255 253 249 / .45);
}

.consent-text {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

.consent-btn { min-height: 46px; }

.map-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: var(--border-soft);
  border-radius: var(--radius-media);
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
}

.map-frame:empty { display: none; }

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 08 · contato ---------- */
.contato-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: start;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.contato-form {
  display: grid;
  gap: 1.05rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  border: var(--glass-line);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.field { display: grid; gap: .45rem; }

.field-hp {
  position: absolute;
  left: -100vw;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgb(255 253 249 / .88);
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 4px rgb(169 108 73 / .14);
}

.field textarea { min-height: 120px; resize: vertical; }

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235F493D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.field-check input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: .12em;
  accent-color: var(--accent-ink);
}

.form-aviso {
  font-size: .85rem;
  font-weight: 700;
  color: #9C3B2A;
}

.form-note {
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-faint);
}

.contato-direto {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  border: var(--glass-line);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.contato-direto h3 { margin-bottom: 1.05rem; font-size: 1.28rem; }

.contato-list {
  display: grid;
  gap: .85rem;
}

.contato-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .95rem;
  line-height: 1.55;
}

.contato-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contato-list a {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.contato-list a:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

.contato-note {
  margin-top: 1.15rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* ---------- 09 · cta final ---------- */
.cta-final h2 { max-width: 22ch; margin-inline: auto; }

.cta-lede {
  margin: 1rem auto 0;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.cta-action {
  margin-top: 1.9rem;
  display: flex;
  justify-content: center;
}

.cta-action .btn-pill {
  min-width: 220px;
  min-height: 56px;
  max-width: 320px;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.cta-final .chips { justify-content: center; margin-top: 1.7rem; }

/* animações das seções internas */
@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes caderno-shimmer {
  from { background-position: 180% 0; }
  to   { background-position: -80% 0; }
}

/* ---------- breakpoints mínimos das seções (escada completa = job 2c) ---------- */
@media (max-width: 980px) {
  .caderno-grid, .onde-grid, .contato-grid { grid-template-columns: 1fr; }

  .caderno-media, .onde-media { max-width: 560px; margin-inline: auto; }

  .contato-direto { max-width: 640px; }
}

@media (max-width: 900px) {
  .faq-list { grid-template-columns: 1fr; }

  /* em 390px a estante vira 1 coluna: livro em cima, painel abaixo */
  .bookshelf[data-mode="detail"] { grid-template-columns: 1fr; }

  .book-panel { max-width: 620px; margin-inline: auto; }

  .book.is-selected {
    width: min(58vw, 220px);
    transform: rotateY(-18deg);
  }
}

@media (max-width: 560px) {
  .book { width: clamp(92px, 28vw, 120px); }

  .caderno-steps li { grid-template-columns: 64px 1fr; }

  .caderno-steps img { width: 64px; height: 64px; }

  .sketchbook-frame { min-height: 340px; }

  .testi-slide { padding-inline: 1.1rem; }
}

/* movimento reduzido — seções internas */
@media (prefers-reduced-motion: reduce) {
  .book, .book-art, .book-art::after, .book-caption,
  .testi-track, .testi-btn, .faq-body, .faq-body summary::after,
  .sketchbook-frame, .bp-close, .onde-tab, .route-link,
  .field input, .field select, .field textarea, .contato-list a {
    transition: none;
  }

  .book, .book.is-selected { transform: none; }

  .sketchbook-frame[data-state="loading"] { animation: none; }
}

/* ============================================================
   ESCADA DE BREAKPOINTS — job 2c
   Mobile-first: reforços progressivos a partir de 480px.
   Toda .section mantém min-height:100svh em todas as quebras.
   ============================================================ */

/* ---------- ≥ 480px — hero em 2 colunas, chips em linha ---------- */
@media (min-width: 480px) {
  .section { min-height: 100vh; min-height: 100svh; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(1.4rem, 4vw, 4.5rem);
  }

  /* foto à direita, texto à esquerda */
  .hero-copy  { order: 1; max-width: 38rem; margin-inline: 0; text-align: left; }
  .hero-media { order: 2; }

  .hero-copy h1 { max-width: 14ch; margin-inline: 0; }
  .hero-copy .kicker { margin-inline: 0; }
  .hero-copy .chips { justify-content: flex-start; }
  .hero-cta { justify-content: flex-start; }

  .hero-arch { width: min(100%, 300px); margin-inline: auto; }

  /* selo nunca transborda a coluna estreita */
  .review-seal { max-width: 100%; flex-wrap: wrap; justify-content: center; row-gap: .2rem; }
}

/* ---------- ≥ 768px — leque amplo, painel ao lado, FAQ 760px ---------- */
@media (min-width: 768px) {
  .section { min-height: 100vh; min-height: 100svh; }

  .hero-arch { width: min(100%, 380px); }

  /* estante: leque mais amplo com 7 capas visíveis em uma linha */
  .shelf {
    flex-wrap: nowrap;
    gap: clamp(.6rem, 1.6vw, 1.6rem);
  }

  .book { width: clamp(82px, 11vw, 148px); }

  /* modo detalhe: livro à esquerda, painel do livro ao lado */
  .bookshelf[data-mode="detail"] {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    align-items: center;
  }

  .book.is-selected { width: clamp(160px, 22vw, 210px); }

  .book-panel { max-width: none; margin-inline: 0; }

  /* depoimentos: slider com setas, trilho mais generoso */
  .testi-slider { width: min(100%, 920px); }
  .testi-btn { width: 52px; height: 52px; font-size: 1.5rem; }

  /* FAQ: coluna única centrada, largura máxima 760px */
  .faq-list {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-inline: auto;
  }
}

/* ---------- ≥ 1024px — hero full, section-num maior, caderno 2 col ---------- */
@media (min-width: 1024px) {
  .section { min-height: 100vh; min-height: 100svh; }

  /* hero full: foto 2:3 à direita ocupando ~46% */
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }

  .hero-arch {
    width: min(100%, 460px);
    aspect-ratio: 2 / 3;
    max-height: 78svh;
  }

  /* numeração editorial maior */
  .section-num { font-size: 1.05rem; letter-spacing: .34em; }

  /* caderno em 2 colunas: iframe à esquerda, foto/texto à direita */
  .caderno-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .caderno-stage { order: 1; }
  .caderno-media { order: 2; }
  .sketchbook-frame { min-height: clamp(420px, 62vh, 680px); }

  /* leque respira mais em telas amplas */
  .shelf { gap: clamp(.9rem, 2vw, 1.9rem); }
  .book { width: clamp(96px, 10.5vw, 150px); }
}

/* ---------- ≥ 1280px — container 1180px ---------- */
@media (min-width: 1280px) {
  :root { --container: 1180px; }
  .section { min-height: 100vh; min-height: 100svh; }
}

/* ---------- ≥ 1440px — container 1280px + tipografia display ---------- */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
  .section { min-height: 100vh; min-height: 100svh; }

  h1 { font-size: clamp(3.4rem, 5.6vw, 5.6rem); }
  h2 { font-size: clamp(2.6rem, 4.2vw, 4.2rem); }
  .hero-tagline { font-size: clamp(1.2rem, 1.05rem + .9vw, 1.65rem); }
  .section-lede { font-size: 1.08rem; }

  .book { width: clamp(110px, 9.5vw, 156px); }
}

/* ---------- PRINT — réguas de quebra (job 2c) ---------- */
@media print {
  .section { min-height: 0; orphans: 3; widows: 3; }

  .section-head { break-inside: avoid; break-after: avoid; }
  h1, h2, h3, .kicker { break-after: avoid; }

  .faq-body, .caderno-fallback, .book-panel, .testi-slide,
  .contato-form, .contato-direto, .onde-address, .consulta-steps li,
  .caderno-steps li, .footer-grid, .review-seal { break-inside: avoid; }

  .reveal { opacity: 1; transform: none; }
  .testi-track { transform: none; }
}
