/* ============================================================
   Scottish Production — Design System
   Bold & Modern | Mobile-First | High Contrast
   ============================================================ */

/* ---- 1. CSS Custom Properties ---------------------------- */
:root {
  /* Brand */
  --blue:        #0048D9;
  --blue-dark:   #0038AC;
  --blue-light:  #3370E8;
  --red:         #E8203A;
  --red-dark:    #C01530;

  /* Neutrals */
  --dark:        #0A0A14;
  --dark-2:      #12121E;
  --dark-3:      #1A1A2E;
  --grey-800:    #2A2A3E;
  --grey-600:    #5A5A78;
  --grey-400:    #9898B0;
  --grey-200:    #D0D0E0;
  --grey-100:    #F0F2F8;
  --white:       #FFFFFF;

  /* Semantic */
  --success:     #00C07B;
  --warning:     #F5A623;
  --error:       #E8203A;
  --info:        #0095FF;

  /* Typography */
  --font-head:   'Space Grotesk', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;

  /* Spacing scale (8px base) */
  --s1: 0.5rem;   /* 8px  */
  --s2: 1rem;     /* 16px */
  --s3: 1.5rem;   /* 24px */
  --s4: 2rem;     /* 32px */
  --s5: 3rem;     /* 48px */
  --s6: 4rem;     /* 64px */
  --s7: 6rem;     /* 96px */

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.14);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.20);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.28);
  --glow-blue:  0 0 0 3px rgba(0,72,217,.35);
  --glow-red:   0 0 0 3px rgba(232,32,58,.35);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;

  /* Layout */
  --max-w:      1320px;
  --nav-h:      70px;
}

/* ---- 2. Reset & Base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#main-content { flex: 1; }

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue-dark); }

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
  color: var(--dark);
}

/* ---- 3. Utility ------------------------------------------ */
.container      { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--s3); }
.container-sm   { width: 100%; max-width: 760px;        margin-inline: auto; padding-inline: var(--s3); }
.container-md   { width: 100%; max-width: 1000px;       margin-inline: auto; padding-inline: var(--s3); }

.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-danger { color: var(--red); }
.text-success{ color: var(--success); }
.text-muted  { color: var(--grey-400); }

.d-flex       { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: var(--s1); }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  font-size: .7rem; font-weight: 700;
  background: var(--red); color: var(--white);
  border-radius: var(--r-full);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: .75rem; font-weight: 600;
  border-radius: var(--r-full);
  background: var(--grey-100);
  color: var(--grey-600);
}
.tag-blue  { background: rgba(0,72,217,.1); color: var(--blue); }
.tag-red   { background: rgba(232,32,58,.1); color: var(--red); }
.tag-green { background: rgba(0,192,123,.1); color: var(--success); }

/* ---- 4. Buttons ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-head);
  font-size: .9rem; font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  border-color: var(--grey-200);
  color: var(--dark);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-ghost-white {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }

.btn-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--dark-3); color: var(--white); }

.btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1.1rem 2.5rem; font-size: 1.1rem; border-radius: var(--r-lg); }
.btn-full { width: 100%; }

.btn-icon { padding: .7rem; aspect-ratio: 1; border-radius: var(--r-md); }

/* ---- 5. Navigation --------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow var(--t-base);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  display: flex; align-items: center; gap: var(--s2);
  height: 100%;
  max-width: var(--max-w); margin-inline: auto;
  padding-inline: var(--s3);
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}
.nav-logo .logo-text { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.2; }
.nav-logo .logo-text strong { display: block; font-weight: 800; color: var(--dark); }
.nav-logo .logo-text em     { display: block; font-style: normal; font-weight: 400; color: var(--blue); font-size: .85rem; }

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.nav-links a {
  display: flex; align-items: center; gap: 6px;
  padding: .5rem .8rem;
  font-size: .875rem; font-weight: 500;
  color: var(--grey-600);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue); background: rgba(0,72,217,.07);
}
.nav-links a i { font-size: .8rem; }

/* Right controls */
.nav-controls {
  display: flex; align-items: center; gap: var(--s1);
  margin-left: var(--s2);
}

.nav-icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-600); font-size: 1rem;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  text-decoration: none;
}
.nav-icon-btn:hover { color: var(--blue); background: var(--grey-100); }
.nav-icon-btn .badge { position: absolute; top: 2px; right: 2px; }

