/* ==========================================
   The Memory Scribe — Global Design System
   ========================================== */

:root {
  /* Core brand palette (public + app pages) */
  --primary-navy: #1a2b4c;
  --accent-gold: #c5a059;
  --text-dark: #2c3e50;
  --text-muted: #64748b;
  --card-bg: rgba(255, 255, 255, 0.92);
  --border-color: #e2e8f0;

  /* App-surface tokens (dashboard, profile, modals) */
  --app-bg: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  --surface-white: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-tint: #f1f5f9;
  --ink-strong: #0f172a;
  --ink-body: #334155;
  --action-blue: #0284c7;
  --action-blue-ink: #0369a1;
  --danger-red: #ef4444;
  --success-green: #10b981;
}

/* 1. Top-to-Bottom Faded Light Blue Background */
body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, serif;
  color: var(--text-dark);
  min-height: 100vh;
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 35%, #ffffff 100%);
  background-attachment: fixed;
  
  /* Page Entry Transition */
  animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 2. Keyframe Page Entry Animation */
@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary-navy);
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary-navy);
}

/* Buttons & Inputs */
.btn-primary {
  background: var(--primary-navy);
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(26, 43, 76, 0.15);
}

.btn-primary:hover {
  background: #243b66;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 43, 76, 0.25);
}

/* Card Container Hover & Animation Effects */
.animated-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.animated-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   Header Brand & Logo Styling
   ========================================== */

.brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  gap: 3px;
}

/* Small, compact logo image */
.brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* Small subtext underneath in Helvetica */
.brand-subtext {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--primary-navy, #1a2b4c);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.brand-link:hover .brand-subtext {
  color: #243b66;
}

/* ==========================================
   Shared App Surface (logged-in pages: dashboard, profile)
   ========================================== */

body.app-surface {
  background: var(--app-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-strong);
}

header.app-header {
  padding: 12px 30px;
}

/* Top Right User Menu Dropdown */
.user-menu {
  position: relative;
  display: inline-block;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-tint);
  padding: 6px 14px;
  border-radius: 30px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-strong);
}
.user-avatar {
  width: 28px;
  height: 28px;
  background: var(--action-blue);
  color: var(--surface-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 42px;
  background-color: var(--surface-white);
  min-width: 190px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  z-index: 200;
}
.dropdown-content a {
  color: var(--ink-body);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.dropdown-content a:hover {
  background-color: var(--surface-subtle);
  color: var(--action-blue);
}
.user-menu:hover .dropdown-content {
  display: block;
}

/* App card (white surface variant of .animated-card) */
.app-card {
  background: var(--surface-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Primary action button used on app surfaces */
.btn-action {
  background: var(--action-blue);
  color: var(--surface-white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.btn-action:hover {
  filter: brightness(1.08);
}

/* ==========================================
   Shared Form Styles (login, register, profile)
   ========================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.form-grid .full-width {
  grid-column: 1 / -1;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--primary-navy);
  display: block;
  margin-bottom: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.form-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 0.92rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(26, 43, 76, 0.1);
}
.toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.toggle a {
  color: var(--primary-navy);
  font-weight: bold;
  text-decoration: none;
}
.toggle a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full-width {
    grid-column: span 1;
  }
}

/* ==========================================
   Senior-Friendly Voice & Audiobook Narration Styles (Phase 1)
   ========================================== */

/* Voice Recording Row */
.voice-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.btn-voice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-voice:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-voice.voice-recording-active {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #ef4444;
  animation: pulse-recording 1.6s infinite ease-in-out;
}

@keyframes pulse-recording {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    transform: scale(1.02);
  }
}

.voice-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #b91c1c;
  font-weight: 500;
}

.recording-dot {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: blink-recording-dot 1s infinite;
}

@keyframes blink-recording-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Audiobook Narration Toolbar */
.narration-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.btn-narrate-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-narrate-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.narration-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-stop-reading {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1.5px solid #ef4444 !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.2);
  transition: all 0.15s ease;
}

.btn-stop-reading:hover {
  background: #fecaca !important;
  border-color: #dc2626 !important;
  transform: translateY(-1px);
}

.btn-audio-ctrl {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-audio-ctrl:hover {
  background: #f1f5f9;
}

.speed-control-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #475569;
}

.speed-select {
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}

.narration-status-banner {
  font-size: 0.88rem;
  color: #0369a1;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Holiday Card Strategy — CTA Banners & Creator Modal
   ========================================================================== */

/* Festive Banner below chapter draft (Landing Page) */
.holiday-card-cta {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fef3c7 100%);
  border: 1.5px solid #86efac;
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  animation: pageFadeIn 0.4s ease;
}

.holiday-card-cta-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.holiday-cta-emoji {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.holiday-cta-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 3px;
  font-family: 'Georgia', serif;
}

.holiday-cta-desc {
  margin: 0;
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.45;
}

.btn-holiday-cta {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff !important;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.28);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-holiday-cta:hover {
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.38);
}

/* Dashboard Action Button */
.btn-holiday-sm {
  background: #f0fdf4;
  color: #15803d;
  border: 1.5px solid #86efac;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-holiday-sm:hover {
  background: #dcfce7;
  border-color: #4ade80;
  transform: translateY(-1px);
}

/* Modal Overlay & Card Container */
.holiday-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  animation: pageFadeIn 0.2s ease;
}

.holiday-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 40px);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin: auto;
  box-sizing: border-box;
}

