/* ============================================
   AUTO IPE7 — style.css
   Paleta: Preto #1a1a1a | Dourado #c9a84c | Cinza escuro #2a2a2a
   ============================================ */

/* ── Variáveis globais ── */
:root {
  --gold: #c9a84c;
  --gold-hover: #e0bc6a;
  --dark: #1a1a1a;
  --darker: #111111;
  --card: #2a2a2a;
  --text: #cccccc;
  --white: #ffffff;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── Tema Claro ── */
body.light-mode {
  --dark: #f0f0f0;
  --darker: #e0e0e0;
  --card: #d8d8d8;
  --text: #444444;
  --white: #1a1a1a;
}

body.light-mode #hero {
  background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 50%, #ebebeb 100%);
}

body.light-mode #hero::before {
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.12) 0%, transparent 70%);
}

body.light-mode .hero-overlay {
  background: rgba(255,255,255,0.1);
}

body.light-mode .hero-sub,
body.light-mode .hero-badge,
body.light-mode .hero-badge span {
  color: #333 !important;
  opacity: 1 !important;
}

body.light-mode .navbar {
  background-color: rgba(240, 240, 240, 0.98) !important;
  border-bottom-color: rgba(201, 168, 76, 0.4) !important;
}

body.light-mode .nav-link,
body.light-mode .brand-text {
  color: #1a1a1a !important;
}

body.light-mode .btn-outline-gold,
body.light-mode .btn-outline-gold:hover {
  border-color: #5a4a10 !important;
  color: #5a4a10 !important;
  background: transparent !important;
}

body.light-mode .form-dark {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  border-color: rgba(201,168,76,0.4) !important;
}

body.light-mode .form-dark::placeholder { color: #999 !important; }

body.light-mode .form-label { color: #333 !important; }

body.light-mode .footer {
  background-color: #d8d8d8;
  border-top-color: rgba(201,168,76,0.3);
}

body.light-mode .footer-brand { color: #1a1a1a; }
body.light-mode .footer-sub   { color: #555; }
body.light-mode .footer-copy  { color: #666; }
body.light-mode .footer-link  { color: #555; }

/* ── Correção do botão transparente no Tema Claro ── */
body.light-mode .btn-outline-light {
  color: #1a1a1a !important;          /* Deixa o texto escuro */
  border-color: #1a1a1a !important;   /* Deixa a borda escura */
  background-color: transparent !important; 
}

/* Efeito ao passar o mouse por cima (Hover) no Tema Claro */
body.light-mode .btn-outline-light:hover {
  background-color: #1a1a1a !important; /* Preenche de escuro */
  color: #ffffff !important;            /* Texto fica branco */
}
/* ── Correção do Menu Hambúrguer no Tema Claro ── */
body.light-mode .navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(0%);
}

body.light-mode .navbar-toggler {
  border-color: rgba(26, 26, 26, 0.3) !important;
}
/* ── Reset e base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Toggle Tema ── */
.theme-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0 8px;
}

.theme-switch input { display: none; }

.theme-slider {
  width: 44px;
  height: 24px;
  background: #555;
  border-radius: 50px;
  position: relative;
  transition: background 0.3s;
}

.theme-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
}

.theme-switch input:checked + .theme-slider { background: var(--gold); }
.theme-switch input:checked + .theme-slider::before { transform: translateX(20px); }

/* ── Body ── */
body {
  background-color: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

/* ── Utilitários ── */
.gold { color: var(--gold); }

/* ── Navbar ── */
#navbar {
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: all 0.3s ease;
  padding: 12px 0;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.nav-link {
  color: var(--text) !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--gold) !important; }

/* ── Botões ── */
.btn-gold {
  background-color: var(--gold);
  color: #000;
  font-weight: 600;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  color: #000;
  transform: translateY(-1px);
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: #000;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 6px;
  line-height: 1;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text);
  margin-top: 16px;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-badge { font-size: 0.95rem; opacity: 0.9; }
.hero-logo  { max-height: 120px; }

/* ── Secções ── */
.section-dark   { background-color: var(--dark);   padding: 100px 0; }
.section-darker { background-color: var(--darker); padding: 100px 0; }

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ── Stats ── */
.stat-box  { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

.placeholder-img {
  background-color: var(--card);
  min-height: 320px;
  border: 1px dashed rgba(201,168,76,0.3);
  color: #555;
}

#oficina-foto {
  background-image: url('../imagens/oficina.png'); /* Verifique se o caminho está certinho */
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
}
/* ── Cards de serviço ── */
.service-card {
  background-color: var(--card);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.3s, transform 0.2s;
  height: 100%;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.service-card h5 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

/* ── Galeria de Imagens ── */
.gallery-placeholder {
  background-size: cover;
  background-position: center;
  width: 100%;
  aspect-ratio: 4 / 3; /* Mantém todas as fotos no mesmo tamanho exato */
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s, opacity 0.3s; /* Prepara o efeito de hover */
  cursor: pointer;
}

/* Efeito de destaque ao passar o mouse */
.gallery-placeholder:hover {
  transform: scale(1.03);
  opacity: 0.9;
  border-color: var(--gold);
}

/* Apontando as imagens .png para cada caixa */
#trab-1 { background-image: url('../imagens/img1.png'); }
#trab-2 { background-image: url('../imagens/img2.png'); }
#trab-3 { background-image: url('../imagens/img3.png'); }
#trab-4 { background-image: url('../imagens/img4.png'); }
#trab-5 { background-image: url('../imagens/img5.png'); }
#trab-6 { background-image: url('../imagens/img6.png'); }
/* ── Formulário ── */
.form-dark {
  background-color: var(--card) !important;
  border: 1px solid rgba(201,168,76,0.2) !important;
  color: var(--white) !important;
  border-radius: 4px;
  padding: 12px 16px;
}

.form-dark::placeholder { color: #666; }

.form-dark:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15) !important;
  outline: none;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

/* ── Contacto ── */
.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-list i { font-size: 1.3rem; }

.contact-list a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-list a:hover { color: var(--gold); }

.map-container { border: 1px solid rgba(201,168,76,0.2); }

/* ── Rodapé ── */
.footer {
  background-color: var(--darker);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 4px;
}

/* Subimos de #666 para #aaa (um cinza claro muito mais legível) */
.footer-sub { 
  font-size: 0.9rem; 
  color: #aaa; 
  margin-bottom: 20px;
}

/* Ícones agora em branco para destacar bem */
.footer-link {
  font-size: 1.5rem;
  color: var(--white); 
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
  margin: 0 10px;
}

.footer-link:hover { 
  color: var(--gold); 
  transform: translateY(-3px); /* Um pequeno movimento para dar vida */
}

/* Copyright de #444 para #777 (discreto, mas visível) */
.footer-copy { 
  font-size: 0.8rem; 
  color: #777; 
  margin-top: 25px;
}
/* ============================================
   AJUSTES PARA MOBILE (TELEMÓVEIS E TABLETS)
   ============================================ */
@media (max-width: 991.98px) {
  
  /* 1. Diminui a altura da primeira tela para mostrar mais conteúdo */
  #hero {
    min-height: 70vh !important; /* Em vez de 100% da tela, ocupa 70% */
    padding-top: 90px; /* Evita que o título cole no menu */
  }

  /* 2. Solta o menu para ele rolar junto com a página */
  #navbar {
    position: absolute !important; /* Substitui o fixo do Bootstrap */
    top: 0;
    width: 100%;
    z-index: 1030;
  }
}