/* ==========================================================================
   LMSOps Agency Design System & Master Stylesheet
   Crafted with APIForge-inspired Developer Aesthetic & Dark/Light Architecture
   Full Multilingual & RTL Support (Arabic / English / French / Spanish / German)
   Dual Theme Logos, Institutional Trust Ticker & Client Testimonials Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* --- 1. CSS Design Tokens & Theme Variables --- */
:root {
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-arabic: 'Cairo', 'Noto Sans Arabic', Tahoma, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Primary Brand (Vibrant Orange/Amber - Matches LMSOps & APIForge) */
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-200: #fed7aa;
  --primary-300: #fdba74;
  --primary-400: #fb923c;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --primary-800: #9a3412;
  --primary-900: #7c2d12;
  --primary-glow: rgba(234, 88, 12, 0.15);
  --primary-shadow: rgba(234, 88, 12, 0.25);

  /* Status Colors */
  --color-green-400: #4ade80;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-blue-500: #3b82f6;
  --color-purple-500: #a855f7;

  /* Light Theme (Default) */
  --bg-page: #ffffff;
  --bg-surface: #f9fafb;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-input: #ffffff;
  
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: #f1f5f9;
  --border-main: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: var(--primary-500);

  --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(234, 88, 12, 0.2);

  --terminal-bg: #0b0f19;
  --terminal-border: rgba(255, 255, 255, 0.1);
  --terminal-text: #e2e8f0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Overrides */
html.dark {
  --bg-page: #030712;
  --bg-surface: #0b0f19;
  --bg-surface-elevated: #111827;
  --bg-card: #111827;
  --bg-card-hover: #161f30;
  --bg-glass: rgba(3, 7, 18, 0.88);
  --bg-input: #111827;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  --border-subtle: #1e293b;
  --border-main: #1f2937;
  --border-strong: #374151;

  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(234, 88, 12, 0.3);

  --terminal-bg: #080c14;
  --terminal-border: #1e293b;
}

/* RTL Language Adjustments (Arabic) */
html[dir="rtl"], body[dir="rtl"] {
  font-family: var(--font-arabic);
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4, 
html[dir="rtl"] h5, 
html[dir="rtl"] h6,
html[dir="rtl"] .btn,
html[dir="rtl"] .nav-link {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

html[dir="rtl"] .terminal-widget,
html[dir="rtl"] code,
html[dir="rtl"] pre {
  direction: ltr;
  text-align: left;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

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

ul, ol {
  list-style: none;
}

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Accessibility Skip Link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.sr-only:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  background: var(--primary-600);
  color: #ffffff;
  border-radius: var(--radius-md);
  clip: auto;
  outline: 2px solid #ffffff;
}

/* --- 3. Layout & Container Structure --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

.section-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.15rem;
}

/* --- 4. Navigation & Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-main);
  transition: all var(--transition-fast);
}

.header-inner, .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

/* Dual-Theme Logo Handling */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.site-logo img {
  height: 2.25rem;
  width: auto;
}

/* Default (Light Mode): show light mode logo, hide dark mode logo */
.site-logo .logo-for-light-mode {
  display: block !important;
}
.site-logo .logo-for-dark-mode {
  display: none !important;
}

/* Dark Mode (html.dark): show dark mode logo, hide light mode logo */
html.dark .site-logo .logo-for-light-mode {
  display: none !important;
}
html.dark .site-logo .logo-for-dark-mode {
  display: block !important;
}

.nav-desktop, .nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .nav-desktop, .nav-links {
    display: flex;
  }
}

.nav-link, .nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active, .nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.nav-link.active::after, .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-600);
  border-radius: var(--radius-full);
}

.header-actions, .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Selector Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border-main);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: var(--bg-surface);
  border-color: var(--primary-400);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  min-width: 160px;
  padding: 0.5rem;
  z-index: 120;
}

