/* ============================================
   HAUS STUDIO — LIGHT THEME
   Tipografia: Cinema Sunday + Manrope
   Paleta: Cream + Terracotta
   ============================================ */

/* === FONT FACE — Cinema Sunday === */
@font-face {
  font-family: 'Cinema Sunday';
  src: url('fonts/CinemaSunday.woff') format('woff'),
       url('fonts/CinemaSunday.ttf') format('truetype'),
       url('fonts/CinemaSunday.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Paleta clara */
  --bg-primary: #F6F4F0;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark: #1A1A1A;

  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #8A8A8A;

  --accent: #B85C38;
  --accent-light: #D4845F;
  --accent-dim: rgba(184, 92, 56, 0.10);
  --accent-glow: rgba(184, 92, 56, 0.25);

  --border: rgba(26, 26, 26, 0.10);
  --border-hover: rgba(26, 26, 26, 0.22);

  --font-display: 'Cinema Sunday', 'Georgia', serif;
  --font-body: 'Manrope', 'Helvetica Neue', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 72px;
  --container-max: 1320px;
  --container-pad: 24px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.text-accent { color: var(--accent); }


/* === CURSOR === */
.cursor-dot, .cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  border-radius: 50%;
  will-change: transform;
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(184, 92, 56, 0.45);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}

body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}


/* === LOADER === */
.loader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}

.loader-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 24px;
  text-align: center;
}

.loader-bar {
  width: 160px; height: 2px;
  background: var(--border);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}


/* === SCROLL PROGRESS === */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 1001;
  transition: width 0.1s linear;
}


/* === DOTS NAV === */
.section-dots {
  position: fixed;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0;
  transition: opacity 0.5s;
}

.section-dots.visible { opacity: 1; }

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  background: transparent;
  cursor: none;
  transition: all 0.4s var(--ease-out);
}

