/**
 * Carbacan Theme - Main Stylesheet
 */

/* ===========================
   Header & Navigation
   =========================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.site-branding {
  flex-shrink: 0;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.main-navigation {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--color-primary);
}

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

.language-switcher {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-link {
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  color: var(--color-neutral);
  transition: color 0.2s ease;
}

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

.separator {
  color: var(--color-neutral-light);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

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

/* ===========================
   Hero Section (Front Page)
   =========================== */

.hero {
  position: relative;
  background: var(--color-matrix-bg);
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  width: 100%;
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 2rem;
  color: white;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===========================
   Services Preview
   =========================== */

.services-preview {
  padding: var(--spacing-xl) 0;
}

.service-card {
  padding: var(--spacing-md);
  background: var(--color-bg);
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.btn-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--color-primary);
  font-weight: 500;
  transition: transform 0.2s ease;
}

.btn-link:hover {
  transform: translateX(4px);
}

/* ===========================
   Team Teaser
   =========================== */

.team-teaser {
  padding: var(--spacing-xl) 0;
}

.team-member-card {
  text-align: center;
  padding: var(--spacing-md);
  background: white;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.team-avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-member-card .role {
  color: var(--color-neutral);
  font-size: var(--font-size-small);
  font-weight: 500;
}

/* ===========================
   CTA Section
   =========================== */

.cta {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
}

.cta h2 {
  color: white;
}

.cta p {
  color: rgba(255, 255, 255, 0.95);
}

/* ===========================
   Page Header
   =========================== */

.page-header {
  padding: 8rem 0 4rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid #E2E8F0;
}

.page-title {
  font-size: var(--font-size-h1);
  color: var(--color-primary);
  margin: 0;
}

/* ===========================
   Page Content
   =========================== */

.page-content {
  padding: var(--spacing-xl) 0;
  max-width: 800px;
  margin: 0 auto;
}

.entry-content {
  line-height: 1.8;
}

.entry-content h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.entry-content h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.entry-content p {
  margin-bottom: var(--spacing-sm);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: var(--spacing-sm);
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col h3 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-small);
}

.footer-col a:hover {
  color: white;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-legal-menu a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal-menu a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-legal {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===========================
   Responsive Adjustments
   =========================== */

@media (max-width: 768px) {
  body {
    padding-top: 60px; /* Fixed header height */
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}