/* Avatar menu */
.nav-avatar-menu { position: relative; }
.nav-avatar {
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  border: 2px solid var(--grey-200);
  overflow: hidden;
  background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color var(--t-fast);
}
.nav-avatar:hover { border-color: var(--blue); }
.nav-avatar img  { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { font-size: .85rem; font-weight: 700; color: var(--blue); }

.avatar-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--t-base);
  z-index: 200;
}
.avatar-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-header {
  padding: .75rem 1rem;
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-200);
}
.dropdown-header strong { display: block; font-size: .9rem; font-weight: 700; }
.dropdown-header small  { color: var(--grey-400); font-size: .75rem; }

.avatar-dropdown a, .avatar-dropdown hr {
  display: flex; align-items: center; gap: 8px;
  padding: .6rem 1rem;
  font-size: .875rem; color: var(--dark);
  text-decoration: none;
  transition: background var(--t-fast);
}
.avatar-dropdown a:hover { background: var(--grey-100); color: var(--blue); }
.avatar-dropdown hr { border: none; border-top: 1px solid var(--grey-200); padding: 0; }
.avatar-dropdown a i { width: 16px; color: var(--grey-400); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: .4rem;
  border-radius: var(--r-sm);
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark);
  transition: transform var(--t-base), opacity var(--t-fast);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- 6. Flash Messages ------------------------------------ */
.flash-msg {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem var(--s3);
  font-size: .9rem; font-weight: 500;
  position: relative;
  margin-top: var(--nav-h);
}
.flash-success { background: rgba(0,192,123,.12); color: #007a52; border-left: 4px solid var(--success); }
.flash-error   { background: rgba(232,32,58,.1);  color: var(--red-dark); border-left: 4px solid var(--red); }
.flash-warning { background: rgba(245,166,35,.1); color: #8a5a00; border-left: 4px solid var(--warning); }
.flash-info    { background: rgba(0,149,255,.1);  color: #005fab; border-left: 4px solid var(--info); }
.flash-close { margin-left: auto; background: none; border: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; opacity: .7; }
.flash-close:hover { opacity: 1; }

/* ---- 7. Hero / Page Headers ----------------------------- */
.hero-full {
  min-height: 100dvh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding-top: var(--nav-h);
}
.hero-full::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,72,217,.5) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(232,32,58,.3) 0%, transparent 55%);
  z-index: 0;
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-full .container { position: relative; z-index: 1; }

.hero-content { max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .4rem 1rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-full);
  color: rgba(255,255,255,.8);
  margin-bottom: var(--s3);
}
.hero-eyebrow i { color: var(--red); }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; color: var(--white); line-height: 1.05;
  margin-bottom: var(--s2);
}
.hero-title .highlight { color: var(--blue-light); }
.hero-title .accent    { color: var(--red); }

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 560px; margin-bottom: var(--s4);
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-item .stat-n {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--white);
}
.stat-item .stat-l { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; }

/* Page hero (smaller) */
.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + var(--s5)) 0 var(--s5);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0,72,217,.4) 0%, transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title { font-size: clamp(1.8rem,4vw,3rem); color: var(--white); margin-bottom: .5rem; }
.page-hero-desc  { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 600px; }

/* ---- 8. Section Layouts ---------------------------------- */
.section { padding: var(--s7) 0; }
.section-sm { padding: var(--s5) 0; }
.section-lg { padding: calc(var(--s7) * 1.5) 0; }

.section-alt { background: var(--grey-100); }
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark p { color: inherit; }

.section-header { margin-bottom: var(--s5); }
.section-header.center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .6rem;
}

.section-title { font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 800; margin-bottom: var(--s1); }

.section-desc { font-size: 1.05rem; color: var(--grey-600); max-width: 560px; line-height: 1.7; }
.section-header.center .section-desc { margin-inline: auto; }

/* ---- 9. Cards -------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--blue); }

.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body  { padding: var(--s3); }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; color: var(--dark); }
.card-desc  { font-size: .875rem; color: var(--grey-600); line-height: 1.5; }
.card-footer { padding: var(--s2) var(--s3); border-top: 1px solid var(--grey-100); display: flex; align-items: center; gap: var(--s1); }

/* Profile card */
.profile-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: var(--s3);
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: .75rem;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  opacity: 0; transition: opacity var(--t-base);
}
.profile-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--blue); }
.profile-card:hover::before { opacity: 1; }

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 3px solid var(--grey-200);
}
.profile-avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: white;
  font-family: var(--font-head);
  border: 3px solid var(--grey-200);
}
.profile-name   { font-size: 1rem; font-weight: 700; }
.profile-role   { font-size: .8rem; color: var(--blue); font-weight: 600; }
.profile-location { font-size: .8rem; color: var(--grey-400); }

.available-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: var(--r-full); background: var(--success); margin-right: 4px;
}
.unavailable-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: var(--r-full); background: var(--grey-400); margin-right: 4px;
}

