/* ==========================================================================
   Meisterworks Modern Single-Page Design System
   ========================================================================== */

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Color Tokens - Exact Original Meisterworks Green (#86bd60 & #70ad47) */
  --bg-main: #0B0F17;
  --bg-card: rgba(21, 29, 44, 0.7);
  --bg-card-hover: rgba(29, 40, 60, 0.85);
  --header-bg: rgba(11, 15, 23, 0.85);
  
  --emerald-primary: #86BD60;
  --emerald-hover: #72A84E;
  --emerald-glow: rgba(134, 189, 96, 0.28);
  --emerald-light: #70AD47;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-emerald: rgba(134, 189, 96, 0.35);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Container & Grid System */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.align-center { align-items: center; }
.text-center { text-align: center; }

/* Buttons & Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #86BD60 0%, #70AD47 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #78B052 0%, #639E3B 100%);
  box-shadow: 0 6px 20px rgba(134, 189, 96, 0.45);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Typography & Badges */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  line-height: 1.2;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, #A8E083 0%, #86BD60 50%, #70AD47 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #FFFFFF;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #FFFFFF;
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  background: radial-gradient(circle at 50% 0%, rgba(134, 189, 96, 0.15) 0%, rgba(11, 15, 23, 1) 70%);
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background-color: rgba(134, 189, 96, 0.1);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-primary);
  box-shadow: 0 0 10px var(--emerald-primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 3rem;
}

/* Portal Quick Actions Bar */
.portal-quick-bar {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.quick-bar-header {
  margin-bottom: 1.75rem;
}

.quick-bar-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.quick-bar-header p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.portal-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.portal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.portal-card:hover {
  background: rgba(134, 189, 96, 0.08);
  border-color: var(--border-emerald);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(134, 189, 96, 0.15);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.portal-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portal-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-arrow {
  font-size: 1.25rem;
  color: var(--emerald-primary);
  font-weight: 700;
  transition: var(--transition-fast);
}

.portal-card:hover .card-arrow {
  transform: translateX(4px);
}

/* Generic Section Padding */
.section {
  padding: 100px 0;
  position: relative;
}

/* About Section */
.about-section {
  border-top: 1px solid var(--border-subtle);
}

.about-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--emerald-primary);
}

.stat-lbl {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  position: relative;
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--emerald-primary);
  opacity: 0.5;
  margin-bottom: -1rem;
}

.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.card-footer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald-primary);
  color: #FFFFFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-role {
  display: block;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* Sectors Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.sector-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-emerald);
  transform: translateY(-2px);
}

.sector-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.sector-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sector-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.sector-bullets {
  list-style: none;
}

.sector-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sector-bullets li::before {
  content: "•";
  color: var(--emerald-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.sector-card.full-width {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(134, 189, 96, 0.1) 0%, rgba(21, 29, 44, 0.8) 100%);
}

.sector-tag-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(134, 189, 96, 0.18);
  color: var(--emerald-primary);
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

/* Methods Section */
.methods-tab-container {
  margin-top: 3rem;
}

.methods-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
  background: var(--emerald-primary);
  color: #FFFFFF;
  border-color: var(--emerald-primary);
  box-shadow: 0 4px 12px var(--emerald-glow);
}

.tab-content {
  display: none;
}

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

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.method-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--emerald-primary);
}

.method-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Graphical Client Logos Showcase */
.logo-grid-showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
  margin-bottom: 4rem;
}

.logo-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.875rem;
  transition: var(--transition-smooth);
  min-height: 120px;
}

.logo-card:hover {
  background: rgba(134, 189, 96, 0.08);
  border-color: var(--border-emerald);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 100%;
}

.logo-mark img {
  max-height: 42px;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0.95) contrast(1.05);
}

.logo-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* NHS Badge styling */
.nhs-badge {
  background: #005EB8;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.25rem;
  padding: 0.25rem 0.875rem;
  border-radius: 4px;
}

/* Associations Showcase */
.accreditations-header {
  margin-bottom: 2rem;
}

.accreditations-header h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--emerald-primary);
}

.associations-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.assoc-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  transition: var(--transition-fast);
}

.assoc-card:hover {
  border-color: var(--border-emerald);
  background: rgba(134, 189, 96, 0.06);
}

.assoc-logo-wrap {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.assoc-logo-wrap img {
  max-height: 40px;
  max-width: 110px;
  object-fit: contain;
}

.assoc-fallback {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--emerald-primary);
}

.assoc-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  background-color: #070A10;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--emerald-primary);
}

.footer-col p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-line a {
  color: var(--emerald-primary);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .portal-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-grid-showcase, .associations-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .portal-cards-grid {
    grid-template-columns: 1fr;
  }

  .logo-grid-showcase, .associations-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-card.full-width {
    grid-column: span 1;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}