html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu,
.lang-menu.show {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.lang-option:hover, .lang-option.active {
  background: var(--bg-surface);
  color: var(--primary-600);
  font-weight: 700;
}

/* Theme Toggle Button */
.theme-toggle-btn, .theme-toggle {
  background: transparent;
  border: 1px solid var(--border-main);
  color: var(--text-secondary);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover, .theme-toggle:hover {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.theme-toggle-btn svg, .theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

html.dark .sun-icon { display: block; }
html.dark .moon-icon { display: none; }

/* Mobile Menu Toggle */
.mobile-toggle-btn, .mobile-menu-btn {
  display: flex;
  background: transparent;
  border: 1px solid var(--border-main);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-toggle-btn, .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer, .mobile-nav {
  display: none;
  position: fixed;
  top: 4.75rem;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-page);
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--border-main);
  z-index: 1001;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mobile-drawer.open, .mobile-drawer.is-open, .mobile-nav.open, .mobile-nav.is-open {
  display: flex !important;
}

.mobile-drawer .nav-link, .mobile-nav a {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.mobile-nav-open {
  overflow: hidden !important;
  height: 100vh;
}

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

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

html[dir="rtl"] .btn:hover svg {
  transform: translateX(-3px);
}

.btn-primary {
  background: var(--primary-600);
  color: #ffffff;
  box-shadow: 0 10px 20px -5px var(--primary-shadow);
}

.btn-primary:hover {
  background: var(--primary-700);
  box-shadow: 0 15px 25px -5px var(--primary-shadow);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--primary-400);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* --- 6. Badges & Indicators --- */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: 1.5rem;
}

html.dark .pill-badge {
  background: rgba(234, 88, 12, 0.1);
  border-color: rgba(234, 88, 12, 0.3);
  color: var(--primary-300);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 50%;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--primary-500);
  opacity: 0.4;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.tag-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- 7. Hero Section & Gradient Backgrounds --- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
  background: radial-gradient(100% 80% at 50% 0%, var(--primary-50) 0%, var(--bg-page) 75%);
}

html.dark .hero {
  background: radial-gradient(100% 80% at 50% 0%, rgba(234, 88, 12, 0.08) 0%, var(--bg-page) 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content h1 span.text-highlight {
  color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-definition {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- 8. Terminal / Code Widget (APIForge Signature) --- */
.terminal-widget {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-left: 0.75rem;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--terminal-text);
}

.terminal-comment { color: #64748b; }
.terminal-prompt { color: var(--primary-400); font-weight: 600; margin-right: 0.5rem; }
.terminal-cmd { color: #f8fafc; font-weight: 500; }
.terminal-success { color: var(--color-green-400); display: flex; align-items: center; gap: 0.35rem; }
.terminal-metric { color: #38bdf8; }

/* --- 9. Institutional Trust Logos Bar --- */
.trust-strip {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  text-align: center;
}

.trust-strip-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.trust-logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
}

.trust-logo-item img {
  height: 34px;
  max-width: 155px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.trust-logo-item:hover {
  background: var(--bg-card);
  border-color: var(--border-main);
  box-shadow: var(--shadow-soft);
}

.trust-logo-item:hover img {
  opacity: 1;
  transform: scale(1.06);
}

/* Universal Logo Theme Switching */
.logo-for-dark-mode { display: none !important; }
.logo-for-light-mode { display: block !important; }
html.dark .logo-for-light-mode { display: none !important; }
html.dark .logo-for-dark-mode { display: block !important; }

/* --- 10. Cards & Grids --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-smooth);
}

html.dark .card-icon {
  background: rgba(234, 88, 12, 0.12);
  color: var(--primary-400);
}

.card-hover:hover .card-icon {
  background: var(--primary-600);
  color: #ffffff;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-600);
}

.card-link:hover {
  color: var(--primary-700);
  gap: 0.6rem;
}

/* --- 11. Client Feedback & Testimonials --- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  font-style: normal;
}

.testimonial-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 1.5rem;
}

html.dark .testimonial-metric-badge {
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.3);
  color: var(--primary-300);
}

.testimonial-author-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-400) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.testimonial-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
}

/* --- 12. Platform Readiness / Metric Bar --- */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-main);
  border-bottom: 1px solid var(--border-main);
  padding: 2.5rem 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary-600);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- 13. UK Flagship Banner Strip --- */
.uk-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.uk-banner h3 {
  color: #ffffff;
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.uk-banner p {
  color: #94a3b8;
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.uk-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.uk-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 500;
}

.uk-feature-item svg {
  color: var(--primary-400);
  width: 1.15rem;
  height: 1.15rem;
}

/* --- 14. Ballpark Quote Estimator Widget --- */
.estimator-box {
  background: var(--bg-card);
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: 0 20px 40px -10px var(--primary-glow);
  position: relative;
}

html.dark .estimator-box {
  border-color: rgba(234, 88, 12, 0.4);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .estimator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.estimator-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.estimator-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.estimator-field select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.estimator-result {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
}

html.dark .estimator-result {
  background: rgba(234, 88, 12, 0.1);
  border-color: rgba(234, 88, 12, 0.25);
}

.estimator-amount {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary-600);
  margin: 0.25rem 0;
  letter-spacing: -0.03em;
}

.estimator-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- 15. Comparison Tables --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-main);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

html[dir="rtl"] .data-table {
  text-align: right;
}

.data-table th {
  background: var(--bg-surface);
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-main);
}

.data-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bg-surface);
}

.badge-highlight {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-green-600);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
}

/* --- 16. Forms --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: var(--bg-input);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* Honeypot field - invisible to genuine users */
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* --- 17. FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--primary-300);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

html[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  transition: transform var(--transition-smooth);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-600);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* --- 18. CTA Band --- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  border-radius: var(--radius-2xl);
  padding: 4rem 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 40px -10px var(--primary-shadow);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 2rem auto;
  font-size: 1.15rem;
}

