:root {
  --black: #0e0d0c;
  --black-2: #161412;
  --black-3: #1e1b18;
  --cream: #f3ede3;
  --cream-dim: #cfc6b6;
  --gold: #c9a24a;
  --gold-light: #e6c778;
  --wood: #a9673a;
  --wood-dark: #7a4a29;
  --line: rgba(243, 237, 227, 0.1);
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --ff-serif: 'Cormorant Garamond', serif;
  --ff-sans: 'Poppins', sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--ff-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

img { max-width: 100%; display: block; }

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.eyebrow {
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }

h1, h2, h3 { font-family: var(--ff-serif); font-weight: 600; color: var(--cream); }
.center { text-align: center; }
.sub { color: var(--cream-dim); max-width: 560px; margin-left: auto; margin-right: auto; margin-bottom: 50px; }

em { font-style: italic; color: var(--gold-light); }
.accent { color: var(--gold-light); }
.accent-wood { color: var(--wood); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1409;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(201,162,74,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201,162,74,0.35); }
.btn-outline {
  border-color: var(--line);
  color: var(--cream);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-ghost {
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 10px 22px;
  font-size: 0.85rem;
}
.btn-ghost:hover { background: var(--gold); color: #1a1409; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; margin: 28px 0 14px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14,13,12,0);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(14,13,12,0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; font-family: var(--ff-serif); font-size: 1.15rem; letter-spacing: 0.03em; line-height:1.1; }
.logo-text small { font-family: var(--ff-sans); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); }

.nav { display: flex; gap: 34px; }
.nav a { font-size: 0.92rem; color: var(--cream-dim); position: relative; transition: color 0.25s; }
.nav a:hover { color: var(--gold-light); }
.nav a::after {
  content:'';
  position: absolute; left:0; bottom:-6px;
  width:0; height:1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--cream); transition: 0.3s; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(201,162,74,0.16), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(169,103,58,0.18), transparent 55%),
    linear-gradient(160deg, #0e0d0c 0%, #161412 55%, #1c1712 100%);
  z-index: -1;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: luminosity;
}
.hero-bg::after {
  content:'';
  position: absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(14,13,12,0.9) 22%, rgba(14,13,12,0.45) 62%, rgba(14,13,12,0.18) 100%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 60px);
}
.hero-inner { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--cream-dim);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.hero-stats strong { display:block; font-family: var(--ff-serif); font-size: 1.4rem; color: var(--gold-light); }
.hero-stats span { font-size: 0.82rem; color: var(--cream-dim); }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold-light);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* Sobre */
.sobre { padding: 130px 0; background: var(--black-2); position: relative; }
.sobre-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.sobre-frame { position: relative; }
.sobre-photo {
  aspect-ratio: 4/5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,162,74,0.35), transparent 55%),
    linear-gradient(150deg, #2a2016, #14110d 70%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.sobre-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
/* Retrato principal do Ruan */
.sobre-photo-main img { filter: saturate(1) contrast(1.03); object-position: center center; }
.sobre-photo-main::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,8,4,0.78) 0%, rgba(10,8,4,0.15) 38%, transparent 60%);
  pointer-events: none;
}
.sobre-name-tag {
  position: absolute; left: 26px; bottom: 24px; z-index: 2;
  display: flex; flex-direction: column;
}
.sobre-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; font-weight: 600; color: var(--cream);
  line-height: 1.1;
}
.sobre-role {
  font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-light); margin-top: 4px;
}
/* Foto secundária (mesa/branding) sobreposta */
.sobre-detail {
  position: absolute;
  bottom: -28px; right: -28px;
  width: 46%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--black-2);
  box-shadow: var(--shadow);
}
.sobre-detail img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95) contrast(1.05); }
.icon-circle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  flex-shrink: 0;
}
.icon-circle svg { width: 19px; height: 19px; }
.sobre-content h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 20px; line-height: 1.25; }
.lead { color: var(--cream-dim); font-size: 1.05rem; margin-bottom: 34px; }
.sobre-list { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-bottom: 30px; }
.sobre-list li { display: flex; gap: 16px; align-items: flex-start; }
.sobre-list strong { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.sobre-list p { color: var(--cream-dim); font-size: 0.92rem; }
.ig-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity 0.3s;
}
.ig-link:hover { opacity: 0.75; }

