/* =========================================
       EDITORIAL THEME VARIABLES
    ========================================= */
:root {
  --paper: #F7F5F0;
  --ink: #0A1A2B;
  --ink-soft: #1E3448;
  --ice: #4A9EC9;
  --ice-deep: #2A6F97;
  --ice-ghost: #E3F0F8;
  --acid: #C5F04A;
  --gray-warm: #6B6B63;
  --gray-cool: #8A9BAE;
  --line: #D8D5CC;

  --font-body: 'Manrope', sans-serif;
  --font-display: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 0px;
  --radius-pill: 9999px;
  --radius-soft: 4px;

  --shadow-flat: 4px 4px 0 var(--ink);
  --shadow-soft: 0 1px 0 rgba(10, 26, 43, 0.08);

  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.35s var(--ease);
  --transition-slow: all 0.7s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================
       TYPOGRAPHY
    ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ice-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mono-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--acid);
  display: inline-block;
  border-radius: 50%;
}

/* =========================================
       BUTTONS
    ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: var(--transition);
  gap: 12px;
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ice);
}

/* =========================================
       TOP BAR
    ========================================= */
.top-bar {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar a {
  color: var(--acid);
  font-weight: 600;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* =========================================
       HEADER / NAVBAR
    ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-body);
}

.logo-text strong {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-text span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ice-deep);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--ink);
  transition: var(--transition);
  margin: 6px 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.nav-link:hover,
.nav-item.active .nav-link {
  background: var(--ink);
  color: var(--paper);
}

.nav-arrow svg {
  width: 10px;
  height: 10px;
  transition: var(--transition);
}

.nav-item:hover .nav-arrow svg {
  transform: rotate(180deg);
}

/* --- DROPDOWN / MEGA MENU FIXES --- */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  z-index: 998;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-soft);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 0;
  min-width: 280px;
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
  transform-origin: top left;
  z-index: 999;
}

.dropdown-menu::-webkit-scrollbar {
  width: 4px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: var(--paper);
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--ice);
}

.dropdown-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--ice) var(--paper);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: block;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--acid);
  color: var(--ink);
  padding-left: 28px;
}

.mega-menu {
  position: fixed;
  /* top: 100px; */
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-soft);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 0;
  min-width: 860px;
  max-width: 95vw;
  max-height: 70vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
  transform-origin: top center;
  z-index: 999;
}

.mega-menu::-webkit-scrollbar {
  width: 3px;
}

.mega-menu::-webkit-scrollbar-track {
  background: var(--paper);
}

.mega-menu::-webkit-scrollbar-thumb {
  background: var(--ice);
}

.mega-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--ice) var(--paper);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 20px 28px;
  border-bottom: 1px solid var(--ink);
  background: var(--ice-ghost);
  position: sticky;
  top: 0;
  z-index: 2;
}

.mega-header-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.mega-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.mega-search svg {
  width: 14px;
  height: 14px;
  color: var(--ink-soft);
}

.mega-search input {
  border: none;
  background: transparent;
  font-size: 0.75rem;
  outline: none;
  width: 180px;
  font-family: var(--font-mono);
  color: var(--ink);
  letter-spacing: 0.04em;
}

.mega-search input::placeholder {
  color: var(--gray-cool);
  opacity: 0.8;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 0;
}

.mega-group {
  border-right: 1px solid var(--line);
}

.mega-group:last-child {
  border-right: none;
}

.mega-group h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ice-deep);
  padding: 16px 24px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mega-group a {
  display: block;
  padding: 8px 24px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  transition: var(--transition);
  border-bottom: 1px solid rgba(216, 213, 204, 0.5);
}

.mega-group a:hover {
  background: var(--acid);
  color: var(--ink);
  padding-left: 32px;
}

/* =========================================
       SUBPAGE HERO
    ========================================= */
.subpage-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: stretch;
}

.subpage-hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  width: 100%;
  min-height: 45vh;
}

.subpage-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 0;
  position: relative;
  z-index: 2;
}

.subpage-hero-left .container-inner {
  padding-left: 32px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-cool);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--ice);
}

.breadcrumb a:hover {
  color: var(--acid);
}

.subpage-hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
  color: var(--paper);
  margin-bottom: 24px;
}

.subpage-hero-title em {
  font-style: italic;
  color: var(--ice);
}

.subpage-hero-desc {
  font-size: 1.1rem;
  color: var(--ice-ghost);
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
  opacity: 0.9;
}

.subpage-hero-right {
  position: relative;
  overflow: hidden;
  background: var(--ice-deep);
}

.subpage-hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 26, 43, 0.4) 0%, rgba(10, 26, 43, 0.8) 100%);
  z-index: 1;
}

.subpage-hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(1.1);
}

.hero-side-label {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: rotate(90deg) translateY(-50%);
  transform-origin: right center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ice);
  z-index: 3;
  white-space: nowrap;
  opacity: 0.6;
}

/* =========================================
       PORT CONTENT (Prose)
    ========================================= */
.port-content {
  padding: 100px 0 120px;
  background: var(--paper);
}

.prose {
  max-width: 820px;
  margin: 0 auto;
}

/* Editorial paragraph styling */
.prose p {
  font-size: 1rem;
  color: var(--gray-warm);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 24px;
}

.prose p strong {
  color: var(--ink);
  font-weight: 600;
}

