/* SparkFilmes — shared visual system. Loaded after each page's original styles.
   Keep business logic, campaign content and document print layouts independent. */
@media screen {
  :root {
    --container: min(1280px, calc(100% - 96px));
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --color-border: rgba(241, 240, 240, 0.14);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.16);
    --radius-xl: 20px;
    --bf-radius: 16px;
  }

  body { -webkit-font-smoothing: antialiased; }
  body::before { background-image: none; }
  ::selection { color: #fff; background: #b71941; }
  h1, h2, h3 { text-wrap: balance; }
  p { text-wrap: pretty; }
  a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #ff6c8a;
    outline-offset: 5px;
  }
  [hidden] { display: none !important; }
  [id] { scroll-margin-top: 110px; }
  .section { padding-block: clamp(64px, 7.5vw, 112px); }
  .section-title { font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.15; letter-spacing: -0.055em; }
  .section-head { max-width: 780px; margin-bottom: 48px; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; }
  .section-head .text-muted { max-width: 58ch; margin-top: 22px; }
  .section-soft { border-color: rgba(241, 240, 240, 0.09); }
  #reels-destaque, #cursos-online, #sobre, .section-light-cta, .portfolio-courses-section {
    background: radial-gradient(ellipse at 0 0, rgba(255, 44, 88, 0.06), transparent 55%), #f1f0f0;
  }
  .site-header { padding-block: 20px; }
  .site-header.is-scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); }
  .brand-logo { height: 29px; }
  .site-nav { gap: 8px; }
  .site-nav > a:not(.btn) { font-size: 0.8rem; padding: 10px 12px; border-radius: 4px; }
  .site-nav > a:not(.btn):is(:hover, :focus-visible, .is-active) { color: #b7163d; background: rgba(255, 44, 88, 0.07); }
  .btn { min-height: 50px; border-radius: 7px; padding: 15px 24px; font-size: 0.82rem; font-weight: 700; line-height: 1.3; }
  .btn-primary { --btn-bg: #ff2c58; box-shadow: none; }
  .btn-primary:is(:hover, :focus-visible) { --btn-bg: #d91f47; box-shadow: 0 8px 24px rgba(255, 44, 88, 0.16); }
  .btn-small { min-height: 40px; padding: 10px 16px; font-size: 0.76rem; }
  .btn-login { box-shadow: none; }
  .btn-ghost { --btn-bg: transparent; }
  .section-light-cta .btn-ghost { --btn-text: #0d0d0f; --btn-border: rgba(13,13,15,.25); }

  /* The opening is a typographic composition paired with real portfolio work. */
  .home-hero { padding: 24px 0 64px; }
  .black-friday-hero-banner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    border: 0;
    border-bottom: 1px solid rgba(241,240,240,.16);
    border-radius: 0;
    margin-bottom: 56px;
    padding: 12px 0 24px;
    color: #f1f0f0;
    background: none;
    box-shadow: none;
  }
  .black-friday-hero-banner::before { display: none; }
  .black-friday-hero-badge { padding: 0; background: none; font-size: .65rem; letter-spacing: .09em; }
  .black-friday-hero-copy { font-size: .74rem; }
  .black-friday-hero-copy strong { font-family: "Manrope", sans-serif; font-size: .8rem; }
  .black-friday-hero-copy span { color: #b8b8c2; }
  .black-friday-hero-cta { min-height: 44px; padding: 8px 0 8px 16px; background: none; color: #ff8ca5; box-shadow: none; font-size: .78rem; }
  .black-friday-hero-cta:hover { box-shadow: none; }
  .home-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: stretch; }
  .home-hero-copy { text-align: left; margin: 0; align-self: center; padding-block: 20px; }
  .home-hero-copy h1 { max-width: 15ch; margin: 24px 0; font-size: clamp(2.8rem, 4.6vw, 4.5rem); line-height: 1.075; letter-spacing: -.065em; }
  .home-hero-copy h1 span { color: #ff5276; }
  .home-hero-lead { max-width: 48ch; margin: 0; font-size: .98rem; line-height: 1.85; }
  .home-hero-copy .hero-actions { justify-content: flex-start; margin-top: 30px; }
  .home-hero-proof { justify-content: flex-start; max-width: 42ch; margin-top: 32px; font-size: .76rem; }
  .home-hero-proof::before { box-shadow: none; width: 5px; height: 5px; }
  .home-hero-media { max-width: none; min-height: 530px; aspect-ratio: auto; border-radius: 12px; border: 0; box-shadow: none; }
  .home-hero-media img { position: absolute; inset: 0; object-position: 56% center; }
  .home-hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 30%, rgba(5,5,8,.85)); }
  .home-hero-media figcaption { inset: auto 28px 28px; gap: 12px; }
  .home-hero-media figcaption strong { max-width: 23ch; font-size: 1.1rem; line-height: 1.4; }
  .hero-frame-label { position: absolute; z-index: 2; top: 24px; left: 24px; color: #fff; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; }
  .case-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .case-link::after { content: "↗"; display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: 1.3rem; }
  .case-link:hover::after { background: #ff2c58; border-color: #ff2c58; }
  .home-work-section .section-head, #reels-destaque .section-head,
  .portfolio-reels-section .section-head, .portfolio-courses-section .section-head { text-align: left; margin-inline: 0; max-width: 850px; }
  .home-work-section .section-title { max-width: 24ch; }
  #reels-destaque .home-work-grid { max-width: 100%; gap: 28px; }
  .video-grid { gap: 28px; }
  .video-card { border-radius: 12px; box-shadow: none; }
  #reels-destaque .video-card, #cursos-online .video-card, .portfolio-courses-section .video-card { box-shadow: none; border-color: rgba(13,13,15,.1); background: #f9f8f8; }
  #reels-destaque .video-card:hover, .portfolio-courses-section .video-card:hover { box-shadow: 0 12px 32px rgba(13,13,15,.08); }
  .video-meta { padding: 22px; }
  .video-meta h3 { line-height: 1.4; }
  .video-tag { border-radius: 4px; font-size: .64rem; letter-spacing: .06em; }
  .control-btn { min-height: 40px; border-radius: 6px; }
  #reels-destaque .section-actions { margin-top: 36px; text-align: left; }

  /* Services use a numbered index, keeping text easy to scan. */
  .home-services-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .home-services-intro { text-align: left; max-width: none; margin: 0; }
  .home-services-intro .section-title { max-width: 15ch; margin-inline: 0; }
  .home-services-intro > p:last-child { max-width: 33ch; margin: 24px 0 0; }
  .home-services-grid { display: block; counter-reset: service; margin: 0; max-width: none; }
  .home-service-card { position: relative; padding: 28px 48px 28px 48px; border: 0; border-top: 1px solid var(--color-border); border-radius: 0; background: none; box-shadow: none; text-align: left; }
  .home-service-card:last-child { border-bottom: 1px solid var(--color-border); }
  .home-service-card::before { counter-increment: service; content: "0" counter(service); position: absolute; top: 32px; left: 0; color: #ff6c8a; font-size: .72rem; }
  .home-service-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
  .home-service-card p { max-width: 43ch; margin: 0; font-size: .9rem; }
  .home-service-card .service-link { position: absolute; right: 0; top: 25px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--color-border); color: #ff8ca5; }
  .service-link:hover { background: #ff2c58; color: #fff; }
  .home-about-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: none; }
  .home-about-brand { position: relative; width: 100%; max-width: none; aspect-ratio: 1.1; margin: 0; border: 0; border-radius: 12px; padding: 0; overflow: hidden; background: #15151b; box-shadow: none; }
  .home-about-brand > img { width: 100%; height: 100%; object-fit: cover; }
  .home-about-copy .section-title { max-width: 18ch; }
  .home-about-copy > .home-about-note { border-top: 1px solid rgba(13,13,15,.15); border-left: 0; padding: 24px 0 0; font-size: .85rem; }
  .home-about-brand figcaption { position: absolute; bottom: 20px; left: 20px; padding: 9px 14px; border-radius: 4px; color: #fff; background: rgba(8,8,10,.78); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

  /* Public page openings and case studies. */
  .page-hero { padding-block: 80px 64px; }
  .hero-shell, .material-hero-shell { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .portfolio-hero-shell { width: var(--container); max-width: none; text-align: left; }
  .hero-shell h1, .material-hero-shell h1 { max-width: 22ch; margin: 22px 0; font-size: clamp(2.5rem, 4.8vw, 4.5rem); letter-spacing: -.06em; line-height: 1.1; }
  .hero-shell > .text-muted, .material-hero-shell > .text-muted { max-width: 60ch; margin-inline: 0; line-height: 1.85; }
  .page-intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
  .page-intro-image { margin: 0; height: 340px; border-radius: 12px; overflow: hidden; }
  .page-intro-image img { width: 100%; height: 100%; object-fit: cover; }
  .page-intro-grid h1 { font-size: clamp(2.5rem, 4vw, 4rem); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; counter-reset: service; }
  .service-grid > .service-card { border: 0; border-top: 1px solid var(--color-border); border-radius: 0; padding: 32px 0; background: none; box-shadow: none; }
  .service-grid > .service-card::before { counter-increment: service; content: "0" counter(service); display: block; margin-bottom: 24px; color: #ff6c8a; font-size: .75rem; }
  .service-grid > .service-card h3 { font-size: 1.3rem; max-width: 24ch; }
  .about-proposal-grid { gap: 24px; }
  .about-proposal-card { border-radius: 0; border: 0; border-top: 2px solid #ff2c58; padding: 28px 0; background: none; box-shadow: none; }
  .event-hero-panel, .event-aftermovie-shell, .event-photo-card { box-shadow: none; border-radius: 12px; }
  .event-photo-grid { gap: 16px; }
  .event-photo-card figcaption { font-size: .78rem; }
  .final-cta, .section-light-cta .final-cta { max-width: 900px; padding: 0; border: 0; background: none; box-shadow: none; text-align: center; }
  .final-cta h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.14; letter-spacing: -.055em; }
  .final-cta > p { max-width: 58ch; margin-inline: auto; }
  .final-cta .hero-actions { justify-content: center; }

  /* Client access, delivery cards and contact forms share the same surfaces. */
  .quote-grid { gap: 64px; align-items: start; }
  .quote-grid > .info-card { padding: 0; border: 0; background: none; box-shadow: none; }
  .quote-grid .section-title { max-width: 17ch; }
  .form-card, .search-card { padding: 36px; border-radius: 16px; border: 1px solid var(--color-border); background: rgba(21,21,27,.8); box-shadow: none; }
  .field { min-height: 52px; padding: 14px 16px; border-radius: 7px; border-color: rgba(241,240,240,.18); background: rgba(8,8,10,.5); font-size: .9rem; }
  .field:focus { border-color: #ff6c8a; }
  .field::placeholder { color: #92929f; opacity: 1; }
  .quote-form { gap: 14px; }
  .quote-form label, .form-field { font-size: .8rem; }
  .quote-form-grid { gap: 24px; }
  .quote-form > .btn { width: 100%; margin-top: 12px; }
  .material-hero { padding-bottom: 0; }
  .material-hero-shell { max-width: 840px; text-align: left; }
  .search-card { max-width: 840px; margin-inline: auto; }
  .client-spotlight { border-radius: 16px; padding: 32px; box-shadow: none; }
  .client-filter-bar { border-radius: 12px; box-shadow: none; padding: 24px; }
  .metric-card { border-radius: 10px; box-shadow: none; background: rgba(241,240,240,.03); }
  .delivery-grid { gap: 24px; }
  .delivery-card { border-radius: 12px; box-shadow: none; }
  .delivery-content { padding: 24px; }
  .delivery-content h3 { line-height: 1.35; }
  .delivery-actions .btn { padding-inline: 16px; }
  .site-footer { padding-block: 56px 32px; border-top: 1px solid var(--color-border); }
  .footer-brand { margin-bottom: 32px; }
  .footer-brand img { width: 174px; filter: brightness(0) invert(1); opacity: .9; }
  .footer-wrap { border: 0; padding: 0; font-size: .75rem; gap: 24px; }
  .footer-access { gap: 12px 24px; }
  .footer-wrap a:hover { color: #ff8ca5; }

  /* Existing light workspace and campaign palettes stay intact. */
  .internal-header { min-height: 84px; }
  .internal-button, .bf-button { border-radius: 7px; box-shadow: none; }
  .auth-card { text-align: left; border-top: 3px solid var(--brand); box-shadow: 0 18px 60px rgba(18,17,21,.06); }
  .auth-card .internal-logo { object-position: left; }
  .auth-form .internal-button { width: 100%; }
  .panel-card { box-shadow: 0 18px 60px rgba(18,17,21,.06); }
  .tool-card { border-radius: 12px; padding: 28px; background: #fff; }
  .tool-icon { border-radius: 8px; }
  .budget-card, .contracts-preview-panel, .editor-stage-panel, .editor-dropzone { box-shadow: none; border-radius: 12px; }
  .bf-container { width: min(1280px, calc(100% - 96px)); }
  .bf-header img { width: 190px; }
  .bf-section { padding-block: clamp(64px, 7.5vw, 112px); }
  .bf-hero-media, .bf-video-card, .bf-form { border-radius: 14px; box-shadow: none; }
  .bf-benefit-card { border: 0; border-top: 1px solid var(--bf-border); border-radius: 0; box-shadow: none; background: none; padding: 28px 0; }
  .bf-benefit-grid { gap: 32px; }
  .bf-rule-card { box-shadow: none; border-radius: 12px; }
  .bf-button { min-height: 50px; }
  .error-page { min-height: 100svh; display: grid; place-items: center; padding: 32px; }
  .error-content { width: min(640px, 100%); }
  .error-code { margin: 0; color: #ff5276; font-family: "Sora", sans-serif; font-size: clamp(5rem, 20vw, 10rem); line-height: 1; letter-spacing: -.08em; }
  .error-content h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.05em; }
  .error-content > p:not(.error-code) { color: var(--color-muted); margin-bottom: 32px; }

  /* Progressive enhancement: content stays readable when scripts fail. */
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(16px); }

  @media (min-width: 1040px) {
    .nav-toggle { display: none; }
    .site-nav { position: static; display: flex; align-items: center; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  }
  @media (max-width: 1039px) {
    :root { --container: calc(100% - 48px); }
    .bf-container { width: calc(100% - 48px); }
    .nav-toggle { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; border-radius: 6px; border-color: rgba(13,13,15,.2); }
    .nav-toggle::after { content: "☰"; font-size: 1rem; }
    .nav-toggle[aria-expanded="true"]::after { content: "×"; }
    .site-nav { position: absolute; inset: calc(100% + 20px) 0 auto; display: grid; gap: 6px; min-width: 0; padding: 16px; border: 1px solid rgba(13,13,15,.12); border-radius: 12px; background: #f1f0f0; box-shadow: 0 20px 40px rgba(0,0,0,.2); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); }
    .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
    .site-nav > a:not(.btn), .site-nav .btn { min-height: 44px; font-size: .9rem; padding: 12px 16px; }
    .home-hero-grid { gap: 28px; }
    .home-hero-copy h1 { font-size: clamp(2.6rem, 5.2vw, 3.5rem); }
    .home-hero-media { min-height: 490px; }
    .home-services-shell, .home-about-grid { gap: 40px; }
    .black-friday-hero-banner { grid-template-columns: 1fr auto; gap: 8px 24px; }
    .black-friday-hero-copy { grid-column: 1; }
    .black-friday-hero-cta { grid-column: 2; grid-row: 1 / 3; width: auto; }
    .page-intro-grid { gap: 32px; }
    .quote-grid { gap: 32px; }
    .form-card { padding: 24px; }
  }
  @media (max-width: 759px) {
    :root { --container: calc(100% - 40px); }
    .bf-container { width: calc(100% - 40px); }
    .site-header { padding-block: 14px; }
    .brand-logo { height: 25px; }
    .section { padding-block: 64px; }
    .section-head { margin-bottom: 32px; }
    .section-title { font-size: clamp(1.9rem, 7.8vw, 2.7rem); }
    .home-hero { padding: 16px 0 40px; }
    .black-friday-hero-banner { grid-template-columns: 1fr; text-align: left; justify-items: start; margin-bottom: 32px; gap: 12px; padding-bottom: 20px; }
    .black-friday-hero-badge { margin: 0; }
    .black-friday-hero-copy { text-align: left; justify-items: start; }
    .black-friday-hero-cta { grid-column: auto; grid-row: auto; padding: 0; min-height: 32px; }
    .home-hero-grid, .home-services-shell, .home-about-grid, .page-intro-grid { grid-template-columns: minmax(0,1fr); gap: 36px; }
    .home-hero-copy { padding: 0; }
    .home-hero-copy h1 { font-size: clamp(2.4rem, 9.6vw, 4rem); max-width: 16ch; margin-block: 20px; }
    .home-hero-lead { font-size: .92rem; }
    .home-hero-copy .hero-actions { position: static; width: 100%; transform: none; gap: 10px; flex-wrap: wrap; }
    .home-hero-copy .hero-actions .btn { min-height: 50px; font-size: .8rem; padding-inline: 12px; }
    .home-hero-proof { margin-top: 24px; align-items: center; }
    .home-hero-media { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
    .home-hero-media figcaption { inset: auto 20px 20px; }
    .home-hero-media figcaption strong { font-size: .95rem; }
    .hero-frame-label { top: 18px; left: 20px; }
    .home-services-intro .section-title { max-width: 20ch; }
    .home-service-card { padding-left: 36px; }
    .home-service-card h3 { font-size: 1.1rem; }
    .home-about-brand { aspect-ratio: 4 / 3; }
    .home-about-copy .section-title { max-width: 20ch; }
    .home-work-grid { width: min(100%, 420px); margin-inline: auto; }
    .page-hero { padding-block: 48px; }
    .hero-shell h1, .material-hero-shell h1 { font-size: clamp(2.2rem, 8.8vw, 3.3rem); }
    .page-intro-image { height: auto; aspect-ratio: 16 / 10; }
    .service-grid { grid-template-columns: minmax(0,1fr); }
    .quote-grid { grid-template-columns: minmax(0,1fr); gap: 36px; }
    .form-card, .search-card { padding: 24px 20px; }
    .field { font-size: 16px; }
    .material-hero { padding-bottom: 0; }
    .client-spotlight { padding: 24px 20px; }
    .footer-wrap { flex-direction: column; }
    .footer-access { justify-content: flex-start; }
    .bf-section { padding-block: 64px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal-ready [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
  }
}

@media print {
  .footer-brand { display: none; }
}
