/* ============================================================
   site.css — Shared styles for Clearvo marketing site
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* --- CSS Variables (light theme) --- */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --accent: #6d28d9;
  --accent-light: #ede9fe;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --radius-card: 14px;
  --radius-btn: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

/* --- Container --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Announce Bar --- */
.announce-bar {
  background: var(--accent-light);
  border-bottom: 1px solid #ddd6fe;
  padding: 10px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #5b21b6;
}
.announce-bar a {
  color: #4c1d95;
  font-weight: 600;
  text-decoration: none;
  margin-left: 6px;
}
.announce-bar a:hover { text-decoration: underline; }
.announce-bar .pill {
  display: inline-block;
  background: #6d28d9;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  margin-right: 8px;
}

/* --- Nav --- */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
#main-nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active { font-weight: 600; }

.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.nav-dropdown-btn:hover { color: var(--text-primary); }

.nav-dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-signin {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-signin:hover { background: var(--surface); color: var(--text-primary); }
.btn-primary-nav {
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary-nav:hover { background: #5b21b6; }

/* --- Common Button Styles --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-primary:hover { background: #5b21b6; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-secondary:hover { background: var(--surface); color: var(--text-primary); }

/* --- Footer (shared base) --- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