/* ---- 10. Grid System ------------------------------------- */
.grid   { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-fill-250 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-auto-fill-300 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-auto-fill-320 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ---- 11. Forms ------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block; margin-bottom: .4rem;
  font-size: .875rem; font-weight: 600; color: var(--dark);
}
.form-label .req { color: var(--red); margin-left: 2px; }
.form-hint { font-size: .78rem; color: var(--grey-400); margin-top: .3rem; }

.form-control {
  display: block; width: 100%;
  padding: .7rem 1rem;
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-control:focus   { border-color: var(--blue); box-shadow: var(--glow-blue); }
.form-control.error   { border-color: var(--red);  box-shadow: var(--glow-red); }
.form-control::placeholder { color: var(--grey-400); }

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control { cursor: pointer; }

/* Checkbox / Radio */
.check-group {
  display: flex; align-items: flex-start; gap: .6rem;
  cursor: pointer; font-size: .9rem;
}
.check-group input { margin-top: 3px; accent-color: var(--blue); cursor: pointer; }

/* Row layout */
.form-row { display: grid; gap: var(--s2); }
.form-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Error text */
.field-error { font-size: .78rem; color: var(--red); margin-top: .3rem; }

/* Form card wrapper */
.form-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-xl);
  padding: var(--s5);
  box-shadow: var(--shadow-lg);
}

/* ---- 12. Progress / Funding Bar -------------------------- */
.progress-bar {
  width: 100%; height: 10px;
  background: var(--grey-200);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--blue), var(--red));
  transition: width .8s ease;
}

.funding-stats { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: .75rem; }
.funding-stat {}
.funding-stat .amount { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.funding-stat .label  { font-size: .75rem; color: var(--grey-400); text-transform: uppercase; letter-spacing: .05em; }

/* ---- 13. Project Cards (Investment) ---------------------- */
.project-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex; flex-direction: column;
}
.project-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); border-color: var(--blue); }

.project-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.project-card:hover .project-card-thumb img { transform: scale(1.04); }

.project-card-category {
  position: absolute; top: var(--s1); left: var(--s1);
  background: var(--blue); color: white;
  font-size: .7rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase; letter-spacing: .06em;
}
.project-card-verified {
  position: absolute; top: var(--s1); right: var(--s1);
  background: var(--success); color: white;
  font-size: .7rem; font-weight: 700; padding: 3px 8px;
  border-radius: var(--r-full);
  display: flex; align-items: center; gap: 4px;
}

.project-card-body { padding: var(--s3); flex: 1; display: flex; flex-direction: column; }
.project-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; color: var(--dark); }
.project-card-desc  { font-size: .85rem; color: var(--grey-600); line-height: 1.5; flex: 1; margin-bottom: var(--s2); }

.project-card-progress { margin-bottom: var(--s2); }
.project-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s2); border-top: 1px solid var(--grey-100);
  font-size: .8rem; color: var(--grey-400);
}

/* ---- 14. Audio Track Cards ------------------------------- */
.audio-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: var(--s2);
  display: flex; gap: var(--s2); align-items: center;
  transition: all var(--t-base);
}
.audio-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue); }

.audio-play-btn {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--blue); color: white;
  border: none; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
  transition: all var(--t-fast);
}
.audio-play-btn:hover { background: var(--blue-dark); transform: scale(1.05); }

.audio-waveform { flex: 1; height: 40px; position: relative; overflow: hidden; }
.audio-info { flex: 1; min-width: 0; }
.audio-title { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-meta  { font-size: .75rem; color: var(--grey-400); }
.audio-price { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--blue); flex-shrink: 0; }

/* ---- 15. Location Cards ---------------------------------- */
.location-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.location-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.location-card:hover img { transform: scale(1.06); }
.location-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: var(--s2);
  transition: background var(--t-base);
}
.location-card:hover .location-card-overlay { background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,72,217,.2) 100%); }
.location-card-name   { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: white; }
.location-card-region { font-size: .8rem; color: rgba(255,255,255,.7); }

/* ---- 16. Company Cards ----------------------------------- */
.company-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
}
.company-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); border-color: var(--blue); }

.company-card-header {
  height: 120px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--dark), var(--dark-3));
}
.company-card-header img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }

