:root {
  --vinho-dark: #2b0509;
  --vinho-header: #36080c;
  --vinho-main: #57131a;
  --vinho-accent: #7b1820;
  --vinho-card: #450a10;
  --gold: #d7a23c;
  --gold-light: #ead5aa;
  --cream: #f9f4ed;
  --cream-alt: #fffaf3;
  --ink: #231816;
  --ink-light: #43576a;
  --blue: #173b59;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }

.shell { max-width: 1180px; margin: auto; padding: 0 34px; }

/* ============================================================
   HEADER & UNIFIED SHELL
   ============================================================ */
.header-main {
  background: linear-gradient(90deg, #2b0509 0%, #440a0f 50%, #2b0509 100%);
  border-bottom: 1px solid var(--gold);
  position: relative;
  z-index: 100;
}

.header-container {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link { display: flex; align-items: center; }
.logo-light { width: 110px; height: 106px; object-fit: contain; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  color: #f6eadb;
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s;
}

.nav a:hover, .nav a.active {
  color: var(--gold-light);
}

.nav a.active::after, .nav a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 6px;
  background: linear-gradient(110deg, #740b19, #9c1326);
  color: white;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(215, 162, 60, 0.25);
}

.cta-icon { width: 22px; height: 22px; stroke: var(--gold-light); flex-shrink: 0; }
.cta-text-group { display: flex; flex-direction: column; text-align: left; }
.cta-title { font-size: 13px; font-weight: 700; line-height: 1.2; color: #fff; }
.cta-subtitle { font-size: 9px; letter-spacing: 0.12em; color: var(--gold-light); font-weight: 700; }

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 26px;
  cursor: pointer;
}

/* ============================================================
   HERO SECTION V1 (Approved Design)
   ============================================================ */
.hero-v1 {
  background: var(--cream);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #efe4d5;
}

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

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

.hero-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--vinho-main);
  text-transform: uppercase;
}

.gold-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 52px;
  line-height: 1.05;
  color: var(--vinho-main);
  font-weight: 400;
  margin: 0;
}