/* Editorial headings */
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin-top: 60px;
  margin-bottom: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  letter-spacing: -0.02em;
}

.prose h2:first-of-type {
  margin-top: 40px;
  padding-top: 0;
  border-top: none;
}

/* List styling — subtle editorial bullet */
.prose ul {
  margin-bottom: 28px;
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.prose ul li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.7;
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  transition: var(--transition);
}

.prose ul li:last-child {
  border-bottom: none;
}

.prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ice-deep);
  font-weight: 600;
  font-family: var(--font-mono);
}

.prose ul li:hover {
  color: var(--ink);
  padding-left: 28px;
}

/* Special emphasis on final paragraph */
.prose p:last-of-type strong {
  color: var(--ice-deep);
  font-weight: 600;
}

/* =========================================
       CTA SECTION
    ========================================= */
.cta-section {
  background: var(--ink);
  padding: 80px 0;
  text-align: center;
  border-radius: var(--radius-soft) var(--radius-soft) 0 0;
}

.cta-section h2 {
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--ice-ghost);
  margin-bottom: 32px;
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.8;
}

.cta-section .btn-primary {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

.cta-section .btn-primary:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 var(--acid);
}

/* =========================================
       FOOTER
    ========================================= */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text strong {
  color: var(--paper);
}

.footer-brand p {
  margin-top: 24px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ice-ghost);
  opacity: 0.7;
  font-weight: 300;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--acid);
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--ice-ghost);
  opacity: 0.6;
  font-size: 0.88rem;
  font-weight: 300;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--paper);
  opacity: 1;
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--ice-ghost);
  opacity: 0.7;
  font-weight: 300;
  align-items: flex-start;
  line-height: 1.5;
}

.footer-contact i {
  color: var(--ice);
  margin-top: 4px;
  font-size: 0.85rem;
  width: 16px;
  flex-shrink: 0;
}

.footer-contact a {
  color: inherit;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--acid);
  opacity: 1;
}

.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-cool);
  opacity: 0.5;
}

/* =========================================
       FLOATING WHATSAPP
    ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
}

.hero-whatsapp-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0B132B;
  padding: 10px 20px;
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid rgba(255, 209, 102, 0.15);
  max-width: fit-content;
}

.hero-whatsapp-bar:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.25);
  border-color: rgba(255, 209, 102, 0.3);
}

.hero-whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #25D366;
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
}

.hero-whatsapp-icon svg {
  width: 16px;
  height: 16px;
}

.hero-whatsapp-tag {
  color: #25D366;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-whatsapp-num {
  color: #FFD166;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero-whatsapp-arrow {
  color: #FFD166;
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 4px;
}

/* =========================================
       RESPONSIVE DESIGN
    ========================================= */
@media (max-width: 1100px) {
  .subpage-hero-split {
    grid-template-columns: 1fr;
  }

  .subpage-hero-left {
    padding: 60px 32px;
  }

  .subpage-hero-right {
    min-height: 300px;
  }

  .hero-side-label {
    display: none;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -120%;
    width: 100%;
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    padding: 110px 32px 40px;
    transition: var(--transition);
    overflow-y: auto;
    align-items: flex-start;
    gap: 4px;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  }

  .primary-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 2px;
    align-items: flex-start;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 12px;
    font-size: 0.85rem;
    color: var(--ink);
    border-radius: var(--radius-soft);
    font-family: var(--font-mono);
  }

  .nav-link:hover {
    background: var(--ice-ghost);
  }

  .nav-item.has-dropdown::after {
    display: none;
  }

  .dropdown-menu,
  .mega-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 1px solid var(--line) !important;
    padding: 4px 0 4px 16px !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: block !important;
    min-width: auto !important;
    width: 100% !important;
    background: transparent !important;
    top: auto !important;
    left: auto !important;
    border-radius: 0;
    max-width: 100%;
    margin-left: 8px;
  }

  .nav-item.open .dropdown-menu,
  .nav-item.open .mega-menu {
    max-height: 2000px !important;
  }

  .dropdown-menu a,
  .mega-group a,
  .mega-header-title,
  .mega-group h4 {
    color: var(--ink-soft) !important;
  }

  .dropdown-menu a,
  .mega-group a {
    padding: 10px 12px !important;
    margin: 2px 0 !important;
    font-size: 0.72rem !important;
    line-height: 1.5;
    display: block;
    font-weight: 400;
    border-bottom: 1px solid var(--line) !important;
  }

  .dropdown-menu a:hover,
  .mega-group a:hover {
    color: var(--ink) !important;
    background: var(--acid);
  }

  .mega-header {
    padding: 12px 0;
    margin-bottom: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    position: static;
  }

  .mega-search {
    width: 100%;
    background: var(--ice-ghost);
    padding: 8px 14px;
    border: 1px solid var(--line);
  }

  .mega-search input {
    width: 100%;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-group {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .mega-group h4 {
    font-size: 0.6rem !important;
    margin-bottom: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ice-deep) !important;
    background: var(--ice-ghost);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .subpage-hero-title {
    font-size: 3.2rem;
  }

  .subpage-hero-left {
    padding: 50px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 60px 0 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .port-content {
    padding: 70px 0 80px;
  }

  .prose h2 {
    margin-top: 48px;
    padding-top: 32px;
  }

  .prose ul li {
    font-size: 0.75rem;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
}