/* Mirrors Relay.Web brand.css — Inter + slate + brand teal */

:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --brand-teal: #1a5f6b;
    --brand-teal-light: #2d8291;
    --brand-teal-dark: #12444d;
}

.dark .text-brand { color: var(--brand-teal-light); }
.dark .bg-brand { background-color: var(--brand-teal-light); }
.dark .border-brand { border-color: var(--brand-teal-light); }

/* Grid background — subtle teal lines on slate paper */
.bg-grid-slate-100 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 40V0h40' fill='none' stroke='rgb(26 95 107 / 0.05)' stroke-width='1'/%3E%3C/svg%3E");
}
.dark .bg-grid-slate-100 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 40V0h40' fill='none' stroke='rgb(45 130 145 / 0.1)' stroke-width='1'/%3E%3C/svg%3E");
}

/* Mobile menu (mirrors Relay.Web pattern) */
#mobile-menu {
    display: none !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 60;
}
#mobile-menu.open { display: block !important; }

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
#mobile-menu.open .mobile-menu-backdrop { opacity: 1; }

.mobile-menu-panel {
    position: fixed;
    top: 4rem;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem 1rem 1rem;
    transform: translateY(-100%);
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
#mobile-menu.open .mobile-menu-panel { transform: translateY(0); }

.dark .mobile-menu-panel {
    background: #0f172a;
    border-bottom-color: #1e293b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mobile-menu-panel a {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: color 0.15s ease;
}
.mobile-menu-panel a:last-child { border-bottom: none; }
.mobile-menu-panel a:hover { color: var(--brand-teal); }

.dark .mobile-menu-panel a {
    color: #e2e8f0;
    border-bottom-color: #1e293b;
}
.dark .mobile-menu-panel a:hover { color: var(--brand-teal-light); }

@media (min-width: 768px) {
    #mobile-menu { display: none !important; }
}

/* Smooth scroll for in-page anchors */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
