/*
 * styles.css — Cirraw shared stylesheet
 * Fixes applied:
 *   #4  — Extracted shared CSS from all three HTML files
 *   #10 — Removed !important from .nav-cta (specificity fixed via .nav-links a.nav-cta selector)
 */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ── */
:root {
  --black: #080808;
  --white: #f5f4f0;
  --grey-1: #111111;
  --grey-2: #1c1c1c;
  --grey-3: #2e2e2e;
  --grey-4: #555555;
  --grey-5: #888888;
  --grey-6: #b0b0b0;
  --green: #1a9e6e;
  --green-light: #0d2e1f;
  --blue: #1a6eb5;
  --blue-light: #0d1e2e;
  --amber: #b57a1a;
  --amber-light: #2e1f0d;
  --purple: #7a5abf;
  --purple-light: #1a0d2e;
  --red: #c0392b;
  --red-light: #2e0d0d;
  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-2);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  color: var(--grey-5);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

/* Fix #10: specificity raised so !important is not needed */
.nav-links a.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-links a.nav-cta:hover {
  color: var(--black);
  opacity: 0.85;
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--grey-2); }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--grey-5);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--grey-2);
  z-index: 99;
  padding: 16px 20px 20px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  color: var(--grey-5);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--white); background: var(--grey-2); }
.mobile-menu .mobile-cta {
  margin-top: 8px;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  text-align: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-block;
  font-size: 14px;
  color: var(--grey-5);
  border: 1px solid var(--grey-3);
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--grey-5); color: var(--white); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--grey-2);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

.footer-logo { font-size: 14px; font-weight: 500; color: var(--grey-4); }

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--grey-4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--grey-6); }
