/* ============================================================
   MyMemory — Design System
   Warm, respectful, calm, modern minimal
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@400;500;600;700&display=swap');

/* --- CSS Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- Custom Properties --- */
:root {
  /* Colors — dark premium palette */
  --bg: #1B2430;
  --bg-alt: #151C25;
  --bg-card: #232E3D;
  --surface: #202A38;
  --border: #334155;
  --border-light: #2A3648;

  --text: #FAF8F5;
  --text-secondary: #B8B0A8;
  --text-muted: #85807C;
  --text-inverse: #1B2430;

  --gold: #D4B97E;
  --gold-light: #E4C98E;
  --gold-dark: #B4995E;
  --gold-bg: rgba(212, 185, 126, 0.1);

  --accent: #D4B97E;
  --accent-hover: #E4C98E;

  --success: #88B088;
  --success-bg: rgba(136, 176, 136, 0.1);
  --warning: #E4B06A;
  --warning-bg: rgba(228, 176, 106, 0.1);
  --error: #D58B8B;
  --error-bg: rgba(213, 139, 139, 0.1);
  --info: #8BACD5;
  --info-bg: rgba(139, 172, 213, 0.1);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-5xl: 4rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(44, 40, 37, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 40, 37, 0.08);
  --shadow-lg: 0 8px 30px rgba(44, 40, 37, 0.1);
  --shadow-xl: 0 16px 50px rgba(44, 40, 37, 0.12);
  --shadow-gold: 0 4px 20px rgba(196, 162, 101, 0.2);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-2xl);
}

h4 {
  font-size: var(--fs-xl);
}

h5 {
  font-size: var(--fs-lg);
}

h6 {
  font-size: var(--fs-md);
}

p {
  margin-bottom: var(--sp-4);
}

p:last-child {
  margin-bottom: 0;
}

.text-serif {
  font-family: var(--font-serif);
}

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: var(--fs-sm);
}

.text-lg {
  font-size: var(--fs-lg);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container--sm {
  max-width: 720px;
}

.container--md {
  max-width: 900px;
}

.container--lg {
  max-width: 1400px;
}

.section {
  padding: var(--sp-20) 0;
}

.section--alt {
  background-color: var(--bg-alt);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--sp-2);
}

.gap-3 {
  gap: var(--sp-3);
}

.gap-4 {
  gap: var(--sp-4);
}

.gap-6 {
  gap: var(--sp-6);
}

.gap-8 {
  gap: var(--sp-8);
}

.grid {
  display: grid;
  gap: var(--sp-8);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(27, 36, 48, 0.92);
  /* Matches --bg */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--duration) var(--ease);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.navbar__logo {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.navbar__logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--fs-sm);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.navbar__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--duration) var(--ease);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  margin-left: var(--sp-4);
}

.navbar__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
}

.navbar__mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

/* Mobile Nav */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: auto;
  height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  background: var(--bg);
  padding: var(--sp-8) var(--sp-6);
  flex-direction: column;
  gap: var(--sp-6);
  z-index: 999;
}

.navbar__mobile-menu.open {
  display: flex;
}

.navbar__mobile-menu a {
  font-size: var(--fs-lg);
  font-weight: 500;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: var(--gold);
  color: white;
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196, 162, 101, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}

.btn--ghost:hover {
  color: var(--gold);
  background: var(--gold-bg);
}

.btn--dark {
  background: var(--text);
  color: var(--text-inverse);
}

.btn--dark:hover {
  background: #3d3834;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 18px;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--fs-base);
}

.btn--full {
  width: 100%;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--sp-8);
  transition: all var(--duration) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.card--elevated {
  box-shadow: var(--shadow-md);
  border: none;
}

.card--elevated:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card--featured {
  border: 2px solid var(--gold);
  position: relative;
}

.card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge--gold {
  background: var(--gold-bg);
  color: var(--gold-dark);
}

.badge--success {
  background: var(--success-bg);
  color: var(--success);
}

.badge--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge--error {
  background: var(--error-bg);
  color: var(--error);
}

.badge--info {
  background: var(--info-bg);
  color: var(--info);
}

.badge--dark {
  background: var(--text);
  color: var(--text-inverse);
}

/* --- Form Inputs --- */
.form-group {
  margin-bottom: var(--sp-6);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.form-label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  margin-left: var(--sp-2);
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--fs-base);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6560' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Checkboxes */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  margin-bottom: var(--sp-4);
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  appearance: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: var(--bg);
}

.form-check input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10.28 2.28L4.5 8.06 1.72 5.28l-.94.94L4.5 9.94l6.72-6.72z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-check-label {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Radio */
.form-radio {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  margin-bottom: var(--sp-3);
  padding: var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}

.form-radio:hover {
  border-color: var(--gold);
  background: var(--gold-bg);
}

.form-radio.selected {
  border-color: var(--gold);
  background: var(--gold-bg);
}

.form-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.form-radio input[type="radio"]:checked {
  border-color: var(--gold);
  border-width: 6px;
}

/* --- Accordion --- */
.accordion {
  margin-top: var(--sp-4);
}

.accordion__item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}

