:root {
  --cream: #F5F0E8;
  --cream-dark: #EAE3D2;
  --cream-mid: #F0EAD8;
  --gray-light: #C8C2B8;
  --gray-mid: #8A8278;
  --gray-dark: #3D3A36;
  --black: #1A1815;
  --black-soft: #232120;
  --gold: #8B7355;
  --gold-light: #C4A882;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--black);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 1.3rem; letter-spacing: 0.05em;
  color: var(--black); text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-dark); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }
.nav-cta {
  background: var(--black); color: var(--cream) !important;
  padding: 0.5rem 1.2rem; border-radius: 2px;
}
.nav-cta:hover { background: var(--gray-dark); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 5% 6rem 7%;
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--black); margin-bottom: 1.5rem;
}
h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1rem; line-height: 1.7; color: var(--gray-dark);
  max-width: 440px; margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--black); color: var(--cream);
  padding: 0.9rem 2rem; font-family: 'Outfit', sans-serif;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; border: none;
  cursor: pointer; transition: all 0.3s; display: inline-block; border-radius: 2px;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--black);
  padding: 0.9rem 2rem; font-family: 'Outfit', sans-serif;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; border: 2px solid var(--black);
  cursor: pointer; transition: all 0.3s; display: inline-block; border-radius: 2px;
}
.btn-outline:hover { background: var(--black); color: var(--cream); }

.hero-right {
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(139,115,85,0.04) 40px, rgba(139,115,85,0.04) 41px);
  background-color: var(--cream-dark);
}
.profile-frame {
  position: relative; z-index: 2;
  width: 380px; height: 480px;
}
.profile-frame::before {
  content: ''; position: absolute; top: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold-light); border-radius: 2px; z-index: 0;
}
.profile-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 2px; position: relative; z-index: 1;
  filter: grayscale(15%) contrast(1.05);
}
.hero-stat-badge {
  position: absolute; bottom: 3rem; left: 3rem; z-index: 3;
  background: var(--black); color: var(--cream);
  padding: 1.2rem 1.5rem; border-radius: 2px; min-width: 140px;
}
.badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300; line-height: 1; color: var(--gold-light);
}
.badge-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.3rem; opacity: 0.7; }

/* ── SECTIONS SHARED ── */
section { padding: 6rem 7%; }
.section-eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300; line-height: 1.1; color: var(--black); margin-bottom: 1rem;
}
h2 em { font-style: italic; color: var(--gold); }
.section-lead { font-size: 1rem; line-height: 1.7; color: var(--gray-dark); max-width: 560px; }

/* ── SOBRE ── */
#sobre {
  background: var(--black-soft); color: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
#sobre h2 { color: var(--cream); }
#sobre h2 em { color: var(--gold-light); }
#sobre .section-eyebrow { color: var(--gold-light); }
#sobre .section-eyebrow::before { background: var(--gold-light); }
.about-text { font-size: 1rem; line-height: 1.8; color: rgba(245,240,232,0.75); margin-bottom: 2rem; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-tag {
  background: rgba(245,240,232,0.06); border: 1px solid rgba(245,240,232,0.15);
  color: rgba(245,240,232,0.8); padding: 0.4rem 0.9rem;
  font-size: 0.78rem; letter-spacing: 0.08em; border-radius: 1px; transition: all 0.2s;
}
.skill-tag:hover { background: var(--gold); border-color: var(--gold); color: var(--cream); }
.exp-item { border-left: 2px solid rgba(196,168,130,0.3); padding-left: 1.5rem; margin-bottom: 2rem; transition: border-color 0.2s; }
.exp-item:hover { border-color: var(--gold-light); }
.exp-domain {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 0.3rem;
}
.exp-desc { font-size: 0.9rem; color: rgba(245,240,232,0.65); line-height: 1.6; }

/* ── SERVIÇOS ── */
#servicos { background: var(--cream-mid); }
.services-header { max-width: 540px; margin-bottom: 4rem; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; background: var(--gray-light);
  border: 1.5px solid var(--gray-light);
}
.service-card {
  background: var(--cream); padding: 2.5rem 2rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px; background: var(--gold); transition: width 0.4s;
}
.service-card:hover::before { width: 100%; }
.service-card:hover { background: var(--black); }
.service-card:hover .service-num { color: rgba(245,240,232,0.08); }
.service-card:hover .service-title { color: var(--gold-light); }
.service-card:hover .service-desc { color: rgba(245,240,232,0.65); }
.service-card:hover .service-link { color: var(--gold-light); }
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 300; color: var(--cream-dark);
  line-height: 1; margin-bottom: 1.5rem; transition: color 0.3s;
}
.service-title {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--black); margin-bottom: 0.75rem; transition: color 0.3s;
}
.service-desc { font-size: 0.88rem; line-height: 1.65; color: var(--gray-dark); transition: color 0.3s; }
.service-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.25rem; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; transition: gap 0.2s;
}
.service-link:hover { gap: 0.75rem; }

