/* Belard Facility Services — tokens + components (adapted from the "Nocturne" design system) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-accent-2: #a7a1db;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-accent-100: #f5f4ff;
  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-500: #968ae0;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;
  --color-accent-800: #423a6a;
  --color-accent-900: #2b2741;

  --color-section: #262a60;
  --color-section-glow: #353b80;
  --color-section-ghost: #4c5397;

  --font-heading: "Inter", system-ui, sans-serif;
  --font-heading-weight: 500;
  --font-body: "Inter", system-ui, sans-serif;

  --space-2: 5.6px;
  --space-3: 8.4px;

  --radius-md: 8px;
  --radius-lg: 14px;
}

* , *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-2); }
img { display: block; max-width: 100%; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-2); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — inputs — */
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input::placeholder { color: color-mix(in srgb, var(--color-text) 50%, transparent); }
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }

/* — page-specific — */
@keyframes belard-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.belard-nav-link {
  position: relative; display: block; text-decoration: none;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
  font-size: 13.5px; letter-spacing: 0.01em; padding: 9px 0 9px 20px;
}
.belard-nav-link:hover { color: var(--color-text); }
.belard-nav-link::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 1px;
  background: color-mix(in srgb, var(--color-text) 40%, transparent); transform: translateY(-50%);
}
.belard-nav-link:hover::before { width: 12px; background: var(--color-accent); }

.method-row { border-bottom: 1px solid var(--color-divider); }
.method-toggle {
  all: unset; box-sizing: border-box; display: flex; align-items: baseline;
  justify-content: space-between; gap: 24px; width: 100%; cursor: pointer; padding: 22px 0;
}
.method-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.method-left { display: flex; align-items: baseline; gap: 24px; }
.method-num { font-family: var(--font-heading); font-weight: 500; font-size: 13px; color: var(--color-accent); }
.method-title { font-family: var(--font-heading); font-weight: 500; font-size: clamp(18px,2vw,22px); letter-spacing: -0.008em; color: var(--color-text); }
.method-symbol { font-size: 20px; color: var(--color-accent); flex-shrink: 0; }
.method-copy {
  font-size: 15.5px; line-height: 1.65; color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 62ch; margin: 0 0 26px 0; display: none;
}
.method-row.open .method-copy { display: block; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

/* Below this width the sidebar/main row wraps to a stacked layout (see index.html) —
   sticky + min-height:100vh would otherwise pin the sidebar over the stacked content. */
@media (max-width: 900px) {
  .belard-sidebar {
    position: static !important;
    min-height: 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--color-divider);
  }
}

/* Below ~560px the services grid can't fit two 230px tracks, so the auto-fit
   collapses to one column — but a featured card's "span 2" still asks for a
   second (now-implicit) column, which overflows the grid. Un-span it here. */
@media (max-width: 560px) {
  .service-featured { grid-column: span 1 !important; }
}
