/* =============================================
   Acer Makine - Main Stylesheet
   Converted from Tailwind CSS to Vanilla CSS
   ============================================= */

/* =============================================
   1. CSS Variables (Design Tokens)
   ============================================= */
:root {
  /* Colors */
  --color-primary: #d32f2f;
  --color-primary-hover: #b71c1c;
  --color-dark-navy: #0f172a;
  --color-light-silver: #f8fafc;
  --color-pure-white: #ffffff;
  --color-soft-white: #fdfdfd;
  --color-light-gray-separator: #e5e7eb;
  --color-footer-bg: #0f172a;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-700: #334155;

  /* Typography */
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --font-family-display: "Space Grotesk", var(--font-family-base);

  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-default: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

/* =============================================
   2. Reset & Base Styles
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Critical for mobile */
  width: 100%;
}

body {
  font-family: var(--font-family-base);
  line-height: 1.5;
  color: var(--color-dark-navy);
  background-color: var(--color-pure-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* =============================================
   3. Typography
   ============================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.text-6xl {
  font-size: 3.75rem;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* =============================================
   4. Layout Utilities
   ============================================= */
.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.grid {
  display: grid;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.overflow-hidden {
  overflow: hidden;
}

/* =============================================
   5. Color Utilities
   ============================================= */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-dark-navy {
  background-color: var(--color-dark-navy);
}

.bg-light-silver {
  background-color: var(--color-light-silver);
}

.bg-pure-white {
  background-color: var(--color-pure-white);
}

.bg-footer {
  background-color: var(--color-footer-bg);
}

.text-primary {
  color: var(--color-primary);
}

.text-dark-navy {
  color: var(--color-dark-navy);
}

.text-pure-white {
  color: var(--color-pure-white);
}

.text-slate-300 {
  color: var(--color-slate-300);
}

.text-slate-400 {
  color: var(--color-slate-400);
}

/* =============================================
   6. Spacing Utilities
   ============================================= */
.p-4 {
  padding: 1rem;
}

.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* =============================================
   7. Navbar Styles
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-pure-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

/* Default text color for navbar (dark) */
.navbar .navbar-links a,
.navbar .nav-dropdown-btn,
.navbar .language-btn,
.navbar .navbar-mobile-btn {
  color: var(--color-dark-navy);
}

.navbar .navbar-links a:hover,
.navbar .nav-dropdown-btn:hover {
  color: var(--color-primary);
  background-color: rgba(211, 47, 47, 0.05);
}

/* Transparent navbar (homepage at top) - transparent bg with WHITE text */
.navbar.transparent {
  position: absolute;
  background-color: transparent;
  box-shadow: none;
}

.navbar.transparent .navbar-links a,
.navbar.transparent .nav-dropdown-btn,
.navbar.transparent .language-btn,
.navbar.transparent .navbar-mobile-btn {
  color: var(--color-pure-white);
}

.navbar.transparent .navbar-links a:hover,
.navbar.transparent .nav-dropdown-btn:hover {
  color: var(--color-pure-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar.transparent .language-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Logo: normal logo for transparent, inverted for white bg */
.navbar.transparent .navbar-logo img {
  filter: none;
}

.navbar:not(.transparent) .navbar-logo img {
  filter: brightness(0) saturate(100%) invert(15%) sepia(94%) saturate(7151%)
    hue-rotate(350deg) brightness(90%) contrast(88%);
}

/* Scrolled navbar (after scrolling on homepage) - white bg with dark text */
.navbar.scrolled {
  position: fixed;
  background-color: var(--color-pure-white);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .navbar-links a,
.navbar.scrolled .nav-dropdown-btn,
.navbar.scrolled .language-btn,
.navbar.scrolled .navbar-mobile-btn {
  color: var(--color-dark-navy);
}

.navbar.scrolled .navbar-links a:hover,
.navbar.scrolled .nav-dropdown-btn:hover {
  color: var(--color-primary);
  background-color: rgba(211, 47, 47, 0.05);
}

.navbar.scrolled .navbar-logo img {
  filter: brightness(0) saturate(100%) invert(15%) sepia(94%) saturate(7151%)
    hue-rotate(350deg) brightness(90%) contrast(88%);
}

/* Light navbar for product/inner pages - white background with dark text */
.navbar.light {
  background-color: var(--color-pure-white);
  box-shadow: var(--shadow-sm);
}

.navbar.light .navbar-links a,
.navbar.light .nav-dropdown-btn,
.navbar.light .language-btn,
.navbar.light .navbar-mobile-btn {
  color: var(--color-dark-navy);
}

.navbar.light .navbar-links a:hover,
.navbar.light .nav-dropdown-btn:hover {
  color: var(--color-primary);
  background-color: rgba(211, 47, 47, 0.05);
}

.navbar.light .language-btn:hover {
  background-color: var(--color-light-silver);
}

.navbar.light .navbar-logo img {
  filter: brightness(0) saturate(100%) invert(15%) sepia(94%) saturate(7151%)
    hue-rotate(350deg) brightness(90%) contrast(88%);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%; /* Ensure full width */
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  .navbar-container {
    padding: 0.75rem 2rem;
  }
  }


/* Navbar Logo Visibility Control */
.navbar-logo {
  display: flex;
  align-items: center;
}

@media (max-width: 1023px) {
  /* Removed display:none to let main logo show on mobile */
}

/* Mobile Nav Controls Layout */
.mobile-nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .mobile-nav-controls {
    display: none; /* Hide mobile controls on desktop */
  }
  
  .navbar-logo {
    display: flex; /* Ensure desktop logo is visible on desktop */
  }
}

.mobile-nav-logo img {
  height: 2rem;
  width: auto;
  display: block;
}

/* Logo Color Handling for Mobile Nav Logo */
.navbar.transparent .mobile-nav-logo img {
  filter: none; /* White logo */
}

.navbar.scrolled .mobile-nav-logo img,
.navbar.light .mobile-nav-logo img {
  filter: brightness(0) saturate(100%) invert(15%) sepia(94%) saturate(7151%)
    hue-rotate(350deg) brightness(90%) contrast(88%); /* Red/Dark logo */
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo img {
  height: 48px;
  width: auto;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 0;
}

@media (min-width: 1024px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-links > a,
.navbar-links > .products-dropdown-container,
.navbar-links > .language-selector {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-links > a:last-of-type {
  border-right: none;
}

.navbar-links a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--color-pure-white);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.navbar-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Light/scrolled navbar link separators */
.navbar.light .navbar-links > a,
.navbar.light .navbar-links > .products-dropdown-container,
.navbar.light .navbar-links > .language-selector,
.navbar.scrolled .navbar-links > a,
.navbar.scrolled .navbar-links > .products-dropdown-container,
.navbar.scrolled .navbar-links > .language-selector {
  border-right-color: var(--color-light-gray-separator);
}

.navbar.light .navbar-links a:hover,
.navbar.scrolled .navbar-links a:hover {
  background-color: rgba(211, 47, 47, 0.05);
}

.navbar-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-pure-white);
}

@media (min-width: 1024px) {
  .navbar-mobile-btn {
    display: none;
  }
}

.navbar-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-dark-navy);
  z-index: 40;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.navbar-mobile-menu.open {
  transform: translateX(0);
}

.navbar-mobile-menu-content {
  padding: 5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.navbar-mobile-menu a {
  color: var(--color-pure-white);
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-pure-white);
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-pure-white);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: var(--radius-default);
  transition: background-color var(--transition-fast);
}

.language-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background-color: var(--color-pure-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
}

.language-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-dark-navy) !important;
  font-size: 0.875rem;
  transition: background-color var(--transition-fast);
}

.language-dropdown a:hover {
  background-color: var(--color-light-silver);
}

.language-dropdown a:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.language-dropdown a:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* =============================================
   8. Hero Section
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  margin-top: 0;
  /* Hero extends behind navbar when navbar is transparent */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  background-color: rgba(15, 23, 42, 0.7);
}

.hero-content {
  max-width: 80rem;
  margin: 0 auto;
  min-height: 50vh;
  height: 482px;
  display: flex;
  align-items: center;
  padding: 5rem 1rem;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 5rem 2rem;
  }
}

