/* AnyAI Lab – ERP Blog | Global styles */
:root {
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5c6b7f;
  --color-accent: #0d6e6e;
  --color-accent-hover: #095858;
  --color-border: #e2e8f0;
  --color-hero: #0f172a;
  /* System stack only — no external font CDN (avoids ERR_BLOCKED_BY_CLIENT from blockers) */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", Times, serif;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 10px;
  --max-w: 72rem;
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-hero);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-hero);
  text-decoration: none;
}

.site-logo span {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-primary a {
  padding: 0.5rem 0.85rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-primary a:hover,
.nav-primary a.is-active {
  background: rgba(13, 110, 110, 0.1);
  color: var(--color-accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.85rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-text);
  border-radius: 6px;
}

.nav-dropdown__btn:hover,
.nav-dropdown.is-open .nav-dropdown__btn {
  background: rgba(13, 110, 110, 0.1);
  color: var(--color-accent);
}

.nav-dropdown__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  padding: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.nav-dropdown.is-open .nav-dropdown__panel {
  display: block;
}

.nav-dropdown__panel a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
}

.nav-dropdown__panel a:hover {
  background: var(--color-bg);
  color: var(--color-accent);
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.25rem;
  background: var(--color-hero);
  color: #cbd5e1;
}

.site-footer a {
  color: #94d4d4;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer__partner {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 1rem 0 0;
  color: #94a3b8;
}

.site-footer__partner a {
  color: #7dd3d3;
  font-weight: 600;
}

.site-footer__bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  text-align: center;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  color: #e2e8f0;
  padding: 3rem 1.25rem 4rem;
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
  max-width: 20ch;
}

.hero p {
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 0 1.5rem;
  color: #cbd5e1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Light ghost on dark bands (category hero, etc.) */
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Sections */
.section {
  padding: 3rem 1.25rem;
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section__lead {
  color: var(--color-text-muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-primary {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-md);
  }

  .site-header.is-menu-open .nav-primary {
    display: flex;
  }

  .nav-dropdown__panel {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 0.5rem;
  }

  .nav-dropdown.is-open .nav-dropdown__panel {
    display: block;
  }
}

@media (min-width: 901px) {
  .nav-dropdown:hover .nav-dropdown__panel,
  .nav-dropdown:focus-within .nav-dropdown__panel {
    display: block;
  }
}

/* Legal / static pages */
.page-legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-legal h1 {
  font-size: 2rem;
}

.page-legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

/* Contact form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
