/* ================================================================
   ZNA Law Company – Homepage
   Primary: #07568e  |  Accent: #fdeb01  |  Dark text: #454545
================================================================ */

/* ── HEADER CTA ──────────────────────────────────── */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 0 42px;
  background: #fdeb01;
  color: #07568e;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 900;
  border: 2px solid #07568e;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.header-cta:hover {
  background: #07568e;
  color: #fff;
}

/* ── COMPETENCE CARD OVERRIDE ────────────────────── */
.competence .comp-card {
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.competence .comp-card img {
  height: 305px;
  width: 100%;
  object-fit: cover;
  display: block;
}
.competence .comp-caption {
  position: static;
  background: #07568e;
  padding: 25px 24px 24px 40px;
  border-top: none;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.competence .comp-caption h4 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.competence .comp-caption p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fdeb01;
  line-height: 1.6;
}

/* ── TESTIMONIAL IMAGE FALLBACK ──────────────────── */
.news-main-img img {
  background: #c8c8c8;
}

/* ── PARTNERS SECTION TITLE ──────────────────────── */
.partners .section-title-left h2 {
  text-transform: none;
}

/* ── TEAM CONTAINER OVERRIDE ─────────────────────── */
.team .container { max-width: 1640px; }

/* ── RESPONSIVE ─────────────────────────────────── */

/* 1540–1640px: still side-by-side but scale heading down so it fits in ~729px right col */
@media (max-width: 1640px) {
  .team-header h2 { font-size: 44px; }
}

/* ≤1540px: stack the layout — heading goes full-width and fits at any font size */
@media (max-width: 1540px) {
  .team-layout { flex-direction: column; gap: 40px; }
  .team-card--featured { flex: none; max-width: 700px; width: 100%; }
  .team-header h2 { font-size: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px) {
  .header-cta {
    padding: 0 28px;
    font-size: 16px;
  }
  .team-header h2 { font-size: 32px; }
  .team-info h3 { font-size: 22px; }
  .team-info p { font-size: 22px; }
  .team-card--featured .team-info h3 { font-size: 28px; }
}

@media (max-width: 900px) {
  .competence .comp-card img {
    height: 240px;
  }
  .team-header h2 { font-size: 26px; }
  .team-info h3 { font-size: 18px; }
  .team-info p { font-size: 18px; }
  .team-card--featured .team-info h3 { font-size: 22px; }
  .more-link { font-size: 13px; }
}

@media (max-width: 700px) {
  .header-cta {
    display: none;
  }
  .team-header h2 { font-size: 22px; white-space: nowrap; }
  .team-grid { gap: 30px; }
  .team-img img { height: 200px; }
  .team-card--featured .team-img img { height: 350px; }
  .team-info { padding: 10px 0; }
  .team-card--featured { max-width: 100%; }
  .team-sep { width: 100%; }
}

@media (max-width: 480px) {
  .team-header h2 { font-size: 16px; white-space: nowrap; }
  .team-header .tag-dark { font-size: 18px; }
  .team-grid { grid-template-columns: 1fr; gap: 24px; }
  .team-img img { height: 220px; }
  .team-card--featured .team-img img { height: 300px; }
  .team-info h3 { font-size: 16px; }
  .team-info p { font-size: 15px; }
  .team-card--featured .team-info h3 { font-size: 18px; }
  .more-link { font-size: 12px; margin-top: 8px; }
  .team-sep { margin-top: 8px; }
  .team-cta { margin-top: 28px; }
  .btn-yellow { width: 100%; max-width: 380px; font-size: 15px; height: 48px; }
}