.hero-text {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-pure-white);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-pure-white);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =============================================
   9. Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 3rem;
  padding: 0 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  border-radius: var(--radius-default);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-pure-white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-pure-white);
  border: 2px solid var(--color-pure-white);
}

.btn-outline:hover {
  background-color: var(--color-pure-white);
  color: var(--color-dark-navy);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-dark-navy);
  border: 2px solid var(--color-dark-navy);
}

.btn-outline-dark:hover {
  background-color: var(--color-dark-navy);
  color: var(--color-pure-white);
}

/* =============================================
   10. Trust Bar Section
   ============================================= */
.trust-bar {
  width: 100%;
  background-color: var(--color-light-silver);
  padding: 4rem 0;
}

.trust-bar-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--color-light-gray-separator);
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .trust-bar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-light-silver);
  padding: 2rem;
  text-align: center;
}

.trust-bar-icon {
  color: var(--color-primary);
  width: 36px;
  height: 36px;
}

.trust-bar-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-dark-navy);
}

.trust-bar-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark-navy);
}

/* =============================================
   11. Expertise Section
   ============================================= */
.expertise {
  padding: 5rem 0;
  background-color: var(--color-pure-white);
}

.expertise-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .expertise-content {
    padding: 0 2rem;
  }
}

.expertise-header {
  text-align: center;
  margin-bottom: 3rem;
}

