/* ==========================================================================
   Hub Inova+ — Design System
   Shared stylesheet, reused across all site pages (Home, Cultura Hub,
   Soluções, Insights, etc). Page-specific rules live in css/home.css
   (or the equivalent <page>.css) and should be linked AFTER this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font faces
   -------------------------------------------------------------------------- */

/*
  Orbiter is the brand typeface (licensed). Font files will be supplied by
  the client later — drop them into assets/fonts/ with these exact names
  and this block activates automatically, no other change needed.
*/
/*
@font-face {
  font-family: 'Orbiter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Orbiter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbiter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/Orbiter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbiter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/Orbiter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbiter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Orbiter-Bold.woff2') format('woff2');
}
*/

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand blues (strict — must match exactly) */
  --azul-hub: #0051FF;       /* primary / CTAs */
  --azul-hover: #0040CB;     /* hover state for primary blue */
  --azul-mid: #002E87;       /* mid-dark backgrounds */
  --azul-navy: #001337;      /* deep navy — dark hero / footer / body text */
  --azul-tint: #9FC0FF;      /* light blue accent text on dark backgrounds */

  /* Neutrals (as found in the approved Home design) */
  --branco: #FFFFFF;
  --bg-light: #F5F7FC;       /* light section background */
  --bg-white: #FFFFFF;
  --borda: #E3E9F7;          /* hairline borders on light backgrounds */
  --borda-forte: #C9D5EF;    /* stronger border, used on buttons/inputs */
  --texto-corpo: #3B4A6B;    /* body copy on light backgrounds */
  --texto-suave: #7A88A6;    /* muted meta text (dates, captions) */

  /* Typography */
  --font-base: 'Orbiter', 'Poppins', system-ui, sans-serif;

  /* Font weights, named for clarity per the brand's usage rules */
  --fw-regular: 400;  /* body text */
  --fw-medium: 500;   /* nav / labels / buttons */
  --fw-semibold: 600; /* subheadings / CTAs */
  --fw-bold: 700;     /* headings */

  /* Layout */
  --container-max: 1152px;
  --container-pad: 24px;
  --header-height: 76px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 2px 10px rgba(0, 19, 55, 0.04);
  --shadow-card-hover: 0 18px 44px rgba(0, 19, 55, 0.12);
  --shadow-dropdown: 0 18px 40px rgba(0, 19, 55, 0.12);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   3. Reset / base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: var(--fw-regular);
  color: var(--azul-navy);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--azul-hub); text-decoration: none; }
a:hover { color: var(--azul-hover); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section { padding: 96px 0; }

@keyframes hubFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Focus visibility — keep for accessibility, everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--azul-hub);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. Typography scale
   -------------------------------------------------------------------------- */

.eyebrow {
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azul-hub);
}

.eyebrow--on-dark { color: var(--azul-tint); }

h1, .h1 {
  font-size: 60px;
  line-height: 1.04;
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
}

h2, .h2 {
  font-size: 40px;
  line-height: 1.12;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

h3, .h3 {
  font-size: 28px;
  line-height: 1.16;
  font-weight: var(--fw-bold);
  letter-spacing: -0.018em;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.body-lg { font-size: 18px; line-height: 1.6; color: var(--texto-corpo); }
.body-md { font-size: 16px; line-height: 1.6; color: var(--texto-corpo); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--texto-suave); }

/* --------------------------------------------------------------------------
   5. Buttons / CTAs
   -------------------------------------------------------------------------- */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.2s var(--ease-standard),
              box-shadow 0.2s var(--ease-standard),
              border-color 0.2s var(--ease-standard),
              color 0.2s var(--ease-standard);
  white-space: nowrap;
}

.btn-primary {
  background: var(--azul-hub);
  color: var(--branco);
  border-color: var(--azul-hub);
}

.btn-primary:hover {
  background: var(--azul-hover);
  border-color: var(--azul-hover);
  color: var(--branco);
  box-shadow: 0 10px 24px rgba(0, 81, 255, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--azul-hub);
  border-color: var(--azul-hub);
}

.btn-secondary:hover {
  background: var(--azul-hub);
  color: var(--branco);
  box-shadow: 0 10px 24px rgba(0, 81, 255, 0.2);
}

/* Variant for use on dark backgrounds where the outline needs to read on navy */
.btn-secondary--on-dark {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--branco);
}

.btn-secondary--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--branco);
  box-shadow: none;
}

.btn-white {
  background: var(--branco);
  color: var(--azul-navy);
  border-color: var(--branco);
}

