/* ===== MA Consulting - Global Styles ===== */

/* Skip Link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--primary, #1B2A4A);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

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

:root {
  --primary: #1B2A4A;
  --secondary: #0D9488;
  --accent: #E8913A;
  --bg: #F8F7F4;
  --surface: #EEF0F3;
  --text: #2D3748;
  --heading: #1A1A2E;
  --white: #FFFFFF;
  --border: #D1D5DB;
  --primary-light: #2A3F6A;
  --secondary-light: #14B8A6;
  --accent-light: #F0A85E;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Touch-friendly tap targets */
@media (pointer: coarse) {
  nav a { min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 44px; }
  .lang-btn { min-height: 44px; }
  .lang-dropdown a { min-height: 44px; display: flex; align-items: center; }
  .site-footer a { display: inline-block; min-height: 44px; line-height: 44px; }
  .site-footer li { margin-bottom: 0; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover { color: var(--secondary-light); }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header / Navigation ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo img, .logo svg {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--secondary);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--secondary);
  background: rgba(13, 148, 136, 0.06);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: 0.5rem;
}

.lang-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 130px;
  z-index: 100;
  overflow: hidden;
}

.lang-dropdown.show {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text);
  border-radius: 0;
}

.lang-dropdown a:hover {
  background: var(--surface);
  color: var(--secondary);
}

.lang-dropdown a.active {
  color: var(--secondary);
  font-weight: 600;
  background: rgba(13,148,136,0.06);
}

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

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== Hero Sections ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 4rem 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 2.75rem;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,0.92) 0%, rgba(13,148,136,0.7) 100%);
  z-index: 1;
}

/* Page Heroes (smaller) */
.page-hero {
  min-height: 300px;
}

.page-hero .hero-content {
  padding: 3rem 0;
}

.page-hero h1 {
  font-size: 2.25rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,145,58,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--white);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-dark {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: #6B7280;
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--secondary);
  font-size: 1.5rem;
}

/* ===== Grid Layouts ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #6B7280;
}

/* ===== Image Cards ===== */
.img-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.img-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.img-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.img-card-body {
  padding: 1.5rem;
}

.img-card-body .tag {
  display: inline-block;
  background: rgba(13, 148, 136, 0.1);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

/* ===== Two Column Layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col img {
  border-radius: 12px;
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ===== Team Grid ===== */
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--secondary);
  font-weight: 700;
  border: 3px solid rgba(13,148,136,0.2);
}

.team-name {
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

/* ===== Values ===== */
.value-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.value-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(13,148,136,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.25rem;
}

/* ===== Testimonials ===== */
.testimonial {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--secondary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--heading);
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: #6B7280;
}

/* ===== Contact Form ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ===== Contact Info ===== */
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(13,148,136,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ===== Job Listings ===== */
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: all 0.3s;
  margin-bottom: 1rem;
}

.job-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.job-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.job-tag {
  background: var(--surface);
  color: #6B7280;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about {
  max-width: 300px;
}

.footer-about .logo-text {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: block;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 16px;
  padding: 3.5rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ===== Process Steps ===== */
.process-step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ===== Responsive - Tablet (max 968px) ===== */
@media (max-width: 968px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col img { height: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.25rem; }
  .hero h1 { font-size: 2.25rem; }
  .section { padding: 3.5rem 0; }
  .cta-banner { padding: 2.5rem 2rem; }
}

/* ===== Responsive - Mobile (max 768px) ===== */
@media (max-width: 768px) {
  /* Mobile navigation */
  nav { display: none; }
  nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 85vh;
    overflow-y: auto;
  }
  nav.active a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--surface);
  }
  nav.active a:last-of-type {
    border-bottom: none;
  }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  /* Language switcher in mobile menu */
  .lang-switcher {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .lang-btn {
    width: 100%;
    text-align: left;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }
  .lang-dropdown {
    position: static;
    margin-top: 0.35rem;
    box-shadow: none;
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .lang-dropdown a {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }

  /* Logo */
  .logo img, .logo svg { height: 34px; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }
  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .grid-4 { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-content { padding: 3rem 0; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; line-height: 1.7; }
  .page-hero { min-height: auto; }
  .page-hero .hero-content { padding: 2.5rem 0; }
  .page-hero h1 { font-size: 1.6rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }

  /* Sections */
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .two-col { gap: 1.5rem; }
  .two-col img { height: 240px; border-radius: 10px; }

  /* Cards */
  .card { padding: 1.5rem; }
  .card:hover { transform: none; }

  /* Stats */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 2rem 0; }
  .stat-number { font-size: 2rem; }

  /* Job cards */
  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }
  .job-card .btn { width: 100%; text-align: center; }

  /* CTA */
  .cta-banner { padding: 2rem 1.25rem; border-radius: 12px; }
  .cta-banner h2 { font-size: 1.4rem; }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
  }

  /* Buttons */
  .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; width: 100%; text-align: center; }
  .hero .btn { width: auto; }

  /* Contact form */
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  /* Testimonials */
  .testimonial { padding: 1.5rem; }

  /* Team */
  .team-avatar { width: 80px; height: 80px; font-size: 1.5rem; }

  /* Process steps */
  .step-number { width: 40px; height: 40px; font-size: 1rem; }

  /* Value items */
  .value-item { margin-bottom: 1.5rem; }

  /* Contact items */
  .contact-item { margin-bottom: 1.25rem; }
}

/* ===== Responsive - Small phones (max 400px) ===== */
@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .header-inner { padding: 0.75rem 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-content { padding: 2.5rem 0; }
  h2 { font-size: 1.35rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-number { font-size: 1.75rem; }
  .cta-banner { padding: 1.75rem 1rem; }
  .grid-4 { grid-template-columns: 1fr; }
}