.company-logo-wrap {
  position: absolute; bottom: -24px; left: var(--s3);
  width: 52px; height: 52px;
  background: var(--white); border: 3px solid var(--white);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.company-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.company-logo-placeholder {
  width: 100%; height: 100%;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; font-weight: 800; font-family: var(--font-head);
}

.company-card-body { padding: var(--s3); padding-top: calc(var(--s3) + 20px); }
.company-name { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.company-type { font-size: .8rem; color: var(--blue); font-weight: 600; margin-bottom: .5rem; }
.company-desc { font-size: .85rem; color: var(--grey-600); line-height: 1.5; }

/* ---- 17. Filter Bar -------------------------------------- */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-xl);
  padding: var(--s2) var(--s3);
  display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center;
  margin-bottom: var(--s4);
  box-shadow: var(--shadow-sm);
}
.filter-bar .form-control { max-width: 220px; }
.filter-search { flex: 1; min-width: 200px; max-width: 400px; position: relative; }
.filter-search .form-control { padding-left: 2.5rem; }
.filter-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--grey-400); }

/* ---- 18. Tabs -------------------------------------------- */
.tab-nav {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--grey-200);
  margin-bottom: var(--s4);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: .6rem 1.2rem;
  font-family: var(--font-head); font-size: .875rem; font-weight: 600;
  color: var(--grey-600); background: none; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: all var(--t-fast); white-space: nowrap;
}
.tab-btn:hover  { color: var(--blue); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- 19. Modal ------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s2);
  opacity: 0; visibility: hidden; transition: all var(--t-base);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  max-width: 560px; width: 100%;
  max-height: 90dvh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(.95); transition: transform var(--t-base);
}
.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--grey-200);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title  { font-size: 1.2rem; font-weight: 700; }
.modal-close  { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--grey-400); line-height: 1; }
.modal-close:hover { color: var(--dark); }
.modal-body   { padding: var(--s4); }
.modal-footer { padding: var(--s3) var(--s4); border-top: 1px solid var(--grey-200); display: flex; gap: var(--s2); justify-content: flex-end; }

/* ---- 20. Pagination -------------------------------------- */
.pagination {
  display: flex; align-items: center; gap: 4px;
  justify-content: center; margin-top: var(--s5);
}
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--grey-200); background: var(--white);
  border-radius: var(--r-md); font-size: .9rem; font-weight: 600;
  color: var(--dark); cursor: pointer; text-decoration: none;
  transition: all var(--t-fast);
}
.page-btn:hover   { border-color: var(--blue); color: var(--blue); }
.page-btn.current { background: var(--blue); border-color: var(--blue); color: white; }
.page-btn.disabled{ opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ---- 21. Feature sections -------------------------------- */
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6);
  align-items: center;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.feature-list  { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-top: var(--s2); }
.feature-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem; }
.feature-list li i { color: var(--blue); margin-top: 3px; flex-shrink: 0; }

/* ---- 22. Testimonials / Trust ---------------------------- */
.trust-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--s4); padding: var(--s4) 0;
}
.trust-item { display: flex; align-items: center; gap: .6rem; color: var(--grey-400); font-size: .875rem; }
.trust-item i { color: var(--blue); font-size: 1.2rem; }

/* ---- 23. Dashboard layout -------------------------------- */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--s4); align-items: start; }
.dash-sidebar {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--r-lg); padding: var(--s3); position: sticky; top: calc(var(--nav-h) + 1rem);
}
.dash-nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .75rem; border-radius: var(--r-md);
  font-size: .875rem; font-weight: 500; color: var(--grey-600);
  text-decoration: none; transition: all var(--t-fast);
}
.dash-nav-item:hover, .dash-nav-item.active { background: rgba(0,72,217,.08); color: var(--blue); }
.dash-nav-item i { width: 18px; text-align: center; }
.dash-main { min-height: 600px; }

/* ---- 24. Hero scroll indicator --------------------------- */
.scroll-hint {
  position: absolute; bottom: var(--s4); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.4); font-size: .75rem;
  animation: bounce 2s ease infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ---- 25. Verification badge ------------------------------ */
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 700;
  color: var(--success); background: rgba(0,192,123,.1);
  padding: 2px 8px; border-radius: var(--r-full);
}

/* ---- 26. Availability tag -------------------------------- */
.avail-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 600; padding: 3px 10px;
  border-radius: var(--r-full);
}
.avail-open    { background: rgba(0,192,123,.1); color: var(--success); }
.avail-limited { background: rgba(245,166,35,.1); color: var(--warning); }
.avail-closed  { background: rgba(90,90,120,.1);  color: var(--grey-600); }

/* ---- 27. Cookie banner ----------------------------------- */
.cookie-banner {
  position: fixed; bottom: var(--s2); left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--dark); color: white;
  border-radius: var(--r-lg); padding: var(--s2) var(--s3);
  max-width: 600px; width: calc(100% - 2rem);
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center;
}
.cookie-inner { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; width: 100%; }
.cookie-inner p { flex: 1; min-width: 200px; font-size: .85rem; color: rgba(255,255,255,.8); }
.cookie-actions { display: flex; gap: var(--s1); flex-shrink: 0; }