.dot::after {
  content: '';
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

.dot:hover::after { width: 20px; }

@media (max-width: 768px) {
  .section-dots { right: 12px; gap: 12px; }
  .dot { width: 8px; height: 8px; cursor: pointer; }
}


/* === HEADER === */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(246, 244, 240, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}

.header.hero-mode {
  /* Quando está sobre o hero escuro */
}

.header.hidden { transform: translateY(-100%); }

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: baseline; gap: 6px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  transition: color 0.4s;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Header fica branco sobre o hero */
.header.on-hero .logo-text { color: #fff; }
.header.on-hero .nav-link { color: rgba(255,255,255,0.7); }
.header.on-hero .nav-link:hover { color: #fff; }
.header.on-hero .nav-link--cta { color: var(--bg-dark); }
.header.on-hero .menu-line { background: #fff; }

.nav-desktop {
  display: flex; align-items: center; gap: 36px;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.nav-link--cta {
  color: #fff;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}

.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: var(--text-primary); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px; width: 28px; padding: 4px 0;
}

.menu-line {
  display: block; width: 100%; height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background 0.4s;
  transform-origin: center;
}

.menu-toggle.active .menu-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active .menu-line:nth-child(2) { opacity: 0; }
.menu-toggle.active .menu-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; cursor: pointer; }
}


/* === MOBILE MENU === */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 998;
  background: rgba(246, 244, 240, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-nav {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
  padding: 8px 0;
}

.mobile-nav-link:hover { color: var(--accent); transform: translateX(8px); }

.mobile-menu-footer {
  text-align: center;
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 2;
}


/* === SECTIONS === */
.section {
  position: relative;
  overflow: hidden;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 20px;
  position: relative;
  padding-left: 32px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 20px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 720px;
}

.section-header { margin-bottom: 64px; }


/* === HERO === */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: stretch;
}

.hero-video-wrap {
  position: absolute; inset: 0;
  z-index: 0; overflow: hidden;
}

.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.8s var(--ease-out);
}

.hero-video-wrap.loaded .hero-video { transform: scale(1); }

/* Fallback se vídeo não carregar */
.hero-video-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(184, 92, 56, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(184, 92, 56, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #2A2520 0%, #1A1714 100%);
  z-index: -1;
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 23, 20, 0.78) 0%, rgba(26, 23, 20, 0.45) 50%, rgba(26, 23, 20, 0.65) 100%);
  z-index: 1;
}

/* Decorativos do hero */
.hero-deco {
  position: absolute; z-index: 2; pointer-events: none;
}

.hero-deco--circle {
  width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  top: 10%; right: 8%;
  opacity: 0.4;
}

.hero-deco--line {
  width: 1px; height: 120px;
  background: linear-gradient(to bottom, rgba(184,92,56,0.3), transparent);
  bottom: 15%; left: 8%;
}

.hero-deco--dots {
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 12px 12px;
  top: 25%; right: 25%;
  opacity: 0.5;
}

.floating-el {
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-content {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  padding-top: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; height: 100%;
  color: #fff;
}

.hero-left { flex: 1; max-width: 680px; }

.hero-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
  display: block;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  letter-spacing: -0.02em;
}

.hero-title-line--accent {
  color: var(--accent-light);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero card */
.hero-right { flex-shrink: 0; width: 300px; }

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-card { animation: float 8s ease-in-out infinite; }

.hero-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-card-label {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent-light);
}

.hero-card-year {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.hero-card-list { display: flex; flex-direction: column; gap: 16px; }

.hero-card-list li {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}

.hero-card-list li:hover {
  transform: translateX(4px);
  color: var(--accent-light);
}

.hero-card-num {
  font-size: 0.68rem; font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 1s 1.5s both;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}


/* === BOTÕES === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 6px;
  transition: all 0.4s var(--ease-out);
  position: relative; overflow: hidden;
  cursor: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn--primary:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(184, 92, 56, 0.2);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Variante para sobre o hero (textos brancos) */
.btn--hero {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.btn--hero:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.btn-arrow {
  transition: transform 0.4s var(--ease-out);
  display: inline-block;
}

.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--large { padding: 18px 36px; font-size: 0.9rem; }

@media (max-width: 768px) {
  .btn { cursor: pointer; }
}


/* === REVEAL ANIMATIONS === */
.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-image {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal { transform: translateY(40px); filter: blur(4px); }
.reveal-left { transform: translateX(-60px); filter: blur(4px); }
.reveal-right { transform: translateX(60px); filter: blur(4px); }
.reveal-scale { transform: scale(0.92); filter: blur(6px); }
.reveal-image { clip-path: inset(100% 0 0 0); transform: scale(1.05); }

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0);
}

.reveal-image.active {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}


/* === SOBRE === */
.about {
  background: var(--bg-secondary);
  padding: 140px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex; gap: 40px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--accent);
  display: block; line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-right { position: relative; }

.about-image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background:
    linear-gradient(145deg, #E8E4DF 0%, #D6D0C8 40%, #C4BAB0 100%);
}

/* Textura decorativa quando a imagem não carrega */
.about-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(184, 92, 56, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(184, 92, 56, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.about-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.6s;
  position: relative;
  z-index: 1;
}

.about-image-wrap:hover .about-img {
  transform: scale(1.04);
  filter: brightness(1.05) contrast(1.02);
}

.about-image-frame {
  position: absolute; inset: -12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  pointer-events: none; z-index: -1;
}

.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

.about-badge-text {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  line-height: 1.3;
}


/* === PROJETOS === */
.projects {
  background: var(--bg-primary);
  padding: 140px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.project-image-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #E8E4DF 0%, #D6D0C8 50%, #C8C0B6 100%);
}

.project-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  position: relative;
  z-index: 1;
}

.project-card:hover .project-img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.project-overlay {
  position: absolute; inset: 0;
  background: rgba(26, 23, 20, 0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-view-btn {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 12px 24px;
  border-radius: 4px;
  transition: background 0.3s, border-color 0.3s;
}

.project-view-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.project-info { padding: 24px 28px 28px; }

.project-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}

.project-cat {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}

.project-year {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500;
  margin-bottom: 8px;
  transition: transform 0.4s var(--ease-out);
}

.project-card:hover .project-name { transform: translateX(6px); }

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* === SERVIÇOS === */
.services {
  background: var(--bg-secondary);
  padding: 140px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 28px;
  background: var(--bg-primary);
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
  position: relative; overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.service-card:hover {
  border-color: rgba(184, 92, 56, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.service-card:hover::after { opacity: 1; }

.service-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 400;
  color: var(--accent);
  opacity: 0.25;
  display: block; margin-bottom: 8px;
  transition: opacity 0.4s;
}

.service-card:hover .service-num { opacity: 0.55; }

.service-line {
  width: 32px; height: 1px;
  background: var(--accent);
  margin-bottom: 20px;
  transition: width 0.4s var(--ease-out);
}

.service-card:hover .service-line { width: 56px; }

.service-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 500;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative; z-index: 1;
}


/* === PROCESSO === */
.process {
  background: var(--bg-primary);
  padding: 140px 0;
}

.process-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.process-line-track {
  position: absolute;
  left: 15px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.process-line-fill {
  width: 100%; height: 0%;
  background: var(--accent);
  transition: height 0.5s var(--ease-out);
}

.process-step {
  display: flex; align-items: flex-start;
  gap: 36px; padding: 0 0 56px 0;
  position: relative;
}

.process-step:last-child { padding-bottom: 0; }

.process-dot {
  width: 31px; height: 31px; min-width: 31px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-primary);
  transition: border-color 0.4s, background 0.4s;
  position: relative; z-index: 1;
}

.process-step.active .process-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.process-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.5;
  display: block; margin-bottom: 6px;
}

.process-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* === CONTATO === */
.contact {
  background: var(--bg-secondary);
  padding: 160px 0;
  text-align: center;
  position: relative;
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative; z-index: 1;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 24px;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-buttons {
  display: flex; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}

.contact-deco {
  position: absolute;
  width: 400px; height: 400px;
  border: 1px solid var(--border);
  border-radius: 50%;
  top: 50%; right: -100px;
  transform: translateY(-50%);
  opacity: 0.3;
  pointer-events: none;
}


/* === FOOTER === */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 400;
  letter-spacing: 0.1em;
  color: #fff;
  display: block; margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.footer-links a, .footer-location {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 2;
  transition: color 0.3s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.back-to-top {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.back-to-top:hover {
  border-color: var(--accent-light);
  background: rgba(184, 92, 56, 0.15);
  transform: translateY(-2px);
}


/* === RESPONSIVIDADE === */

/* --- TABLET --- */
@media (max-width: 1024px) {
  :root { --container-pad: 32px; }

  .hero-content { flex-direction: column; justify-content: center; }
  .hero-right { width: 100%; max-width: 380px; }
  .hero-card { animation: none; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-right { max-width: 400px; }

  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  :root { --header-h: 56px; --container-pad: 20px; }

  .about, .projects, .services, .process { padding: 72px 0; }
  .contact { padding: 80px 0; }

  /* ---- HERO MOBILE OTIMIZADO ----
     Best practices aplicadas:
     - Hero ocupa 100vh mas conteúdo compacto e acima do fold
     - Card lateral escondido (reduz scroll desnecessário)
     - Apenas 1 CTA principal visível, secundário menor
     - Decorativos escondidos
     - Tipografia reduzida mas legível
     - Scroll indicator escondido
  */

  .hero {
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height, evita barra do browser */
  }

  .hero-content {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: calc(var(--header-h) + 16px) var(--container-pad) 32px;
    height: 100vh;
    height: 100dvh;
  }

  .hero-left {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }

  /* Esconde o card de serviços no mobile — muito conteúdo para 1 tela */
  .hero-right {
    display: none;
  }

  /* Tag menor */
  .hero-tag {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
  }

  /* Título compacto mas impactante */
  .hero-title {
    margin-bottom: 16px;
  }

  .hero-title-line {
    font-size: clamp(1.7rem, 7.5vw, 2.6rem);
    line-height: 1.08;
  }

  /* Subtítulo mais curto */
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 100%;
    /* Limita a 3 linhas no mobile para manter compacto */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Botões lado a lado, compactos */
  .hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .hero-buttons .btn {
    padding: 12px 20px;
    font-size: 0.8rem;
    min-height: 44px; /* tappable area mínimo */
  }

  .hero-buttons .btn-arrow {
    font-size: 0.9rem;
  }

  /* Esconde decorativos no mobile */
  .hero-deco { display: none; }

  /* Scroll indicator mais discreto */
  .hero-scroll-indicator {
    bottom: 16px;
    font-size: 0.6rem;
  }

  .hero-scroll-indicator .scroll-line {
    height: 24px;
  }

  /* ---- FIM HERO MOBILE ---- */

  /* Dots menores e mais discretos */
  .section-dots {
    right: 8px;
    gap: 10px;
  }

  .section-dots .dot {
    width: 7px;
    height: 7px;
    cursor: pointer;
  }

  /* About */
  .about-stats { flex-wrap: wrap; gap: 24px; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Contato */
  .contact-buttons { flex-direction: column; align-items: stretch; }
  .btn--large { width: 100%; justify-content: center; }

  /* Contato deco */
  .contact-deco { display: none; }

  /* Animações mais leves */
  .reveal, .reveal-left, .reveal-right { filter: none !important; }
  .reveal { transform: translateY(24px); }
  .reveal-left { transform: translateX(-30px); }
  .reveal-right { transform: translateX(30px); }

  /* Section titles menores */
  .section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .section-header { margin-bottom: 40px; }
}

/* --- MOBILE SMALL --- */
@media (max-width: 480px) {
  .hero-title-line {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .hero-subtitle {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }

  /* Botões empilham se forem muito largos */
  .hero-buttons {
    flex-wrap: wrap;
  }

  .section-title { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
  .stat-num { font-size: 1.8rem; }

  /* Esconde dots em telas muito pequenas */
  .section-dots { display: none; }
}

/* --- MOBILE LANDSCAPE / SHORT SCREENS --- */
@media (max-height: 600px) and (max-width: 900px) {
  .hero-content {
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: 16px;
  }

  .hero-tag { display: none; }

  .hero-title-line {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .hero-subtitle {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    margin-bottom: 16px;
  }

  .hero-scroll-indicator { display: none; }
}


/* === KEYFRAMES === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
