/*
 * Global Stylesheet for CoachAI Web Application
 */

:root {
  --primary-colour: #0a1930;
  --secondary-colour: #12284c;
  --accent-colour: #00bfa6;
  --accent-colour-light: #17d3ba;
  --text-light: #f5f5f5;
  --text-muted: #adb8c4;
  --card-bg: #0f2547;
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-colour);
  color: var(--text-light);
  line-height: 1.6;
}

a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background-color: rgba(10, 25, 48, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-light);
  transition: transform var(--transition-speed) ease;
  border-radius: 2px;
  position: relative;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

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

.nav-links li a {
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--text-light);
}

.nav-links li a.active {
  color: var(--accent-colour);
}

.nav-links li .btn {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

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

.primary-btn:hover {
  background-color: var(--accent-colour-light);
  color: var(--primary-colour);
}

.secondary-btn {
  background-color: transparent;
  color: var(--accent-colour);
  border: 2px solid var(--accent-colour);
}

.secondary-btn:hover {
  background-color: var(--accent-colour);
  color: var(--primary-colour);
}

.full-width { width: 100%; }

/* Hero Section */
/* Hero Section - Updated for better scroll cues */
.hero {
  min-height: 80vh; /* Aggressive cut to force text into view */
  background-image: linear-gradient(rgba(10, 25, 48, 0.4), rgba(10, 25, 48, 0.4)), url('assets/hero.jpg');
  background-size: cover;
  background-position:center; /* Keeps the head safe! */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 0;
  background-color: var(--secondary-colour);
  text-align: center;
}

.pricing-hero {
  padding: 6rem 0 3rem;
  text-align: center;
  background-image: linear-gradient(135deg, var(--primary-colour) 0%, var(--secondary-colour) 100%);
}

.pricing-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.pricing-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.pricing-options-section {
  padding: 4rem 0;
  background-color: var(--primary-colour);
  text-align: center;
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pricing-plan {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pricing-plan h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.pricing-plan .price { font-size: 2.5rem; color: var(--accent-colour); margin-bottom: 0.5rem; }
.pricing-plan .price span { font-size: 0.9rem; color: var(--text-muted); }

.pricing-plan .plan-feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  text-align: left;
}

.pricing-plan .plan-feature-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
  font-size: 1.05rem;
}

.pricing-plan .plan-feature-list li::before {
  content: '\2714';
  font-family: sans-serif;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-colour);
}

.pricing-plan .btn { margin-top: auto; }

/* =========================================
   ABOUT & FEATURES SECTIONS (Restored)
   ========================================= */

/* About Section */
.about-section {
  padding: 6rem 0;
  background-color: var(--primary-colour);
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.2;
}

.about-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* Features Section (Key Benefits) */
.features-section {
  padding: 6rem 0;
  background-color: var(--secondary-colour);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.features-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  justify-content: center; /* Keeps cards central */
}

.feature-card {
  background-color: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers icon and text inside the card */
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-colour);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: transparent; /* Removed the teal background since the image covers it */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  
  /* CLIP THE IMAGE */
  overflow: hidden; 
  padding: 0; /* <--- This was the issue. Set to 0 to fill the circle. */
  
  /* Optional: Add a thin border to define the circle edge */
  border: 2px solid var(--accent-colour); 
}

.icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the circle completely */
  display: block;
}
.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

/* Auth Forms */
.auth-main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 4rem; /* NEW: Adds gap between the form and the bottom of the phone screen */
}

.auth-container {
  background-color: var(--card-bg);
  padding: 3rem 2rem 4rem 2rem; /* UPDATED: Increased bottom padding (3rd number) to 4rem */
  border-radius: var(--border-radius);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.auth-container h1 { margin-bottom: 2rem; }
.auth-form .form-group { margin-bottom: 1.5rem; text-align: left; }
.auth-form label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.auth-form input {
  width: 100%;
  padding: 0.7rem 0.75rem;
  background-color: var(--secondary-colour);
  border: 2px solid var(--secondary-colour);
  border-radius: var(--border-radius);
  color: var(--text-light);
  font-size: 16px;
}
.auth-form input:focus { outline: none; border-color: var(--accent-colour); }

.auth-alt { 
  margin-top: 2rem; /* UPDATED: Increased gap between the Button and this Text */
  font-size: 0.85rem; 
  color: var(--text-muted); 
}
.auth-alt a { color: var(--accent-colour); }
/* Generator */
.generator-main {
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  padding-bottom: 4rem;
}





.generator-container h1 { margin-bottom: 2rem; text-align: center; }
.generator-form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  margin: 0 auto;
  margin-bottom: 2rem;
}
.generator-form .form-group { margin-bottom: 1.25rem; }
.generator-form label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.generator-form select, .generator-form input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background-color: var(--secondary-colour);
  border: 2px solid var(--secondary-colour);
  border-radius: var(--border-radius);
  color: var(--text-light);
  font-size: 16px;
  appearance: none;
}
.generator-form select:focus, .generator-form input:focus { outline: none; border-color: var(--accent-colour); }