/* ---- 28. Loading skeleton -------------------------------- */
.skeleton { background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-200) 50%, var(--grey-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ---- 29. Alert boxes ------------------------------------- */
.alert {
  padding: var(--s2) var(--s3); border-radius: var(--r-md);
  font-size: .9rem; display: flex; align-items: flex-start; gap: .75rem;
  border-left: 4px solid;
}
.alert-info    { background: rgba(0,149,255,.08); border-color: var(--info); color: #004a8c; }
.alert-success { background: rgba(0,192,123,.08); border-color: var(--success); color: #005a3c; }
.alert-warning { background: rgba(245,166,35,.08); border-color: var(--warning); color: #7a4d00; }
.alert-error   { background: rgba(232,32,58,.08);  border-color: var(--red); color: var(--red-dark); }

/* ---- 30. Video embed ------------------------------------- */
.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--dark); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ---- 31. Hire form ---------------------------------------- */
.hire-form-overlay { background: var(--grey-100); border-radius: var(--r-xl); padding: var(--s4); }

/* ---- 32. Countdown timer ---------------------------------- */
.countdown { display: flex; gap: var(--s2); }
.countdown-unit { text-align: center; }
.countdown-num  { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; background: var(--dark); color: white; padding: .3rem .6rem; border-radius: var(--r-sm); }
.countdown-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; color: var(--grey-400); margin-top: .25rem; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet landscape → */
@media (max-width: 1100px) {
  .nav-links a { padding: .45rem .6rem; font-size: .82rem; }
  .dash-layout { grid-template-columns: 220px 1fr; }
}

/* Tablet portrait → */
@media (max-width: 900px) {
  /* Nav becomes drawer */
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    background: var(--white); flex-direction: column;
    padding: var(--s3); gap: .25rem;
    border-top: 1px solid var(--grey-200);
    transform: translateY(-100%); opacity: 0;
    transition: transform var(--t-base), opacity var(--t-base);
    pointer-events: none; z-index: 900;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; box-shadow: var(--shadow-xl); }
  .nav-links a { font-size: 1rem; padding: .75rem 1rem; }
  .nav-hamburger { display: flex; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .feature-block { grid-template-columns: 1fr; }
  .feature-block.reverse { direction: ltr; }

  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }

  .hero-stats { gap: var(--s2); }
}

/* Mobile → */
@media (max-width: 640px) {
  :root {
    --s5: 2.5rem;
    --s6: 3rem;
    --s7: 4rem;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }

  .btn-xl { padding: .9rem 1.5rem; font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .filter-bar { flex-direction: column; }
  .filter-search { max-width: none; width: 100%; }

  .form-card { padding: var(--s3); border-radius: var(--r-lg); }
  .modal { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 95dvh; }
  .modal-overlay { align-items: flex-end; }

  .funding-stats { gap: var(--s3); }
  .countdown-num { font-size: 1.2rem; }
  .nav-controls .btn { display: none; }
  .nav-controls .btn:last-child { display: inline-flex; }
}

/* Very small → */
@media (max-width: 380px) {
  .nav-logo .logo-text em { display: none; }
  .trust-bar { flex-direction: column; gap: var(--s2); }
}

/* ---- 33. Site Footer ------------------------------------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: var(--s7) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s5);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s3);
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: var(--s2);
}
.footer-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--blue); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; flex-shrink: 0;
}
.footer-logo strong { display: block; font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: white; line-height: 1.2; }
.footer-logo em     { display: block; font-style: normal; font-size: .8rem; color: var(--blue-light); }

.footer-brand p {
  font-size: .875rem; line-height: 1.7;
  color: rgba(255,255,255,.45);
  max-width: 300px;
  margin-bottom: var(--s2);
}

.footer-social {
  display: flex; gap: .75rem;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .9rem;
  text-decoration: none;
  transition: all var(--t-fast);
}
.footer-social a:hover {
  background: var(--blue); border-color: var(--blue); color: white;
}

.footer-col h4 {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: white; margin-bottom: var(--s2);
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  font-size: .875rem; color: rgba(255,255,255,.45);
  text-decoration: none; transition: color var(--t-fast);
}
.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: var(--max-w); margin-inline: auto;
  padding: var(--s3) var(--s3);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s2);
  font-size: .8rem; color: rgba(255,255,255,.3);
}
.footer-tagline { color: rgba(255,255,255,.25); }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}
