/* Visual 2026 da MCL: minimalista e editorial. Branco, preto e amarelo MCL; o registo CMYK do título é a assinatura criativa. */

:root {
  --paper: #ffffff;
  --surface: #f3f3f3;
  --yellow: #ffe600;
  --ink: #000000;
  --grey: #6e6e6e;
  --cyan: #00a0e3;
  --magenta: #e5007d;
  --line: rgba(0, 0, 0, 0.1);
  --black: #000000;
  --soft: #f3f3f3;
  --muted: #6e6e6e;
  --shadow: none;
  --radius: 8px;
  --container: 1240px;
}

body { background: var(--paper); color: var(--ink); font-family: "Poppins", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
p { color: var(--grey); }

/* Secções a toda a largura, separadas por espaço e por superfícies neutras */
.section { padding: clamp(80px, 10vw, 150px) clamp(20px, 5vw, 80px); border: 0; }
.alt { background: var(--surface); }
.band-yellow { background: var(--yellow); }
.band-yellow p { color: rgba(0, 0, 0, 0.75); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink h1, .band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: rgba(255, 255, 255, 0.68); }

/* Tipografia: títulos grandes, alinhados à esquerda */
h1, h2, h3, .two-line-title, .about-title { font-family: "Poppins", sans-serif; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); text-transform: none; }
.two-line-title > span, .two-line-title > span:last-child { background: none !important; }
.section-heading { max-width: var(--container); margin: 0 auto clamp(40px, 5vw, 64px); text-align: left; }
.section-heading h1, .section-heading h2 { max-width: 16ch; margin: 0; font-size: clamp(38px, 5.6vw, 84px); line-height: 0.98; }
.section-heading p:not(.eyebrow) { max-width: 56ch; margin: 20px 0 0; color: var(--grey); font-size: clamp(1rem, 1.25vw, 1.15rem); }
.split-section h2, .intro-band .split-section h2, .about-title { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.04; }
.split-section .two-line-title > span { white-space: normal; }
.button-row, .button-row.centered { justify-content: flex-start; }

/* Sem rótulos pequenos por cima dos títulos */
.eyebrow, .page-banner .eyebrow, .intro-actions .eyebrow, .catalog-request .eyebrow, .briefing-panel > span, .briefing-panel-centered > span { display: none !important; }

