/* ── VARIÁVEIS ── */
:root {
  --font: "Libre Baskerville", serif;
  --bg: #fafaf8;
  --bg-alt: #f2f2f0;
  --text: #1a1a1a;
  --muted: #888;
  --border: rgba(0,0,0,0.1);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 70px;
  transition: background 0.5s, border-color 0.5s, backdrop-filter 0.5s;
}

#navbar.scrolled {
  background: rgba(250,250,248,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 40px;
  flex: 1;
}

.nav-links a {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  transition: opacity 0.2s, color 0.5s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--text) !important;
}

#navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { opacity: 0.45; }

/* Logo */
.nav-logo {
  opacity: 0;
  transition: opacity 0.5s;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#navbar.scrolled .nav-logo {
  opacity: 1;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

/* Ações */
.nav-actions {
  display: flex; align-items: center;
  gap: 20px; flex: 1; justify-content: flex-end;
}

.whatsapp-btn {
  font-family: var(--font);
  font-size: 10px; letter-spacing: 0.2em; font-weight: 500;
  padding: 8px 18px; cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: white; text-decoration: none;
  transition: all 0.25s;
}
#navbar.scrolled .whatsapp-btn {
  border-color: rgba(0,0,0,0.5); color: var(--text);
}
.whatsapp-btn:hover {
  background: var(--text); border-color: var(--text); color: white;
}

.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; color: white; transition: opacity 0.2s, color 0.5s;
}
#navbar.scrolled .social-icon { color: var(--text); }
.social-icon:hover { opacity: 0.4; }

.social-icon:hover {
  opacity: 1;
  color: var(--text) !important;
} 

/* - MOBILE - */
.nav-mobile {
  display: none;
}

.menu-toggle {
  display: none;
}

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh; max-height: 560px;
  overflow: hidden;
}
#hero > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.hero-logo {
  width: clamp(160px, 24vw, 360px);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s cubic-bezier(0.4,0,0.2,1) 0.3s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── SEÇÃO UTILITÁRIOS ── */
.section-header { margin-bottom: 64px; text-align: center; }
.section-title {
  font-size: clamp(13px, 1.8vw, 15px);
  letter-spacing: 0.35em; font-weight: 400; color: var(--text);
}
.section-divider {
  width: 32px; height: 1px;
  background: var(--text); margin: 14px auto 0; opacity: 0.35;
}

/* ── GALERIA ── */
#galeria {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 40px 100px;
}

.project-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer; position: relative; overflow: hidden;
  transition: padding 0.4s cubic-bezier(0.4,0,0.2,1);
}
.project-row:first-child { border-top: 1px solid var(--border); }

/* Imagem de hover via CSS puro com custom property */

a.project-row {
  text-decoration: none;
  display: flex;
}

.project-row::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--img);
  background-size: cover; background-position: center;
  filter: brightness(0.5);
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 6s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
}
.project-row:hover::before { opacity: 1; transform: scale(1); }
.project-row:hover { padding: 44px 0; }

.project-row h2 {
  font-size: clamp(18px, 3vw, 38px);
  font-weight: 100; letter-spacing: 0.12em; color: var(--text);
  transition: color 0.3s; position: relative; z-index: 2;
  margin-left: 30px;
}

.project-row span {
  font-size: 10px; letter-spacing: 0.25em;
  font-weight: 500; color: var(--muted);
  transition: color 0.3s; position: relative; z-index: 2;
}
.project-row:hover h2 { color: white; }
.project-row:hover span { color: rgba(255,255,255,0.7); }

/* ── SOBRE ── */
#sobre {
  background: var(--bg-alt);
  padding: 100px 40px;
}
.sobre-inner { max-width: 760px; margin: 0 auto; }

.sobre-text {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400; line-height: 1.85; color: #555;
  text-align: center; max-width: 800px;
  margin: 0 auto 28px;
}
.stats {
  display: flex; justify-content: center;
  gap: 80px; margin-top: 64px;
}
.stat { text-align: center; }
.stat-number {
  font-size: clamp(25px, 3.5vw, 36px);
  font-weight: 300; letter-spacing: 0.05em; color: var(--text);
}
.stat-label {
  font-size: 10px; letter-spacing: 0.3em;
  font-weight: 500; color: #999; margin-top: 6px;
}

/* ── CONTATO ── */

a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}

#contato { padding: 100px 40px; }
.contato-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.contato-desc {
  font-size: 16px; color: #666; margin-bottom: 56px;
}
.contact-items {
  display: flex; justify-content: center; gap: 80px;
}
.contact-item { 
  text-align: center;
  color: var(--text);
  text-decoration: none; 
}

.contact-icon {
  width: 36px;
  height: 36px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  cursor: pointer;
  transition: all 0.25s;
}
.contact-icon svg {
  width: 32px;
  height: 32px;
  transition: stroke 0.25s, transform 0.25s;
}
.contact-icon:hover svg {
  stroke: var(--text);
  transform: scale(1.2);
}
.contact-label {
  font-size: 10px; letter-spacing: 0.25em;
  font-weight: 500; color: #999; margin-bottom: 8px;
}
.contact-value { font-size: 13px; color: var(--text); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  text-align: left;
}

footer p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #2d2d2d;
}

footer p:first-child {
  justify-self: start;
  text-align: left;
}

footer .developer {
  justify-self: end;
  text-align: right;
}

@media (max-width: 640px) {
  footer {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
    text-align: center;
  }

  footer p:first-child,
  footer .developer {
    justify-self: center;
    text-align: center;
  }
}

/* Botão WhatsApp mobile — escondido por padrão, visível só no mobile */
.nav-whatsapp-mobile { display: none; }

/* Nome do desenvolvedor no rodapé */
footer .developer a.developer-name,
footer .developer a.developer-name:visited,
footer .developer a.developer-name:hover,
footer .developer a.developer-name:focus {
  color: #000000;
  font-weight: 700;
  text-decoration: none;
}
