/* ==========================================================================
   Rocha's Capital — Design System
   ========================================================================== */

:root {
  /* Brand colors (Manual de Identidade Visual) */
  --bordo: #4a0303;
  --bordo-2: #6e0c0c;
  --bordo-soft: #8a1c1c;
  --ink: #241010;

  --gold-1: #f9e8b1;
  --gold-2: #cf9e4d;
  --gold-3: #83612e;
  --gold-4: #956414;
  --gold-solid: #b6893f;

  --cream: #fdf9f2;
  --cream-2: #f7efdf;
  --white: #ffffff;
  --line: #e9ddc7;

  --gold-gradient: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-4) 100%);
  --bordo-gradient: linear-gradient(160deg, #5c0404 0%, var(--bordo) 45%, #350202 100%);

  --font-display: 'Cormorant Garamond', 'Cambria', Georgia, 'Times New Roman', serif;
  --font-body: 'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow-soft: 0 20px 50px -25px rgba(74, 3, 3, 0.35);
  --shadow-card: 0 10px 30px -15px rgba(36, 16, 16, 0.18);

  --nav-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--bordo);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--cream2 { background: var(--cream-2); }
.section--bordo { background: var(--bordo-gradient); color: var(--gold-1); }
.section--bordo h2, .section--bordo h3 { color: var(--gold-1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-4);
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 26px; height: 1px; background: var(--gold-3); }
.section--bordo .eyebrow { color: var(--gold-1); }
.section--bordo .eyebrow::before, .section--bordo .eyebrow::after { background: var(--gold-2); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: #5a4640; font-size: 1.05rem; }
.section--bordo .section-head p { color: #e9d9b8; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
  /* own stacking context: prevents Safari from bleeding the navbar's backdrop-filter blur onto the button */
  isolation: isolate;
  transform: translateZ(0);
}
.btn:hover { transform: translateY(-2px) translateZ(0); }

.btn-gold {
  background: var(--gold-gradient);
  background-clip: padding-box;
  color: var(--bordo);
  box-shadow: 0 10px 22px -12px rgba(149, 100, 20, 0.55);
}
.btn-gold:hover { box-shadow: 0 14px 28px -12px rgba(149, 100, 20, 0.6); }

.btn-outline {
  background: transparent;
  border-color: rgba(74,3,3,.35);
  color: var(--bordo);
}
.btn-outline:hover { background: rgba(74,3,3,.06); }

.section--bordo .btn-outline,
.hero .btn-outline { border-color: rgba(249,232,177,.55); color: var(--gold-1); }
.section--bordo .btn-outline:hover,
.hero .btn-outline:hover { background: rgba(249,232,177,.1); }

.btn-whatsapp {
  background: var(--bordo);
  color: var(--gold-1);
  box-shadow: 0 14px 30px -16px rgba(74,3,3,.6);
}
.btn-whatsapp:hover { background: var(--bordo-2); }

.btn-block { width: 100%; }
.btn-sm { padding: 11px 22px; font-size: .85rem; }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.navbar.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(74,3,3,.5); }

.navbar__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink);
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--bordo); border-color: var(--gold-4); }

.navbar__actions { display: flex; align-items: center; gap: 14px; }

.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--bordo); border-radius: 2px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bordo-gradient);
  color: var(--white);
  padding: 100px 0 110px;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(120,14,14,.62) 0%, rgba(96,8,8,.58) 45%, rgba(56,4,4,.68) 100%);
  pointer-events: none;
}
.hero__mark {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  opacity: .16;
  pointer-events: none;
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; }
.hero--split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero--video .hero__content { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold-2); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold-1); }
.hero__lead {
  font-size: 1.15rem;
  color: #f4e6c9;
  font-weight: 600;
  max-width: 560px;
}
.hero__text { color: #e6d3ba; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.hero__panel {
  position: relative;
  background: linear-gradient(160deg, rgba(249,232,177,.14), rgba(249,232,177,.03));
  border: 1px solid rgba(249,232,177,.25);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
}
.hero__panel img { margin: 0 auto 20px; width: 150px; }
.hero__panel-label { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-1); font-weight: 700; }