.btn-white:hover {
  background: var(--borda);
  color: var(--azul-navy);
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borda);
}

.site-header__bar {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: var(--header-height);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header__logo img {
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  flex: 1 1 auto;
}

.site-nav__link {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--azul-navy);
  white-space: nowrap;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__link:hover {
  background: var(--bg-light);
  color: var(--azul-hub);
}

.site-nav__caret {
  font-size: 9px;
  opacity: 0.6;
}

.site-nav__item { position: relative; }

.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 232px;
  padding: 8px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 14px;
  box-shadow: var(--shadow-dropdown);
  display: none;
}

.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
  display: block;
}

.site-nav__dropdown-link {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--azul-navy);
}

.site-nav__dropdown-link:hover {
  background: var(--bg-light);
  color: var(--azul-hub);
}

.site-header__cta {
  flex: 0 0 auto;
  background: var(--azul-hub);
  color: var(--branco);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 11px 14px;
  border-radius: 10px;
}

.site-header__cta:hover {
  background: var(--azul-hover);
  color: var(--branco);
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--borda);
  border-radius: var(--radius-sm);
  background: var(--branco);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-direction: column;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--azul-navy);
  border-radius: 2px;
  transition: transform 0.2s var(--ease-standard), opacity 0.2s var(--ease-standard);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--azul-navy);
  color: var(--branco);
  padding: 72px 0 36px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer__about img { height: 40px; width: auto; }

.site-footer__desc {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 34ch;
}

.site-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.site-footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
}

.site-footer__social-link:hover {
  border-color: var(--azul-hub);
  background: var(--azul-hub);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__col-title {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul-tint);
}

.site-footer__col a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__col a:hover { color: var(--branco); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__legal {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.site-footer__legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__legal a:hover { color: var(--branco); }

/* --------------------------------------------------------------------------
   8. Shared components (cards, forms, FAQ) — reusable across pages
   -------------------------------------------------------------------------- */

.card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-standard),
              transform 0.2s var(--ease-standard),
              border-color 0.2s var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--azul-hub);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field__label {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-corpo);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--borda-forte);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--azul-navy);
  background: var(--branco);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--azul-hub);
  outline: none;
}

.form-field textarea { resize: vertical; }

.faq-item {
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: var(--branco);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: var(--fw-semibold);
  color: var(--azul-navy);
  line-height: 1.4;
}

.faq-item__question-text { flex: 1; }

.faq-item__sign {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--azul-hub);
  font-weight: var(--fw-medium);
}

.faq-item__answer {
  padding: 0 24px 24px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--texto-corpo);
  display: none;
}

.faq-item.is-open .faq-item__answer { display: block; }
.faq-item.is-open .faq-item__sign { transform: none; }

/* Form submit / success state toggles (see js/main.js) */
.form-success { display: none; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
.form-success.is-visible { display: flex; }
.lead-form.is-hidden { display: none; }

.form-success__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #E9EFFB;
  color: var(--azul-hub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: var(--fw-semibold);
}

.form-error {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FDECEC;
  color: #B3261E;
  font-size: 14px;
  line-height: 1.5;
}

.form-error.is-visible { display: block; }

/* --------------------------------------------------------------------------
   9. Responsive breakpoints
   -------------------------------------------------------------------------- */

/* Notebook / tablet: 768px–1200px */
@media (max-width: 1200px) {
  h1, .h1 { font-size: 48px; }
  h2, .h2 { font-size: 34px; }
}

/* Mobile: below 768px */
@media (max-width: 768px) {
  section { padding: 64px 0; }

  h1, .h1 { font-size: 34px; }
  h2, .h2 { font-size: 28px; }
  h3, .h3 { font-size: 22px; }
  .lead { font-size: 17px; }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    bottom: 0;
    background: var(--branco);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 16px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s var(--ease-standard);
  }

  .site-nav.is-open { transform: translateX(0); }

  .site-nav__link {
    font-size: 13px;
    padding: 14px 12px;
    justify-content: space-between;
  }

  .site-nav__item { width: 100%; }

  .site-nav__dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    display: none;
  }

  .site-nav__item.is-open .site-nav__dropdown { display: block; }

  .site-header__cta {
    padding: 10px 12px;
    font-size: 10px;
  }

  .nav-toggle { display: flex; }

  .btn-primary, .btn-secondary { width: 100%; }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .site-footer__about { grid-column: 1 / -1; }

  .site-footer__legal { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
