/* ==========================================================================
   Auto Zero Seis — estilos principais
   ========================================================================== */

:root {
	--color-primary: #0b0b0c;
	--color-surface: #141416;
	--color-accent: #d7261e;
	--color-accent-dark: #8e1510;
	--color-text: #1c1c1e;
	--color-muted: #6b6b70;
	--color-bg: #f3efea;
	--color-line: rgba(0, 0, 0, .12);
	--footer-bg: #0b0b0c;
	--footer-text: #b5b5ba;
	--footer-title: #ffffff;
	--font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-heading: var(--font-body);
	--container: 1280px;
	--gutter: 1.25rem;
	--radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 1rem; left: 1rem; padding: .75rem 1rem; background: #fff; color: #000; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

.img-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #2a2a2e, #111113); }

/* Eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--color-accent); }
.eyebrow--light { color: rgba(255, 255, 255, .7); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius); font: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 1em; height: 1em; fill: currentColor; }
.btn--sm { min-height: 44px; padding: .5rem 1.1rem; font-size: .75rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--color-primary); }
.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { background: var(--color-accent); color: #fff; }
.btn--dark { background: var(--color-primary); color: #fff; }
.btn--dark:hover { background: var(--color-accent); }

/* Header */
.site-header { position: relative; z-index: 100; background: var(--color-primary); color: #fff; }
.site-header--overlay { position: absolute; inset: 0 0 auto 0; background: transparent; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }
.site-header__name { font-size: 1.25rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.site-header .custom-logo { max-height: 48px; width: auto; }
.site-nav__menu { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.site-nav__menu a:hover, .site-nav__menu .current-menu-item > a { color: var(--color-accent); }
@media (min-width: 1024px) {
	.site-nav__menu { border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 0 .25rem; }
}
.menu-toggle { display: none; }
@media (max-width: 1023px) {
	.site-header__cta { display: none; }
	.menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; }
	.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; content: ""; }
	.menu-toggle__bar::before { position: absolute; top: -7px; }
	.menu-toggle__bar::after { position: absolute; top: 7px; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-primary); padding: 1rem var(--gutter); }
	.site-nav.is-open { display: block; }
	.site-nav__menu { flex-direction: column; color: #fff; }
	.site-nav__menu a { padding: 0; }
}

/* Hero — sempre 100vh */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; height: 100vh; overflow: hidden; color: #fff; background: var(--color-primary); }
@supports (height: 100svh) { .hero { height: 100svh; } }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.85) 100%); z-index: -1; }
.hero__content { display: grid; gap: 2rem; padding-bottom: clamp(3rem, 8vh, 6rem); }
@media (min-width: 900px) { .hero__content { grid-template-columns: 1.6fr 1fr; align-items: end; } }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.75rem); margin: 0 0 1.75rem; max-width: 14ch; }
.hero__subtitle { margin: 0; max-width: 38ch; font-size: 1rem; color: rgba(255, 255, 255, .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Secções */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--dark { background: var(--color-primary); color: #fff; }
.section--light { background: var(--color-bg); }
.section--border { border-top: 1px solid var(--color-line); }
.section--red { background: radial-gradient(120% 120% at 70% 0%, #a3160f 0%, #4a0906 55%, #1a0303 100%); color: #fff; }
.section__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 0; max-width: 18ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Sobre */
.section--about { text-align: center; }
.about__lead { font-size: clamp(1.35rem, 2.6vw, 2rem); max-width: 34ch; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.about__gallery { display: grid; gap: 1rem; text-align: left; }
@media (min-width: 768px) { .about__gallery { grid-template-columns: 1fr 1.6fr 1fr; align-items: end; } }
.about__item { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); }
.about__item--wide { aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .about__item--wide { aspect-ratio: auto; height: 100%; } }
.about__img { width: 100%; height: 100%; object-fit: cover; }
.about__item .stat { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; }

.stat { display: grid; margin: 0; padding: 1rem; background: rgba(11, 11, 12, .75); backdrop-filter: blur(6px); color: #fff; border-radius: var(--radius); }
.stat__value { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.1; }
.stat__label { font-size: .8125rem; color: rgba(255, 255, 255, .75); }
.stat--light { background: rgba(255, 255, 255, .12); }

/* Carrossel de serviços */
.carousel__track { display: flex; gap: 1rem; margin: 0; padding: 0 var(--gutter); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) { .carousel__track { padding-inline: calc((100vw - var(--container)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--container)) / 2 + var(--gutter)); } }
.service-card { position: relative; flex: 0 0 min(85vw, 420px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); color: #fff; scroll-snap-align: start; }
.service-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-card__body { position: absolute; inset: auto 0 0 0; padding: 1.5rem; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)); }
.service-card__title { margin: 0 0 .35rem; font-size: 1.25rem; }
.service-card__text { margin: 0; font-size: .875rem; color: rgba(255, 255, 255, .8); }
.carousel__controls { display: flex; gap: .5rem; margin-top: 1.5rem; }
.carousel__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: var(--color-primary); color: #fff; cursor: pointer; }
.carousel__btn:hover { background: var(--color-accent); }
.carousel__btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Testemunho */
.testimonials { text-align: center; }
.testimonials__track { display: flex; margin: 1.5rem 0 2.5rem; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonial { flex: 0 0 100%; display: flex; justify-content: center; scroll-snap-align: center; }
.testimonial__body { margin: 0; max-width: 820px; }
.testimonial__quote { margin: 0 0 2rem; }
.testimonials__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.testimonials__dots { display: flex; }
.testimonials__dot { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.testimonials__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background-color .2s; }
.testimonials__dot[aria-current="true"]::before { background: #fff; }
.carousel__btn--light { background: rgba(255, 255, 255, .14); }
.carousel__btn--light:hover { background: #fff; color: var(--color-primary); }
.testimonial__quote p { margin: 0; font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.testimonial__author { display: grid; font-size: .875rem; }
.testimonial__author span { color: rgba(255, 255, 255, .7); }

/* Banner equipa */
.banner { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(480px, 70vh, 720px); overflow: hidden; color: #fff; background: var(--color-primary); }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.8)); z-index: -1; }
.banner__content { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-block: 3rem; }
.banner__title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); max-width: 20ch; margin: 0 0 1.5rem; }

/* Passos */
.steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps__item { display: flex; flex-direction: column; min-height: 260px; padding: 1.75rem; background: var(--color-surface); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); }
.steps__num { color: var(--color-accent); font-weight: 600; font-size: .875rem; }
.steps__title { margin: auto 0 .5rem; font-size: 1.15rem; }
.steps__text { margin: 0; font-size: .875rem; color: rgba(255, 255, 255, .65); }

/* Trabalhos */
.works { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .works { grid-template-columns: repeat(4, 1fr); } }
.work-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); color: #fff; }
.work-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-card__img { transform: scale(1.04); }
.work-card__body { position: absolute; inset: auto 0 0 0; padding: 1.25rem; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)); }
.work-card__tag { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.work-card__title { margin: .25rem 0 0; font-size: 1.1rem; }

/* Porquê nós */
.why { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .why { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.why__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.why__img { width: 100%; height: 100%; object-fit: cover; }
.why__list { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.why__item { display: grid; grid-template-columns: 32px 1fr; gap: 1rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--color-line); }
.why__item:last-child { border-bottom: 0; padding-bottom: 0; }
.why__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--color-primary); color: #fff; border-radius: var(--radius); }
.why__icon svg { width: 16px; height: 16px; fill: currentColor; }
.why__title { margin: 0 0 .35rem; font-size: 1.05rem; }
.why__text { margin: 0; font-size: .9rem; color: var(--color-muted); }

/* Artigos */
.post-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
	.post-grid--featured { grid-template-columns: 2fr 1fr 1fr; }
	.post-grid--featured .post-card:first-child .post-card__media { aspect-ratio: 16 / 9; }
}
.post-card__link { display: block; text-decoration: none; }
.post-card__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 1rem; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card__link:hover .post-card__img { transform: scale(1.04); }
.post-card__title { margin: 0; font-size: 1.1rem; }
.post-card__link:hover .post-card__title { color: var(--color-accent); }

/* Contactos */
.section--contact { background: radial-gradient(90% 80% at 85% 0%, #7a120c 0%, #2a0604 45%, var(--color-primary) 100%); color: #fff; }
.contact { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact__lead { color: rgba(255, 255, 255, .75); max-width: 42ch; margin: 1.25rem 0 2.5rem; }
.contact__list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.contact__list li { display: grid; grid-template-columns: 44px 1fr; align-items: center; column-gap: 1rem; }
.contact__list a { text-decoration: none; font-weight: 500; }
.contact__list a:hover { color: var(--color-accent); }
.contact__list small { grid-column: 2; color: rgba(255, 255, 255, .6); }
.contact__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; grid-row: span 2; }
.contact__icon svg { width: 18px; height: 18px; fill: currentColor; }

.contact-form { padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; color: var(--color-text); border-radius: 8px; }
.contact-form__title { margin: 0 0 1.25rem; font-size: 1.35rem; }
.contact-form__hp { position: absolute; left: -9999px; }
.contact-form__notice { padding: .75rem 1rem; border-radius: var(--radius); font-size: .875rem; }
.contact-form__notice--ok { background: #e7f6ec; color: #135c2b; }
.contact-form__notice--error { background: #fdecea; color: #8e1510; }
.field { margin: 0 0 1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .8125rem; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid #d4d0ca; border-radius: var(--radius); background: #faf8f5; font: inherit; color: inherit; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 3px rgba(215, 38, 30, .15); }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field--check { display: flex; gap: .6rem; align-items: flex-start; }
.field--check input { width: 20px; min-height: 20px; height: 20px; margin-top: .15rem; flex-shrink: 0; accent-color: var(--color-accent); }
.field--check label { font-weight: 400; color: var(--color-muted); }

/* Páginas internas */
.page-content { padding-block: clamp(3rem, 6vw, 5rem); }
.page-content--narrow { max-width: 820px; }
.page-header { margin-bottom: 2rem; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.entry-content { font-size: 1.05rem; }
.entry-content a { color: var(--color-accent); }
.entry-thumb { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.nav-links { display: flex; gap: .5rem; margin-top: 3rem; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem; border: 1px solid var(--color-line); border-radius: var(--radius); text-decoration: none; }
.nav-links .current { background: var(--color-primary); color: #fff; }

/* Footer — 4 colunas */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: 4rem; overflow: hidden; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--footer-title); }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__title { color: var(--footer-title); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1.25rem; }
.site-footer__name { display: inline-block; margin-bottom: 1rem; color: var(--footer-title) !important; font-size: 1.25rem; font-weight: 700; }
.site-footer__col--brand .custom-logo { max-height: 64px; width: auto; margin-bottom: 1rem; }
.site-footer__slogan { margin: 0 0 1rem; max-width: 34ch; }
.site-footer__email { margin: 0; }
.site-footer__email a { color: var(--footer-title); }
.site-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer__wordmark { margin: 0 auto; font-size: clamp(3rem, 13vw, 11rem); font-weight: 700; line-height: .9; letter-spacing: -.05em; color: var(--color-accent-dark); opacity: .55; white-space: nowrap; user-select: none; }

.social-links { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.social-links__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; transition: background-color .2s, color .2s, border-color .2s; }
.social-links__btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.social-links__btn svg { width: 18px; height: 18px; fill: currentColor; }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; font-size: .875rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__credits a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) { .site-footer__bottom-inner { flex-direction: column; text-align: center; } }

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