/* ============================================
   Alex Morgan — Product Design Portfolio
   Stylesheet
   ============================================ */

:root {
  --ink: #152238;
  --bg: #ffffff;
  --accent: #2563eb;
  --muted: #5b6b7c;
  --surface: #eef8f5;

  --accent-teal: #0f9b8e;
  --border: #dbe6e2;

  --font-head: 'Space Groteske', 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(21, 34, 56, 0.06), 0 8px 24px rgba(21, 34, 56, 0.05);
}

/* ============================================
   Reset & base
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p {
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-teal);
}

ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

/* ============================================
   Layout primitives
   ============================================ */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  background: var(--bg);
  padding: var(--space-5) 0;
}

.section-alt {
  background: var(--surface);
  padding: var(--space-5) 0;
}

/* ============================================
   Site header & nav
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: var(--space-2);
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand:hover {
  color: var(--accent);
}

.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  display: inline-block;
  flex-shrink: 0;
}

/* nav-toggle: checkbox-free CSS toggle button, purely visual marker.
   Since no JS is guaranteed, nav is laid out to always be visible/reachable
   as a wrapped, scrollable row rather than hidden behind the toggle. */
.nav-toggle {
  display: none;
}

.site-nav {
  width: 100%;
  order: 3;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--surface);
}

.site-nav a.active {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (min-width: 720px) {
  .site-header .container {
    flex-wrap: nowrap;
  }

  .site-nav {
    width: auto;
    order: 0;
  }

  .site-nav ul {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: var(--space-6) 0 var(--space-5);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero-title {
  max-width: 20ch;
  margin-bottom: var(--space-3);
}

.hero-sub {
  max-width: 42ch;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: var(--space-3);
}

/* ============================================
   Grid system
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.grid-2 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-teal);
  box-shadow: 0 4px 8px rgba(21, 34, 56, 0.08), 0 16px 32px rgba(21, 34, 56, 0.08);
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title::before {
  content: "#";
  color: var(--accent-teal);
  font-weight: 700;
  font-family: var(--font-head);
}

.card-body {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* ============================================
   Feature blocks
   ============================================ */

.feature {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.feature:first-of-type {
  border-top: none;
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   Stats
   ============================================ */

.stat {
  text-align: left;
  padding: var(--space-2) 0;
}

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Quotes
   ============================================ */

.quote {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--ink);
  line-height: 1.4;
  border-left: 3px solid var(--accent-teal);
  padding-left: var(--space-3);
  margin: var(--space-3) 0;
  font-weight: 500;
}

.quote-attr {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

.quote-attr::before {
  content: "— ";
}

/* ============================================
   List with checks
   ============================================ */

.list-checks {
  list-style: none;
  padding-left: 0;
  margin: var(--space-2) 0;
}

.list-checks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.list-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-teal);
  font-weight: 700;
}

/* ============================================
   Buttons & CTA
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-teal);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 720px) {
  .cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
  }
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: var(--space-4) 0;
  margin-top: var(--space-5);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.9rem;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #ffffff;
}

/* ============================================
   Utility spacing tweaks
   ============================================ */

.section > .container > *:first-child,
.section-alt > .container > *:first-child {
  margin-top: 0;
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-2);
  }

  .hero {
    padding: var(--space-5) 0 var(--space-4);
  }
}