/* =============================================
   NRX AUAHA COURSE - DESIGN SYSTEM
   All colours, fonts and base styles live here
   ============================================= */

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Cormorant+Garamond:ital,wght@0,400;1,400&family=Geist:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* Colour tokens — change these once and they update everywhere */
:root {
  --bg:      #efe6da;   /* warm linen background */
  --bg2:     #e6dac8;   /* slightly darker linen for alternate sections */
  --ink:     #044e52;   /* dark teal — main text and headers */
  --ink2:    #2a5f62;   /* slightly lighter teal for secondary text */
  --muted:   #6a8080;   /* muted teal for labels and captions */
  --hair:    #c8b99a;   /* warm beige for borders and dividers */
  --accent:  #B8922A;   /* gold — buttons, hover states, highlights */
  --rust:    #b84a2b;   /* rust red — used sparingly for alerts */
  --white:   #ffffff;
}

/* Base reset — removes browser default spacing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base body styles */
body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
}

/* ---- TYPOGRAPHY ---- */

/* Main display headings — big serif for impact */
h1, h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); } /* scales with screen size */
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

/* Subheadings — clean sans-serif */
h3, h4 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  color: var(--ink);
}

h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

/* Labels and tags — mono for that tech feel */
.label, .tag, .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Italic emphasis in headings */
em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

p {
  margin-bottom: 1rem;
  color: var(--ink2);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- LAYOUT ---- */

/* Main container — keeps content centred with good margins */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Wider container for full-width sections */
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section spacing */
.section {
  padding: 5rem 0;
}

/* Alternate section background */
.section-alt {
  background-color: var(--bg2);
  padding: 5rem 0;
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Primary gold button */
.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #a07820;  /* slightly darker gold on hover */
  text-decoration: none;
}

/* Outlined button */
.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover {
  background-color: var(--ink);
  color: var(--white);
  text-decoration: none;
}

/* ---- CARDS ---- */

.card {
  background-color: var(--white);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 2rem;
}

.card:hover {
  border-color: var(--accent);
  transition: border-color 0.2s ease;
}

/* ---- NAVIGATION ---- */

.nav {
  background-color: var(--ink);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;  /* stays on top of everything */
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ---- FORMS ---- */

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--hair);
  border-radius: 4px;
  font-family: 'Geist', sans-serif;
  font-size: 0.95rem;
  background-color: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);  /* gold border when typing */
}

/* ---- PROGRESS BAR ---- */

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--hair);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent);  /* gold fill */
  border-radius: 3px;
  transition: width 0.4s ease;  /* animates as progress increases */
}

/* ---- DIVIDER ---- */

.divider {
  border: none;
  border-top: 1px solid var(--hair);
  margin: 2rem 0;
}

/* ---- UTILITY CLASSES ---- */

.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.text-accent  { color: var(--accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---- RESPONSIVE ---- */

/* Tablet and below */
@media (max-width: 768px) {
  .nav-links {
    display: none;  /* we'll add a mobile menu later */
  }

  .section,
  .section-alt {
    padding: 3rem 0;
  }
}
