/* ============================================================
   LAYOUT.CSS
   Structural chrome: container, navigation, mobile drawer, footer
   ============================================================ */

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: clamp(1rem, 3.5vw, 1.5rem);
  width: 100%;
  box-sizing: border-box;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: rgba(4, 15, 34, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .nav__inner {
    height: 4.25rem;
  }
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo-img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

@media (max-width: 767px) {
  .nav__logo-img {
    height: 2.75rem;
  }
}

/* Desktop Navigation Links */
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition-colors);
  position: relative;
  padding-block: 0.25rem;
}

.nav__link:hover {
  color: #ffffff;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--velez-blue-main);
  transition: width 0.2s ease;
}

.nav__link:hover::after {
  width: 100%;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

/* ── Mobile Hamburger Button ──────────────────────────────── */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav__toggle:hover {
  background-color: var(--velez-blue-main);
  border-color: #ffffff;
}

@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }
}

/* ── Mobile Navigation Drawer ─────────────────────────────── */
.nav__drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(20rem, 85vw);
  height: 100%;
  height: 100dvh;
  background-color: rgba(4, 15, 34, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2100;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.nav__drawer.is-open {
  transform: translateX(0);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(2, 59, 239, 0.3);
}

.nav__drawer-header {
  height: 4.25rem;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(2, 11, 28, 0.95);
  flex-shrink: 0;
  box-sizing: border-box;
}

.nav__drawer-brand {
  display: flex;
  align-items: center;
}

.nav__drawer-logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  border-radius: 0;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.nav__close:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.nav__drawer-links {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav__drawer-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-left: 3px solid transparent;
  background-color: transparent;
  transition: all 0.2s ease;
}

.nav__drawer-link:hover,
.nav__drawer-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--velez-blue-main);
}

.nav__drawer-link.active {
  background: linear-gradient(90deg, var(--velez-blue-secondary) 0%, var(--velez-blue-main) 100%);
  border-left-color: #ffffff;
}

.nav__drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(2, 11, 28, 0.95);
  flex-shrink: 0;
}

.nav__drawer-cta {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  box-sizing: border-box;
}

/* Mobile Drawer Backdrop */
.nav__backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(2, 11, 28, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  touch-action: none;
}

.nav__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .nav__drawer,
  .nav__backdrop {
    display: none !important;
  }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  background-color: var(--velez-blue-dark);
  color: #fff;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer__brand {
  grid-column: span 1;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer__logo-img {
  height: 3.25rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer__tagline {
  color: var(--silver-200);
  font-size: 0.9375rem;
  max-width: 24rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.7;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer__social {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer__social:hover {
  background-color: var(--velez-blue-main);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: #ffffff;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav-link {
  color: var(--silver-200);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer__nav-link:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer__contact-item {
  color: var(--silver-200);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer__bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.75rem;
  color: var(--silver-400);
  line-height: 1.6;
}

/* Tablet footer grid */
@media (min-width: 540px) and (max-width: 839px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

/* Desktop footer grid */
@media (min-width: 840px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3.5rem;
  }
}