.hero-description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-light);
  margin: 4px 0 12px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.cta-primary {
  background: linear-gradient(110deg, #740b19, #9c1326);
  color: white;
  border: 1px solid var(--gold);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(116, 11, 25, 0.3);
}

.cta-secondary {
  background: transparent;
  color: var(--vinho-main);
  border: 1px solid var(--vinho-main);
}

.cta-secondary:hover {
  background: rgba(87, 19, 26, 0.05);
  transform: translateY(-2px);
}

.cta-gold {
  background: linear-gradient(110deg, #d7a23c, #b98862);
  color: #2b0509;
  border: 1px solid #f4d88d;
  font-weight: 800;
}

.cta-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(215, 162, 60, 0.4);
}

.cta-outline-vinho {
  background: transparent;
  color: var(--vinho-main);
  border: 1px solid var(--vinho-main);
  padding: 10px 20px;
  font-size: 13px;
}

.cta-outline-vinho:hover {
  background: var(--vinho-main);
  color: white;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid #e8ddcf;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--vinho-main);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(215, 162, 60, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-icon svg { width: 18px; height: 18px; stroke: var(--vinho-main); }

/* Hero Right Visual Column */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-device-wrapper {
  position: relative;
  width: 100%;
  max-width: 530px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(43, 5, 9, 0.18);
  border: 1px solid var(--gold-light);
}

.hero-device-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-side-banner {
  position: absolute;
  top: -15px;
  right: -15px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.side-pill {
  background: var(--vinho-dark);
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.side-card {
  background: linear-gradient(135deg, #440a0f, #740b19);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.side-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--gold-light); }
.side-sub { font-size: 12px; font-weight: 800; font-family: Georgia, serif; }

/* ============================================================
   SECTIONS & CARDS
   ============================================================ */
.section { padding: 64px 0; background: var(--cream-alt); border-bottom: 1px solid #efe4d5; }

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--vinho-main);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-tag-light { color: var(--gold-light); }
.section-tag-light .gold-line { background: linear-gradient(90deg, var(--gold), transparent); }

.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 38px;
  color: var(--vinho-main);
  font-weight: 400;
  margin: 6px 0 10px;
}

.section-subtag { font-size: 15px; color: var(--ink-light); margin: 0; }
.lead { font-size: 17px; line-height: 1.6; max-width: 760px; color: var(--ink-light); margin-top: 6px; }

.link-arrow {
  color: var(--vinho-main);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.link-arrow:hover { text-decoration: underline; color: var(--vinho-accent); }

/* Grid Cards (Áreas) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-v1 {
  background: var(--cream);
  border: 1px solid #e8ddcf;
  border-radius: 8px;
  padding: 32px 26px;
  box-shadow: 0 6px 20px rgba(67, 32, 20, 0.05);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.card-v1:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(67, 32, 20, 0.1);
}

.card-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  background: rgba(234, 213, 170, 0.25);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card-icon-circle svg { width: 32px; height: 32px; stroke: var(--vinho-main); }

.card-v1 h3 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--vinho-main);
  margin: 0 0 10px;
}

.card-v1 p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-light);
  margin: 0 0 20px;
  flex-grow: 1;
}

.card-link {
  color: var(--vinho-main);
  font-weight: 700;
  font-size: 14px;
}

.card-link:hover { color: var(--gold); text-decoration: underline; }

/* ============================================================
   POR QUE ESCOLHER (DARK VINHO SECTION)
   ============================================================ */
.section-dark-vinho {
  background: linear-gradient(135deg, #2b0509 0%, #57131a 50%, #36080c 100%);
  color: white;
  padding: 68px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.dark-section-title {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  color: #fff4e4;
  margin: 10px 0 40px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: rgba(255, 250, 243, 0.05);
  border: 1px solid rgba(215, 162, 60, 0.3);
  border-radius: 8px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: all 0.2s;
}

.pillar-card:hover {
  background: rgba(255, 250, 243, 0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(215, 162, 60, 0.15);
  display: grid;
  place-items: center;
}

.pillar-icon svg { width: 26px; height: 26px; stroke: var(--gold-light); }

.pillar-card h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #f6eadb;
  margin: 0;
}

/* ============================================================
   ARTICLES SECTION
   ============================================================ */
.section-articles { background: var(--cream); }

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

.article-card {
  background: var(--cream-alt);
  border: 1px solid #e8ddcf;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(67, 32, 20, 0.05);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(67, 32, 20, 0.1);
}

.article-img-wrapper {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #2b0509;
}

.article-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-img-wrapper img { transform: scale(1.04); }

.article-content {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.article-category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--vinho-main);
  text-transform: uppercase;
}

.article-content h3 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--vinho-main);
  margin: 0;
  flex-grow: 1;
}

.article-link {
  color: var(--vinho-main);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.article-link:hover { color: var(--gold); text-decoration: underline; }

/* ============================================================
   CTA BAND
   ============================================================ */
.band-cta-v1 {
  background: linear-gradient(90deg, #36080c, #650d18, #36080c);
  color: white;
  padding: 46px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.band-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.band-text h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: #fff4e4;
  margin: 0 0 6px;
}

.band-text p {
  font-size: 16px;
  color: #f4e6d6;
  margin: 0;
}

/* ============================================================
   FOOTER V1
   ============================================================ */
.footer-v1 {
  background: var(--vinho-dark);
  color: #f6e6d0;
  border-top: 1px solid var(--gold);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 180px 1fr 1.1fr 1.4fr;
  gap: 35px;
  padding: 52px 34px;
}

.logo-footer { width: 145px; height: 142px; object-fit: contain; }

.footer-col h4 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--gold-light);
  margin: 0 0 16px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: #f5e6d8; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }

.footer-slogan {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1.3;
  margin: 0 0 20px;
}

.footer-social-section { display: flex; flex-direction: column; gap: 10px; }
.footer-social-section span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #d4b595; }
.footer-social-icons { display: flex; gap: 12px; align-items: center; }

.social-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: #f5e6d8; transition: color 0.2s; }
.social-icon svg { width: 22px; height: 22px; fill: currentColor; }
.social-icon.whatsapp:hover { color: #25D366; }
.social-icon.instagram:hover { color: #E4405F; }
.social-icon.linkedin:hover { color: #0A66C2; }
.social-icon.facebook:hover { color: #1877F2; }
.social-icon.youtube:hover { color: #FF0000; }

.footer-middle-strip {
  border-top: 1px solid rgba(215, 162, 60, 0.35);
  background: rgba(0,0,0,0.15);
  padding: 14px 0;
  font-size: 12px;
  color: #e4c49d;
}

.strip-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.strip-pillars { font-weight: 700; letter-spacing: 0.08em; }

.footer-bottom-bar {
  border-top: 1px solid rgba(215, 162, 60, 0.2);
  padding: 16px 0;
  font-size: 12px;
  color: #cbb292;
}

.bottom-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ============================================================
   PAGEHERO & INTERNAL PAGES COMPONENT STYLES
   ============================================================ */
.pagehero { padding: 52px 0 58px; position: relative; }
.breadcrumb { font-size: 12px; color: #7a5550; margin-bottom: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pagehero h1 { font-family: Georgia, serif; font-size: 48px; line-height: 1.05; margin: 10px 0 16px; color: var(--vinho-main); font-weight: 400; }
.pagehero p { font-size: 18px; line-height: 1.55; color: var(--ink-light); max-width: 760px; margin: 0; }

.eyebrow { letter-spacing: .24em; color: var(--vinho-main); font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* About Page Profile */
.about-profile { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 64px; align-items: center; margin-bottom: 42px; }
.about-copy { min-width: 0; }
.lawyer-id { margin-top: 26px; padding-left: 18px; border-left: 2px solid var(--gold); display: flex; flex-direction: column; gap: 5px; }
.lawyer-id strong { font-family: Georgia, serif; font-size: 23px; font-weight: 400; color: var(--vinho-main); }
.lawyer-id span { font-size: 13px; letter-spacing: .06em; color: #6f5550; font-weight: 700; }
.about-photo { margin: 0; justify-self: end; width: min(100%, 390px); border: 1px solid var(--gold-light); padding: 8px; background: #fffaf3; box-shadow: 0 14px 38px rgba(67, 32, 20, .09); }
.about-photo img { display: block; width: 100%; height: auto; }

/* FAQ & Article Styling */
.faq details { border-bottom: 1px solid #decfbd; padding: 20px 0; }
.faq summary { font-family: Georgia, serif; font-size: 22px; color: var(--vinho-main); cursor: pointer; font-weight: 500; }
.faq p { line-height: 1.6; color: var(--ink-light); margin-top: 10px; font-size: 15px; }
.article-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.article-grid article p { line-height: 1.8; color: #374c5d; font-size: 16px; }
.sidebox { border: 1px solid #e4d4c0; padding: 26px; border-radius: 7px; background: white; height: max-content; box-shadow: 0 6px 20px rgba(67,32,20,.04); }

/* Atendimento Digital Wizard */
.contact-entry { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 50px; align-items: start; }
.digital-intake { max-width: 780px; margin: 0 auto; border: 1px solid #e4d4c0; border-radius: 7px; background: #fffaf3; padding: 34px; box-shadow: 0 8px 30px rgba(67, 32, 20, .05); }
.intake-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 30px; }
.intake-progress span { height: 3px; background: #decfbd; border-radius: 2px; }
.intake-progress span.active { background: var(--gold); }
.intake-panel h2 { font-family: Georgia, serif; font-weight: 400; color: var(--vinho-main); font-size: 34px; margin: 10px 0 24px; }
.intake-panel h3 { font-family: Georgia, serif; font-weight: 400; color: var(--vinho-main); font-size: 23px; margin: 28px 0 14px; }
.intake-panel label { display: block; font-size: 13px; font-weight: 700; color: var(--vinho-main); margin: 15px 0 7px; }
.intake-panel input, .intake-panel textarea { width: 100%; border: 1px solid #d9c8b5; border-radius: 5px; background: #fff; padding: 13px 14px; font: 16px Arial, Helvetica, sans-serif; color: #231816; }
.intake-panel textarea { resize: vertical; }
.intake-note { font-size: 13px; line-height: 1.55; color: #6f5550; margin: 12px 0 22px; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { border: 1px solid #d9c8b5; background: #fffaf3; color: var(--vinho-main); border-radius: 5px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.choice.selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: #fdf6ec; }

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 900px) {
  .shell { padding: 0 20px; }
  .header-container { height: 90px; }
  .nav { display: none; }
  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--vinho-dark);
    padding: 20px 30px;
    border-bottom: 1px solid var(--gold);
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .mobile-nav-toggle { display: block; }
  
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-title { font-size: 38px; }
  .hero-visual { align-items: center; }
  .hero-side-banner { display: none; }
  
  .cards-grid, .pillars-grid, .articles-grid, .footer-top-grid {
    grid-template-columns: 1fr;
  }
  
  .band-container { flex-direction: column; align-items: flex-start; }
  .strip-content, .bottom-content { flex-direction: column; align-items: flex-start; gap: 10px; }
  .about-profile, .article-grid, .contact-entry { grid-template-columns: 1fr; }
}
