/*
Theme Name: Cajal Films
Theme URI: https://cajalfilms.com.br/
Author: MFY Aplicativos
Description: Tema leve e personalizado para a Cajal Films, com portfólio de obras e foco em SEO local.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: cajal-films
*/

:root {
  --ink: #10130e;
  --forest: #173525;
  --forest-2: #214832;
  --olive: #8c8420;
  --gold: #d7c94b;
  --gold-soft: #f1e88a;
  --cream: #f7f5ec;
  --paper: #fffefa;
  --mist: #e9eadf;
  --muted: #687068;
  --line: rgba(16, 19, 14, 0.12);
  --white: #fff;
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 38px;
  --shadow: 0 24px 70px rgba(23, 53, 37, 0.13);
  --container: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 108px 0; }
.section--compact { padding: 76px 0; }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: var(--white); }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 9999; background: var(--gold); padding: 12px 18px; font-weight: 800; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--olive);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--forest .eyebrow { color: var(--gold); }
h1, h2, h3 { margin: 0; font-weight: 850; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.75; }
.section--forest .lead { color: rgba(255,255,255,.72); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); gap: 48px; align-items: end; margin-bottom: 54px; }
.section-heading--single { display: block; max-width: 760px; }
.section-heading--single .lead { margin-top: 22px; }

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 850;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--gold-soft); }
.button--outline { border-color: rgba(255,255,255,.35); background: transparent; color: var(--white); }
.button--outline:hover { background: rgba(255,255,255,.1); }
.button--dark { background: var(--forest); color: var(--white); }
.button--dark:hover { background: var(--forest-2); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); font-weight: 850; }
.text-link::after { content: "\2192"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

.site-header { position: relative; z-index: 100; background: var(--forest); color: var(--white); }
.topbar { border-bottom: 1px solid rgba(255,255,255,.1); }
.topbar__inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .78rem; color: rgba(255,255,255,.72); }
.topbar__items, .topbar__social { display: flex; align-items: center; gap: 18px; }
.topbar a:hover { color: var(--gold); }
.navbar { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; min-width: 190px; }
.brand img { width: auto; height: 72px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 38px); }
.site-nav li { margin: 0; list-style: none; }
.site-nav a { position: relative; font-size: .93rem; font-weight: 750; color: rgba(255,255,255,.82); }
.site-nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--gold); transition: right .2s; }
.site-nav a:not(.button):hover { color: var(--white); }
.site-nav a:not(.button):hover::after { right: 0; }
.site-nav .button { color: var(--ink); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: rgba(255,255,255,.1); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--white); transition: .2s; }

.hero { position: relative; min-height: 720px; display: grid; align-items: end; overflow: hidden; background: var(--forest); color: var(--white); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,29,19,.95) 0%, rgba(11,29,19,.77) 44%, rgba(11,29,19,.12) 82%), linear-gradient(0deg, rgba(11,29,19,.5), transparent 45%); }
.hero__content { max-width: 780px; padding: 116px 0 102px; }
.hero h1 span { color: var(--gold); }
.hero__content > p:not(.eyebrow) { max-width: 650px; margin-top: 26px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.8vw, 1.27rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 38px; padding: 0; list-style: none; color: rgba(255,255,255,.76); font-size: .88rem; font-weight: 700; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: "\2713"; color: var(--gold); font-size: 1.1rem; font-weight: 900; }

