/* ═══════════════════════════════════════════
   AREAS.CSS — Empresa Júnior PUC-Rio
   ═══════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

/* ── VARIABLES ── */
:root {
  --black:        #191818;
  --white:        #FAFAFA;
  --roxoClaro:    #9B20ED;
  --roxoEscuro:   #3A0C57;
  --verdeClaro:   #06A576;
  --verdeEscuro:  #017369;
  --amarelo:      #FFAA08;
  --azul:         #2D34EB;
  --azulEscuro:   #161869;
  --laranja:      #FF5C05;
  --vermelho:     #FF1911;
  --LaranjaEscuro:#B92700;
}

body {
  font-family: 'Telegraf', 'Segoe UI', system-ui, sans-serif;
  color: var(--black);
  background: var(--white);
}

/* ═══════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════ */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 2.4vw, 42px);
  width: 100%;
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 30px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.nav-group.left  { justify-content: flex-start; }
.nav-group.right { justify-content: flex-end; }

.nav-item {
  position: relative;
  padding-bottom: 12px;
}

.nav-pill,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(150px, 11vw, 195px);
  height: 56px;
  padding: 0 34px;
  border-radius: 999px;
  background: #181919;
  color: #fff;
  text-decoration: none;
  font-size: clamp(18px, 1.2vw, 22px);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: background 0.25s ease, transform 0.2s ease;
}

.nav-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

.nav-pill:hover::before { opacity: 1; }
.nav-pill:hover         { color: var(--white); transform: translateY(-1px); }

.nav-group.left .nav-item:first-child  .nav-pill::before { background: linear-gradient(135deg, var(--roxoClaro), var(--roxoEscuro)); }
.nav-group.left .nav-item:nth-child(2) .nav-pill::before { background: linear-gradient(135deg, #ff6a3d, var(--LaranjaEscuro)); }
.nav-pill[href="/areas"]::before                         { background: linear-gradient(135deg, var(--azul), var(--azulEscuro)); }
.nav-pill[href="/blog"]::before                          { background: linear-gradient(135deg, var(--verdeClaro), var(--verdeEscuro)); }

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: clamp(100px, 7vw, 140px);
  width: auto;
  object-fit: contain;
  display: block;
}

/* Dropdown */
.has-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 290px;
  background: rgba(25, 24, 24, 0.96);
  border-radius: 0 16px 16px 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 999;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  padding: 4px 0;
}

