/* ===== Sandy Brook Brand CSS =====
   Shared variables, fonts, and utilities used across all pages.
   Loaded via <link rel="stylesheet"> — no Tailwind processing needed.
   Tailwind-specific directives (@theme, @custom-variant) stay inline in each HTML file.
*/

/* ===== Brand Colors & Fonts ===== */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --brand-teal: #1a5f6b;
    --brand-teal-light: #2d8291;
    --brand-teal-dark: #12444d;
}

html { overflow-x: hidden; }
body {
    font-family: var(--font-sans), ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol", "Noto Color Emoji";
    overflow-x: hidden;
}

/* ===== Grid Background ===== */
.bg-grid-slate-100 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(26 95 107 / 0.05)'%3E%3Cpath d='M0 .5H31.5V32'/%3E%3C/svg%3E");
}
.dark .bg-grid-slate-100 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(45 130 145 / 0.1)'%3E%3Cpath d='M0 .5H31.5V32'/%3E%3C/svg%3E");
}

/* ===== Dark Mode Brand Overrides ===== */
.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); }

/* ===== Hover Utilities ===== */
.hover-bg-brand:hover { background-color: var(--brand-teal-light); }
.dark .hover-bg-brand:hover { background-color: var(--brand-teal); }

/* ===== Mobile Dropdown Menu ===== */
#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; }
}
