/* ═══════════════════════════════════════════════════════════════
   AZOL Solutions — site
   Paleta inspirada no símbolo: prata/cromado + bronze + preto
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0a0908;
  --bg-alt:    #121010;
  --surface:   #1a1613;
  --surface-2: #201b17;
  --border:    #322b23;

  --text:      #f2ede4;
  --text-dim:  #a89d8d;

  --bronze:       #cf9a5c;
  --bronze-light: #ecc98d;
  --bronze-dark:  #7a4a24;

  --silver:      #d7dade;
  --silver-dim:  #8a8f95;

  --radius: 12px;
  --maxw: 1120px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.5em;
  line-height: 1.12;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.accent {
  background: linear-gradient(120deg, var(--bronze-light), var(--bronze) 55%, var(--bronze-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Header ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(207, 154, 92, 0.25));
}

.logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--bronze);
  transition: right 0.25s ease;
}

.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.lang-switch button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-switch button:hover {
  color: var(--text);
  border-color: var(--bronze-dark);
}

.lang-switch button.is-active {
  background: var(--bronze);
  color: #1a0f05;
  border-color: transparent;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ─── Fundo global (emblema a rodar) ─────────────────────── */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.site-bg img {
  width: 1400px;
  max-width: none;
  opacity: 0.05;
  animation: spin-slow 140s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero, .page-hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.page-hero {
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(207, 154, 92, 0.10), transparent);
}

.hero { padding: 130px 0 100px; }
.page-hero { padding: 90px 0 70px; }

.hero--photo {
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0.72) 55%, rgba(10,9,8,0.94) 100%);
}

/* ─── Marcas de canto (estilo desenho técnico) ───────────── */
.hero__inner {
  position: relative;
  padding: 36px 44px;
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0.55;
  pointer-events: none;
}

.corner::before, .corner::after {
  content: '';
  position: absolute;
  background: var(--bronze);
}

.corner::before { width: 100%; height: 1.5px; }
.corner::after { width: 1.5px; height: 100%; }

.corner--tl { top: 0; left: 0; }
.corner--tl::before, .corner--tl::after { top: 0; left: 0; }

.corner--tr { top: 0; right: 0; }
.corner--tr::before { top: 0; right: 0; }
.corner--tr::after { top: 0; right: 0; }

.corner--bl { bottom: 0; left: 0; }
.corner--bl::before { bottom: 0; left: 0; }
.corner--bl::after { bottom: 0; left: 0; }

.corner--br { bottom: 0; right: 0; }
.corner--br::before { bottom: 0; right: 0; }
.corner--br::after { bottom: 0; right: 0; }

.eyebrow, .section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero h1, .page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero__lead {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero__cta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--bronze-light), var(--bronze) 60%, var(--bronze-dark));
  color: #1a0f05;
  box-shadow: 0 8px 24px -8px rgba(207, 154, 92, 0.45);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover { border-color: var(--bronze); }

/* ─── Sections ───────────────────────────────────────────── */
.section {
  padding: 96px 0;
  position: relative;
}

.section--alt {
  background: rgba(18, 16, 16, 0.9);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}

.section__lead {
  color: var(--text-dim);
  max-width: 640px;
  font-size: 1.02rem;
}

/* ─── Sobre ──────────────────────────────────────────────── */
.sobre__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.sobre__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sobre__photo {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.sobre__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stats {
  display: grid;
  gap: 16px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s;
}

.stat:hover { border-color: var(--bronze-dark); }

.stat__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bronze);
  white-space: nowrap;
}

.stat__label {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: right;
}

/* ─── Serviços ───────────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.service:hover {
  border-color: var(--bronze-dark);
  transform: translateY(-3px);
}

.service__num {
  position: absolute;
  top: 8px;
  right: 18px;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--surface-2);
  z-index: 0;
  line-height: 1;
}

.service h3 {
  position: relative;
  font-size: 1.1rem;
  color: var(--bronze);
}

.service p {
  position: relative;
  color: var(--text-dim);
  margin: 0;
  font-size: 0.95rem;
}

.service--photo {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.service--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0.75) 55%, rgba(10,9,8,0.95) 100%);
}

.service--photo .service__num,
.service--photo h3,
.service--photo p {
  z-index: 1;
}

.service--photo p {
  color: #d9d0c4;
}

/* ─── Teaser portfólio (na home) ─────────────────────────── */
.teaser__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
}

.teaser__emblem {
  width: 140px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}

.teaser h2 { margin-bottom: 10px; }

/* ─── Filtros do Portfólio ───────────────────────────────── */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--bronze-dark);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, var(--bronze-light), var(--bronze) 60%, var(--bronze-dark));
  color: #1a0f05;
  border-color: transparent;
  font-weight: 600;
}

/* ─── Galeria / Portfólio ────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
}

/* ─── Formulário de orçamento ────────────────────────────── */
.quote-form {
  max-width: 640px;
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-height: 44px;
  transition: border-color 0.2s;
}

.form-field__helper {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.form-field input[type="file"] {
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--bronze-light), var(--bronze) 60%, var(--bronze-dark));
  color: #1a0f05;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  margin-right: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form-field input[type="file"]::file-selector-button:hover {
  opacity: 0.9;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: var(--bronze-dark);
}

.quote-form__submit {
  align-self: flex-start;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}

.quote-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.quote-form__status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.quote-form__status.is-success { color: #8fd19e; }
.quote-form__status.is-error { color: #e28a76; }

.quote-form__fallback {
  max-width: 640px;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.quote-form__fallback a { color: var(--bronze); }
.quote-form__fallback a:hover { text-decoration: underline; }

/* ─── Contactos ──────────────────────────────────────────── */
.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-item__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--bronze);
  font-weight: 600;
}

.contact-item a:hover { color: var(--bronze); }

/* ─── Mapa / Localização ─────────────────────────────────── */
.map {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  filter: grayscale(0.3) contrast(1.05);
}

.map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.map__link {
  margin-top: 20px;
  display: inline-block;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

.footer__mark {
  height: 22px;
  width: auto;
  opacity: 0.85;
}

/* ─── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.lightbox.is-open { display: flex; }

.lightbox__img {
  max-width: 88vw;
  max-height: 85vh;
  border-radius: 6px;
}

.lightbox__close, .lightbox__nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 12px;
}

.lightbox__close { top: 16px; right: 20px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ─── Reveal on scroll ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 780px) {
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--border); display: none; }
  .nav.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .services, .contacts { grid-template-columns: 1fr; }
  .sobre__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .teaser__inner { flex-direction: column; text-align: center; padding: 36px 24px; }
  .site-bg img { width: 700px; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: none; margin-top: 8px; }
}