.accordion__item:hover {
  border-color: var(--border);
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg-card);
  transition: background var(--duration) var(--ease);
}

.accordion__header:hover {
  background: var(--bg-alt);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  transition: transform var(--duration) var(--ease);
  color: var(--text-muted);
  flex-shrink: 0;
}

.accordion__item.open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.accordion__item.open .accordion__body {
  max-height: 500px;
}

.accordion__content {
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--sp-8);
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--bg);
}

.timeline__item.active .timeline__dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-bg);
}

.timeline__item.completed .timeline__dot {
  background: var(--success);
}

.timeline__title {
  font-weight: 600;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-1);
}

.timeline__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --- Progress Bar --- */
.progress-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.progress-bar__step {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: background var(--duration) var(--ease);
  position: relative;
}

.progress-bar__step.active {
  background: var(--gold);
}

.progress-bar__step.completed {
  background: var(--gold);
}

.progress-bar__label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.progress-bar__step.active .progress-bar__label {
  color: var(--gold);
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 40, 37, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-6) var(--sp-8);
  border-bottom: 1px solid var(--border-light);
}

.modal__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.modal__close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.modal__body {
  padding: var(--sp-8);
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-8);
  border-top: 1px solid var(--border-light);
}

/* --- Tags / Chips --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 6px 14px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.tag:hover,
.tag.active {
  background: var(--gold-bg);
  border-color: var(--gold);
  color: var(--gold-dark);
}

.tag__remove {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  margin-left: var(--sp-1);
}

.tag__remove:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* --- Alert / Notice --- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.alert--warning {
  background: var(--warning-bg);
  color: #8B6914;
  border: 1px solid #E8D5A0;
}

.alert--info {
  background: var(--info-bg);
  color: #4A6B8B;
  border: 1px solid #B0C8E8;
}

.alert--success {
  background: var(--success-bg);
  color: #3D6B3D;
  border: 1px solid #A8D4A8;
}

.alert--error {
  background: var(--error-bg);
  color: #8B3D3D;
  border: 1px solid #E8A0A0;
}

.alert__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: var(--radius-full);
  margin: var(--sp-6) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-12);
}

.section-header__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}

.section-header h2 {
  margin-bottom: var(--sp-4);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--fs-md);
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: var(--text-inverse);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}

.footer__brand h3 {
  font-family: var(--font-serif);
  color: var(--text-inverse);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
}

.footer__brand p {
  color: rgba(250, 248, 245, 0.6);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 300px;
}

.footer__col h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.4);
  margin-bottom: var(--sp-5);
}

.footer__col a {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: var(--sp-3);
  transition: color var(--duration) var(--ease);
}

.footer__col a:hover {
  color: var(--gold-light);
}

.footer__bottom {
  border-top: 1px solid rgba(250, 248, 245, 0.1);
  padding-top: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(250, 248, 245, 0.4);
}

.footer__bottom a {
  color: rgba(250, 248, 245, 0.5);
  transition: color var(--duration) var(--ease);
}

.footer__bottom a:hover {
  color: var(--gold-light);
}

/* --- Page Top Spacer (for fixed nav) --- */
.page-top {
  padding-top: var(--nav-height);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-in {
  animation: fadeInUp 0.6s var(--ease) both;
}

.animate-in-delay-1 {
  animation-delay: 0.1s;
}

.animate-in-delay-2 {
  animation-delay: 0.2s;
}

.animate-in-delay-3 {
  animation-delay: 0.3s;
}

.animate-in-delay-4 {
  animation-delay: 0.4s;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 {
    font-size: var(--fs-3xl);
  }

  h2 {
    font-size: var(--fs-2xl);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  h1 {
    font-size: var(--fs-2xl);
  }

  h2 {
    font-size: var(--fs-xl);
  }

  .section {
    padding: var(--sp-12) 0;
  }

  .container {
    padding: 0 var(--sp-4);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  /* Navbar mobile */
  .navbar__links {
    display: none;
  }

  .navbar__cta.desktop-only {
    display: none;
  }

  .navbar__mobile-toggle {
    display: flex;
  }

  .btn--lg {
    padding: 14px 28px;
    font-size: var(--fs-sm);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--fs-xl);
  }

  .section {
    padding: var(--sp-10) 0;
  }
}

/* --- Utility Visibility --- */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Selection --- */
::selection {
  background: rgba(196, 162, 101, 0.2);
  color: var(--text);
}
/* Keyboard access and motion preferences across all pages. */
:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
.skip-link { position:fixed; top:10px; left:15px; transform:translateY(-180%); z-index:1100; padding:10px 18px; background:var(--bg-card); color:var(--text); }
.skip-link:focus { transform:none; }
.btn:active { transform:translateY(1px); }
@media(max-width:768px) { .autosave-indicator { display:none; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none !important; transition:none !important; } .animate-on-scroll { opacity:1; transform:none; } }