.expertise-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .expertise-title {
    font-size: 2.25rem;
  }
}

.expertise-subtitle {
  font-size: 1.125rem;
  color: var(--color-slate-400);
  max-width: 48rem;
  margin: 0 auto;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expertise-card {
  background-color: var(--color-light-silver);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.expertise-card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.expertise-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 0.5rem;
}

.expertise-card-text {
  font-size: 0.875rem;
  color: var(--color-slate-400);
}

/* =============================================
   12. Footer
   ============================================= */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-pure-white);
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  overflow: hidden; /* Prevent inner content overflow */
}

@media (min-width: 640px) {
  .footer-container {
    padding: 4rem 2rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 0.875rem;
  color: var(--color-slate-300);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-slate-300);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-newsletter-form {
  display: flex;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
}

.footer-newsletter-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background-color: var(--color-slate-700);
  border: none;
  border-radius: var(--radius-default) 0 0 var(--radius-default);
  color: var(--color-pure-white);
  font-size: 0.875rem;
}

.footer-newsletter-input::placeholder {
  color: var(--color-slate-400);
}

.footer-newsletter-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.footer-newsletter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background-color: var(--color-primary);
  border-radius: 0 var(--radius-default) var(--radius-default) 0;
}

.footer-newsletter-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-pure-white);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-primary);
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-slate-400);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center; /* Center on mobile */
  width: 100%;
}

.footer-legal-links a {
  font-size: 0.875rem;
  color: var(--color-slate-400);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--color-slate-400);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-primary);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

/* =============================================
   13. Forms
   ============================================= */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark-navy);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--color-dark-navy);
  background-color: var(--color-pure-white);
  border: 1px solid var(--color-light-gray-separator);
  border-radius: var(--radius-default);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* =============================================
   14. Cards
   ============================================= */
.card {
  background-color: var(--color-pure-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.875rem;
  color: var(--color-slate-400);
}

/* =============================================
   15. Tables
   ============================================= */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-light-gray-separator);
}

.table th {
  background-color: var(--color-light-silver);
  font-weight: 600;
  color: var(--color-dark-navy);
}

.table tr:hover td {
  background-color: var(--color-light-silver);
}