/* ── PROJETOS ── */
#projetos { background: var(--cream); }
.projects-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 4rem; flex-wrap: wrap; gap: 1.5rem;
}
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.project-card {
  border: 1px solid var(--cream-dark); border-radius: 2px;
  overflow: hidden; transition: all 0.35s; background: var(--cream);
}
.project-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(26,24,21,0.1);
  transform: translateY(-4px);
}
.project-thumb {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: var(--cream-dark); position: relative;
}
.project-thumb iframe {
  width: 150%; height: 150%; border: none;
  transform: scale(0.67); transform-origin: top left;
  pointer-events: none;
}
.thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(26,24,21,0.3));
  z-index: 1;
}
.proj-category {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--black); color: var(--cream);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 1px;
}
.project-body { padding: 1.75rem; }
.project-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400; color: var(--black); margin-bottom: 0.5rem;
}
.project-desc { font-size: 0.88rem; line-height: 1.6; color: var(--gray-dark); margin-bottom: 1.25rem; }
.project-footer { display: flex; align-items: center; justify-content: space-between; }
.project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.project-tag {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-mid); border: 1px solid var(--cream-dark); padding: 0.25rem 0.6rem;
}
.project-arrow {
  width: 36px; height: 36px; border: 1px solid var(--black); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--black); font-size: 1rem;
  transition: all 0.2s; flex-shrink: 0;
}
.project-arrow:hover { background: var(--black); color: var(--cream); }

/* ── CTA BANNER ── */
#cta-banner {
  background: var(--black); color: var(--cream);
  padding: 5rem 7%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap; position: relative; overflow: hidden;
}
#cta-banner::before {
  content: 'SANTIAGO';
  font-family: 'Cormorant Garamond', serif;
  font-size: 12rem; font-weight: 300; color: rgba(255,255,255,0.03);
  position: absolute; right: -1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; letter-spacing: 0.1em; white-space: nowrap;
}
.cta-banner-text h2 { color: var(--cream); font-size: clamp(2rem, 3.5vw, 3rem); }
.cta-banner-text h2 em { color: var(--gold-light); }
.cta-banner-text p { color: rgba(245,240,232,0.65); margin-top: 0.75rem; max-width: 480px; }
.cta-banner-actions { display: flex; flex-direction: column; gap: 1rem; flex-shrink: 0; }
.btn-gold {
  background: var(--gold); color: var(--cream);
  padding: 1rem 2.5rem; font-family: 'Outfit', sans-serif;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; border: none;
  cursor: pointer; transition: all 0.3s; text-align: center; border-radius: 2px;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-cream-outline {
  background: transparent; color: var(--cream);
  padding: 1rem 2.5rem; font-family: 'Outfit', sans-serif;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(245,240,232,0.3);
  cursor: pointer; transition: all 0.3s; text-align: center; border-radius: 2px;
}
.btn-cream-outline:hover { border-color: var(--cream); }

/* ── EBOOK ── */
#ebook {
  background: var(--cream-mid);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
.ebook-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.ebook-mockup {
  width: 280px; height: 380px;
  background: var(--black); border-radius: 4px;
  box-shadow: 24px 24px 60px rgba(26,24,21,0.2), -8px -8px 0 var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem; text-align: center; position: relative; overflow: hidden;
}
.ebook-mockup::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.ebook-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }
.ebook-mockup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 300; color: var(--cream); line-height: 1.3; margin-bottom: 0.75rem;
}
.ebook-mockup-sub { font-size: 0.75rem; color: rgba(245,240,232,0.5); letter-spacing: 0.1em; text-transform: uppercase; }
.ebook-badge {
  position: absolute; top: -1rem; right: -1rem;
  background: var(--gold); color: var(--cream);
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; text-align: center; line-height: 1.3;
  box-shadow: 0 4px 12px rgba(139,115,85,0.4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1/-1; }
label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-dark);
}
input, select {
  background: var(--cream); border: 1.5px solid var(--cream-dark);
  padding: 0.75rem 1rem; font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; color: var(--black); border-radius: 2px;
  transition: border-color 0.2s; outline: none;
  -webkit-appearance: none; appearance: none;
}
input:focus, select:focus { border-color: var(--gold); }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem; }
.form-checkbox input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px; padding: 0;
  margin-top: 0.1rem; border: 1.5px solid var(--gray-light);
  border-radius: 1px; cursor: pointer; accent-color: var(--gold);
}
.form-checkbox label {
  font-size: 0.82rem; letter-spacing: 0; text-transform: none;
  font-weight: 300; cursor: pointer; line-height: 1.5;
}
.btn-block { width: 100%; padding: 1rem; font-size: 0.9rem; }
.form-success {
  display: none; text-align: center; padding: 3rem 2rem;
  border: 2px solid var(--gold); border-radius: 2px; background: var(--cream);
}
.form-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; margin-bottom: 0.75rem;
}
.form-success p { color: var(--gray-dark); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── FOOTER ── */
footer {
  background: var(--black); color: var(--cream); padding: 5rem 7% 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; margin-bottom: 4rem;
}
.footer-brand h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 300; margin-bottom: 1rem; color: var(--cream);
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(245,240,232,0.5); max-width: 300px; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-btn {
  width: 40px; height: 40px; border: 1px solid rgba(245,240,232,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(245,240,232,0.6); font-size: 1rem; transition: all 0.2s;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a {
  font-size: 0.88rem; color: rgba(245,240,232,0.55); text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.footer-contact-item .icon { width: 16px; flex-shrink: 0; margin-top: 0.15rem; opacity: 0.5; font-size: 0.9rem; }
.footer-contact-item span, .footer-contact-item a {
  font-size: 0.88rem; color: rgba(245,240,232,0.55); text-decoration: none; transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.08);
  padding-top: 2rem; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(245,240,232,0.3); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 400px; }
  .profile-frame { width: 260px; height: 340px; }
  #sobre, #ebook { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  nav .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
