/* ===========================
   firaCODE UI – fc-ui.css
   Brand tokens + layout + componente
   Refactored: Mobile Static Header, Aligned Dropdown, Utility Classes
   =========================== */

/* 1. TOKENS & FUNDAMENTALS */

:root {
  /* Background & surfaces */
  --fc-bg: #020617;
  --fc-bg-soft: #020617;
  --fc-surface: #020617;
  --fc-surface-alt: #0b1120;
  --fc-border-subtle: #1f2937;

  /* Accente */
  --fc-accent: #38bdf8;
  --fc-accent-strong: #0ea5e9;
  --fc-accent-soft: #e0f2fe;
  --fc-accent-alt: #a3e635;

  /* Text */
  --fc-text-main: #f9fafb;
  --fc-text-muted: #9ca3af;

  /* Semantic */
  --fc-success: #22c55e;
  --fc-warning: #facc15;
  --fc-danger: #f97373;

  /* Layout & radius */
  --fc-radius-sm: 0.5rem; /* 8px */
  --fc-radius-md: 0.75rem; /* 12px */
  --fc-radius-lg: 1rem; /* 16px */
  --fc-radius-xl: 1.25rem; /* 20px */
  --fc-radius-full: 9999px;

  --fc-shadow-soft: 0 1.125rem 2.8rem rgba(15, 23, 42, 0.45);
  --fc-shadow-subtle: 0 0.625rem 1.875rem rgba(15, 23, 42, 0.35);

  --fc-max-width: 70rem; /* 1120px */

  /* Typography scale (REM based on 16px) */
  --fc-font-xs: 0.6875rem; /* 11px */
  --fc-font-sm: 0.8125rem; /* 13px */
  --fc-font-base: 0.875rem; /* 14px */
  --fc-font-md: 1rem; /* 16px */
  --fc-font-lg: 1.25rem; /* 20px */
  --fc-font-xl: 1.875rem; /* 30px */

  /* Z-Index System */
  --fc-z-base: 1;
  --fc-z-sticky: 20;
  --fc-z-dropdown: 30;
  --fc-z-modal: 50;

  /* Glassmorphism */
  --fc-glass-bg: rgba(15, 23, 42, 0.78);
  --fc-glass-bg-soft: rgba(15, 23, 42, 0.6);
  --fc-glass-border: rgba(148, 163, 184, 0.35);
  --fc-glass-border-strong: rgba(148, 163, 184, 0.6);
  --fc-blur-soft: 10px;
  --fc-blur-strong: 22px;

  /* Motion & easing moderne */
  --fc-ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
  --fc-duration-fast: 120ms;
  --fc-duration-normal: 180ms;
}

/* Custom Selection Color - Vibe de Terminal */
::selection {
  background: rgba(56, 189, 248, 0.3); /* Cyan transparent */
  color: #fff;
}

/* Cursorul din input-uri să fie verde (ca în terminalele vechi) */
input,
textarea {
  caret-color: var(--fc-accent-alt); /* Verde Lime */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #020617 0, #000 60%);
  color: var(--fc-text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code,
pre,
.fc-mono {
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 2. LAYOUT DE BAZĂ */

.fc-page-shell,
.fc-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fc-main {
  flex: 1;
}

.fc-container {
  max-width: var(--fc-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.fc-section {
  padding: 2rem 0;
}

.fc-section.hero {
  padding: 3.5rem 0 2rem;
}

.fc-section + .fc-section {
  border-top: 1px solid rgba(15, 23, 42, 0.8);
}

/* Heading row */

.fc-section-header,
.fc-section-heading-row {
  margin-bottom: 1.125rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.125rem;
}

.fc-section-kicker {
  font-size: var(--fc-font-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fc-text-muted);
  margin-bottom: 0.25rem;
}

.fc-section-title {
  font-size: var(--fc-font-lg);
  margin: 0;
  letter-spacing: -0.03em;
}

.fc-section-subtitle {
  font-size: var(--fc-font-sm);
  color: var(--fc-text-muted);
  max-width: 26.25rem;
}

/* Grid helpers */

.fc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}

.fc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
}

@media (max-width: 960px) {
  .fc-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fc-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fc-grid-4,
  .fc-grid-3,
  .fc-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pills / chips */

.fc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--fc-radius-full);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  font-size: var(--fc-font-xs);
  color: var(--fc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.fc-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
}

.fc-dot--green,
.fc-dot-green {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.35);
}

/* 3. HEADER & NAV */

.fc-header {
  /* Default: Sticky pe Desktop */
  position: sticky;
  top: 0;
  z-index: var(--fc-z-sticky);
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.96) 0,
    rgba(15, 23, 42, 0.98) 60%
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
}

.fc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  gap: 1rem;
}

