*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f5f5f5;
  --surface: #fff;
  --border: #ddd;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --tap-min: 44px;
  --brand: #1e3a5f;
  --brand-light: #2d5a8a;
  --brand-dark: #152a45;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--surface);
  color: var(--text);
}

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

#company-profile {
  background: var(--surface);
  color: var(--text);
}

.company-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.company-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}

.company-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand);
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 6px;
}

.logo-text {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  max-width: 180px;
}

.site-search {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #f9fafb;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.site-search:focus-within {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
  background: var(--surface);
}

.site-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 0.95rem;
  outline: none;
}

.site-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.site-search button:hover:not(:disabled) {
  background: #eef2f7;
  color: var(--brand);
}

.session-reset-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 42, 69, 0.45);
}

.session-reset-modal[hidden] {
  display: none;
}

.session-reset-dialog {
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 24px;
}

.session-reset-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--brand);
}

.session-reset-dialog p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.session-reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.search-feedback {
  margin: 0;
  padding: 6px 20px 10px;
  font-size: 0.85rem;
  color: #b45309;
  text-align: center;
  max-width: 1200px;
  margin-inline: auto;
}

.company-nav {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.company-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.company-nav a:hover {
  color: var(--brand);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  min-width: 40px;
  min-height: 40px;
  padding: 8px;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 20px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a:last-child { border-bottom: none; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-light);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--brand-dark);
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-light);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: #eef2f7;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin: 0;
}

.hero-stats dt {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand);
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.section {
  padding: 64px 20px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2,
.about-text h2,
.contact-info h2,
.clients h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  color: var(--brand-dark);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about {
  background: #f8fafc;
}

.about .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  line-height: 1.7;
  color: #444;
  margin: 0 0 16px;
}

.about-highlights {
  margin: 20px 0 0;
  padding-left: 1.2rem;
  line-height: 1.7;
  color: #444;
}

.about-highlights li { margin-bottom: 8px; }

.about-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--brand-dark);
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.clients {
  background: var(--brand);
  color: #fff;
  text-align: center;
}

.clients h2 {
  color: #fff;
  margin-bottom: 28px;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.clients-grid span {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.team {
  background: #f8fafc;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card h3 {
  margin: 16px 16px 4px;
  font-size: 1rem;
  color: var(--brand-dark);
}

.team-role {
  margin: 0 16px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-light);
}

.team-bio {
  margin: 0 16px 20px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info p {
  line-height: 1.65;
  color: var(--muted);
}

.contact-info address {
  font-style: normal;
  margin-top: 24px;
  line-height: 1.7;
}

.contact-info address p { margin: 0 0 16px; color: var(--text); }

.contact-info a {
  color: var(--brand);
  text-decoration: none;
}

.contact-info a:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #eee;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.company-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-brand .logo-mark {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover { color: #fff; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-image { order: -1; }
  .hero-stats { gap: 20px; }
  .about .section-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .company-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .logo-text { display: none; }
  .site-search { max-width: none; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
