/* HEADER */

:root {
  --primary-color-header:#0D0D0D;
  --header-logo: url('../assets/img/logosf.png');
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background: var(--primary-color-header);
  z-index: 1000;
}

body {
  padding-top: 100px;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */

.logo {
  display: inline-block;
  width: 220px;
  height: 80px;
  background-image: var(--header-logo);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.logo img {
  display: none;
}

/* Contador tempo */
.countdown {
  display: flex;
  gap: 10px;
}

.countdown div {
  background: var(--primary-color-header);
  border: 2px solid var(--verde);
  padding: 5px 10px;
  border-radius: 5px;
  text-align: center;
  min-width: 50px;
}

.countdown span {
  color: var(--verde);
  font-weight: bold;
  display: block;
}

.countdown small {
  color: #fff;
  font-size: 12px;
  display: block;
}

/* MENU */
.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav ul li a {
  color: #fff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  min-width: 92px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--verde);
  border-radius: 8px;
  background: #0a0a0a;
  color: #fff;
  cursor: pointer;
  overflow: visible;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.menu-toggle-label {
  line-height: 1;
}

.menu-toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.menu-toggle.active .menu-toggle-icon {
  transform: translateY(2px) rotate(225deg);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--verde);
  color: #0a0a0a;
  outline: none;
}

.menu-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(95, 237, 0, 0.25);
}

@media (max-width: 1024px) {
  .nav {
    padding: 0 16px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown div {
    min-width: 45px;
    padding: 4px 8px;
  }

  .countdown span {
    font-size: 16px;
  }

  .countdown small {
    font-size: 10px;
  }

  .nav ul {
    gap: 15px;
  }

  .nav ul li a {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  :root {
    --mobile-header-height: 118px;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    padding: 0;
    z-index: 1000;
  }

  body {
    padding-top: var(--mobile-header-height);
  }

  .nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
    padding: 9px 16px 8px;
    margin-bottom: 0;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    width: 145px;
    height: 48px;
  }

  .logo img {
    display: none;
  }

  .menu-toggle {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 94px;
    height: 40px;
    box-sizing: border-box;
    z-index: 25;
  }

  .countdown {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, 210px);
    justify-self: center;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
  }

  .countdown div {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 4px;
  }

  .countdown span {
    font-size: 12px;
  }

  .countdown small {
    font-size: 8px;
  }

  .nav ul {
    position: fixed;
    top: var(--mobile-header-height);
    right: 16px;
    left: auto;
    bottom: auto;
    width: min(280px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    font-size: 13px;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(95, 237, 0, 0.35);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.95);
    max-height: calc(100vh - var(--mobile-header-height));
    overflow-y: auto;
    z-index: 1001;
    backdrop-filter: blur(6px);
  }

  .nav ul.menu-open {
    display: flex;
  }

  .nav ul li a {
    width: 100%;
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    font-weight: 800;
    transition: background 0.35s ease, color 0.35s ease, transform 0.25s ease;
  }

  .nav ul li a:hover,
  .nav ul li a:focus-visible {
    color: #0a0a0a;
    background: var(--verde);
    transform: translateX(4px);
    outline: none;
  }

  .btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --mobile-header-height: 112px;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
  }

  body {
    padding-top: var(--mobile-header-height);
  }

  .nav {
    column-gap: 8px;
    row-gap: 7px;
    padding: 8px 12px 7px;
  }

  .logo {
    width: 124px;
    height: 42px;
  }

  .menu-toggle {
    min-width: 88px;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: min(100%, 190px);
    justify-self: center;
    gap: 3px;
  }

  .countdown div {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 3px;
  }

  .countdown span {
    font-size: 11px;
  }

  .countdown small {
    font-size: 7px;
  }

  .nav ul {
    right: 12px;
    width: min(260px, calc(100vw - 24px));
    gap: 8px;
    font-size: 12px;
    padding: 10px 8px;
  }

  .nav ul li a {
    width: 100%;
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
  }

  .btn {
    padding: 7px 14px;
    font-size: 11px;
  }
}