.fc-logo,
.fc-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.fc-logo-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: radial-gradient(
    circle at 30% 0%,
    #38bdf8 0,
    #0ea5e9 40%,
    #0f172a 100%
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: var(--fc-shadow-subtle);
}

.fc-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.fc-logo-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fc-logo-tagline {
  font-size: 0.6875rem;
  color: var(--fc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.fc-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.fc-nav-main {
  display: flex;
  gap: 1rem;
}

.fc-nav-link {
  padding: 0.375rem 0.625rem;
  border-radius: var(--fc-radius-full);
  color: var(--fc-text-muted);
  font-weight: 500;
}

.fc-nav-link:hover {
  color: var(--fc-text-main);
  background: rgba(148, 163, 184, 0.08);
}

.fc-nav-link.fc-nav-current,
.fc-nav-link--current {
  background: rgba(56, 189, 248, 0.1);
  color: var(--fc-accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

/* Stilizare Iconițe Cod în meniu */
.fc-code-icon {
  font-family: "Fira Code", monospace;
  color: var(--fc-accent-alt);
  margin-right: 0.375rem;
  font-weight: 700;
  opacity: 0.9;
  transition: color 0.2s ease;
}

.fc-nav-link:hover .fc-code-icon {
  color: var(--fc-accent);
}

.fc-nav-cta {
  padding: 0.4375rem 0.875rem;
  border-radius: var(--fc-radius-full);
  border: 1px solid rgba(56, 189, 248, 0.8);
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.18),
    rgba(14, 165, 233, 0.3)
  );
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 0.75rem 1.875rem rgba(8, 47, 73, 0.45);
}

.fc-cta-bullet,
.fc-nav-cta-bullet {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: #a3e635;
  box-shadow: 0 0 0 0.375rem rgba(190, 242, 100, 0.15);
}

.fc-nav-cta:hover {
  transform: translateY(-1px);
}

.fc-nav-mobile-toggle,
.fc-nav-toggle {
  display: none;
  border-radius: var(--fc-radius-full);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--fc-text-muted);
  background: rgba(15, 23, 42, 0.9);
}

/* MOBILE NAV LOGIC & ALIGNMENT */

@media (max-width: 768px) {
  .fc-header {
    position: relative;
    z-index: var(--fc-z-sticky);
  }

  .fc-nav {
    position: relative;
  }

  .fc-nav-main {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    flex-direction: column;
    width: 13.5rem;
    padding: 0.75rem;
    border-radius: var(--fc-radius-lg);

    background: var(--fc-glass-bg);
    border: 1px solid var(--fc-glass-border);
    backdrop-filter: blur(var(--fc-blur-soft)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--fc-blur-soft)) saturate(130%);
    box-shadow: var(--fc-shadow-soft);
    z-index: var(--fc-z-dropdown);
  }

  .fc-nav-main.fc-nav-main--open,
  .fc-nav.is-open .fc-nav-main {
    display: flex;
    background: rgba(15, 23, 42, 0.98);
  }

  .fc-nav-link {
    padding: 0.625rem 0.75rem;
    width: 100%;
  }

  /* Ajustare iconițe cod pe mobil */
  .fc-code-icon {
    display: inline-block;
    width: 1.5rem;
    text-align: center;
    color: var(--fc-accent);
  }

  .fc-nav-cta {
    display: none;
  }

  .fc-nav-cta.fc-nav-cta--visible,
  .fc-nav.is-open .fc-nav-cta {
    display: inline-flex;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  .fc-nav-mobile-toggle,
  .fc-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
  }
}

/* 4. HERO */

