/* ===== ROOT VARIABLES ===== */
:root {
  --brand: #6C63FF;
  --brand-2: #8B5CF6;
  --brand-dark: #6b46c1;
  --container: 1200px;
  --border-radius: 12px;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(107,70,193,0.2);
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Segoe UI', Inter, system-ui, Roboto, Arial, sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ===== TOP ICONS ===== */
.top-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  text-decoration: none;
  transition: var(--transition);
}

.icon-link:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,.25);
}

.icon-link i {
  font-size: 18px;
  line-height: 1;
}

.icon-link.wa i {
  color: #25D366;
}

.icon-link.tel i {
  color: #ffffff;
  opacity: .9;
}

.icon-link.ig i {
  color: #E1306C;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background: var(--brand-dark);
  color: #fff;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1100;
  box-shadow: var(--shadow);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

/* Navigation styles are now handled by .nav-links above */

.right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.language-switcher button {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.language-switcher button:hover {
  background: rgba(255,255,255,0.25);
}

.language-switcher button.active {
  background: #a78bfa;
  color: #fff;
}

.language-switcher button.active:hover {
  background: #8b5cf6;
}

/* ===== NAVIGATION LINKS ===== */
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: #a78bfa;
  background: rgba(255,255,255,0.1);
}

/* ===== BURGER MENU ===== */
.nav-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  user-select: none;
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  transition: var(--transition);
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.burger:hover {
  background: rgba(255,255,255,0.1);
}

.burger[aria-expanded="true"] {
  background: rgba(255,255,255,0.2);
}

/* ===== BACKDROP ===== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.backdrop.show {
  display: block;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  margin-top: 64px;
  text-align: center;
  padding: 48px 16px;
}

.hero img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero video {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55));
}

.hero .content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12vh;
  width: min(100%, var(--container));
  padding: 0 20px;
  color: #fff;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.hero p {
  max-width: 820px;
  font-size: 18px;
  opacity: 0.95;
  margin: 0 0 18px;
}

.hero .lead {
  font-size: 20px;
  margin-bottom: 24px;
}

.hero .home {
  font-size: 16px;
  margin-bottom: 32px;
}

.hero .home a {
  color: #a78bfa;
  text-decoration: underline;
}

.cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
}

.btn.wa-pill {
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.btn.wa-pill i {
  color: #25D366;
}

.btn.icon {
  background: var(--brand-dark);
  color: #fff;
  border: none;
}

.btn.icon svg {
  fill: #22c55e;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 50px 20px;
  background: #fff;
  text-align: center;
}

.services h2 {
  color: #000;
  margin-bottom: 10px;
  font-size: 36px;
}

.services p {
  color: #4a5568;
  margin-bottom: 40px;
  font-size: 18px;
}

.service-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 24px;
  width: 280px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2rem;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.service-card h3 {
  color: #000;
  margin-bottom: 12px;
  font-size: 20px;
}

.service-card p {
  color: #4a5568;
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.service-card a:hover {
  color: var(--brand-2);
}

/* ===== LOGOS SECTION ===== */
.logos {
  padding: 40px 16px;
  background: #f8fafc;
}

.logos h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 32px;
  color: #1e293b;
}

.logos p {
  text-align: center;
  margin: 0 auto 24px;
  max-width: 800px;
  color: #64748b;
  font-size: 16px;
}

.logo-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo-item {
  aspect-ratio: 3 / 2;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.logo-item img {
  width: 100%;
  height: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.logo-item:hover img {
  transform: scale(1.05);
}

/* ===== GRID & CARDS ===== */
.grid {
  display: grid;
  gap: 20px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  padding: 24px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #1e293b;
}

.card p {
  color: #64748b;
  line-height: 1.6;
}

/* ===== PAGE HERO ===== */
.page-hero {
  margin-top: 64px;
  padding: 28px 20px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-2));
  color: #fff;
}

