.footer {
  background: #0b0b0b;
  color: rgba(255, 255, 255, 0.88);
  padding: 0;
  margin-top: 0;
  position: relative;
}

.footer::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--orange);
}

.footer-inner {
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.15rem;
  color: var(--orange);
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.4rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.35rem 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(243, 146, 33, 0.15) 0%, rgba(29, 79, 145, 0.1) 100%);
  color: var(--orange-deep);
  border: 1px solid rgba(232, 93, 4, 0.15);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.88;
}

.brand-logo {
  height: 56px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  mix-blend-mode: normal;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.theme-toggle span:first-child {
  font-size: 1rem;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  opacity: 0.72;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-deep);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.65rem 1.2rem;
  font-size: 0.875rem;
  border-radius: 3px;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition);
}

@media (max-width: 900px) {
  .nav .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem 1rem;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 82px 0 auto 0;
    flex-direction: column;
    align-items: center;
    background: color-mix(in srgb, var(--card) 98%, transparent);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.75rem 0;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    max-width: 280px;
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }

  .theme-toggle {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin-top: 0.35rem;
  }

  .header-inner {
    min-height: 72px;
    padding: 0.35rem 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    margin-right: 0;
  }

  .menu-btn {
    grid-column: 3;
    justify-self: end;
  }

  .brand-logo {
    max-width: 140px;
    height: 48px;
  }

  .footer-inner {
    padding-top: 3rem;
  }

  .footer-grid {
    text-align: center;
    justify-items: center;
  }

  .footer-links {
    padding: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .wa-float {
    bottom: 1rem;
    right: 1rem;
    width: 54px;
    height: 54px;
  }
}

/* Shared header for the standalone portfolio pages. */
.site-nav {
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 100;
  display: block;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: none;
  opacity: 1;
  pointer-events: auto;
  padding: 0;
}

.site-nav .nav-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav .brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--orange);
}

.site-nav .brand span {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-nav .links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav .links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.site-nav .links a:hover {
  color: var(--orange-deep);
}

.site-nav .nav-actions {
  display: flex;
  align-items: center;
}

.site-nav .icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-nav .nav-inner {
    min-height: 72px;
    gap: 0.75rem;
  }

  .site-nav .brand span {
    display: none;
  }

  .site-nav .links {
    gap: 0.65rem;
    overflow-x: auto;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .site-nav .links a {
    font-size: 0.74rem;
  }
}
