/* ============ ADEXO SHARED STYLES ============ */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-soft: #161616;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text: #f5f5f4;
  --text-dim: #a8a8a6;
  --text-faint: #6b6b69;
  --accent: #e8e5df;
  --flag-black: #000000;
  --flag-red: #DD0000;
  --flag-gold: #FFCE00;
  --display: 'Archivo', sans-serif;
  --body: 'Archivo Narrow', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--flag-red); color: #fff; }

a { color: inherit; }

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-img {
  height: 26px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.nav-logo-mark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-logo-mark span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}
.nav-logo-mark span:nth-child(2) { width: 14px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li,
.nav-links > .nav-item,
.nav-links > .has-dropdown {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--flag-red);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ============ DROPDOWN MENU ============ */
.has-dropdown {
  position: relative;
}
.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.has-dropdown > a::after {
  /* override the red underline ::after on this link only - moved to a ::before-like icon */
  /* keep the underline working but move it past the chevron */
}
.has-dropdown-arrow {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
  opacity: 0.6;
  margin-left: 2px;
}
.has-dropdown:hover .has-dropdown-arrow {
  transform: rotate(225deg) translateY(-2px);
  opacity: 1;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  margin-top: 18px;
  background: rgba(14,14,14,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 1000;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 30px;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.nav-dropdown a::after,
.nav-dropdown a::before {
  display: none !important;
  content: none !important;
}
.nav-dropdown a:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-strong);
}
.nav-dropdown a .dd-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--flag-red);
  font-weight: 500;
  min-width: 32px;
}
.nav-dropdown a .dd-meta {
  display: block;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: none;
  margin-top: 2px;
}
.nav-dropdown a .dd-arrow {
  margin-left: auto;
  color: var(--text-faint);
  transition: transform 0.25s ease, color 0.25s ease;
}
.nav-dropdown a:hover .dd-arrow {
  color: var(--flag-red);
  transform: translateX(4px);
}
.nav-dropdown .dd-footer {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
}
.nav-dropdown .dd-footer a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 10px 16px;
  font-weight: 500;
}
.nav-dropdown .dd-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .nav-dropdown { min-width: 280px; }
}

.nav-cta {
  padding: 11px 22px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.25s ease;
  background: transparent;
}

.nav-cta:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ============ FLAG ============ */
.flag {
  display: inline-flex;
  width: 22px;
  height: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.flag span { flex: 1; }
.flag span:nth-child(1) { background: var(--flag-black); }
.flag span:nth-child(2) { background: var(--flag-red); }
.flag span:nth-child(3) { background: var(--flag-gold); }
.flag.horizontal { flex-direction: column; }

/* ============ BUTTONS ============ */
.btn {
  padding: 16px 34px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: transparent;
  color: var(--text);
  transform: translateY(-2px);
}
.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ============ SECTION FRAMEWORK ============ */
.section {
  padding: 140px 40px;
  position: relative;
  border-top: 1px solid var(--line);
}

.section-inner { max-width: 1320px; margin: 0 auto; }

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--flag-red);
}
.section-label.no-line::before { display: none; }

.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5.2vw, 76px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin-bottom: 80px;
}

.section-title .dim {
  color: var(--text-faint);
  display: block;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  padding: 140px 40px 20px;
  max-width: 1320px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.breadcrumb a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.25s ease;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 14px; color: var(--line-strong); }
.breadcrumb .current { color: var(--text); }

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 40px 40px 110px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}

.page-header-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
}

.page-header h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin-bottom: 28px;
}
.page-header h1 .dim { color: var(--text-faint); display: block; }

.page-header p.lead {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 40px 32px;
}

.footer-inner { max-width: 1320px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 15px;
  margin-bottom: 24px;
  color: var(--text);
  text-decoration: none;
}

.footer-about {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 28px;
}

.footer-made {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col a:hover { color: var(--text); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text-faint);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  color: var(--text-faint);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: var(--text-faint);
  text-decoration: none;
  margin-left: 24px;
  transition: color 0.25s ease;
}
.footer-bottom a:hover { color: var(--text); }

/* ============ REVEAL ANIM ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============ RESPONSIVE BASE ============ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-header-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 10px; }
  .section { padding: 90px 20px; }
  .page-header { padding: 30px 20px 80px; }
  .breadcrumb { padding: 120px 20px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom div a { margin-left: 0; margin-right: 16px; }
  footer { padding: 60px 20px 32px; }
}

/* ============ ACCESSIBILITY ============ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--flag-red);
  color: var(--text);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
