@font-face {
  font-family: 'Libra Serif Modern';
  src: url('../fonts/LibraSerifModern-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Libra Serif Modern';
  src: url('../fonts/LibraSerifModern-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Libra Serif Modern';
  src: url('../fonts/LibraSerifModern-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Libra Serif Modern';
  src: url('../fonts/LibraSerifModern-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

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

:root {
  --bg:          #e6d9c0;
  --card-bg:     #d9ccb0;
  --card-border: #c8b898;
  --brown-dark:  #4a2408;
  --brown-mid:   #7a3e12;
  --brown-light: #a06030;
  --dotted:      #b8a080;
  --header-h:    100px;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Libra Serif Modern', Georgia, serif;
  background: linear-gradient(to bottom left, #efe3c5 0%, #efe3c5 70%, #e3cd95 100%);
  background-attachment: fixed;
  color: var(--brown-dark);
  overflow-x: hidden;
}

/* ── HEADER FIXO ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom left, #efe3c5 0%, #efe3c5 70%, #e3cd95 100%);
  background-attachment: fixed;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.menu-btn {
  position: absolute;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--brown-dark);
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.menu-btn:hover {
  background: rgba(74, 36, 8, 0.08);
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ── LOGO ── */
.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ── SEPARADOR PONTILHADO ── */
.header-divider {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  border: none;
  border-top: 2px dotted var(--dotted);
}

/* ── ÁREA DE CONTEÚDO ── */
main {
  padding-top: calc(var(--header-h) + 16px);
  min-height: 100vh;
}

/* ── VIEW PRINCIPAL (scroll de cards) ── */
.view {
  display: none;
  padding: 16px 16px 40px;
  max-width: 680px;
  margin: 0 auto;
}

.view.active {
  display: block;
}

/* ── CARDS ── */
.card {
  background: #f0eacf;
  border: 2px solid #f0eacf;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(74, 36, 8, 0.12);
}

.card--contact {
  background: #e6d2a8;
  border-color: #f0eacf;
}

.card h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--brown-dark);
  text-align: center;
  margin-bottom: 28px;
}

.card p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--brown-dark);
  text-align: center;
  line-height: 1.55;
}

.card .products {
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  margin-top: 10px;
}

.card .quote {
  font-style: italic;
  color: var(--brown-mid);
  margin-top: 14px;
}

.card .contact-info {
  margin-top: 10px;
  font-size: clamp(0.9rem, 2.6vw, 1rem);
  font-weight: 600;
}

.card .contact-info a {
  color: var(--brown-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.card .contact-info a:hover {
  text-decoration: underline;
}

/* ── VIEW DE MENU ── */
#view-menu {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CARDS CLICÁVEIS (menu) ── */
.card-btn {
  font-family: inherit;
  background: #E7CBA2;
  border: 2px solid #f0eacf;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 28px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: block;
  box-shadow: 0 4px 16px rgba(74, 36, 8, 0.12);
  transition: background 0.2s, transform 0.1s;
}

.card-btn:hover {
  background: #d9c498;
  transform: translateY(-1px);
}

.card-btn:active {
  transform: translateY(0);
}

.card-btn h2 {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--brown-dark);
}

/* ── ACCORDION "Por que registrar?" ── */
.accordion-body {
  display: none;
  margin-top: 16px;
}

.accordion-body.open {
  display: block;
}

.accordion-intro {
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 14px;
}

.reason-list {
  list-style: none;
}

.reason-list li {
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 700;
  color: var(--brown-dark);
  padding: 12px 0;
  border-bottom: 1.5px solid var(--dotted);
  display: flex;
  gap: 10px;
}

.reason-list li:last-child {
  border-bottom: none;
}

.reason-list li .num {
  color: var(--brown-mid);
  min-width: 22px;
}

/* ── DESKTOP NAV ── */
.desktop-nav {
  display: none;
}

.desktop-dropdown {
  display: none;
}

/* ── TABLET ── */
@media (min-width: 768px) {
  :root { --header-h: 110px; }

  .logo {
    width: 90px;
    height: 90px;
  }

  .menu-btn {
    width: 58px;
    height: 58px;
  }

  .view {
    padding: 24px 24px 60px;
  }

  .card {
    padding: 36px 40px;
  }
}

/* ── DESKTOP (≥1024px) ── */
@media (min-width: 1024px) {
  :root { --header-h: 90px; }

  /* Header: logo à esquerda, nav à direita */
  header {
    justify-content: space-between;
    padding: 0 48px;
  }

  .logo {
    position: static;
    width: 72px;
    height: 72px;
  }

  /* Oculta hambúrguer, mostra nav */
  .menu-btn {
    display: none;
  }

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

  .nav-link {
    font-family: 'Libra Serif Modern', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown-dark);
    text-decoration: none;
    letter-spacing: 0.03em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--brown-mid);
    border-bottom-color: var(--brown-mid);
  }

  /* Dropdown "Por que registrar?" */
  .desktop-dropdown {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 98;
    background: linear-gradient(to bottom left, #efe3c5 0%, #efe3c5 70%, #e3cd95 100%);
    background-attachment: fixed;
    border-bottom: 2px dotted var(--dotted);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .desktop-dropdown.open {
    max-height: 500px;
    padding: 28px 0;
  }

  .dropdown-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 48px;
  }

  .reason-list--desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    margin-top: 0;
  }

  .reason-list--desktop li {
    font-size: 0.95rem;
  }

  /* Oculta view de menu mobile no desktop */
  #view-menu {
    display: none !important;
  }

  /* Grid de cards */
  .view {
    max-width: 1100px;
    padding: 36px 48px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
  }

  .view.active {
    display: grid;
  }

  .card--full {
    grid-column: 1 / -1;
  }

  .card {
    margin-bottom: 0;
  }
}
