/* Sucesso Garantido — estilos do tema (sem frameworks). */

/* Montserrat variável, alojada no tema. Outras escritas (árabe, chinês, hindi…) usam as fontes do sistema. */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/montserrat-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/montserrat-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--bg: #000;
	--surface: #1d1c1c;
	--text: #fcf7ec;
	--text-2: #d6d2c9;
	--text-3: #9a968e;
	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Geeza Pro", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans Devanagari", "Kohinoor Devanagari", sans-serif;
	--gutter: clamp(20px, 5vw, 72px);
	--radius: 10px;
	--tracking: -0.02em;
}
.lang-ar, .lang-zh, .lang-ja, .lang-ko, .lang-hi { --tracking: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: var(--tracking); }
p { margin: 0 0 1em; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link {
	position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
	background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
	font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 920px; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Títulos de secção com o traço por baixo (assinatura do design original) */
.section-title, .page-title { font-size: clamp(2.6rem, 6.5vw, 6rem); color: var(--text); }
.section-title::after, .page-title::after {
	content: ""; display: block; width: 1.25em; height: 2px; margin-top: 0.3em; background: currentColor;
}
.lead { color: var(--text-2); font-size: clamp(0.95rem, 1.2vw, 1.05rem); max-width: 34em; }

/* ---------- Cabeçalho ---------- */
.site-header {
	position: absolute; top: 0; inset-inline: 0; z-index: 30;
	display: flex; justify-content: space-between; align-items: flex-start;
	padding: clamp(20px, 3.5vw, 48px) var(--gutter);
	pointer-events: none;
}
.site-logo { pointer-events: auto; }
.site-logo img { width: clamp(170px, 17vw, 250px); height: auto; }
.header-actions {
	position: fixed; top: clamp(20px, 3vw, 40px); inset-inline-end: clamp(16px, 2.5vw, 36px);
	display: flex; flex-direction: column; gap: 14px; pointer-events: auto; z-index: 40;
}
.circle-btn {
	display: grid; place-items: center;
	width: 46px; height: 46px; padding: 0;
	border: 2px solid var(--text); border-radius: 50%;
	background: rgba(0, 0, 0, 0.25); color: var(--text);
	font-size: 22px; cursor: pointer; text-decoration: none;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	transition: background 0.25s, color 0.25s, transform 0.25s;
}
.circle-btn:hover { background: var(--text); color: var(--bg); }
.circle-btn .icon { stroke-width: 2.6; }

/* ---------- Menu lateral ---------- */
.menu-panel { position: fixed; inset: 0; z-index: 90; }
.menu-panel[hidden] { display: none; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); opacity: 0; transition: opacity 0.35s; }
.menu-inner {
	position: absolute; top: 0; bottom: 0; inset-inline-end: 0;
	width: min(100%, max(50vw, 420px));
	display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 48px;
	padding: 90px 32px 40px;
	background: #2a2929;
	transform: translateX(100%); transition: transform 0.45s cubic-bezier(.2, .7, .2, 1);
	overflow-y: auto;
}
[dir="rtl"] .menu-inner { transform: translateX(-100%); }
.menu-panel.is-open .menu-backdrop { opacity: 1; }
.menu-panel.is-open .menu-inner { transform: none; }
.menu-close {
	position: absolute; top: 28px; inset-inline-end: 28px;
	background: none; border: 0; color: var(--text); font-size: 44px; cursor: pointer; padding: 4px;
}
.menu-links { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu-links a { display: block; padding: 4px 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; text-decoration: none; }
.menu-links a:hover { color: var(--text-3); }
.menu-lang { text-align: center; }
.menu-lang-title { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.lang-switcher { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: 420px; }
.lang-switcher a { font-size: 0.9rem; color: var(--text-2); text-decoration: none; }
.lang-switcher a[aria-current] { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; font-size: 18px; }
.social .icon-linkedin, .social .icon-facebook { fill: currentColor; stroke: none; }

/* ---------- Página inicial: animação de scroll ---------- */
.hero { position: relative; height: 370vh; background: var(--bg); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-frame, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-canvas { opacity: 0; }
.hero.is-ready .hero-canvas { opacity: 1; }
.hero.is-ready .hero-frame { visibility: hidden; }
.hero-scroll {
	position: absolute; inset-inline-end: clamp(26px, 3.2vw, 46px); top: 50%;
	font-size: 34px; color: var(--text); opacity: 0.85;
	animation: sg-bounce 2.2s ease-in-out infinite;
}
@keyframes sg-bounce { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }

/* ---------- Porquê Digital ---------- */
.why { min-height: 100vh; display: flex; align-items: center; padding-block: 120px; }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.why-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.why-num { display: block; font-size: clamp(4.5rem, 9vw, 9.5rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; }
.why-title { font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 500; line-height: 1.2; margin: 0.6em 0 0.8em; }
.why-item p { font-size: 0.85rem; color: var(--text-3); }
.why-item:nth-child(1) { color: var(--text); }
.why-item:nth-child(2) { color: #cfccc5; }
.why-item:nth-child(3) { color: #9e9b94; }

/* ---------- Serviços ---------- */
.services { padding-block: 100px 60px; }
.service {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
	gap: clamp(24px, 5vw, 80px); min-height: 80vh; padding-block: 40px;
}
.service-media video { width: 100%; max-width: 576px; aspect-ratio: 1; object-fit: cover; background: #000; }
.service-text { text-align: end; }
.service-text p { margin-inline-start: auto; max-width: 26em; font-size: 0.9rem; color: var(--text-2); }
.service-title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); color: var(--text-2); margin-bottom: 0.4em; line-height: 1.1; }
.service:nth-of-type(even) .service-media { order: 2; justify-self: end; }
.service:nth-of-type(even) .service-text { text-align: start; }
.service:nth-of-type(even) .service-text p { margin-inline-start: 0; }

/* ---------- Reunião / formulários ---------- */
.meeting { min-height: 100vh; display: flex; align-items: center; padding-block: 120px; }
.meeting .lead { margin-top: 1.5em; }
.sg-form { display: grid; gap: 12px; width: 100%; max-width: 440px; margin-top: 28px; }
.contact-form-section .sg-form { max-width: 640px; }
.sg-field input, .sg-field textarea {
	width: 100%; border: 0; border-radius: var(--radius);
	background: var(--text); color: #111;
	padding: 13px 16px; font: 500 0.9rem/1.4 var(--font);
}
.sg-field textarea { resize: vertical; min-height: 120px; }
.sg-field ::placeholder { color: #6d6a64; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.sg-field input:focus-visible, .sg-field textarea:focus-visible { outline: 3px solid var(--text-3); outline-offset: 2px; }
.sg-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sg-consent { font-size: 0.75rem; color: var(--text-3); margin: 4px 0 0; }
.sg-button {
	display: inline-block; border: 0; border-radius: var(--radius); cursor: pointer;
	background: var(--text); color: #000; padding: 13px 28px;
	font: 700 0.9rem/1.2 var(--font); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; text-align: center;
	transition: background 0.2s, transform 0.2s;
}
.sg-form .sg-button { width: 100%; }
.sg-button:hover { background: #fff; color: #000; }
.sg-button[disabled] { opacity: 0.6; cursor: progress; }
.sg-form-status { min-height: 1.5em; margin: 4px 0 0; font-size: 0.9rem; }
.sg-form-status.is-error { color: #ff9b8a; }

/* ---------- Páginas interiores ---------- */
.page-section { padding-block: clamp(150px, 16vw, 210px) 90px; }
.page-section + .page-section { padding-top: 0; }

.portfolio-grid { display: grid; grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portfolio-nav { position: sticky; top: 120px; }
.portfolio-nav .page-title { font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: 0.6em; }
.portfolio-index { margin-top: 1.4em; }
.portfolio-index a { display: block; padding: 3px 0; color: var(--text-3); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.portfolio-index a:hover, .portfolio-index a.is-active { color: var(--text); }
.project { margin: 0 0 clamp(48px, 7vw, 96px); scroll-margin-top: 100px; }
.project img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); transition: transform 0.4s ease; }
.project a:hover img { transform: scale(1.015); }
.project figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 0.85rem; color: var(--text-3); }
.project figcaption span { color: var(--text); font-weight: 600; }
.project figcaption a { text-decoration: none; }

.contacts { min-height: 70vh; display: flex; align-items: center; }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.contacts .page-title { margin-bottom: 0.4em; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.contact-list .icon { flex: none; font-size: 18px; margin-top: 4px; }
.contact-list a { text-decoration: none; }
.contact-form-section .section-title { font-size: clamp(2rem, 4vw, 3.4rem); }

.legal .page-title { font-size: clamp(2.2rem, 5vw, 4rem); }
.legal-company { margin: 1.5em 0 2.5em; font-weight: 600; font-size: 1.1rem; }
.legal-text { color: var(--text-2); font-size: 0.95rem; }
.legal-text h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin: 2.4em 0 0.8em; line-height: 1.3; }
.legal-text ul { padding-inline-start: 1.2em; margin: 0 0 1em; }
.legal-text li { margin-bottom: 0.4em; }

.entry .page-title { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 0.8em; }
.entry-content { color: var(--text-2); }
.entry-content a { color: var(--text); }
.entry-content img { height: auto; }
.entry-thumb { width: 100%; height: auto; margin-bottom: 2em; border-radius: 6px; }
.entry-meta { color: var(--text-3); font-size: 0.85rem; }
.entry-summary { margin-bottom: 2.5em; }
.notice { border-inline-start: 3px solid var(--text); padding: 10px 16px; background: var(--surface); color: var(--text-2); font-size: 0.9rem; margin-bottom: 2em; }
.notfound-code { font-size: clamp(6rem, 18vw, 12rem); font-weight: 700; line-height: 1; margin: 0; color: var(--surface); }
.notfound .lead { margin: 1.5em 0 2em; }

/* ---------- Rodapé ---------- */
.site-footer { padding: clamp(60px, 8vw, 110px) var(--gutter) 28px; border-top: 1px solid #1a1a1a; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; max-width: 1440px; margin: 0 auto; }
.footer-logo img { width: 220px; height: auto; }
.footer-tagline { margin: 22px 0 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; width: 220px; }
.footer-brand .social { justify-content: center; width: 220px; }
.footer-contact { font-style: normal; font-size: 0.78rem; min-width: 260px; }
.footer-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2.2em; }
.footer-contact p { margin-bottom: 1.4em; }
.footer-contact a { text-decoration: none; text-transform: uppercase; }
.footer-contact a[href^="mailto"] { text-transform: none; }
.footer-label { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-lang { max-width: 1440px; margin: 48px auto 0; }
.footer-lang .lang-switcher { justify-content: flex-start; max-width: none; gap: 4px 18px; }
.footer-lang .lang-switcher a { font-size: 0.75rem; color: var(--text-3); }
.footer-lang .lang-switcher a[aria-current] { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1440px; margin: 20px auto 0; padding-top: 20px; border-top: 1px solid #1a1a1a; font-size: 0.72rem; color: var(--text-3); }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }

/* ---------- Animações de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.hero { height: 100vh; }
	.hero-scroll { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
	.why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.hero { height: 280vh; }
	.why-list { grid-template-columns: 1fr; gap: 40px; }
	.why-num { font-size: 5.5rem; }
	.service, .service:nth-of-type(even) { grid-template-columns: 1fr; min-height: 0; padding-block: 32px; }
	.service:nth-of-type(even) .service-media { order: 0; justify-self: stretch; }
	.service-text, .service:nth-of-type(even) .service-text { text-align: start; }
	.service-text p { margin-inline-start: 0; }
	.portfolio-grid, .contacts-grid { grid-template-columns: 1fr; }
	.portfolio-nav { position: static; }
	.portfolio-index { display: flex; flex-wrap: wrap; gap: 4px 16px; }
	.footer-grid { flex-direction: column; align-items: flex-start; }
	.circle-btn { width: 42px; height: 42px; font-size: 20px; }
	.menu-inner { width: 100%; }
}