.proof-strip { background: var(--ink); color: var(--white); }
.proof-strip__inner { min-height: 96px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); align-items: center; gap: 30px; }
.proof-strip__label { color: rgba(255,255,255,.55); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.proof-stat strong { display: block; color: var(--gold); font-size: 1.35rem; line-height: 1.1; }
.proof-stat span { color: rgba(255,255,255,.62); font-size: .78rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 330px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:first-child { grid-column: span 2; background: var(--forest); color: var(--white); }
.service-card__icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 50px; border-radius: 16px; background: rgba(215,201,75,.2); color: var(--olive); }
.service-card:first-child .service-card__icon { color: var(--gold); background: rgba(215,201,75,.12); }
.service-card__icon svg { width: 25px; height: 25px; stroke: currentColor; }
.service-card p { margin-top: 15px; color: var(--muted); }
.service-card:first-child p { max-width: 520px; color: rgba(255,255,255,.68); }
.service-card .text-link { position: absolute; left: 30px; bottom: 28px; }
.service-card:first-child .text-link { color: var(--gold); }
.service-card__number { position: absolute; top: 25px; right: 28px; color: rgba(16,19,14,.2); font-size: .8rem; font-weight: 850; }
.service-card:first-child .service-card__number { color: rgba(255,255,255,.28); }

.showcase { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 70px; align-items: center; }
.showcase__media { position: relative; }
.showcase__media > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.showcase__badge { position: absolute; right: -24px; bottom: 34px; width: 190px; padding: 22px; border-radius: 20px; background: var(--gold); color: var(--ink); box-shadow: 0 18px 50px rgba(16,19,14,.18); }
.showcase__badge strong { display: block; font-size: 2rem; line-height: 1; }
.showcase__badge span { display: block; margin-top: 7px; font-size: .76rem; font-weight: 750; line-height: 1.35; }
.showcase__content .lead { margin: 25px 0 30px; }
.benefit-list { display: grid; gap: 17px; margin: 0 0 34px; padding: 0; list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.benefit-list__mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--forest); font-weight: 900; }
.benefit-list strong { display: block; line-height: 1.3; }
.benefit-list span { display: block; margin-top: 3px; color: var(--muted); font-size: .9rem; }

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.work-card { position: relative; grid-column: span 4; min-height: 420px; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.work-card:first-child { grid-column: span 7; }
.work-card:nth-child(2) { grid-column: span 5; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(5,14,9,.9)); }
.work-card__content { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 24px; }
.work-card__meta { display: flex; gap: 8px; margin-bottom: 10px; color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.work-card h3 { font-size: 1.35rem; }
.work-card:hover img { transform: scale(1.04); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.14); }
.process-step { min-height: 310px; padding: 30px; background: var(--forest); }
.process-step__number { display: inline-grid; width: 43px; height: 43px; place-items: center; margin-bottom: 62px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--gold); font-weight: 850; }
.process-step p { margin-top: 14px; color: rgba(255,255,255,.62); font-size: .92rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-collage { position: relative; min-height: 600px; }
.about-collage img { position: absolute; object-fit: cover; border-radius: var(--radius); }
.about-collage img:first-child { inset: 0 18% 13% 0; width: 82%; height: 87%; }
.about-collage img:last-child { right: 0; bottom: 0; width: 48%; height: 44%; border: 9px solid var(--cream); }
.about-copy .lead { margin: 25px 0; }
.about-copy p:not(.eyebrow):not(.lead) { color: var(--muted); }
.about-copy .button { margin-top: 32px; }

.faq { max-width: 900px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 25px 50px 25px 0; cursor: pointer; list-style: none; font-size: 1.08rem; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 5px; top: 22px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--forest); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq__answer { max-width: 760px; padding: 0 50px 26px 0; color: var(--muted); }

.cta-card { position: relative; overflow: hidden; padding: 64px; border-radius: var(--radius-lg); background: var(--gold); color: var(--ink); }
.cta-card::after { content: ""; position: absolute; right: -90px; top: -120px; width: 340px; height: 340px; border: 80px solid rgba(255,255,255,.2); transform: rotate(45deg); }
.cta-card__content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-card h2 { max-width: 770px; }

.site-footer { padding: 72px 0 28px; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr 1fr; gap: 50px; }
.footer-brand img { width: 190px; height: auto; }
.footer-brand p { max-width: 330px; margin-top: 20px; color: rgba(255,255,255,.55); font-size: .9rem; }
.footer-col h3 { margin-bottom: 18px; color: var(--gold); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.68); font-size: .9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-size: .75rem; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 19px; background: #25d366; color: var(--white); box-shadow: 0 15px 40px rgba(18,100,48,.32); transition: transform .2s; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); }
.whatsapp-float svg { width: 27px; height: 27px; fill: currentColor; }

.page-hero { padding: 100px 0 82px; background: var(--forest); color: var(--white); }
.page-hero .lead { max-width: 700px; margin-top: 23px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.archive-grid .work-card { min-height: 390px; grid-column: auto; }
.single-work { padding: 70px 0 110px; }
.single-work__header { display: grid; grid-template-columns: 1fr 360px; gap: 65px; align-items: start; margin-bottom: 42px; }
.single-work__meta { display: grid; gap: 14px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.single-work__meta div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.single-work__meta div:last-child { padding-bottom: 0; border-bottom: 0; }
.single-work__meta span { display: block; color: var(--muted); font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.single-work__meta strong { display: block; margin-top: 3px; }
.single-work__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.single-work__gallery img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius); }
.single-work__gallery img:first-child:nth-last-child(odd) { grid-column: span 2; }
.entry-content { max-width: 790px; margin: 40px auto 0; }
.entry-content > * + * { margin-top: 1.35em; }

.empty-state { grid-column: 1/-1; padding: 50px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .topbar { display: none; }
  .navbar { min-height: 82px; }
  .brand img { height: 62px; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 82px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 30px 20px; background: var(--forest); transform: translateX(100%); transition: transform .25s ease; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.08rem; }
  .site-nav .button { margin-top: 20px; border-bottom: 0; }
  .hero { min-height: 680px; }
  .hero::before { background: linear-gradient(90deg, rgba(11,29,19,.93), rgba(11,29,19,.45)), linear-gradient(0deg, rgba(11,29,19,.6), transparent); }
  .proof-strip__inner { grid-template-columns: repeat(3, 1fr); padding: 22px 0; }
  .proof-strip__label { grid-column: 1/-1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:first-child { grid-column: span 2; }
  .showcase { gap: 42px; }
  .showcase__badge { right: -10px; }
  .work-card, .work-card:first-child, .work-card:nth-child(2) { grid-column: span 6; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr .8fr; }
  .single-work__header { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 76px 0; }
  .section--compact { padding: 58px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 38px; }
  .hero { min-height: 700px; }
  .hero__media img { object-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(11,29,19,.96), rgba(11,29,19,.64)), linear-gradient(0deg, rgba(11,29,19,.75), transparent); }
  .hero__content { padding: 80px 0 70px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__trust { display: grid; gap: 10px; }
  .proof-strip__inner { grid-template-columns: 1fr; gap: 13px; }
  .proof-strip__label { grid-column: auto; }
  .proof-stat { display: flex; align-items: baseline; gap: 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card:first-child { grid-column: auto; }
  .showcase, .about-grid { grid-template-columns: 1fr; }
  .showcase__media > img { aspect-ratio: 4/4.7; }
  .showcase__badge { right: 12px; bottom: 12px; }
  .about-collage { min-height: 470px; }
  .work-card, .work-card:first-child, .work-card:nth-child(2) { grid-column: 1/-1; min-height: 380px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 245px; }
  .process-step__number { margin-bottom: 40px; }
  .cta-card { padding: 40px 25px; }
  .cta-card__content { grid-template-columns: 1fr; }
  .cta-card .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; }
  .archive-grid { grid-template-columns: 1fr; }
  .single-work__gallery { grid-template-columns: 1fr; }
  .single-work__gallery img, .single-work__gallery img:first-child:nth-last-child(odd) { grid-column: auto; height: 350px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