.dropdown-menu a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.dropdown-right {
  left: auto;
  right: 0;
  border-radius: 16px 0 16px 16px;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  justify-self: end;
  z-index: 120;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--black);
  border-radius: 999px;
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 92px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  background: rgba(25, 24, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.mobile-menu.active { display: block; }

.mobile-item,
.mobile-menu > a {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu > a:last-child,
.mobile-item:last-child { border-bottom: none; }

.mobile-link {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.mobile-submenu {
  display: none;
  padding: 0 0 10px 14px;
}

.mobile-submenu a {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  padding: 7px 0;
}

.mobile-item.active .mobile-submenu { display: block; }

.mobile-submenu-toggle span {
  font-size: 22px;
  transition: transform 0.2s ease;
}

.mobile-item.active .mobile-submenu-toggle span { transform: rotate(45deg); }

@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
  }

  .desktop-nav  { display: none !important; }
  .logo         { justify-content: flex-start; }
  .logo img     { height: 64px; }
  .menu-toggle  { display: inline-flex; }

  .mobile-menu {
    top: 92px;
    left: 24px;
    right: 24px;
  }
}

@media (max-width: 768px) {
  .topbar {
    top: 18px;
    padding: 0 16px;
  }

  .logo img { height: 52px; }

  .mobile-menu {
    top: 82px;
    left: 16px;
    right: 16px;
  }
}

.Hero-areas {
  width: 100%;
  background: var(--white);
  display: flex;
  justify-content: flex-start;        /* era space-between */
  align-items: center;                /* era flex-start */
  gap: clamp(2rem, 5vw, 6rem);
  min-height: unset;                  /* remove altura forçada */
  overflow: visible;
  position: relative;
  z-index: 1;
  padding: clamp(100px, 12vw, 140px) clamp(2rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
}

.Hero-areas-left {
  flex: 0 1 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 0;                         /* era padding duplo — removido */
}

.Hero-areas-form {
  flex: 0 0 clamp(300px, 34%, 420px);
  margin: 0 0 0 auto;   /* ← empurra para a direita */
  align-self: flex-start;
  margin-top: 20px;
}

.Areas-section {
  background: var(--white);
  padding: 3rem clamp(1.2rem, 4vw, 3rem) 5rem;  /* menos espaço no topo */
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.Hero-areas-title {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 900;
  color: var(--black);
  line-height: 0.93;
  letter-spacing: -0.03em;
}

.Hero-areas-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: #444;
  line-height: 1.56;
  font-weight: 500;
  max-width: 480px;
}

.Form-title {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  text-align: center;
  line-height: 1.05;
  margin-bottom: 0.9rem;
}

.Form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.Form-fields input,
.Form-fields select,
.Form-fields textarea {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  padding: 0.72rem 0.92rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.86rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}

.Form-fields input:focus,
.Form-fields select:focus,
.Form-fields textarea:focus {
  border-color: rgba(255, 170, 8, 0.75);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.Form-fields input::placeholder,
.Form-fields textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.Form-fields select {
  color: rgba(255, 255, 255, 0.50);
  cursor: pointer;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.09);
  background-image:
    linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(135deg, #ffffff 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.Form-fields select option { background: #2d2d2d; color: var(--white); }

.Form-fields textarea {
  resize: none;
  min-height: 74px;
}

.Form-submit {
  background: linear-gradient(180deg, #ffc21d 0%, var(--amarelo) 100%);
  color: var(--black);
  font-family: inherit;
  font-weight: 900;
  font-size: 0.9rem;
  border: none;
  border-radius: 12px;
  padding: 0.84rem 1.2rem;
  cursor: pointer;
  width: 60%;
  margin: 0.6rem auto 0;
  display: block;
  box-shadow: 0 10px 22px rgba(255, 170, 8, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.Form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 170, 8, 0.38);
  filter: brightness(1.04);
}

.Areas-container {
  width: min(96%, 1240px);
  margin: 0 auto;
}

.Areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Card */
.Area-card {
  border-radius: 22px 0 22px 0;
  padding: 2rem 1.6rem 1.8rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  min-height: 192px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.Area-card:hover            { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.22); }
.Area-card:hover .card-icon { transform: scale(1.1); }

.Area-card.color-audiovisual { background: var(--amarelo); }
.Area-card.color-design      { background: var(--laranja); }
.Area-card.color-financas    { background: var(--verdeClaro); }
.Area-card.color-marketing   { background: var(--vermelho); }
.Area-card.color-processos   { background: var(--azul); }
.Area-card.color-web         { background: var(--roxoClaro); }

.card-name {
  font-size: clamp(1.3rem, 1.65vw, 1.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.14);
  white-space: nowrap;
}

.card-teaser {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  font-weight: 500;
  margin-top: 0.5rem;
}

.card-icon {
  align-self: flex-end;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.28s ease;
  margin-top: 1rem;
  flex-shrink: 0;
}

.card-icon svg {
  width: 15px; height: 15px;
  fill: none; stroke: #fff;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.Area-card.active {
  outline: 3px solid rgba(255, 255, 255, 0.50);
  outline-offset: 2px;
}

/* ── Expanded row ── */
.Area-expanded {
  display: none;
  grid-column: 1 / -1;
  border-radius: 22px 0 22px 0;
  overflow: hidden;
  position: relative;
}

.Area-expanded.visible {
  display: flex;
  animation: expandIn 0.36s cubic-bezier(0.34, 1.28, 0.64, 1) both;
}

@keyframes expandIn {
  from { opacity: 0; transform: scaleY(0.82); transform-origin: top; }
  to   { opacity: 1; transform: scaleY(1); }
}

.Area-expanded-inner {
  display: flex;
  width: 100%;
  min-height: 205px;
  border-radius: 22px 0 22px 0;
  overflow: hidden;
}

.Area-expanded-color {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1.8rem 1.6rem;
}

.Area-expanded-color .card-name-big {
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  white-space: nowrap;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.Area-expanded-text {
  flex: 1;
  background: var(--white);
  padding: 2.2rem 2.6rem;
  display: flex; flex-direction: column;
  justify-content: center; gap: 0.7rem;
}

.Area-expanded-text h3 {
  font-size: 1.15rem; font-weight: 900;
  color: var(--black); letter-spacing: -0.02em;
}

.Area-expanded-text p {
  font-size: 0.91rem; color: #333;
  line-height: 1.68; font-weight: 400;
  max-width: 580px;
}

.Area-expanded-close {
  position: absolute; top: 0.9rem; right: 1rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,0.12); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10;
}

.Area-expanded-close:hover { background: rgba(0,0,0,0.24); }

.Area-expanded-close svg {
  width: 14px; height: 14px;
  fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round;
}

/* ── RESPONSIVE ── */

@media (max-width: 1024px) {
  .Areas-grid { grid-template-columns: repeat(2, 1fr); }

  .Hero-areas {
    padding: clamp(100px, 12vw, 140px) clamp(1.5rem, 3vw, 3rem) 3rem;
    gap: 1.5rem;
  }

  .Hero-areas-form {
    flex: 0 0 clamp(280px, 40%, 380px);
  }
}

@media (max-width: 768px) {
  .Hero-areas {
    flex-direction: column;
    padding: 90px 1.2rem 2rem;
    gap: 1.5rem;
    min-height: unset;
  }

  .Hero-areas-left {
    padding: 0;
    flex: unset;
    width: 100%;
  }

  .Hero-areas-title {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }

  .Hero-areas-subtitle {
    font-size: 1rem;
  }

  .Hero-areas-form {
    flex: unset;
    width: 100%;
    margin: 0;
  }

  .Areas-section {
    padding: 3rem 1rem 4rem;
  }

  .Areas-grid { grid-template-columns: 1fr; }

  .Area-expanded-inner {
    flex-direction: column;
  }

  .Area-expanded-color {
    flex: unset;
    width: 100%;
    padding: 1.2rem 1.4rem;
  }

  .Area-expanded-text {
    padding: 1.4rem;
  }
}

@media (max-width: 480px) {
  .Hero-areas {
    padding: 80px 1rem 1.5rem;
  }

  .Hero-areas-title {
    font-size: 2.4rem;
  }

  .Area-card {
    min-height: 160px;
    padding: 1.4rem 1.2rem;
  }
}