@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --bg: #f0ede8;
  --surface: #ffffff;
  --surface-soft: #f8f6f3;
  --text: #454545;
  --title: #1a1a1a;
  --muted: #8a8a8a;
  --border: #e0dbd5;
  --accent: #ff6600;
  --accent-dark: #d95500;
  --accent-light: #fff4ed;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 32px rgba(0, 0, 0, 0.09);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

button {
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.container {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

/* TOPBAR */
.topbar {
  background: #ffffff;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(255, 102, 0, 0.08);
}

.topbar-content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand-logo {
  width: auto;
  max-width: 240px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f1f1f;
}

.topbar-title {
  display: none;
}

/* LAYOUT */
.page {
  padding: 40px 0 72px;
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.content-area {
  min-width: 0;
}

/* SIDEBAR */
.sidebar {
  position: sticky;
  top: calc(78px + 40px);
}

.sidebar-nav {
  background: #181818;
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}

.nav-group {
  border-bottom: 0;
  padding-bottom: 0;
}

.nav-group + .nav-group {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
  padding-top: 4px;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #909090;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-group-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #d0d0d0;
}

.nav-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-group-title i {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #707070;
  transition: var(--transition);
}

.nav-arrow {
  font-size: 0.9rem;
  color: #555;
  transition: transform var(--transition);
}

.nav-group.is-open .nav-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav-group.is-open .nav-group-toggle {
  color: #e8e8e8;
}

.nav-group.is-open .nav-group-title {
  font-weight: 600;
}

.nav-group.is-open .nav-group-title i {
  background: rgba(255, 102, 0, 0.2);
  color: var(--accent);
}

.nav-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  margin-left: 12px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-group.is-open .nav-submenu {
  margin-top: 4px;
}

.nav-submenu-link {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  color: #787878;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 0.875rem;
}

.nav-submenu-link + .nav-submenu-link {
  margin-top: 2px;
}

.nav-submenu-link:hover {
  color: #d0d0d0;
  background: rgba(255, 255, 255, 0.05);
}

.nav-submenu-link.is-active {
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 102, 0, 0.12);
}

/* CONTENT PANELS */
.doc-panel {
  display: none;
}

.doc-panel.is-active {
  display: block;
  animation: fadeIn 0.28s ease;
}

.content-card {
  background: var(--surface);
  padding: 32px 32px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0ece7;
}

.section-bar {
  width: 4px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  flex-shrink: 0;
}

.section-heading h1 {
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--title);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.content-card p {
  font-size: 0.975rem;
  color: #5e5e5e;
  line-height: 1.75;
}

.content-card > strong {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.content-card p strong {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.content-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

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

.content-block + .content-block {
  margin-top: 24px;
}

.content-block h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--title);
}

.doc-list {
  padding-left: 18px;
  margin-top: 10px;
}

.doc-list li {
  margin-bottom: 8px;
}

.image-box {
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.image-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

ul {
  list-style-position: inside;
  color: #5e5e5e;
}

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

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
  }

  .section-heading h1 {
    font-size: 1.2rem;
  }
}

@media (max-width: 900px) {
  .topbar-content {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 24px, 1400px);
  }

  .page {
    padding-top: 20px;
  }

  .content-card {
    padding: 20px;
    border-radius: 12px;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 16px;
  }

  .section-bar {
    height: 26px;
  }

  .section-heading h1 {
    font-size: 1.1rem;
  }

  .nav-submenu-link {
    padding: 10px 12px;
  }

  .topbar-title {
    font-size: 1rem;
  }
}

/* SPEC ITEMS (gabarito) */
.spec-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.spec-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-meta {
  background: var(--surface-soft);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.spec-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--title);
}

.spec-dims {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-dim {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.spec-dim i {
  font-size: 0.78rem;
}

.spec-location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.spec-location i {
  color: var(--accent);
  font-size: 0.88rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.spec-item .image-box {
  margin-bottom: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

/* CONTACT BOX */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent-light);
  border: 1px solid rgba(255, 102, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a.contact-item:hover {
  background: rgba(255, 102, 0, 0.12);
  border-color: var(--accent);
}

.contact-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--title);
}

a.contact-item .contact-value {
  color: var(--accent-dark);
}

@media (max-width: 600px) {
  .contact-box {
    grid-template-columns: 1fr;
  }
}