.page-hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.breadcrumbs {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.breadcrumbs a {
  color: #fff;
  opacity: 0.9;
  transition: var(--transition);
}

.breadcrumbs a:hover {
  opacity: 1;
}

.page-hero h1 {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 700;
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
  padding: 40px 20px;
  background: var(--brand-dark);
  color: #fff;
  text-align: center;
}

.admin-panel h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.admin-panel p {
  opacity: 0.9;
  font-size: 16px;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px;
  background: var(--brand-dark);
  color: #fff;
  margin-top: 40px;
}

.footer p {
  opacity: 0.9;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .logo-container {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-cards {
    gap: 16px;
  }
  
  .service-card {
    width: 260px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .header {
    padding: 12px 16px;
  }
  
  .logo img {
    height: 45px;
  }
  
  .nav {
    padding: 0;
  }
  
  .icon-link {
    width: 34px;
    height: 34px;
  }
  
  .burger {
    display: flex;
  }
  
  .nav ul {
    position: absolute;
    top: 56px;
    right: 0;
    background: var(--brand-dark);
    flex-direction: column;
    gap: 0;
    width: 280px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    display: none;
    z-index: 1050;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  
  .nav ul.show {
    display: flex;
  }
  
  .nav ul li {
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  
  .nav ul li a {
    display: block;
    padding: 16px 20px;
    min-height: 48px;
  }
  
  .right-controls {
    position: absolute;
    right: 16px;
    top: 12px;
  }
  
  .lang-menu {
    position: fixed;
    top: 70px;
    right: 12px;
    min-width: 220px;
  }
  
  .lang-menu button {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .hero {
    margin-top: 56px;
  }
  
  .hero img {
    height: 60vh;
    object-position: center 20%;
  }
  
  .hero .content {
    bottom: 8vh;
    padding: 0 16px;
  }
  
  .hero h1 {
    font-size: 28px;
    margin-bottom: 12px;
    line-height: 1.1;
  }
  
  .hero p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .hero .lead {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.4;
  }
  
  .hero .home {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    min-height: 48px;
    padding: 14px 20px;
    font-size: 16px;
    touch-action: manipulation;
  }
  
  .btn.icon {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .logo-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .logo-item {
    aspect-ratio: 3 / 2;
    padding: 8px;
  }
  
  .logo-item img {
    max-height: 60px;
  }
  
  .service-cards {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .service-card {
    width: 100%;
    max-width: 320px;
  }
  
  .grid.cards {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .services {
    padding: 40px 16px;
  }
  
  .services h2 {
    font-size: 28px;
  }
  
  .services p {
    font-size: 16px;
  }
  
  .page-hero {
    margin-top: 56px;
    padding: 24px 16px;
  }
  
  .page-hero h1 {
    font-size: 24px;
  }
  
  .admin-panel {
    padding: 32px 16px;
  }
  
  .admin-panel h2 {
    font-size: 24px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .nav ul {
    width: 100%;
    right: 0;
    border-radius: 0;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .hero p {
    font-size: 13px;
  }
  
  .logo-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .logo-item {
    padding: 8px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .services h2 {
    font-size: 24px;
  }
  
  .logos h2 {
    font-size: 24px;
  }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .logo img {
    height: 38px;
  }
  
  .hero h1 {
    font-size: 22px;
  }
  
  .hero p {
    font-size: 12px;
  }
  
  .hero .lead {
    font-size: 14px;
  }
  
  .logo-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .logo-item {
    padding: 6px;
  }
  
  .logo-item img {
    max-height: 50px;
  }
  
  .service-card {
    padding: 16px;
  }
  
  .btn {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
  }
  
  .services h2 {
    font-size: 22px;
  }
  
  .logos h2 {
    font-size: 22px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.nav a:focus,
.btn:focus,
.lang-current:focus,
.burger:focus,
.lang-menu button:focus {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav a:hover,
  .nav a.active {
    background: #fff;
    color: var(--brand-dark);
  }
  
  .btn {
    border-width: 2px;
  }
}

/* ===== SERVICE PAGES ===== */
.service-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
}

.service-subtitle {
  font-size: 18px;
  color: #666;
  margin-top: 10px;
  max-width: 600px;
}

.service-features {
  margin-top: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.feature-card p {
  color: #666;
  line-height: 1.5;
}

.service-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ===== SERVICES DROPDOWN ===== */
.services-dropdown {
  position: relative;
}

.services-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 8px 0;
  min-width: 250px;
  z-index: 1000;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-radius: 8px;
  margin: 0 8px;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: var(--brand);
}

.dropdown-menu i {
  width: 20px;
  text-align: center;
  color: var(--brand);
}

/* Mobile styles for service pages */
@media (max-width: 768px) {
  .service-hero {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .service-cta {
    flex-direction: column;
    align-items: center;
  }
}