.fc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .fc-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.fc-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--fc-radius-full);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--fc-text-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.fc-hero-kicker strong {
  color: var(--fc-accent-soft);
}

.fc-hero-title {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 0.875rem;
}

.fc-hero-highlight {
  background: linear-gradient(120deg, #38bdf8, #a3e635);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fc-hero-text {
  font-size: 0.875rem;
  color: var(--fc-text-muted);
  max-width: 32.5rem;
  margin-bottom: 1.25rem;
}

.fc-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.125rem;
}

.fc-hero-meta {
  font-size: 0.6875rem;
  color: var(--fc-text-muted);
}

/* aside hero */

.fc-hero-aside-card {
  border-radius: 1.125rem;
  background: radial-gradient(circle at top, #0b1120 0, #020617 60%);
  border: 1px solid rgba(30, 64, 175, 0.6);
  padding: 1rem 1rem 0.875rem;
  box-shadow: var(--fc-shadow-subtle);
  font-size: 0.75rem;
}

.fc-hero-aside-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625rem;
}

.fc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--fc-radius-full);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.6875rem;
  color: var(--fc-text-muted);
}

.fc-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin-top: 0.625rem;
}

.fc-hero-metric {
  padding: 0.5rem 0.5rem 0.4375rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.7);
}

.fc-hero-metric-label {
  font-size: 0.625rem;
  color: var(--fc-text-muted);
  margin-bottom: 0.125rem;
}

.fc-hero-metric-value {
  font-size: 0.9375rem;
  font-weight: 600;
}

.fc-hero-metric-sub {
  font-size: 0.625rem;
  color: #22c55e;
}

/* 5. BUTTONS */

.fc-btn {
  border-radius: var(--fc-radius-full);
  padding: 0.5625rem 1.125rem;
  font-size: var(--fc-font-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, border-color 0.12s ease;
  text-decoration: none;
}

.fc-btn-primary,
.fc-btn.fc-btn--primary {
  background: radial-gradient(
    circle at 0 0,
    #38bdf8 0,
    #0ea5e9 45%,
    #0369a1 100%
  );
  border-color: rgba(56, 189, 248, 0.8);
  color: #0b1120;
  box-shadow: var(--fc-shadow-soft);
}

.fc-btn-primary:hover,
.fc-btn.fc-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1.25rem 3.125rem rgba(8, 47, 73, 0.7);
}

.fc-btn-ghost,
.fc-btn.fc-btn--ghost {
  color: var(--fc-text-muted);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

.fc-btn-ghost:hover,
.fc-btn.fc-btn--ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--fc-text-main);
}

.fc-btn.fc-btn--outline {
  color: var(--fc-accent-soft);
  border-color: rgba(56, 189, 248, 0.7);
  background: transparent;
}

.fc-btn.fc-btn--outline:hover {
  background: rgba(8, 47, 73, 0.45);
}

.fc-btn.fc-btn--sm {
  padding: 0.3125rem 0.75rem;
  font-size: var(--fc-font-xs);
}

.fc-btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.6);
  background: rgba(15, 23, 42, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
}

/* 6. CARDS */

.fc-card {
  border-radius: var(--fc-radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.875rem 0.875rem 0.75rem;
  font-size: var(--fc-font-sm);
  position: relative;
  overflow: hidden;
}

.fc-card--elevated {
  box-shadow: var(--fc-shadow-subtle);
  background: radial-gradient(circle at top, #0b1120 0, #020617 60%);
}

.fc-card-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0 0 0.375rem;
}

.fc-card-body {
  font-size: 0.75rem;
  color: var(--fc-text-muted);
}

.fc-card-meta {
  margin-top: 0.625rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--fc-text-muted);
}

/* Service card specific */

.fc-service-card {
  border-radius: var(--fc-radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.875rem 0.875rem 0.75rem;
  font-size: 0.8125rem;
  position: relative;
  overflow: hidden;
}

.fc-service-pill {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fc-text-muted);
  margin-bottom: 0.375rem;
}

.fc-service-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.fc-service-text {
  font-size: 0.75rem;
  color: var(--fc-text-muted);
  margin-bottom: 0.625rem;
}

.fc-service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--fc-text-muted);
}

/* Portfolio card specific */