/* Serviços */
.servicos { padding: 130px 0; }
.servicos h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 60px; }
.servicos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.servico-card {
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 30px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.servico-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: linear-gradient(160deg, #221d16, #1a1712);
}
.servico-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.servico-icon svg { width: 22px; height: 22px; }
.servico-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.servico-card p { color: var(--cream-dim); font-size: 0.92rem; }

/* Portfolio */
.portfolio { padding: 130px 0; background: var(--black-2); }
.portfolio h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black-3);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.portfolio-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.portfolio-media {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(201,162,74,0.14), transparent 70%);
}
.portfolio-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-media img { transform: scale(1.06); }
.portfolio-media-contain {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #201a12, #0e0d0c 75%);
}
.portfolio-media-contain img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
.portfolio-card:hover .portfolio-media-contain img { transform: none; }
.portfolio-media-empty {
  height: 200px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--gold-light);
  background: linear-gradient(160deg, rgba(201,162,74,0.10), transparent 70%);
}
.portfolio-media-empty svg { width: 40px; height: 40px; opacity: 0.85; }
.portfolio-media-empty span { font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--cream-dim); }
.portfolio-info { padding: 22px 24px 26px; }
.portfolio-info h3 { font-size: 1.15rem; margin-bottom: 6px; }
.portfolio-info p { color: var(--cream-dim); font-size: 0.85rem; }
.portfolio-clients {
  text-align: center;
  margin-top: 46px;
  color: var(--cream-dim);
  font-size: 0.9rem;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}
.portfolio-clients strong { color: var(--gold-light); font-weight: 500; }

/* Depoimentos */
.depoimentos { padding: 130px 0; }
.depoimentos h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 60px; }
.depoimentos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
blockquote {
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}
blockquote::before {
  content: '“';
  font-family: var(--ff-serif);
  font-size: 3.4rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
blockquote p { font-size: 0.98rem; color: var(--cream-dim); margin-bottom: 18px; font-style: italic; }
blockquote footer { font-size: 0.82rem; color: var(--gold-light); letter-spacing: 0.05em; }

/* Contato */
.contato {
  padding: 150px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,162,74,0.15), transparent 60%),
    var(--black);
  position: relative;
}
.contato h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.contato .sub { color: var(--cream-dim); max-width: 620px; margin: 0 auto 54px; }

.contato-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
  max-width: 940px;
  margin: 0 auto;
  text-align: left;
}

/* Formulário de triagem */
.triagem {
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 32px;
}
.triagem h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--gold-light); margin-bottom: 6px; }
.triagem-hint { color: var(--cream-dim); font-size: 0.86rem; margin-bottom: 22px; }
.triagem label { display: block; font-size: 0.82rem; color: var(--cream); margin: 16px 0 7px; letter-spacing: 0.3px; }
.triagem label .opc { color: var(--cream-dim); font-weight: 300; }
.triagem input,
.triagem select,
.triagem textarea {
  width: 100%;
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.25s ease;
}
.triagem input::placeholder,
.triagem textarea::placeholder { color: rgba(224,214,196,0.4); }
.triagem input:focus,
.triagem select:focus,
.triagem textarea:focus { outline: none; border-color: var(--gold); }
.triagem select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c9a24a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.triagem textarea { resize: vertical; min-height: 74px; }
.triagem .btn { width: 100%; justify-content: center; margin-top: 26px; }

/* Contato direto */
.contato-direto { display: flex; flex-direction: column; justify-content: center; }
.ou-divisor { display: none; }
.direto-lead { color: var(--cream-dim); font-size: 0.92rem; margin-bottom: 24px; }
.direto-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.direto-item:hover { border-color: var(--gold); transform: translateX(4px); }
.direto-txt { display: flex; flex-direction: column; }
.direto-txt strong { color: var(--cream); font-size: 0.98rem; }
.direto-txt small { color: var(--cream-dim); font-size: 0.84rem; }
.direto-local { margin-top: 8px; font-size: 0.82rem; color: var(--gold-light); letter-spacing: 1px; text-transform: uppercase; }

@media (max-width: 820px) {
  .contato-grid { grid-template-columns: 1fr; gap: 28px; max-width: 480px; }
  .ou-divisor { display: flex; align-items: center; gap: 14px; color: var(--cream-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
  .ou-divisor::before, .ou-divisor::after { content: ""; flex: 1; height: 1px; background: var(--line); }
}

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-inner p { font-size: 0.82rem; color: var(--cream-dim); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-frame { max-width: 460px; margin: 0 auto 30px; }
  .sobre-detail { right: 0; bottom: -22px; width: 42%; }
  .servicos-grid, .portfolio-grid, .depoimentos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .servicos-grid, .portfolio-grid, .depoimentos-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .sobre-name { font-size: 1.6rem; }
}

/* Mobile nav open state */
.nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 78%;
  max-width: 320px;
  background: var(--black-2);
  padding: 110px 34px;
  gap: 26px;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  z-index: 999;
}
