/* ── Conthrax font ─────────────────────────────────────── */
@font-face {
    font-family: 'Conthrax';
    src: url('../fonts/Conthrax-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

body { font-family: 'Inter', sans-serif; }

/* ── Fixed-top header ──────────────────────────────────── */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

/* Default (at top): transparent-ish backdrop */
#site-header .header-inner {
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* nav-fixed: applied on scroll – solid bg + shadow (JPCI effect) */
#site-header.nav-fixed {
    box-shadow: 0 4px 24px 0 rgba(20, 75, 184, 0.18), 0 2px 8px 0 rgba(0,0,0,0.18);
}
html.dark #site-header.nav-fixed {
    background: rgba(4, 14, 38, 0.98);
    backdrop-filter: blur(16px);
}
html:not(.dark) #site-header.nav-fixed {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
}

/* ── Spacer so content doesn't go under fixed header ──── */
#page-spacer { height: 110px; } /* top-bar (~36px) + header (~74px) */

/* ── Topbar ────────────────────────────────────────────── */
#topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    height: 36px;
}
#site-header { top: 36px; }

/* ── Nav underline animation ────────────────────────────  */
.nav-link {
    position: relative;
    letter-spacing: 0.06em;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: #144bb8;
    transition: width 0.25s ease;
    border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Mobile menu ───────────────────────────────────────── */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0; overflow: hidden; opacity: 0;
}
#mobile-menu.open { max-height: 500px; opacity: 1; }

/* ══════════════════════════════════════════════════════
   CLAM TECNOLOGIA LOGO  ── Conthrax font, theme-aware
   ══════════════════════════════════════════════════════ */
.logo-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-family: 'Conthrax', sans-serif;
    font-weight: 600;
    user-select: none;
    gap: 1px;
}

/* "CLAM"  — big line */
.logo-clam {
    font-size: 1.7rem;
    letter-spacing: 0.005em;
    transition: color 0.3s ease;
}
html.dark  .logo-clam { color: #ffffff; }
html:not(.dark) .logo-clam { color: #1a1a1a; }

/* "TECNOLOGIA" bar */
.logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    padding: 1px 4px;
    transition: background 0.3s ease;
}
html.dark  .logo-bar { background: #144bb8; }
html:not(.dark) .logo-bar { background: #1a1a1a; }

.logo-tecnologia {
    font-size: 0.42rem;
    letter-spacing: 0.22em;
    transition: color 0.3s ease;
    color: #ffffff;
}

/* Hover pulse on logo */
a:hover .logo-clam     { color: #144bb8; }
a:hover .logo-bar      { background: #0d3591; }