@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

:root {
  --azcore-blue-dark: #003a52;
  --azcore-blue-primary: #516fff;
  --azcore-blue-light: #eff3ff;
  --azcore-teal: #4b89ff;
  --azcore-gray-bg: #f7f7f7;
  --azcore-text: #2b2b2b;
  --azcore-border: #d2d2d2;
  --radius-azcore: 4px;
}

body {
  font-family: "AzcoreSans", Arial, sans-serif;
  color: var(--azcore-text);
  background: #ffffff;
  line-height: 1.6;
}

.container-azcore {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Navbar Azcore */
.azcore-navbar {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--azcore-border);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.azcore-navbar.scrolled {
  height: 72px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.05);
}

/* Modern Lang Switcher */
.lang-switcher-modern {
  display: flex;
  align-items: center;
  background: #f1f4f6;
  padding: 4px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.lang-link {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 16px;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-link:hover {
  color: var(--azcore-blue-primary);
}

.lang-link.active {
  background: #ffffff;
  color: var(--azcore-blue-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lang-divider {
  width: 1px;
  height: 12px;
  background: #cbd5e1;
  margin: 0 2px;
}

.lang-link.active + .lang-divider,
.lang-divider:has(+ .lang-link.active) {
  display: none;
}

.azcore-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 24px;
  font-family: 'Questrial', sans-serif;
  font-weight: 600;
  color: var(--azcore-blue-dark);
}

.azcore-nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: 48px;
}

.azcore-nav-link {
  text-decoration: none;
  color: #58585b;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.azcore-nav-link:hover {
  color: var(--azcore-blue-primary);
}

.header-actions-azcore {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Hero Azcore */
.azcore-hero {
  padding: 100px 0;
  background: linear-gradient(100deg, #3d58cc 0%, #516fff 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.azcore-hero h1 {
  font-size: 52px;
  font-weight: 300;
  margin-bottom: 24px;
}

.azcore-hero p {
  font-size: 22px;
  max-width: 650px;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Buttons */
.azcore-btn {
  background: var(--azcore-blue-primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 25px; /* Azcore uses rounded buttons often */
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s, background 0.2s;
}

.azcore-btn:hover {
  background: #3d58cc;
  color: #fff;
  transform: translateY(-2px);
}

.azcore-btn-white {
  background: #fff;
  color: var(--azcore-blue-dark);
}

.azcore-btn-white:hover,
.azcore-btn-white:focus,
.azcore-btn-white:active {
  background: #ffffff;
  color: var(--azcore-blue-dark);
}

/* Premium Cards Design */
.premium-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 20px;
}

.azcore-card-premium {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 20px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.azcore-card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--azcore-blue-primary), var(--azcore-teal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.azcore-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(81, 111, 255, 0.08);
  border-color: rgba(81, 111, 255, 0.15);
}

.azcore-card-premium:hover::before {
  opacity: 1;
}

.card-icon-wrapper {
  width: 100%;
  height: 190px;
  background: #f8fafc;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.card-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-icon-wrapper svg {
  width: 54px;
  height: 54px;
}

.azcore-card-premium:hover .card-icon-wrapper {
  background: var(--azcore-blue-primary);
}

.azcore-card-premium:hover .card-icon-wrapper svg {
  stroke: #ffffff;
}

.card-dot-pattern {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.03;
  pointer-events: none;
}

.azcore-card-premium h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--azcore-blue-dark);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.azcore-card-premium p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
  flex-grow: 1;
}

.card-action-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--azcore-blue-primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  margin-top: auto;
}

.card-action-link svg {
  transition: transform 0.3s ease;
}

.card-action-link:hover svg {
  transform: translateX(5px);
}

/* Standard Azcore Card */
.azcore-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.azcore-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(81, 111, 255, 0.08);
  border-color: rgba(81, 111, 255, 0.15);
}

/* Showcase Overrides for Light Theme */
.showcase-card.azcore-card {
  padding: 32px;
  gap: 20px;
}

.showcase-title {
  color: var(--azcore-blue-dark);
  font-weight: 600;
}

.showcase-desc {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.showcase-services {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #58585b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-services li {
  position: relative;
  padding-left: 18px;
}

.showcase-services li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--azcore-blue-primary);
  font-weight: bold;
}

.showcase-pill {
  background: var(--azcore-blue-light);
  border: 1px solid #e2e8f0;
  color: var(--azcore-blue-primary);
  font-weight: 500;
}