.fc-portfolio-card {
  border-radius: var(--fc-radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(30, 64, 175, 0.8);
  padding: 0.75rem 0.875rem 0.75rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.fc-portfolio-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.fc-portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--fc-text-muted);
}

.fc-portfolio-tag,
.fc-tag {
  padding: 0.125rem 0.4375rem;
  border-radius: var(--fc-radius-full);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.fc-portfolio-result,
.fc-card-portfolio-result {
  color: var(--fc-success);
  font-size: 0.6875rem;
}

/* 7. SECȚIUNI SERVICII & PORTOFOLIU */

.fc-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
}

@media (max-width: 1024px) {
  .fc-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fc-services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fc-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
}

@media (max-width: 960px) {
  .fc-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fc-portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 8. PROCES */

.fc-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
}

@media (max-width: 900px) {
  .fc-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fc-process-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fc-process-step {
  border-radius: var(--fc-radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  padding: 0.75rem 0.875rem;
  font-size: 0.75rem;
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.95) 0,
    #020617 65%
  );
}

.fc-process-label {
  font-size: 0.6875rem;
  color: var(--fc-text-muted);
  margin-bottom: 0.25rem;
}

.fc-process-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* 9. CTA & FORM FIRA */

.fc-cta-section {
  padding: 2rem 0 2.5rem;
}

.fc-cta-card {
  border-radius: 1.25rem;
  background: radial-gradient(
    circle at 0 0,
    #38bdf8 0,
    #0ea5e9 35%,
    #1e293b 100%
  );
  padding: 1.25rem 1.25rem 1.125rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.125rem;
  align-items: center;
  box-shadow: var(--fc-shadow-soft);
}

@media (max-width: 800px) {
  .fc-cta-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fc-cta-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.fc-cta-text {
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.fc-cta-note {
  font-size: 0.6875rem;
  opacity: 0.9;
}

.fc-cta-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.75rem;
}

.fc-field-label {
  font-size: 0.6875rem;
  margin-bottom: 0.125rem;
}

.fc-input,
.fc-textarea {
  width: 100%;
  border-radius: var(--fc-radius-full);
  border: 1px solid rgba(15, 23, 42, 0.4);
  padding: 0.4375rem 0.625rem;
  font-size: 0.8125rem;
  outline: none;
}

.fc-textarea {
  border-radius: 0.75rem;
  min-height: 4.375rem;
  resize: vertical;
}

/* 10. FOOTER */

.fc-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.85);
  background: radial-gradient(circle at top, #020617 0, #020617 55%);
  font-size: var(--fc-font-xs);
  color: var(--fc-text-muted);
  padding: 0.875rem 0 1rem;
  margin-top: auto;
}

.fc-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: space-between;
  align-items: center;
}

.fc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.fc-footer-links a {
  opacity: 0.85;
}

.fc-footer-links a:hover {
  opacity: 1;
}

/* 11. STYLEGUIDE & ALTELE */

.fc-styleguide-hero {
  padding: 1.75rem 0 0.625rem;
}

.fc-styleguide-title {
  font-size: var(--fc-font-xl);
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
}

.fc-styleguide-lead {
  font-size: var(--fc-font-base);
  color: var(--fc-text-muted);
  max-width: 35rem;
}

.fc-styleguide-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.fc-chip-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--fc-radius-full);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: var(--fc-font-xs);
  color: var(--fc-text-muted);
}

/* UTILITY CLASSES */

.fc-text-lead {
  font-size: var(--fc-font-sm);
  color: var(--fc-text-muted);
  max-width: 45rem;
  line-height: 1.6;
}

