/* ═══════════════════════════════════════════════
   COMPONENTS — Navbar, Footer, Buttons, Forms
   Shared across public pages (index, contact, docs, faq)
   ═══════════════════════════════════════════════ */

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 64px;
    background: rgba(255,255,255,0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    padding: 0 56px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), -webkit-backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.navbar.scrolled,
.navbar.always-on {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}
.nav-brand { text-decoration: none; }
.nav-brand-logo {
    font-family: 'Space Grotesk', var(--sans);
    font-size: 23px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}
.nav-brand-thin {
    font-weight: 500;
}
.nav-brand-logo--light {
    color: rgba(255,255,255,0.9);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--ink); background: rgba(0,0,0,0.03); }
.nav-link.active { color: var(--ink); background: rgba(0,0,0,0.04); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-btn { padding: 9px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nav-btn-ghost { background: transparent; border: none; color: var(--ink-2); }
.nav-btn-ghost:hover { color: var(--ink); }
.nav-btn-solid { background: var(--navy); border: none; color: #fff; }
.nav-btn-solid:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(5,28,44,0.2); }

/* ═══ BUTTONS (shared) ═══ */
.btn-lg { padding: 15px 36px; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 4px 16px rgba(5,28,44,0.2); }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(5,28,44,0.25); }
.btn-outline { background: transparent; color: var(--ink-2); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--ink-4); color: var(--ink); transform: translateY(-1px); }

/* ═══ FORM INPUTS (shared contact + login) ═══ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.form-label .req { color: var(--red); }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-4); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,191,179,0.1);
}
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ABABAB' stroke-width='2.5' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-submit {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: var(--navy);
    color: #fff;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.form-submit:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(5,28,44,0.25);
}
.form-submit:active { transform: translateY(0); }

/* ═══ FOOTER ═══ */
.footer { background: var(--navy-dark); padding: 56px 56px 36px; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand { margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.25); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 13px; color: rgba(255,255,255,0.3); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-link:hover { color: rgba(255,255,255,0.7); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.2); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }
.footer-disclaimer { margin-top: 16px; font-size: 11px; color: rgba(255,255,255,0.15); line-height: 1.5; text-align: center; }

/* ═══ HAMBURGER MENU ═══ */
.nav-hamburger {
    display: none;
    width: 36px; height: 36px;
    border: none; background: transparent;
    cursor: pointer; padding: 6px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-hamburger span {
    display: block; width: 20px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 99;
}
.nav-mobile-menu.open { opacity: 1; pointer-events: auto; }
.nav-mobile-menu a {
    font-size: 18px; font-weight: 600; color: var(--ink-2);
    text-decoration: none; padding: 14px 28px; border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}
.nav-mobile-menu a:hover { color: var(--ink); background: rgba(0,0,0,0.03); }
.nav-mobile-menu .nav-btn-solid {
    margin-top: 12px; background: var(--navy); color: #fff;
    border-radius: 10px; padding: 14px 36px;
}

/* ═══ RESPONSIVE — Shared components ═══ */
@media (max-width: 1024px) {
    .navbar { padding: 0 32px; }
    .nav-links { display: none; }
    .nav-actions { display: none; }
    .nav-hamburger { display: flex; }
    .footer { padding: 48px 32px 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .navbar { padding: 0 20px; }
    .footer { padding: 40px 20px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-legal { justify-content: center; }
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