/* =============================================
   16. Cookie Consent
   ============================================= */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-dark-navy);
  color: var(--color-pure-white);
  padding: 1rem;
  z-index: 100;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent-content {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cookie-consent-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cookie-consent-text {
  font-size: 0.875rem;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.5rem;
}

/* =============================================
   17. Responsive Utilities
   ============================================= */
@media (max-width: 639px) {
  .sm\:hidden {
    display: none;
  }
}

@media (min-width: 640px) {
  .sm\:block {
    display: block;
  }

  .sm\:flex {
    display: flex;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }

  .md\:flex {
    display: flex;
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================
   18. Scrollbar Hide Utility
   ============================================= */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* =============================================
   19. Animations
   ============================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

/* Expertise Background Text "30+" */
.expertise-header {
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* Prevent spillover */
}

.expertise-background-text {
  position: absolute;
  top: 50%;
  right: -2rem;
  /* Hanging slightly off edge */
  transform: translateY(-50%);
  font-size: 15rem;
  font-weight: 900;
  color: #94a3b8;
  /* slate-400 equivalent */
  opacity: 0.15;
  /* Very subtle */
  z-index: -1;
  line-height: 1;
  pointer-events: none;
  font-family: "Space Grotesk", sans-serif;
  user-select: none;
}

@media (max-width: 1024px) {
  .expertise-background-text {
    font-size: 10rem;
    right: 0;
  }
}

@media (max-width: 768px) {
  .expertise-background-text {
    font-size: 8rem;
    right: 50%;
    transform: translate(50%, -50%);
    top: 50%;
    opacity: 0.1;
  }
}

/* Expertise Section Redesign (Grid Layout) */
.expertise-header {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  text-align: left !important;
  margin-bottom: 4rem;
  overflow: visible !important;
}

.expertise-text-wrapper {
  display: flexbox;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.expertise-title {
  font-size: 2.25rem !important;
  /* Larger title */
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 0 !important;
  line-height: 1.2;
  text-align: left !important;
}

.expertise-subtitle {
  font-size: 1.125rem;
  color: var(--color-slate-400);
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}

.expertise-number-display {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10rem;
  font-weight: 800;
  color: rgba(220, 38, 38, 0.15);
  /* Soft Primary Red */
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
  user-select: none;
}

@media (min-width: 1280px) {
  .expertise-number-display {
    font-size: 12rem;
  }
}

@media (max-width: 768px) {
  .expertise-header {
    grid-template-columns: 1fr;
    text-align: center !important;
    gap: 2rem;
  }

  .expertise-text-wrapper {
    align-items: center;
    text-align: center;
  }

  .expertise-title,
  .expertise-subtitle {
    text-align: center !important;
  }

  .expertise-number-display {
    font-size: 8rem;
    order: 1;
  }
}

/* World Map Section Redesign */
.world-map-section {
  background-color: var(--color-dark-navy);
  padding: 6rem 0;
  color: var(--color-pure-white);
  overflow: hidden;
  /* Ensure map doesn't spill if formatted that way */
}

.world-map-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.world-map-text-col {
  text-align: left;
}

.world-map-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-pure-white);
  line-height: 1.2;
}

.world-map-desc {
  font-size: 1.125rem;
  color: var(--color-slate-300);
  line-height: 1.6;
  max-width: 36rem;
}

.world-map-container {
  display: flex;
  justify-content: flex-end;
  opacity: 0.15;
  /* Subtle ghost effect */
  /* If the SVG is black, we invert it to be white-ish on dark bg */
  filter: invert(1);
}

.world-map-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .world-map-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .world-map-text-col {
    text-align: center;
    margin: 0 auto;
  }

  .world-map-container {
    justify-content: center;
    order: -1;
    /* Map on top on mobile? Or bottom? Screenshot usually implies map is visual context */
    /* Let's keep map on bottom or background. But user said "like this" showing desktop split. */
    order: 1;
  }
}

/* Fix World Map Visibility - Stronger Contrast */
.world-map-container {
  opacity: 0.5 !important;
  filter: invert(1) grayscale(1) sepia(0) brightness(2) !important;
  position: relative;
  z-index: 1;
}

.world-map-image {
  width: 100%;
  max-width: 700px;
  /* Slight increase */
  height: auto;
  display: block;
}

/* Ensure section background covers everything */
.world-map-section {
  background-color: var(--color-dark-navy) !important;
}

/* Revert World Map to Light Theme */
.world-map-section {
  background-color: var(--color-pure-white) !important;
  color: var(--color-dark-navy) !important;
}

.world-map-title {
  color: var(--color-dark-navy) !important;
}

.world-map-desc {
  color: var(--color-slate-600) !important;
  /* Return to standard text grey */
}

.world-map-container {
  opacity: 0.1 !important;
  /* Subtle watermark effect */
  filter: brightness(0) !important;
  /* Turn SVG black (which becomes grey with opacity) */
  /* Previously it was inverted to be white. Now we need dark/grey on white bg. */
}

/* World Map Navy Blue Update */
.world-map-container {
  opacity: 1 !important;
  /* Full visibility for color */
  filter: none !important;
  /* Remove filters so original Navy/Black shows, or colorize it */
  /* Assuming the SVG is black by default, we can use CSS filter to make it Navy Blue */
  /* Navy Blue is roughly: #0f172a or #1e3a8a. Black to Navy filter approximation: */
  filter: invert(13%) sepia(34%) saturate(3829%) hue-rotate(202deg)
    brightness(93%) contrast(96%) !important;
}

/* World Map Color Sync with Footer (#0F172A) */
.world-map-container {
  opacity: 1 !important;
  /* Precise filter to transform Black (#000000) to Dark Navy (#0F172A) */
  filter: invert(8%) sepia(49%) saturate(2306%) hue-rotate(203deg)
    brightness(91%) contrast(93%) !important;
}

/* =============================================
   Language Selection Modal (B2B Design)
   ============================================= */
.lang-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.85);
  /* Dark Navy transparency */
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.lang-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lang-modal-card {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2.5rem;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  position: relative;
  overflow: hidden;
}