.showcase-image {
  width: 100%;
  height: 160px;
  background: #f8fafc;
  border-radius: 12px;
  margin: 16px 0 24px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #edf2f7;
  transition: border-color 0.3s ease;
}

.showcase-card:hover .showcase-image {
  border-color: rgba(81, 111, 255, 0.2);
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-link {
  color: var(--azcore-blue-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: gap 0.2s;
}

.showcase-link:hover {
  gap: 12px;
  color: var(--azcore-blue-dark);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.azcore-footer {
  background: #ffffff;
  border-top: 1px solid var(--azcore-border);
  padding: 60px 0 30px;
  color: #58585b;
  font-size: 14px;
}

/* --- MOBILE RESPONSIVENESS --- */
body.no-scroll {
  overflow: hidden;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
  border-radius: 4px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--azcore-blue-dark) !important; /* Force dark color for visibility on white */
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 1000;
  padding: 24px 24px 40px;
  flex-direction: column;
  gap: 4px;
  display: flex; /* Always flex but hidden */
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Prevent clicks while hidden */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateX(100%);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Enable clicks when visible */
  transform: translateX(0);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 20px;
  border-bottom: 1px solid #f1f4f6;
  margin-bottom: 12px;
}

.mobile-close-btn {
  background: #f8fafc;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azcore-blue-dark);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-close-btn:active {
  background: #eff3ff;
  transform: scale(0.95);
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--azcore-blue-dark);
  text-decoration: none;
  padding: 18px 12px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  border-bottom: 1px solid #f1f4f6;
  opacity: 1; /* Default to visible */
}

.mobile-nav-link:last-of-type {
  border-bottom: none;
}

.mobile-nav-link:active, .mobile-nav-link:hover {
  background: #f8fafc;
  color: var(--azcore-blue-primary);
}

.mobile-nav-link::after {
  content: "→";
  opacity: 0.3;
  font-weight: 400;
  transition: transform 0.2s;
}

.mobile-nav-link:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

.mobile-lang-row {
  margin-top: 24px;
  padding: 20px 12px;
  background: #f8fafc;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-lang-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1.5px;
}

.mobile-lang-btns {
  display: flex;
  gap: 10px;
}

.mobile-lang-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: #f1f4f6;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #64748b;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}

.mobile-lang-btn.active {
  background: #ffffff !important;
  border-color: var(--azcore-blue-primary) !important;
  color: var(--azcore-blue-primary) !important;
  box-shadow: 0 4px 12px rgba(81, 111, 255, 0.15);
}

.mobile-menu-footer {
  margin-top: auto;
  padding: 24px 0 10px;
}

.mobile-menu-footer .azcore-btn,
.mobile-menu-footer .azcore-btn:hover,
.mobile-menu-footer .azcore-btn:focus,
.mobile-menu-footer .azcore-btn:active {
  color: #ffffff;
}

.mobile-menu.open .mobile-menu-header {
  animation: slideInLeft 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.mobile-menu.open .mobile-nav-link {
  animation: slideInLeft 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  opacity: 1; /* Fallback visibility for emulators / reduced-motion environments */
}

.mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.open .mobile-nav-link:nth-child(5) { animation-delay: 0.25s; }

.mobile-menu.open .mobile-lang-row { 
  animation: fadeIn 0.5s ease 0.35s forwards;
  opacity: 1;
}
.mobile-menu.open .mobile-menu-footer {
  animation: fadeIn 0.5s ease 0.45s forwards;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu.open,
  .mobile-menu.open .mobile-menu-header,
  .mobile-menu.open .mobile-nav-link,
  .mobile-menu.open .mobile-lang-row,
  .mobile-menu.open .mobile-menu-footer {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@keyframes slideInLeft {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .azcore-navbar {
    height: 72px;
  }
  
  .azcore-nav-links, 
  .lang-switcher-modern, 
  .header-cta-wrapper {
    display: none !important;
  }
  
  .hamburger {
    display: flex !important; /* Ensure it overrides any other display: none */
    margin-left: auto;
  }

  .container-azcore {
    padding: 0 24px;
  }

  .azcore-logo {
    font-size: 20px;
  }

  .azcore-logo svg {
    width: 40px;
    height: 32px;
  }

  /* Hero Mobile */
  .azcore-hero {
    padding: 80px 0 60px;
    text-align: center;
  }

  .azcore-hero .container-azcore {
    flex-direction: column;
    gap: 48px;
  }

  .azcore-hero h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .azcore-hero p {
    font-size: 18px;
    margin: 0 auto 32px;
  }

  .azcore-hero div[style*="display: flex; gap: 16px;"] {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual-az {
    min-height: 300px;
    width: 100%;
  }

  .az-map-wrapper {
    max-width: 380px;
    margin: 0 auto;
  }

  /* Premium Services Mobile */
  section[style*="padding: 120px 0"] {
    padding: 80px 0 !important;
  }

  section[style*="margin: 0 auto 80px"] {
    margin-bottom: 48px !important;
  }

  h2[style*="font-size: 48px"] {
    font-size: 32px !important;
  }

  .premium-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .azcore-card-premium {
    padding: 40px 30px;
  }

  .card-icon-wrapper {
    height: 170px;
  }

  /* Feature Section Mobile */
  section[style*="padding: 100px 0"] {
    padding: 60px 0 !important;
  }

  section[style*="padding: 100px 0"] .container-azcore {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  h2[style*="font-size: 40px"] {
    font-size: 28px !important;
  }

  div[style*="height: 350px"] {
    height: 280px !important;
    width: 100%;
  }

  /* Internal Page Headers */
  section[style*="background: var(--azcore-blue-dark)"] {
    padding: 40px 0 !important;
    text-align: center;
  }

  section[style*="background: var(--azcore-blue-dark)"] h1 {
    font-size: 28px !important;
  }

  section[style*="background: var(--azcore-blue-dark)"] p {
    font-size: 16px !important;
    margin: 10px auto 0 !important;
  }

  /* General Layout Adjustments */
  div[style*="display: flex; gap: 60px;"] {
    flex-direction: column !important;
    gap: 32px !important;
  }

  div[style*="min-width: 350px"], 
  div[style*="min-width: 300px"] {
    min-width: 100% !important;
  }

  /* Footer Mobile */
  .azcore-footer {
    padding: 48px 0 24px;
  }

  .azcore-footer div[style*="display: flex; justify-content: space-between;"] {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .azcore-footer div[style*="display: flex; gap: 24px;"] {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px !important;
  }
}

@media (max-width: 768px) {
  /* Contact Form Grids */
  div[style*="display: grid; grid-template-columns: 1fr 1fr;"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .service-checkbox-group {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .azcore-hero h1 {
    font-size: 30px;
  }

  .azcore-btn {
    width: 100%;
    text-align: center;
  }

  .azcore-hero div[style*="display: flex; gap: 16px;"] {
    flex-direction: column;
    gap: 12px;
  }

  .az-chip-panel {
    display: none; /* Hide panels on very small screens to reduce clutter */
  }

  /* Adjust About stats grid */
  div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;"] {
    grid-template-columns: 1fr !important;
  }
}

/* Empty States - Azcore Premium Style */
.showcase-empty, .career-empty {
  grid-column: 1 / -1;
  padding: 100px 40px;
  text-align: center;
  background: #fdfdfe;
  border: 1px dashed var(--azcore-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 40px 0;
  transition: border-color 0.3s ease;
}

.showcase-empty:hover, .career-empty:hover {
  border-color: var(--azcore-blue-primary);
}

.showcase-empty h3, .career-empty h3 {
  font-size: 24px;
  font-weight: 300;
  color: #94a3b8;
  margin: 0;
  letter-spacing: -0.01em;
}

.showcase-empty::before, .career-empty::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  background-color: var(--azcore-blue-primary);
  opacity: 0.15;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.azcore-footer a:hover {
  color: #000000 !important;
}

/* Checkbox Styling */
.service-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 25px;
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-azcore);
  border: 1px solid var(--azcore-border);
}

.azcore-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500 !important;
  color: var(--azcore-blue-dark);
  cursor: pointer;
  margin-bottom: 0 !important;
  user-select: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.azcore-checkbox-label:hover {
  background: #eff3ff;
}

.azcore-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--azcore-blue-primary);
}

/* Form Error Styling */
.field-err {
  color: #e11d48;
  font-size: 12px;
  margin-top: -15px;
  margin-bottom: 15px;
  display: none;
}

.field-err.show {
  display: block;
}

input.err, select.err, textarea.err, .service-checkbox-group.err {
  border-color: #e11d48 !important;
}

/* Style.css footer overrides for light theme */
footer .logo-text {
  color: var(--azcore-text) !important;
}

footer .footer-col a:hover {
  color: #000000 !important;
}
