/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; }
ul { list-style: none; }

/* --- Theme --- */
:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-fg: #ffffff;
  --accent: #0891b2;
  --accent-soft: rgba(8, 145, 178, 0.1);
  --primary-soft: rgba(37, 99, 235, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  color-scheme: light;
}

/* --- Layout --- */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-muted); }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(248, 250, 252, .85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.125rem; }
.brand img { width: 40px; height: 40px; }
.brand-consulting { color: var(--primary); }

.nav { display: none; align-items: center; gap: 2rem; }
.nav a { font-size: .875rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .625rem; font-size: .8125rem; font-weight: 500;
  color: var(--muted); border: 1px solid var(--border); border-radius: 6px;
  transition: color .15s, border-color .15s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--muted); }
.lang-toggle svg { width: 14px; height: 14px; }

.mobile-controls { display: flex; align-items: center; gap: .5rem; }
.mobile-menu-btn { padding: .5rem; color: var(--text); }
.mobile-menu-btn svg { width: 24px; height: 24px; }

.mobile-nav { display: none; padding: 1rem 0; }
.mobile-nav a { display: block; padding: .5rem 0; font-size: .875rem; font-weight: 500; color: var(--muted); }
.mobile-nav a:hover { color: var(--text); }
.mobile-nav.open { display: block; }

@media (min-width: 768px) {
  .nav { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .mobile-controls .lang-toggle { display: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; font-size: 1rem; font-weight: 500;
  border-radius: var(--radius-sm); transition: background .15s, color .15s, border-color .15s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-lg { padding: .875rem 1.75rem; font-size: 1.0625rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-muted); border-color: var(--muted); }
.btn-secondary { background: var(--bg-alt); color: var(--text); }
.btn-secondary:hover { background: var(--bg-muted); }
.btn-outline-inv { background: transparent; color: var(--primary-fg); border-color: rgba(255,255,255,.4); }
.btn-outline-inv:hover { background: rgba(255,255,255,.1); }

/* --- Hero --- */
.hero { padding: calc(var(--header-h) + 4rem) 0 5rem; }
.hero-inner { max-width: 896px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.1;
  margin-bottom: 1.5rem; letter-spacing: -.02em; text-wrap: balance;
}
.hero h1 .highlight { color: var(--primary); }
.hero-desc { font-size: 1.125rem; color: var(--muted); max-width: 640px; margin: 0 auto 2rem; line-height: 1.65; text-wrap: pretty; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } .hero-desc { font-size: 1.25rem; } }

.hero-features { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 768px; margin: 0 auto; }
@media (min-width: 640px) { .hero-features { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 1.5rem; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.accent { background: var(--accent-soft); color: var(--accent); }
.feature-card h3 { font-size: 1rem; font-weight: 600; }
.feature-card p { font-size: .875rem; color: var(--muted); }

/* --- Section headers --- */
.section-header { max-width: 768px; margin: 0 auto 4rem; text-align: center; }
.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700;
  margin-bottom: 1rem; letter-spacing: -.02em; text-wrap: balance;
}
.section-header p { font-size: 1.125rem; color: var(--muted); line-height: 1.65; text-wrap: pretty; }

/* --- Cards grid --- */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .cards-grid.md-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid.lg-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: rgba(37, 99, 235, .3); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.card-icon.accent { background: var(--accent-soft); color: var(--accent); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.card p { color: var(--muted); line-height: 1.65; }

/* Card with side-icon (about, group, contact) */
.card-side { display: flex; align-items: flex-start; gap: 1rem; }
.card-side .card-icon { flex-shrink: 0; margin-bottom: 0; }
.card-side-body { flex: 1; }
.card-side-body h3 { margin-bottom: .5rem; }

/* --- Expertise --- */
.expertise-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 1152px; margin: 0 auto; }
@media (min-width: 1024px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }
.expertise-col h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -.02em; }
.expertise-col p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.65; }
.tech-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge {
  display: inline-block; padding: .375rem .75rem; font-size: .8125rem;
  background: var(--bg-muted); color: var(--text); border-radius: 6px; font-weight: 500;
}
.industry-list { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px) { .industry-list { grid-template-columns: repeat(2, 1fr); } }
.industry-list li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.industry-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* --- About footer --- */
.about-footer {
  margin-top: 3rem; padding: 2rem; text-align: center;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
}
.about-footer p { max-width: 768px; margin: 0 auto; font-size: 1.0625rem; color: var(--muted); line-height: 1.65; }

/* --- Group cards --- */
.group-card .company-logo {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.group-card .company-logo img { width: 100%; height: 100%; object-fit: contain; }
.group-card .company-domain {
  display: inline-block; font-size: .8125rem; color: var(--accent);
  margin: .25rem 0 .5rem;
}
.group-card .company-domain:hover { text-decoration: underline; }

/* --- CTA banner --- */
.cta-banner { background: var(--primary); color: var(--primary-fg); text-align: center; }
.cta-banner-inner { max-width: 768px; margin: 0 auto; }
.cta-banner h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; letter-spacing: -.02em; text-wrap: balance; }
.cta-banner p { font-size: 1.125rem; margin-bottom: 2rem; opacity: .9; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }

/* --- Contact --- */
.contact-cta { text-align: center; margin-top: 1rem; }

/* --- Footer --- */
.footer { background: var(--bg-muted); border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); margin-bottom: 1rem; line-height: 1.65; }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: var(--muted); }
.footer-contact div { display: flex; align-items: center; gap: .5rem; }
.footer-contact svg { width: 16px; height: 16px; }
.footer-contact a:hover { color: var(--text); }
.footer h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: var(--muted); }
.footer ul a:hover { color: var(--text); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; font-size: .875rem; color: var(--muted); }
.footer-bottom p:not(:first-child) { margin-top: .5rem; }

/* --- Focus visible for accessibility --- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
