/* =========================================
   LAYOUT — Header, Hero, Seções, Footer
   Estrutura de página: grids, containers,
   posicionamentos. Sem cores decorativas
   nem componentes isolados.
   ========================================= */

/* ── HEADER ── */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,245,240,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), padding var(--transition);
  padding: 18px 0;
}
#header.scrolled {
  border-color: var(--clr-border);
  padding: 12px 0;
  background: rgba(245,245,240,0.98);
}
#header.menu-open {
  background: transparent !important;
  border-color: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

/* ── LOGO ── */
.logo        { display: flex; align-items: center; text-decoration: none; }
.logo-img    { height: 44px; width: auto; display: block; filter: brightness(0) saturate(100%); }

/* ── NAV DESKTOP ── */
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-family: var(--fonte-corpo);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--clr-muted); text-decoration: none;
  padding: 7px 12px; border-radius: 100px;
  transition: color var(--transition), background var(--transition);
}
nav a:hover { color: var(--clr-dark); background: var(--clr-bg2); }

.nav-cta {
  background: var(--clr-dark) !important;
  color: var(--clr-bg) !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  margin-left: 8px;
  border-radius: 100px !important;
  position: relative; overflow: hidden;
}
.nav-cta::after {
  content: ''; position: absolute; inset: 0;
  background: var(--clr-accent); border-radius: 100px;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav-cta:hover                { color: var(--clr-dark) !important; }
.nav-cta:hover::after         { transform: translateX(0); }
.nav-cta span                 { position: relative; z-index: 1; }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
  position: relative; z-index: 200;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--clr-dark); transition: var(--transition); }
.hamburger.open span                 { background: #f5f5f0; }
.hamburger.open span:nth-child(1)    { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2)    { opacity: 0; }
.hamburger.open span:nth-child(3)    { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none; flex-direction: column;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  background: var(--clr-dark);
  z-index: 150;
  padding: 32px 40px 56px;
  justify-content: flex-end; align-items: flex-start;
  box-sizing: border-box;
}
.mobile-nav.open { display: flex; }
.mobile-link {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: #f5f5f0; text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: block;
}
.mobile-link:hover, .mobile-link:active { color: var(--clr-accent); padding-left: 10px; }
.mobile-link:last-child                 { border-bottom: none; }
.mobile-link-cta { margin-top: 20px; color: var(--clr-accent) !important; border-bottom: none !important; }

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 88px;
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: var(--clr-accent);
  border-radius: 50%;
  top: -200px; right: -200px;
  opacity: 0.18;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--clr-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--clr-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.hero-section > .container {
  position: relative; z-index: 1;
  padding-top: 60px; padding-bottom: 100px;
  width: 100%;
}
.hero-content { max-width: 680px; margin-left: 0; margin-right: auto; }

.hero-tag {
  display: inline-flex; align-items: center;
  font-family: var(--fonte-corpo);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clr-muted);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 32px;
}
.hero-title {
  font-family: var(--fonte-titulo);
  font-size: 48px; font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  background: var(--clr-accent);
  padding: 0 10px 4px;
  border-radius: 10px;
  display: inline-block;
}
.hero-sub {
  font-size: 15px; font-weight: 400;
  color: var(--clr-muted);
  max-width: 460px; line-height: 1.7;
  margin-bottom: 44px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1;
}
.hero-scroll span { font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clr-muted); }
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--clr-dark), transparent);
}

/* ── SOBRE ── */
#sobre { background: var(--clr-dark); padding: 120px 0; }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sobre-left .section-tag {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
}
.sobre-text {
  margin-top: 0;
  color: rgba(255,255,255,0.5);
  font-size: 15px; line-height: 1.85;
  max-width: 520px;
}
.sobre-text p + p     { margin-top: 16px; }
.sobre-text strong    { color: rgba(255,255,255,0.85); font-weight: 500; }
.sobre-right          { position: relative; display: flex; align-items: center; }

/* ── SERVIÇOS ── */
#servicos             { background: var(--clr-bg); padding: 100px 0 0; }
.servicos-header-wrap { padding-bottom: 48px; }

/* ── PORTFOLIO ── */
#portfolio            { background: var(--clr-bg2); padding: 120px 0; }
.portfolio-header     { margin-bottom: 56px; }
.portfolio-grid       { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.portfolio-cta        { text-align: center; margin-top: 56px; }

/* ── CONTATO ── */
#contato { background: var(--clr-bg); padding: 120px 0; }
.contato-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: start;
}
.contato-left .section-title { margin-bottom: 20px; }
.contato-desc { font-size: 15px; color: var(--clr-muted); line-height: 1.85; max-width: 420px; }

/* ── FOOTER ── */
footer {
  background: var(--clr-dark2);
  border-top: 1px solid var(--clr-border-dark);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2a2a2a;
  align-items: start;
}
.footer-col-label {
  font-family: var(--fonte-corpo);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #f5f5f0; margin-bottom: 20px; display: block;
}
.footer-social-list       { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-social-list li a  { font-size: 15px; color: #6a6a6a; transition: color var(--transition); }
.footer-social-list li a:hover { color: var(--clr-accent); }
.footer-col-nav ul        { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col-nav ul li a   { font-size: 15px; color: #6a6a6a; transition: color var(--transition); }
.footer-col-nav ul li a:hover { color: #f5f5f0; }
.footer-col-solucoes ul   { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col-solucoes ul li { font-size: 15px; color: #6a6a6a; }
.footer-local-text        { font-size: 15px; color: #6a6a6a; line-height: 1.6; margin-bottom: 4px; }
.footer-local-sub         { font-size: 15px; color: #4a4a4a; line-height: 1.7; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: #4a4a4a; letter-spacing: 0.02em; }
.footer-back-top {
  font-size: 13px; color: #6a6a6a;
  letter-spacing: 0.06em;
  border: 1px solid #333; padding: 8px 16px; border-radius: 100px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer-back-top:hover {
  color: var(--clr-dark);
  border-color: var(--clr-accent);
  background: var(--clr-accent);
}
