/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

li {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--bg-secondary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  margin: 0 auto;
  border-radius: 2px;
  margin-top: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-gold:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header & Navbar */
.top-bar {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 10px 0;
  font-size: 0.85rem;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contacts {
  display: flex;
  gap: 20px;
}

.top-contacts a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-contacts a:hover {
  color: var(--secondary);
}

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-link {
  font-weight: 700;
  color: #a3b8b5;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-title);
  font-size: 0.8rem;
}

.lang-link.active {
  color: var(--text-light);
  background-color: var(--secondary);
}

.lang-link:hover {
  color: var(--text-light);
  background-color: var(--primary-light);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  height: var(--header-height);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  padding: 8px 4px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

/* Mobile Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-about p {
  color: #a3b8b5;
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 350px;
}

.footer-title {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #a3b8b5;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: #a3b8b5;
}

.footer-contact i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon img {
  width: 32px;
  height: 32px;
  transition: var(--transition);
}

.social-icon:hover img {
  transform: translateY(-3px);
  filter: brightness(1.2);
}

.footer-bottom {
  border-top: 1px solid #2f4f4b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #8fa5a2;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--secondary);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border-radius: 50%;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Responsive Grid and Helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Base styles for hiding mobile lang item on desktop */
.mobile-lang-item {
  display: none;
}

.lang-link {
  display: inline-flex;
  align-items: center;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1100;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
    z-index: 1050;
    padding: 40px 20px;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    color: var(--text-light);
    font-size: 1.2rem;
  }
  
  .nav-link::after {
    background-color: var(--secondary);
  }
  
  .nav .btn-primary {
    display: none;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }

  /* Mobile Language Bar Styles */
  .mobile-lang-item {
    display: block !important;
    width: 100%;
    margin-top: 25px;
    padding: 0 20px;
    list-style: none;
  }
  
  .mobile-lang-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .mobile-lang-selector .lang-link {
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
  }
  
  .mobile-lang-selector .lang-link.active {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(104, 159, 148, 0.25);
  }
  
  .mobile-lang-selector .lang-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}
