/* ===================================================================
   AMPL Quality Partners — Clean, modern design (SimpleTiger-inspired)
   =================================================================== */

:root {
  --black: #0d0d0d;
  --gray-900: #1a1a1a;
  --gray-700: #404040;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;
  --white: #ffffff;
  --accent: #3d7b3e;
  --accent-light: #e9f2e5;
  --accent-dark: #2d5e2e;
  --orange: #ea580c;
  --orange-light: #fff7ed;
  --red: #dc2626;
  --green: #16a34a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================================
   Shared typography
   =================================================================== */

h1, h2, h3 { color: var(--black); line-height: 1.15; }

h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.75;
}

/* ===================================================================
   Buttons
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(61, 123, 62, 0.25);
}

.btn-full { width: 100%; }

/* ===================================================================
   Navigation
   =================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  height: 54px;
  width: auto;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.logo-name em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--black); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===================================================================
   Hero
   =================================================================== */

.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: var(--gray-900);
}

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.55);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ===================================================================
   Stats
   =================================================================== */

.stats {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ===================================================================
   Services
   =================================================================== */

.services {
  padding: 100px 0;
}

.cards-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 36px 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg { width: 22px; height: 22px; color: var(--accent); }

.card > p {
  color: var(--gray-500);
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.card ul { display: flex; flex-direction: column; gap: 8px; }

.card li {
  font-size: 0.875rem;
  color: var(--gray-700);
  padding-left: 18px;
  position: relative;
}

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ===================================================================
   Process (numbered steps)
   =================================================================== */

.process {
  padding: 100px 0;
  background: var(--gray-50);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.step { position: relative; }

.step-num {
  font-size: 4rem;
  font-weight: 800;
  color: var(--gray-200);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 10px; }

.step p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ===================================================================
   Engagement Models
   =================================================================== */

.models {
  padding: 100px 0;
}

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

.model-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.model-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.model-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-icon svg { width: 24px; height: 24px; color: var(--accent); }

.model-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===================================================================
   CTA Mid
   =================================================================== */

.cta-mid {
  padding: 80px 0;
  text-align: center;
  background: var(--gray-900);
}

.cta-mid h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-mid p {
  color: rgba(255,255,255,0.5);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-or {
  display: block;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

/* ===================================================================
   Comparison Table
   =================================================================== */

.compare {
  padding: 100px 0;
  background: var(--gray-50);
}

.table-wrap {
  margin-top: 48px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--gray-700);
}

.compare-table thead th {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-200);
}

.col-ampl {
  background: var(--accent-light) !important;
}

.compare-table thead .col-ampl {
  color: var(--accent-dark) !important;
}

.check {
  color: var(--green);
  font-weight: 700;
  font-size: 1.125rem;
}

.cross {
  color: var(--gray-300);
  font-weight: 700;
  font-size: 1.125rem;
}

.partial {
  color: var(--gray-400);
  font-weight: 700;
  font-size: 1.125rem;
}

/* ===================================================================
   Team
   =================================================================== */

.team {
  padding: 100px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.team-card {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.avatar span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.team-card h3 { font-size: 0.9375rem; margin-bottom: 2px; }

.role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.tags span {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 9px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 100px;
}

/* ===================================================================
   Who We Serve
   =================================================================== */

.serve {
  padding: 100px 0;
  background: var(--gray-50);
}

.serve-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 36px 28px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.serve-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.serve-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.serve-card > p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 18px;
  line-height: 1.7;
}

.serve-card ul { display: flex; flex-direction: column; gap: 6px; }

.serve-card li {
  font-size: 0.875rem;
  color: var(--gray-700);
  padding-left: 18px;
  position: relative;
}

.serve-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ===================================================================
   Contact
   =================================================================== */

.contact {
  padding: 100px 0;
}

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

.contact-info h2 { margin-bottom: 12px; }

.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 28px;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-links a,
.contact-loc {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.contact-links a:hover { color: var(--accent); }

.contact-links svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.industries-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.ind-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.ind-tags span {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 5px 14px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 100px;
}

.form {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 36px;
  background: var(--gray-50);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 123, 62, 0.12);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--gray-300); }

.field textarea { resize: vertical; min-height: 90px; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ===================================================================
   Footer
   =================================================================== */

.footer {
  background: var(--gray-900);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer .logo img {
  height: 58px;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 8px;
}

.footer-brand p {
  color: rgba(255,255,255,0.35);
  font-size: 0.875rem;
  margin-top: 10px;
}

.footer-cols { display: flex; gap: 56px; }

.footer-col { display: flex; flex-direction: column; gap: 8px; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

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

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
}

/* ===================================================================
   Scroll animations
   =================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   Responsive
   =================================================================== */

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 80px 28px 28px;
    gap: 20px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
    z-index: 200;
  }

  .nav-toggle { display: flex; }

  .hero { padding: 130px 0 70px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .cards-4 { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .team-grid { grid-template-columns: 1fr 1fr; }

  .compare-table th:nth-child(n+3),
  .compare-table td:nth-child(n+3) { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; gap: 40px; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stat strong { font-size: 2rem; }
}
