/* ==========================
   LAYOUT / STRUCTURE
========================== */

.sp-theme-dark {
  background: radial-gradient(circle at top, #1b141a 0, #050405 50%, #020102 100%);
}

/* Constrained width container */
.sp-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
.sp-section {
  padding: 5rem 0;
}

/* Section headers */
.sp-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.sp-section-header h2 {
  font-size: 2rem;
}

.sp-section-header p {
  font-size: 0.96rem;
  color: var(--sp-text-muted);
}

/* ==========================
   HEADER / NAV
========================== */

.sp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 4, 5, 0.96),
    rgba(5, 4, 5, 0.92),
    transparent
  );
  border-bottom: 1px solid rgba(48, 32, 40, 0.85);
}

.sp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 0;
}

.sp-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-logo {
  height: 125px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(255, 123, 41, 0.65));
}

/* Nav */

.sp-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sp-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-nav-links li {
  position: relative;
}

.sp-nav-links a {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--sp-text-soft);
  text-decoration: none;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  padding: 0.5rem 0.175rem;
  border-radius: var(--sp-radius-sm);
  transition: all var(--sp-transition);
  position: relative;
}

.sp-nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sp-primary), var(--sp-primary-strong));
  border-radius: 1px;
  transition: all var(--sp-transition);
  transform: translateX(-50%);
}

.sp-nav-links a:hover {
  color: var(--sp-text);
  background: rgba(255, 123, 41, 0.08);
}

.sp-nav-links a:hover::before {
  width: 100%;
}

.sp-nav-links a:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
}

/* Header CTA */
.sp-header-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Mobile nav toggle */

.sp-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border-radius: var(--sp-radius-md);
  border: 1px solid rgba(92, 54, 40, 0.6);
  background: linear-gradient(135deg, rgba(10, 7, 7, 0.9) 0%, rgba(20, 16, 21, 0.9) 100%);
  cursor: pointer;
  transition: all var(--sp-transition);
  position: relative;
  overflow: hidden;
}

.sp-nav-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 123, 41, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--sp-transition);
}

.sp-nav-toggle:hover {
  border-color: rgba(255, 123, 41, 0.4);
  transform: scale(1.05);
}

.sp-nav-toggle:hover::before {
  opacity: 1;
}

.sp-nav-toggle:active {
  transform: scale(0.95);
}

.sp-nav-toggle:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
}

.sp-nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--sp-text-soft);
  transition: all var(--sp-transition);
  position: relative;
}

.sp-nav-toggle[aria-expanded="true"] .sp-nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.sp-nav-toggle[aria-expanded="true"] .sp-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.sp-nav-toggle[aria-expanded="true"] .sp-nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================
   FOOTER
========================== */

.sp-footer {
  border-top: 1px solid var(--sp-border-subtle);
  margin-top: 4rem;
  padding: 2.3rem 0 2rem;
  background: radial-gradient(circle at top left, #1a1010 0, #050405 55%);
}

.sp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sp-footer-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 380px;
}

.sp-footer-logo {
  width: 75px;
  height: 75px;
}

.sp-footer-text {
  font-size: 0.85rem;
  color: var(--sp-text-muted);
}

.sp-footer-link {
  color: var(--sp-text-soft);
  text-decoration: none;
}

.sp-footer-link:hover {
  color: var(--sp-primary-strong);
  text-decoration: underline;
}

.sp-footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.sp-footer-nav a {
  font-size: 0.85rem;
  color: var(--sp-text-soft);
  text-decoration: none;
}

.sp-footer-nav a:hover {
  color: var(--sp-primary-strong);
}

.sp-footer-meta {
  font-size: 0.8rem;
  color: var(--sp-text-muted);
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 880px) {
  .sp-header-inner {
    gap: 0.8rem;
  }

  .sp-nav-links {
    position: absolute;
    inset: 125px 1.5rem auto;
    padding: 1.5rem;
    flex-direction: column;
    border-radius: var(--sp-radius-lg);
    background: linear-gradient(135deg, rgba(12, 7, 8, 0.98) 0%, rgba(20, 16, 21, 0.98) 100%);
    border: 1px solid rgba(92, 54, 40, 0.6);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 123, 41, 0.1);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.95);
    transition: all var(--sp-transition);
    min-width: 200px;
    z-index: 1000;
  }

  .sp-nav-links.sp-nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .sp-nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--sp-radius-md);
    font-weight: 500;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
  }

  .sp-nav-links a:hover {
    background: rgba(255, 123, 41, 0.12);
    color: var(--sp-text);
    transform: translateX(4px);
  }

  .sp-nav-links a::before {
    display: none;
  }

  .sp-nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  .sp-section {
    padding: 3.5rem 0;
  }

  .sp-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