.generated-session {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 2rem;
}
.generated-session.hidden { display: none; }
.generated-session pre {
  white-space: pre-wrap;
  word-break: break-word;
  background-color: var(--secondary-colour);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow-x: auto;
}

/* Dashboard List (Simplified Flexbox Layout) */
.dashboard-main {
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  padding-bottom: 4rem;
}

.dashboard-container h1 { margin-bottom: 1rem; }
.welcome-message { margin-bottom: 0.5rem; font-size: 1.1rem; color: var(--text-muted); }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.dashboard-actions .btn { flex: 1; }

.sessions-heading { margin-bottom: 1rem; }
.sessions-list { list-style: none; margin-bottom: 1rem; }

.sessions-list li {
  background-color: var(--card-bg);
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.session-title {
  font-weight: 600;
  color: var(--text-light);
  flex: 1; /* Takes up all remaining space */
  font-size: 1.1rem;
}

.session-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.view-btn {
  background-color: var(--accent-colour);
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}

.view-btn:hover {
  background-color: #13b09c;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(10, 25, 48, 0.85);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 800px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal {
  color: var(--text-muted);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover { color: var(--accent-colour); }

.modal-body {
  margin-top: 1.5rem;
  white-space: pre-wrap;
  color: var(--text-light);
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between; /* Puts Delete on left, Close on right */
  align-items: center;
}

.modal-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #ff4444;
  border: 2px solid #ff4444;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  
  /* THIS LINE FIXES THE FONT */
  font-family: 'Poppins', sans-serif; 
  
  transition: all 0.2s;
  font-size: 1rem;
}

.modal-delete-btn:hover {
  background-color: #ff4444;
  color: white;
}

/* Footer */
.footer {
  background-color: var(--secondary-colour);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-wrapper { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 0.5rem; }
.footer-brand .tagline { font-size: 0.85rem; color: var(--text-muted); }
.footer-nav { list-style: none; display: flex; gap: 1.5rem; }
.footer-nav a { font-size: 0.9rem; color: var(--text-muted); }
.copyright { width: 100%; text-align: center; margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); }

/* Toast */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  background-color: var(--accent-colour); color: var(--primary-colour);
  padding: 1rem 2rem; border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.3s;
  z-index: 2000; pointer-events: none; font-weight: 600;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Responsive Design - Mobile Optimised */
@media (max-width: 768px) {
  /* 1. Hamburger Menu Logic */
  .nav-toggle { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 48px; 
    height: 48px; 
    position: absolute; 
    right: 0.5rem; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 1001; 
  }
  
  .nav-links { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background-color: rgba(10, 25, 48, 0.95); 
    flex-direction: column; 
    gap: 1rem; 
    padding: 0; 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height var(--transition-speed) ease, padding var(--transition-speed) ease; 
  }
  
  .nav-links.open { 
    padding: 1rem 0; 
    max-height: 400px; 
  }

  /* 2. Dashboard List Items - The Fix */
  .sessions-list li { 
    flex-wrap: wrap; /* Allow items to wrap onto new lines */
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .session-title { 
    width: 100%; /* Title takes the full top row */
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
  }
  
  .session-date { 
    font-size: 0.85rem; 
    margin-right: auto; /* Pushes the button to the far right */
  }
  
  .session-actions {
    margin-left: 0; /* Reset margins */
  }

  .view-btn { 
    width: auto; /* Button is only as wide as it needs to be */
    padding: 0.4rem 1rem;
    margin-top: 0;
    font-size: 0.85rem;
  }
}

/* =========================================
   COMING SOON PAGE STYLES
   ========================================= */

.coming-soon-hero {
  min-height: 100vh;
  width: 100%;
  background-image: linear-gradient(
      rgba(10, 25, 48, 0.7),
      rgba(10, 25, 48, 0.6)
    ),
    url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.glass-panel {
  background: rgba(15, 37, 71, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cs-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.glass-panel h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.glass-panel p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.glass-panel .sub-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.social-icons a {
  font-size: 2rem;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: var(--accent-colour);
  transform: translateY(-3px);
}

.simplified-footer {
    background: transparent;
    position: absolute;
    bottom: 0;
    width: 100%;
    border: none;
}

@media (max-width: 600px) {
  .glass-panel {
    padding: 2rem 1.5rem;
  }
  .glass-panel h1 {
    font-size: 1.8rem;
  }
  .simplified-footer {
      position: relative;
  }
}

/* =========================================
   HIDE NUMBER INPUT ARROWS
   ========================================= */

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield; /* Added for compatibility */
}

/* =========================================
   MODAL ACTIONS (Right Side Grouping)
   ========================================= */
.modal-actions-right {
  display: flex;
  gap: 0.8rem;
}

/* Mobile adjustment for buttons */
@media (max-width: 600px) {
  .modal-footer {
    flex-direction: column;
    gap: 1rem;
  }
  .modal-actions-right {
    width: 100%;
    justify-content: space-between;
  }
  .modal-delete-btn {
    width: 100%;
  }
  .btn.secondary-btn {
    flex: 1;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* =========================================
   PRINT STYLES ("Take it to the pitch")
   ========================================= */
@media print {
  /* 1. Hide Everything by default */
  body * {
    visibility: hidden;
  }

  /* 2. Hide UI elements specifically */
  .header, .footer, .modal-footer, .close-modal, .dashboard-actions, .sessions-heading {
    display: none !important;
  }

  /* 3. Only show the Modal Content */
  #session-modal, #session-modal * {
    visibility: visible;
  }

  /* 4. Reset Modal Positioning for Paper */
  .modal {
    position: absolute;
    left: 0;
    top: 0;
    background: white;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .modal-content {
    background-color: white;
    color: black;
    box-shadow: none;
    border: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  /* 5. Ink-Saving Card Styles */
  .drill-card {
    background: white !important;
    border: 1px solid #ccc !important;
    color: black !important;
    break-inside: avoid; /* Try not to split a drill across two pages */
    margin-bottom: 20px;
  }

  .drill-title, .drill-type, .drill-section h4, .drill-list li {
    color: black !important;
  }
  
  .drill-list li::before {
    color: black !important; /* Black bullet points */
  }

  .drill-header {
    border-bottom: 1px solid #eee;
  }

  /* 6. Ensure links don't look blue/underlined if printed */
  a {
    text-decoration: none;
    color: black;
  }
}

/* =========================================
   EDIT MODE STYLES & HEADER FIXES
   ========================================= */
.modal-header-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* CRITICAL FIX: Adds a buffer zone on the right so text doesn't hit the 'X' button */
  padding-right: 2.5rem; 
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%; /* Ensure it uses the full available width */
}

.edit-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 8px; /* Bigger touch target for mobile */
  flex-shrink: 0; /* Ensures the button never gets squashed to size 0 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-btn:hover {
  color: var(--accent-colour);
}

/* The input box that appears when you click edit */
.edit-title-input {
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--accent-colour);
  border-radius: 4px;
  padding: 6px 10px;
  
  /* SMART SIZING FIX */
  width: auto; /* Stop forcing 100% */
  flex: 1;     /* Grow to fill available space, but respect the button next to it */
  min-width: 0; /* Allows it to shrink on very small screens if needed */
  outline: none;
}

/* =========================================
   MOBILE MODAL FIX (Prevent X & Checkmark Overlap)
   ========================================= */
@media (max-width: 600px) {
  /* 1. Move the Close (X) button tighter to the corner */
  .close-modal {
    top: 0.8rem;
    right: 1rem;
    z-index: 2001; /* Ensure it stays on top */
  }

  /* 2. Create a "Buffer Zone" for the header content */
  .modal-header-content {
    margin-right: 2rem; /* Stops the title/checkmark before they hit the X */
    padding-right: 0;   /* Reset padding since we are using margin */
  }

  /* 3. Ensure the input box doesn't push the checkmark too far */
  .edit-title-input {
    font-size: 1.1rem; /* Slightly smaller font on mobile to fit better */
    width: 100%;       /* Let flexbox handle the width */
  }
}

/* =========================================
   MOBILE FOOTER FIX
   ========================================= */
@media (max-width: 768px) {
  /* 1. Stack the main footer containers vertically */
  .footer-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem; /* Add side padding so it doesn't touch edges */
  }

  /* 2. Allow the links list to wrap onto two lines if needed */
  .footer-nav {
    flex-direction: row; /* Keep links side-by-side... */
    flex-wrap: wrap;     /* ...but let them wrap if they run out of space */
    justify-content: center;
    gap: 1rem 1.5rem;    /* Row gap: 1rem, Column gap: 1.5rem */
    margin: 0 auto;
  }

  /* 3. Ensure the Brand/Logo section is centered */
  .footer-brand {
    align-items: center;
    margin-bottom: 0;
  }
  
  /* 4. Make the copyright text smaller and centered */
  .copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    width: 100%;
  }
}