/* Botões */
.btn, .mini-btn, .site-header .header-cta, .newsletter button, .filters button, .cookie-consent button { min-height: 48px; padding: 12px 24px; border-radius: 6px; font-weight: 600; letter-spacing: 0; box-shadow: none; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn-primary, .mini-btn { background: var(--ink); color: #fff; border: 1.5px solid var(--ink); }
.btn-primary:hover, .mini-btn:hover { background: #2b2b2b; border-color: #2b2b2b; color: #fff; }
.btn-secondary, .mini-btn-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover, .mini-btn-dark:hover { background: var(--ink); color: #fff; }
.band-ink .btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.band-ink .btn-primary:hover { background: #fff; border-color: #fff; }
.band-ink .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.band-ink .btn-secondary:hover { background: #fff; color: var(--ink); }

/* Cabeçalho */
.site-header { background: rgba(255, 255, 255, 0.96); border-bottom: 0; box-shadow: none; transition: transform 0.35s ease, box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.main-nav a { font-weight: 500; color: rgba(0, 0, 0, 0.6); text-transform: none; transition: color 0.2s ease; }
.main-nav a, .main-nav a:hover, .main-nav a.active { border-bottom: 0; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active { font-weight: 600; }
.site-header .header-cta { min-height: 42px; padding: 10px 20px; background: var(--yellow); color: var(--ink); border: 0; }
.site-header .header-cta:hover { background: var(--ink); color: #fff; }
.site-header .header-cta.header-devfull { margin-left: auto; margin-right: -12px; background: var(--ink); color: #fff; }
.site-header .header-cta.header-devfull:hover { background: #2b2b2b; }
@media (min-width: 1181px) { .main-nav .nav-devfull { display: none; } }

/* Abertura da página inicial: faixa amarela com o título em registo CMYK */
.intro-actions { padding: clamp(72px, 9vw, 140px) clamp(20px, 5vw, 80px) clamp(64px, 8vw, 120px); background: var(--yellow); }
.intro-actions::before, .intro-actions::after { display: none; }
.intro-actions .section-heading { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; text-align: left; }
.intro-actions p:not(.eyebrow) { max-width: 44ch; margin: 0; color: rgba(0, 0, 0, 0.75); font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.intro-actions .btn-secondary:hover { background: var(--ink); color: #fff; }


/* Apresentação com animação e números */
.intro-band .split-section { max-width: var(--container); margin: 0 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.image-panel.anim-panel { min-height: 0; background: transparent; border: 0; box-shadow: none; }
.stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin: 36px 0 40px; }
.stats-row span { display: block; padding: 0; background: none; border: 0; box-shadow: none; color: var(--grey); font-weight: 500; text-align: left; }
.stats-row strong { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 700; font-size: clamp(64px, 7.5vw, 116px); line-height: 0.9; letter-spacing: -0.05em; }

/* Serviços da página inicial: cartões com fotografia */
.service-card { overflow: hidden; transition: transform 0.4s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: none; }
.service-card span { text-transform: none; }
.service-card::after { font-weight: 600; text-transform: none; }

/* Banners interiores: fotografia de fundo com véu embaciado e título branco */
.page-banner { position: relative; display: grid; place-items: center; min-height: clamp(240px, 32svh, 340px); margin: 0; padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 80px); border-radius: 0; overflow: hidden; background: var(--ink); color: #fff; text-align: center; }
.page-banner img { display: block; position: absolute; inset: -10% 0 auto; width: 100%; height: 120%; object-fit: cover; opacity: 1; filter: none; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.page-banner div { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 0; background: none; border-radius: 0; }
.page-banner h1 { margin: 0; max-width: none; color: #fff; font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.page-banner-copy { max-width: 620px; margin: 14px auto 0; color: rgba(255, 255, 255, 0.85); font-size: clamp(0.95rem, 1.2vw, 1.1rem); }

/* Cartões: superfícies planas e cantos suaves */
.feature-card, .contact-card, .contact-form, .testimonial-carousel .testimonial, .quote-block, .map-card, .process-step, .briefing-panel, .filters { background: #fff; border: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.alt .feature-card, .alt .quote-block, .alt .contact-card, .alt .process-step { border-color: transparent; }
.feature-card, .contact-card, .contact-form, .quote-block, .map-card, .briefing-panel, .image-panel, .service-row-media, .service-detail-photo, .service-story-image, .project-gallery img, .catalog-cover, .portfolio-card, .service-card, .process-step { border-radius: var(--radius); }
.feature-card { transition: border-color 0.3s ease; }
.feature-card:hover { transform: none; border-color: var(--ink); }
.icon-dot, .value-number, .contact-item span { border-radius: 6px; background: var(--yellow); box-shadow: none; }
.quote-block p { color: var(--ink); font-weight: 600; font-size: clamp(24px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.02em; }

/* Lista e detalhe de serviços */
.service-row-copy span::after, .service-story-row span::after { background: var(--ink); }
.service-row-copy h3, .service-detail-page h2 { text-transform: none; }
.service-row-copy h3 { font-size: clamp(26px, 3vw, 40px); }
.service-row-media, .service-detail-photo, .service-story-image { box-shadow: none; }

/* Processo, num bloco preto */
.process-steps { position: relative; isolation: isolate; }
.process-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 54px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--yellow) var(--fill, 0%), rgba(255, 255, 255, 0.14) var(--fill, 0%)); z-index: -1; }
.process-step { padding: 28px 22px; }
.band-ink .process-step { background: #1c1c1c; border-color: rgba(255, 255, 255, 0.08); }
.band-ink .process-step h3 { color: #fff; text-transform: none; }
.band-ink .process-step p { color: rgba(255, 255, 255, 0.68); }
.step-icon { border-radius: 6px; background: var(--yellow); color: var(--ink); }
.step-number { background: #fff; color: var(--ink); }
.process-anim { display: block; width: min(1100px, 100%); height: auto; margin: 0 auto clamp(24px, 4vw, 44px); padding: 0; border-radius: var(--radius); background: transparent; box-shadow: none; }

/* Testemunhos */
.testimonial-dots button.active { background: var(--ink); }

/* Portefólio e catálogos */
.filters { display: flex; flex-wrap: wrap; width: fit-content; margin-left: auto; margin-right: auto; padding: 6px; border-radius: var(--radius); }
.filters button { min-height: 44px; padding: 8px 18px; border: 0; background: transparent; color: var(--ink); text-transform: none; }
.filters button.active, .filters button:hover { background: var(--ink); color: #fff; }
.portfolio-card, .catalog-cover { overflow: hidden; transition: transform 0.4s ease; }
.portfolio-card:hover, .catalog-cover:hover { transform: translateY(-6px); box-shadow: none; }

/* Chamada final: faixa amarela com título grande */
.band-yellow .action-strip { max-width: var(--container); margin: 0 auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; align-items: end; }
.action-strip h2 { color: var(--ink); text-transform: none; }
.band-yellow .action-strip h2 { max-width: 14ch; font-size: clamp(38px, 6.4vw, 100px); line-height: 0.95; letter-spacing: -0.045em; }
.band-yellow .action-strip .btn-secondary { background: var(--ink); color: #fff; border-color: var(--ink); }
.band-yellow .action-strip .btn-secondary:hover { background: #2b2b2b; border-color: #2b2b2b; }
.briefing-panel, .briefing-panel h2 { color: var(--ink); }
.catalog-request { background: #fff; }
.service-thumb { background: url("imgs/Impressão.jpg") center / cover; }

/* Formulários */
.contact-form input, .contact-form textarea, .newsletter input { border-radius: 6px; border: 1px solid #8a8a8a; background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.contact-form input:focus, .contact-form textarea:focus, .newsletter input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 160, 227, 0.35); }
/* Foco do teclado: anel preto com halo branco, legível sobre fundos claros e escuros */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; transition: none; }
.site-footer a:focus-visible, .site-footer button:focus-visible, .band-ink a:focus-visible, .band-ink button:focus-visible, .cookie-consent a:focus-visible, .cookie-consent button:focus-visible { outline-color: var(--yellow); box-shadow: 0 0 0 5px var(--ink); }

/* Rodapé */
.site-footer { position: relative; margin: 0; border-radius: 0; overflow: hidden; background: linear-gradient(rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.86)), url("assets/images/banner footer.jpg") center / cover no-repeat; background-attachment: fixed; }
@media (max-width: 900px) { .site-footer { background-attachment: scroll; } }
.site-footer::before { display: none; }
.site-footer h3 { color: #fff; }
.newsletter button { background: var(--yellow); color: var(--ink); }

/* Aviso de cookies */
.cookie-consent { border-radius: var(--radius); background: var(--ink); color: #f2f2f2; border: 0; }
.cookie-consent a { color: #f2f2f2; }
.cookie-consent button { background: var(--yellow); color: var(--ink); }

/* Animação: palavras dos títulos */
.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.word-mask > .word { display: inline-block; will-change: transform; }

@media (max-width: 900px) {
  .process-steps::before { display: none; }
  .intro-band .split-section { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .band-yellow .action-strip { display: grid; gap: 28px; }
}

.stats-row strong { text-align: left; }
.section-heading h1, .section-heading h2 { max-width: none; }
.testimonial-carousel .section-heading { margin-top: clamp(64px, 8vw, 110px); text-align: center; }
.testimonial-carousel .section-heading p:not(.eyebrow) { margin-left: auto; margin-right: auto; }

/* Banner da página inicial no telemóvel: mais alto e preso à esquerda para mostrar o título da imagem */
@media (max-width: 620px) {
  .home-hero { aspect-ratio: auto; height: clamp(260px, 72vw, 380px); min-height: 0; background-size: cover; background-attachment: scroll; background-position: left center; }
}
.testimonial-carousel .testimonial::before { background: var(--ink); }

/* Acessibilidade e acabamento (auditoria Hallmark, 2026-10-26) */
.site-footer p, .site-footer .copyright { color: rgba(255, 255, 255, 0.72); }
.band-ink .section-heading p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); }
.btn:active, .mini-btn:active, .header-cta:active, .filters button:active, .newsletter button:active { transform: translateY(1px); }
.btn:disabled, .newsletter button:disabled, .contact-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.stats-row strong { font-variant-numeric: tabular-nums; }
h2, h3 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { text-wrap: pretty; }
.cookie-consent p { color: rgba(255, 255, 255, 0.82); }
/* Chamada final: bloco preto dentro da secção branca, para não colar à faixa amarela */
.action-strip { max-width: var(--container); margin: 0 auto; padding: clamp(32px, 4vw, 56px); background: var(--ink); color: #fff; border: 0; border-radius: var(--radius); }
.action-strip h2 { color: #fff; }
.action-strip .btn-secondary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.action-strip .btn-secondary:hover { background: #fff; border-color: #fff; color: var(--ink); }
/* Filtros alinhados à esquerda, com o título e a grelha */
.filters { margin-left: max(0px, calc((100% - var(--container)) / 2)); margin-right: auto; }
/* Estúdio Criativo: grelha no mesmo contentor do título e nomes legíveis sobre as imagens */
.portfolio-grid { max-width: var(--container); margin-left: auto; margin-right: auto; }
.portfolio-card h2, .portfolio-card h3, .catalog-cover h2, .catalog-cover h3 { color: #fff; }

/* Faixa amarela: título de campanha em maiúsculas, com a animação do carimbo ao lado */
.intro-actions { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-inline: max(clamp(20px, 5vw, 80px), calc((100% - var(--container)) / 2)); }
.intro-actions .section-heading { max-width: none; margin: 0; }
.intro-actions h1 { margin: 0 0 24px; color: var(--ink); font-size: clamp(2.4rem, 5.4vw, 5.6rem); line-height: 1; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.intro-actions h1 .word-mask { padding-bottom: 0.06em; }
.band-anim video { display: block; width: 100%; height: auto; }

/* Chamada final: painel preto com a animação da ideia até à entrega */
.cta-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 4.5vw, 64px); overflow: hidden; }
.cta-panel h2 { margin: 0 0 32px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.cta-panel .btn { min-height: 56px; padding: 16px 30px; font-size: 1.05rem; }
.action-strip .cta-main { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.action-strip .cta-main:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cta-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.cta-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-anim video { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
  .intro-actions, .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .band-anim { max-width: 520px; margin: 0 auto; }
}
.stats-row span, .stats-row strong { text-align: left; justify-items: start; justify-self: start; }
/* O título da faixa amarela nunca invade a coluna da animação */
.intro-actions .section-heading { min-width: 0; }
.intro-actions h1 { font-size: clamp(2.2rem, 4.3vw, 4.6rem); overflow-wrap: break-word; }
.intro-actions .two-line-title > span { white-space: normal; }

/* Telemóvel: na faixa amarela, a animação fica entre o texto e os botões */
@media (max-width: 900px) {
  .intro-actions { gap: 20px; }
  .intro-actions .section-heading { display: contents; }
  .intro-actions h1 { order: 1; margin: 0; }
  .intro-actions p:not(.eyebrow) { order: 2; }
  .intro-actions .band-anim { order: 3; width: 100%; }
  .intro-actions .button-row { order: 4; margin-top: 0; }
}
@media (max-width: 900px) {
  .cta-panel { gap: 20px; }
  .cta-panel .cta-copy { display: contents; }
  .cta-panel h2 { order: 1; margin: 0; }
  .cta-panel .cta-anim { order: 2; }
  .cta-panel .button-row { order: 3; margin-top: 0; }
}

/* Rodapé no telemóvel: tudo centrado, alinhado com o logótipo */
@media (max-width: 760px) {
  .footer-grid { text-align: center; justify-items: center; }
  .footer-grid > div { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .footer-badges { justify-content: center; }
  .footer-funding { margin-left: auto; margin-right: auto; }
  .site-footer p { max-width: 36ch; margin-left: auto; margin-right: auto; }
  .newsletter { justify-content: center; width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
  .copyright { text-align: center; }
}

/* Menu do telemóvel: espaço entre opções para o realce do hover não se colar */
@media (max-width: 920px) {
  .main-nav.open { gap: 6px; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a:hover, .main-nav a.active { background: rgba(0, 0, 0, 0.08); }
}

/* Contactos: lista sem moldura (só o formulário tem borda) e ícones pretos sobre o amarelo */
.contact-card { padding: 0; background: transparent; border: 0; border-radius: 0; }
.contact-card h2 { margin-bottom: 12px; }
.contact-item span { width: 40px; min-height: 40px; color: var(--ink); background: var(--yellow); border-radius: 8px; }
.contact-item svg { width: 22px; height: 22px; }
.contact-item:last-child { border-bottom: 0; }