.lang-modal-overlay.open .lang-modal-card {
  transform: translateY(0);
}

/* Decorative top bar */
.lang-modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #b71c1c 100%);
}

/* Dual Logo Header */
.lang-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.lang-modal-logo {
  height: 48px;
  width: auto;
  display: block;
}

.lang-modal-logo.aymak-logo {
  /* Apply Red filter only to Aymak logo */
  filter: brightness(0) saturate(100%) invert(15%) sepia(94%) saturate(7151%)
    hue-rotate(350deg) brightness(90%) contrast(88%);
}

.lang-modal-logo.imach-logo {
  /* Ensure IMACH logo fits well, maybe slightly larger if needed, or no filter */
  max-width: 150px;
  object-fit: contain;
}

.lang-modal-separator {
  width: 2px;
  height: 40px;
  background-color: var(--color-primary);
  /* Red Separator */
  opacity: 0.2;
  /* Subtle divider */
}

.lang-modal-title {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 0.5rem;
}

.lang-modal-subtitle {
  color: var(--color-slate-400);
  /* Muted slate */
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.lang-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .lang-options-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lang-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--color-light-silver);
  border: 1px solid var(--color-light-gray-separator);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  /* In case it's an anchor */
  user-select: none;
}

.lang-option-btn:hover {
  background-color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.lang-flag {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
  /* Ensure separate line */
}

.lang-label {
  display: block;
  font-weight: 600;
  color: var(--color-dark-navy);
  font-size: 1rem;
}

.lang-sublabel {
  display: block;
  font-size: 0.8rem;
  color: var(--color-slate-400);
  margin-top: 0.25rem;
}

/* Close button (optional, but good for accessibility/exit) */
.lang-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-slate-400);
  cursor: pointer;
  padding: 0.5rem;
}

.lang-modal-close:hover {
  color: var(--color-dark-navy);
}