.cta-band .btn-secondary {
  background: #ffffff;
  color: var(--primary-700);
  border-color: #ffffff;
  font-weight: 700;
}

.cta-band .btn-secondary:hover {
  background: var(--primary-50);
  color: var(--primary-800);
}

/* --- 19. Footer --- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-main);
  padding-top: 5rem;
  padding-bottom: 3rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--primary-600);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-main);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

.footer-credit a {
  color: var(--primary-600);
  font-weight: 600;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --- 20. Micro-Utilities --- */
.text-primary { color: var(--primary-600); }
.text-success { color: var(--color-green-500); }
.bg-surface { background-color: var(--bg-surface); }
.rounded-xl { border-radius: var(--radius-xl); }
.shadow-card { box-shadow: var(--shadow-card); }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* --- 21. Boutique Studio & Verified Reviews Enhancements --- */
.section-subtitle-wide {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.12rem;
  line-height: 1.7;
}

.studio-lead-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-left: 4px solid var(--primary-500);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .studio-lead-banner {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }
}

.studio-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary-600);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

html.dark .studio-lead-badge {
  color: var(--primary-400);
}

.studio-lead-banner p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.studio-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .studio-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .studio-pillars { grid-template-columns: repeat(4, 1fr); }
}

.studio-pillar-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all var(--transition-smooth);
}

.studio-pillar-card:hover {
  border-color: var(--primary-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Background Abstract Texture Overlay */
.pillar-bg-texture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

html.dark .pillar-bg-texture {
  opacity: 0.14;
}

.studio-pillar-card:hover .pillar-bg-texture {
  opacity: 0.10;
  transform: scale(1.08);
}

html.dark .studio-pillar-card:hover .pillar-bg-texture {
  opacity: 0.22;
  transform: scale(1.08);
}

.pillar-content-wrapper {
  position: relative;
  z-index: 1;
}

.studio-pillar-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

html.dark .studio-pillar-icon {
  background: rgba(234, 88, 12, 0.15);
  color: var(--primary-400);
}

.studio-pillar-card:hover .studio-pillar-icon {
  background: var(--primary-500);
  color: #ffffff;
}

.studio-pillar-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--text-main);
  font-weight: 700;
}

.studio-pillar-card p {
  font-size: 0.90rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.verified-review-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--color-green-500);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.verified-review-tag svg {
  width: 12px;
  height: 12px;
}

/* Pricing Disclaimer Callout Box & Note Styles */
.price-disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-main);
  border-left: 4px solid var(--primary-500);
  border-radius: var(--radius-md);
  margin-top: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.price-disclaimer-box .disclaimer-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-500);
  margin-top: 0.15rem;
}

.price-disclaimer-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.price-disclaimer-box p strong {
  color: var(--text-main);
}

.price-disclaimer-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-disclaimer-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--primary-500);
}

/* Breadcrumb SEO Component Styles */
.breadcrumb-nav {
  padding: 1rem 0 0 0;
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--primary-600);
}

.breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 600;
}

/* --- Cookie Consent Banner (Google Consent Mode v2) --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 440px;
  width: calc(100% - 3rem);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideUpConsent 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="rtl"] .cookie-consent-banner {
  right: auto;
  left: 1.5rem;
}

@keyframes slideUpConsent {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cookie-consent-header svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--primary-500);
  flex-shrink: 0;
}

.cookie-consent-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.cookie-consent-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-consent-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
  text-align: center;
}




