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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  color: #272727;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ── Layout helpers ───────────────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-inner.narrow {
  max-width: 740px;
}

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { height: 36px; width: auto; }
.logo-link { display: flex; align-items: center; }

.primary-nav {
  display: flex;
  gap: 36px;
}

.primary-nav a {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: #272727;
  transition: opacity 0.2s;
}

.primary-nav a:hover { opacity: 0.55; }

.primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: #272727;
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 2px solid #272727;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: #272727;
  color: #fff;
}

.btn-primary:hover {
  background: #444;
  border-color: #444;
}

.btn-outline {
  background: transparent;
  color: #272727;
}

.btn-outline:hover {
  background: #272727;
  color: #fff;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #666;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: auto auto;
  gap: 48px 64px;
  justify-content: center;
}

.hero-action-item {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  justify-items: center;
}

.hero-action-item img {
  width: 300px;
  height: auto;
  object-fit: contain;
  align-self: center;
}

.hero-action-item .btn {
  white-space: nowrap;
}

/* ── Page hero (inner pages) ──────────────────────────────────── */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid #f0f0f0;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin-top: 16px;
  font-size: 1.125rem;
  color: #666;
}

/* ── Section title ────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  text-align: center;
}

/* ── Partners ─────────────────────────────────────────────────── */
.partners {
  padding: 80px 0;
  background: #fafafa;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 32px 48px;
  align-items: center;
  justify-items: center;
}

.logo-grid img {
  max-height: 160px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}

.logo-grid img:hover {
  filter: none;
  opacity: 1;
}

/* ── Values ───────────────────────────────────────────────────── */
.values {
  padding: 80px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
}

.value-card img {
  width: 160px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.value-card p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

/* ── CTA section ──────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background: #fafafa;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

/* ── Team ─────────────────────────────────────────────────────── */
.team-section { padding: 60px 0 80px; }

.team-member {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid #f0f0f0;
}

.team-member:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.team-member-photo img {
  width: 100%;
}

.team-member-bio h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.team-member-bio p {
  color: #444;
  margin-bottom: 16px;
  line-height: 1.7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #f0f0f0;
}

.skill-category h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 10px;
}

.skill-category p {
  font-size: 0.875rem;
  color: #272727;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Services ─────────────────────────────────────────────────── */
.services-section { padding: 60px 0 80px; }

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

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: auto;
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.55;
}

/* ── Contact ──────────────────────────────────────────────────── */
.contact-section { padding: 60px 0 80px; }

.contact-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: #272727;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #272727; }

.form-group textarea { resize: vertical; }

.contact-form .btn { align-self: flex-start; }

.contact-alt {
  margin-top: 28px;
  font-size: 0.9rem;
  color: #666;
}

.contact-alt a {
  color: #272727;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Legal pages ──────────────────────────────────────────────── */
.legal-section { padding: 60px 0 80px; }

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.legal-section p,
.legal-section li {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: disc;
  padding-left: 20px;
}

.legal-section a {
  color: #272727;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 32px;
  justify-content: center;
}

.footer-inner a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  transition: color 0.2s;
}

.footer-inner a:hover { color: #272727; }

/* ── Mobile nav overlay ───────────────────────────────────────── */
.mobile-nav-open .primary-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 70px 0 0 0;
  background: #fff;
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 99;
}

.mobile-nav-open .primary-nav a { font-size: 1.5rem; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .section-inner { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
  .footer-inner { padding: 0 24px; }

  .primary-nav { display: none; }
  .mobile-menu-toggle { display: flex; }

  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .values-grid .value-card:last-child { grid-column: 1 / -1; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .team-member {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .team-member-photo img { max-width: 220px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 80px 24px 72px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-action-item img { width: 100%; max-width: 280px; }
  .partners, .values, .cta-section { padding: 60px 0; }
  .logo-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 24px 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid .value-card:last-child { grid-column: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card img { width: 100%; height: auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .team-member-photo img { max-width: none; width: 100%; }
}
