/* ═══════════════════════════════════════════════════
   GLOBAL CSS VARIABLES - shared across all pages
═══════════════════════════════════════════════════ */

:root {
  /* ── Palette ── */
  --ink:     #0a0a0a;
  --paper:   #f5f0e8;
  --cream:   #ede8d8;
  --accent:  #156ef6;
  --accent2: #0a0a0a;
  --muted:   #4a4540;
  --line:    rgba(10, 10, 10, 0.12);

  /* ── Typography scale ── */
  --fs-xl: clamp(3.5rem, 9vw, 9rem);
  --fs-lg: clamp(2rem, 5vw, 4rem);
  --fs-md: clamp(1.1rem, 2vw, 1.4rem);

  /* ── Font families ── */
  --font-sans:  'Figtree', sans-serif;
  --font-head:  'Figtree', sans-serif;
  --font-serif: 'Instrument Serif', serif;

  /* ── Spacing ── */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  /* ── Border ── */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-full: 50%;

  /* ── Transitions ── */
  --transition-fast:   0.2s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.5s ease;

  /* ── Z-index layers ── */
  --z-nav:    800;
  --z-loader: 9000;
  --z-cursor: 9999;

  /* ── Container ── */
  --max-width: 1280px;
  --gutter:    2.5rem;
}

/* ── Base resets ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── Disabled elements (cursor + loader) ── */
#cursor, #cursor-ring { display: none; }
#loader { display: none; }

/* ── Shared container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ═══════════════════════════════════════════════════
   NAV - shared across all pages
═══════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  padding: 1.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  mix-blend-mode: multiply;
  transition: background .4s, backdrop-filter .4s;
}
nav.scrolled {
  background: var(--paper);
  backdrop-filter: blur(16px);
  mix-blend-mode: normal;
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: 'Figtree', sans-serif; font-weight: 800;
  font-size: 2rem; letter-spacing: -.03em;
  text-decoration: none; color: var(--ink);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-sans); font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  padding: .5rem 1.4rem;
  border: 1.5px solid var(--ink); border-radius: 2px;
  font-family: var(--font-sans); font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ═══════════════════════════════════════════════════
   FOOTER - shared across all pages
═══════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: .7rem; letter-spacing: .1em; color: var(--muted); }
.footer-back {
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
  transition: color .25s;
}
.footer-back:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   SECTION LABEL - shared across all pages
═══════════════════════════════════════════════════ */
.section-label {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: .75rem;
  margin-bottom: 3rem;
}
.section-label::before {
  content: ''; display: inline-block; width: 40px; height: 1px; background: var(--accent);
}

/* ═══════════════════════════════════════════════════
   SHARED BUTTONS
═══════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-sans); font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: background .3s, transform .3s;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans); font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: border-color .3s, color .3s, transform .3s;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════
   REVEAL ANIMATIONS - shared across all pages
═══════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
═══════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.whatsapp-label { display: none; }

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* Pulse ring animation */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* LinkedIn Floating Button */
.linkedin-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #0A66C2;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(10, 102, 194, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}
.linkedin-float svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.linkedin-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(10, 102, 194, 0.6);
}
.linkedin-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #0A66C2;
  animation: li-pulse 2.5s ease-out infinite;
  z-index: -1;
}
@keyframes li-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------------------------------------------------
   MOBILE MENU (HAMBURGER)
--------------------------------------------------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--paper);
  z-index: 799;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 5.5rem 2rem 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: auto;
}
.mobile-nav-links a {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: block;
}
.mobile-nav-links a.active { color: var(--accent); }
.mobile-menu-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.mobile-menu-bottom .btn-primary, .mobile-menu-bottom .btn-ghost {
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links, .nav-cta { display: none !important; }
  nav { padding: 1rem 1.5rem; }
  .container { padding: 0 1.5rem; }
}

@media (max-width: 640px) {
  nav { padding: .85rem 1.25rem; }
  .nav-logo { font-size: 2rem; }
  .mobile-menu { padding: 5rem 1.5rem 2rem; }
  .mobile-nav-links { gap: 1rem; }
}

@media (max-width: 480px) {
  .mobile-menu { padding: 4.5rem 1.25rem 1.5rem; }
  .mobile-nav-links { gap: 0.85rem; }
  .mobile-menu-bottom { margin-top: 1.25rem; padding-top: 1.25rem; }
}

@media (max-width: 375px) {
  .mobile-menu { padding: 4rem 1rem 1.25rem; }
  .mobile-nav-links a { font-size: 1.4rem; }
  .mobile-nav-links { gap: 0.8rem; }
  .mobile-menu-bottom { gap: 0.6rem; margin-top: 1rem; padding-top: 1rem; }
  .mobile-menu-bottom .btn-primary,
  .mobile-menu-bottom .btn-ghost { padding: .65rem 1.25rem; font-size: .75rem; }
}