.holiday-modal-header {
  padding: 14px 20px 12px;
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #1e3a8a 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.holiday-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-family: 'Georgia', serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.holiday-modal-header p {
  margin: 2px 0 0 0;
  font-size: 0.82rem;
  opacity: 0.9;
  line-height: 1.35;
}

.btn-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
  margin-left: 12px;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.holiday-modal-body {
  padding: 14px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-sizing: border-box;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-input, .modal-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.15s ease;
}

.modal-input:focus, .modal-textarea:focus {
  outline: none;
  border-color: #15803d;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}

.modal-textarea {
  resize: vertical;
  min-height: 50px;
  height: 50px;
  line-height: 1.4;
}

/* Theme Picker Cards */
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.theme-card-option {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  background: #ffffff;
}

.theme-card-option:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.theme-card-option.active {
  border-color: #15803d;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.2);
}

.theme-icon {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 2px;
}

.theme-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
}

/* Generated Link Box */
.generated-link-box {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.generated-link-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.link-input-row {
  display: flex;
  gap: 8px;
}

.link-input-row input {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.82rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-family: monospace;
}

.btn-copy-link {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-copy-link:hover {
  background: #0369a1;
}

.btn-copy-link.copied {
  background: #16a34a !important;
}

/* Modal Action Footer */
.holiday-modal-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}

.modal-share-quick-links {
  display: flex;
  gap: 8px;
}

.btn-share-icon {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.btn-share-icon:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-preview-card {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  padding: 9px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
  transition: all 0.18s;
}

.btn-preview-card:hover {
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
  transform: translateY(-1px);
}

/* Auth Gate View inside Holiday Modal */
.holiday-auth-gate {
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow-y: auto;
  box-sizing: border-box;
  animation: pageFadeIn 0.2s ease;
}

.auth-gate-icon {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.holiday-auth-gate h3 {
  margin: 0;
  font-family: 'Georgia', serif;
  font-size: 1.35rem;
  color: #14532d;
}

.holiday-auth-gate p {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  max-width: 440px;
}

.auth-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin-top: 6px;
}

.btn-gate-register {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
  transition: all 0.2s;
  box-sizing: border-box;
}

.btn-gate-register:hover {
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
  transform: translateY(-1px);
}

.btn-gate-login {
  background: #ffffff;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  box-sizing: border-box;
}

.btn-gate-login:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-gate-back {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.btn-gate-back:hover {
  color: #0f172a;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .holiday-modal-backdrop {
    padding: 12px 8px;
  }
  .holiday-modal-container {
    max-height: calc(100vh - 24px);
  }
  .modal-form-row {
    grid-template-columns: 1fr;
  }
  .theme-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .holiday-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-share-quick-links {
    width: 100%;
    justify-content: space-between;
  }
  .btn-preview-card {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   Shared Site Footer Styling
   ========================================== */
.site-footer {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 50px 20px 30px;
  color: #475569;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy, #1a2b4c);
  margin-bottom: 12px;
}

.footer-logo {
  height: 38px;
  width: auto;
}

.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.footer-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy, #1a2b4c);
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  font-size: 0.9rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent-gold, #c5a059);
}

.footer-bottom {
  max-width: 1100px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
  .footer-links-group {
    gap: 30px;
  }
}