.fc-text-block p {
  font-size: var(--fc-font-base);
  color: var(--fc-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.fc-service-list,
.fc-list-check {
  margin: 0 0 1rem 1rem;
  padding: 0;
  font-size: var(--fc-font-xs);
  color: var(--fc-text-muted);
  line-height: 1.6;
}

.fc-service-list li,
.fc-list-check li {
  margin-bottom: 0.25rem;
}

.fc-text-success {
  color: var(--fc-success);
}
.fc-text-danger {
  color: var(--fc-danger);
}

.fc-pill-success {
  color: var(--fc-success);
  border-color: rgba(34, 197, 94, 0.4);
}

/* 12. PAGINI LEGALE (Termeni / Privacy / Cookies) */
.fc-legal-content {
  max-width: 48rem;
  font-size: var(--fc-font-base);
  line-height: 1.7;
  color: var(--fc-text-muted);
}
.fc-legal-content h2 {
  font-size: var(--fc-font-md);
  color: var(--fc-text-main);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.fc-legal-content p,
.fc-legal-content ul {
  margin-bottom: 1rem;
}
.fc-legal-content ul {
  padding-left: 1.25rem;
}
.fc-legal-content li {
  margin-bottom: 0.5rem;
}
.fc-legal-link {
  color: var(--fc-accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fc-legal-link:hover {
  color: var(--fc-accent);
}

/* 13. GLASSMORPHISM */

@supports (backdrop-filter: blur(1px)) {
  .fc-glass {
    background: var(--fc-glass-bg);
    border: 1px solid var(--fc-glass-border);
    backdrop-filter: blur(var(--fc-blur-soft)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--fc-blur-soft)) saturate(130%);
  }

  .fc-glass-soft {
    background: var(--fc-glass-bg-soft);
    border: 1px solid var(--fc-glass-border);
    backdrop-filter: blur(0.5rem) saturate(120%);
    -webkit-backdrop-filter: blur(0.5rem) saturate(120%);
  }

  .fc-card--glass,
  .fc-cta-card--glass,
  .fc-hero-aside-card--glass {
    background: var(--fc-glass-bg);
    border-color: var(--fc-glass-border-strong);
    backdrop-filter: blur(var(--fc-blur-strong)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--fc-blur-strong)) saturate(140%);
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .fc-card--glass,
  .fc-cta-card--glass,
  .fc-hero-aside-card--glass,
  .fc-glass,
  .fc-glass-soft {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(31, 41, 55, 0.9);
  }
}

/* 14. MICRO-INTERACȚIUNI MODERNE */

.fc-card,
.fc-service-card,
.fc-portfolio-card,
.fc-process-step,
.fc-cta-card,
.fc-btn {
  transition: transform var(--fc-duration-normal) var(--fc-ease-snap),
    box-shadow var(--fc-duration-normal) var(--fc-ease-snap),
    border-color var(--fc-duration-normal) var(--fc-ease-snap),
    background-color var(--fc-duration-normal) var(--fc-ease-snap);
}

.fc-card:hover,
.fc-service-card:hover,
.fc-portfolio-card:hover,
.fc-process-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.375rem 3.4375rem rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.8);
}

.fc-btn:hover {
  transform: translateY(-1px);
}

/* 15. Focus ring modern */

.fc-btn:focus-visible,
.fc-nav-link:focus-visible,
.fc-nav-cta:focus-visible,
.fc-input:focus-visible,
.fc-textarea:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.9);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* 16. Reduce Motion */

@media (prefers-reduced-motion: reduce) {
  .fc-card,
  .fc-service-card,
  .fc-portfolio-card,
  .fc-process-step,
  .fc-cta-card,
  .fc-btn {
    transition: none;
    transform: none !important;
  }
}

/* Stilizare separatori în Tagline */
.fc-tagline-sep {
  /* Forțează Fira Code pentru simbol */
  font-family: "Fira Code", monospace;
  /* Culoarea Verde Lime */
  color: var(--fc-accent-alt);
  /* Separare ușoară */
  margin: 0 0.25rem;
  font-weight: 500;
  opacity: 0.9;
}

/* --- Logo Stilizare --- */

/* Resetează stilul inline din header */
.fc-header .fc-logo-mark img {
  height: 0.1rem !important;
  width: auto !important;
}

/* Stil pentru logo-ul din footer */
.fc-logo-footer img {
  height: 0.1rem; /* Mai mic în footer */
  margin-right: 1rem;
  vertical-align: middle;
}

/* Resetează stilul inline din header */
.fc-header .fc-logo-mark svg {
  height: 0.1rem !important;
  width: auto !important;
}

/* Stil pentru logo-ul din footer */
.fc-logo-footer svg {
  height: 0.1rem; /* Mai mic în footer */
  margin-right: 1rem;
  vertical-align: middle;
}