.hero--page { padding: 52px 0 60px; text-align: center; }
.hero--page .hero__inner { max-width: 780px; margin: 0 auto; }
.hero--page p { color: #e6d3ba; font-size: 1.08rem; }

/* ---- Cards / Solutions ---- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 30px;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 45px -20px rgba(74,3,3,.28); }

.icon-circle {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--bordo-gradient);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-1);
  margin-bottom: 20px;
}
.icon-circle svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { color: #5a4640; font-size: .96rem; margin-bottom: 0; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-4); }
.card__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.card__list li { font-size: .92rem; color: #5a4640; padding-left: 22px; position: relative; }
.card__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-gradient); }

.solution-block {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 52px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.solution-block:last-of-type { border-bottom: none; }
.solution-block:nth-of-type(even) .solution-block__visual { order: 2; }
.solution-block__visual {
  aspect-ratio: 4/3;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 22px;
  background: var(--bordo-gradient);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.solution-block__visual svg { width: 34%; height: 34%; color: var(--gold-1); opacity: .9; }
.solution-block__visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(249,232,177,.18), transparent 55%);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.tag { font-size: .82rem; font-weight: 600; padding: 7px 16px; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--line); color: var(--bordo); }

/* ---- Partners / badges ---- */
.partners-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.partner-badge {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 22px 14px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--bordo);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  line-height: 1.25;
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner-badge:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.partner-badge img {
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
}
.partner-badge img.is-large {
  max-height: 64px;
}

.seals-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.seal-badge {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--bordo);
}
.seal-badge svg { width: 22px; height: 22px; color: var(--gold-4); flex-shrink: 0; }
.seal-img {
  height: 54px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 8px 14px;
}

.asset-note {
  text-align: center;
  font-size: .78rem;
  color: #9a8a80;
  margin-top: 18px;
  font-style: italic;
}

/* ---- Checklist ---- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.02rem; }
.checklist .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--bordo);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.checklist .check svg { width: 15px; height: 15px; }

/* ---- Values grid ---- */
.value-card { text-align: left; }
.value-card .icon-circle { background: var(--gold-gradient); color: var(--bordo); }

/* ---- About split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.portrait-frame {
  aspect-ratio: 3/4;
  border-radius: 22px;
  background: var(--bordo-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.portrait-frame__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.portrait-frame__initials {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold-1);
  border: 1.5px solid rgba(249,232,177,.4);
  border-radius: 50%;
  width: 170px; height: 170px;
  display: flex; align-items: center; justify-content: center;
}
.portrait-frame__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  color: var(--gold-1);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: .04em;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(30,1,1,.88), rgba(30,1,1,0));
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--bordo-gradient);
  border-radius: 26px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--gold-1);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(249,232,177,.14), transparent 50%);
}
.cta-band__content { position: relative; z-index: 1; max-width: 640px; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: #e9d9b8; margin: 0; }
.cta-band__action { position: relative; z-index: 1; flex-shrink: 0; }

/* ---- Footer ---- */
.footer { background: #2c0202; color: #e9d9b8; padding: 72px 0 28px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(249,232,177,.15);
}
.footer__brand img { height: 44px; margin-bottom: 16px; }
.footer__brand p { color: #cbb489; font-size: .92rem; max-width: 280px; }
.footer h4 { color: var(--gold-1); font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer a { color: #d8c39c; font-size: .94rem; transition: color .2s ease; }
.footer a:hover { color: var(--gold-1); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: #d8c39c; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--gold-2); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(249,232,177,.3);
  display: flex; align-items: center; justify-content: center;
}
.footer__social svg { width: 16px; height: 16px; }
.footer__certs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(249,232,177,.15);
}
.footer__certs-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b39a72;
  margin-right: 6px;
}
.footer__certs img {
  height: 40px;
  width: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 12px;
}
.footer__certs .seal-badge {
  background: var(--white);
  padding: 10px 18px;
  border: none;
}
.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: #b39a72;
}
.footer__bottom a { color: #b39a72; }
.footer__bottom a:hover { color: var(--gold-1); }

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 44px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 700; color: var(--bordo); letter-spacing: .02em; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: .96rem;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-4);
  box-shadow: 0 0 0 3px rgba(149,100,20,.14);
}
.form-note { font-size: .82rem; color: #9a8a80; margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #f2ecd8;
  border: 1px solid var(--gold-3);
  color: var(--gold-4);
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
}
.form-success.is-visible { display: block; }

.contact-channels { display: grid; gap: 18px; margin-top: 8px; }
.channel-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.channel-card .icon-circle { width: 46px; height: 46px; margin-bottom: 0; flex-shrink: 0; }
.channel-card .icon-circle svg { width: 20px; height: 20px; }
.channel-card h4 { margin: 0 0 4px; color: var(--bordo); font-family: var(--font-body); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.channel-card p { margin: 0; color: #5a4640; font-size: .96rem; }
.channel-card a.value { color: var(--gold-4); font-weight: 700; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .partners-row { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .hero--split { grid-template-columns: 1fr; }
  .hero__panel { max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .solution-block { grid-template-columns: 1fr; }
  .solution-block:nth-of-type(even) .solution-block__visual { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; text-align: center; padding: 48px 32px; }
}

@media (max-width: 760px) {
  .nav-links, .navbar__actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .navbar.is-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta-mobile { display: block; margin-top: 8px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .partners-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .section { padding: 64px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
