/*
Theme Name: Astra Child
Theme URI: https://Kerygo.com
Description: Child theme for Astra
Author: Your Name
Template: astra
Version: 1.0
*/

/* =====================================================
   single-company.css
   Updated: icons in buttons & badges, improved button/badge colors
   Mobile-first, accessible, no inline styles
===================================================== */

*, *::before, *::after { box-sizing: border-box; }

.company-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}

.company-page a { color: #1d4ed8; text-decoration: none; }
.company-page a:hover, .company-page a:focus-visible { text-decoration: underline; }

.company-page :focus-visible {
  outline: 3px solid rgba(37,99,235,0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

/* HERO */
.company-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

@media (min-width: 768px) {
  .company-hero { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

.company-hero-left { display: flex; gap: 16px; align-items: flex-start; }

.company-logo { flex-shrink: 0; }

.company-logo__img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: block;
}

.logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}

.company-meta { display: flex; flex-direction: column; gap: 6px; }

.company-title { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0; color: #0f172a; }
.company-location { font-size: 14px; color: #4b5563; margin: 0; }
.company-location a { color: #374151; font-weight: 600; }
.company-short { margin-top: 6px; font-size: 15px; line-height: 1.6; color: #374151; margin-bottom: 0; }

/* HERO RIGHT */
.company-hero-right { min-width: 240px; }

.company-actions { display: flex; flex-direction: row; gap: 8px; justify-content: flex-start; }
@media (max-width: 767px) { .company-actions { flex-direction: column; } }

/* Buttons (refined) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  transition: transform 0.07s ease, box-shadow 0.08s ease;
}

/* Icon size inside buttons */
.btn__icon svg { display: block; width: 18px; height: 18px; }

/* WhatsApp button (darker richer green, white text) */
.btn--whatsapp {
  background: linear-gradient(180deg,#22c55e,#16a34a);
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 6px rgba(16,24,40,0.04);
}
.btn--whatsapp:hover { transform: translateY(-1px); }

/* Email button (brand blue) */
.btn--email {
  background: linear-gradient(180deg,#3b82f6,#2563eb);
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 6px rgba(16,24,40,0.04);
}
.btn--email:hover { transform: translateY(-1px); }

/* Website button (professional dark) */
.btn--website {
  background: linear-gradient(180deg,#0f172a,#030712);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.02);
  box-shadow: 0 2px 8px rgba(2,6,23,0.06);
}
.btn--website:hover { transform: translateY(-1px); }

/* Badges layout */
.company-badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Badge styling refined */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,0.03);
}

/* icons inside badges */
.badge__icon svg { width: 14px; height: 14px; display: block; }

/* Colors */
.badge--verified { background: #ecfdf5; color: #065f46; border-color: #c7f9da; }
.badge--export-ready { background: #eff6ff; color: #1e40af; border-color: #d6eaff; }
.badge--sample-available { background: #fffbeb; color: #92400e; border-color: #ffedd5; }

/* GRID */
.company-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
@media (min-width: 768px) { .company-grid { grid-template-columns: repeat(3, 1fr); } }

.card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; transition: box-shadow 0.12s ease; }
@media (min-width: 768px) { .card { box-shadow: 0 8px 20px rgba(2,6,23,0.04); } }

.card-title { font-size: 17px; font-weight: 700; margin: 0 0 12px 0; color: #0f172a; }

.overview-list { list-style: none; padding: 0; margin: 0; }
.overview-list li { font-size: 14px; line-height: 1.6; margin-bottom: 8px; color: #374151; }
.overview-list strong { font-weight: 700; color: #111827; }

/* Term lists — chips */
.term-list { list-style: none; padding: 0; margin: 0; display:flex; gap:8px; flex-wrap:wrap; }
.term-list li { margin: 0; }

.term-list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.12s ease, transform 0.06s ease;
  text-decoration: none;
  border: 1px solid rgba(15,23,42,0.03);
}
.term-list a:hover, .term-list a:focus-visible { background: #e5e7eb; transform: translateY(-1px); }

/* No-data */
.no-data { font-size: 14px; color: #6b7280; }

/* ABOUT */
.company-about { margin-top: 36px; }
.about-title { font-size: 22px; font-weight: 700; margin: 0 0 14px 0; color: #0f172a; }

/* Max width for readability */
.company-description {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  max-width: 75ch;
}
.company-description p { margin-bottom: 1em; }
.company-description h3, .company-description h4 { margin-top: 1.4em; margin-bottom: 0.6em; font-weight: 700; }

/* Accessibility helper */
.screen-reader-text { position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap; }
/* =====================================================
   single-company.css
   Updated: icons in buttons & badges, improved button/badge colors
   Mobile-first, accessible, no inline styles
===================================================== */

*, *::before, *::after { box-sizing: border-box; }

.company-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}

.company-page a { color: #1d4ed8; text-decoration: none; }
.company-page a:hover, .company-page a:focus-visible { text-decoration: underline; }

.company-page :focus-visible {
  outline: 3px solid rgba(37,99,235,0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

/* HERO */
.company-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

@media (min-width: 768px) {
  .company-hero { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

.company-hero-left { display: flex; gap: 16px; align-items: flex-start; }

.company-logo { flex-shrink: 0; }

.company-logo__img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: block;
}

.logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}

.company-meta { display: flex; flex-direction: column; gap: 6px; }

.company-title { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0; color: #0f172a; }
.company-location { font-size: 14px; color: #4b5563; margin: 0; }
.company-location a { color: #374151; font-weight: 600; }
.company-short { margin-top: 6px; font-size: 15px; line-height: 1.6; color: #374151; margin-bottom: 0; }

/* HERO RIGHT */
.company-hero-right { min-width: 240px; }

.company-actions { display: flex; flex-direction: row; gap: 8px; justify-content: flex-start; }
@media (max-width: 767px) { .company-actions { flex-direction: column; } }

/* Buttons (refined) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  transition: transform 0.07s ease, box-shadow 0.08s ease;
}

/* Icon size inside buttons */
.btn__icon svg { display: block; width: 18px; height: 18px; }

/* WhatsApp button (darker richer green, white text) */
.btn--whatsapp {
  background: linear-gradient(180deg,#22c55e,#16a34a);
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 6px rgba(16,24,40,0.04);
}
.btn--whatsapp:hover { transform: translateY(-1px); }

/* Email button (brand blue) */
.btn--email {
  background: linear-gradient(180deg,#3b82f6,#2563eb);
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 6px rgba(16,24,40,0.04);
}
.btn--email:hover { transform: translateY(-1px); }

/* Website button (professional dark) */
.btn--website {
  background: linear-gradient(180deg,#0f172a,#030712);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.02);
  box-shadow: 0 2px 8px rgba(2,6,23,0.06);
}
.btn--website:hover { transform: translateY(-1px); }

/* Badges layout */
.company-badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Badge styling refined */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,0.03);
}

/* icons inside badges */
.badge__icon svg { width: 14px; height: 14px; display: block; }

/* Colors */
.badge--verified { background: #ecfdf5; color: #065f46; border-color: #c7f9da; }
.badge--export-ready { background: #eff6ff; color: #1e40af; border-color: #d6eaff; }
.badge--sample-available { background: #fffbeb; color: #92400e; border-color: #ffedd5; }

/* GRID */
.company-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
@media (min-width: 768px) { .company-grid { grid-template-columns: repeat(3, 1fr); } }

.card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; transition: box-shadow 0.12s ease; }
@media (min-width: 768px) { .card { box-shadow: 0 8px 20px rgba(2,6,23,0.04); } }

.card-title { font-size: 17px; font-weight: 700; margin: 0 0 12px 0; color: #0f172a; }

.overview-list { list-style: none; padding: 0; margin: 0; }
.overview-list li { font-size: 14px; line-height: 1.6; margin-bottom: 8px; color: #374151; }
.overview-list strong { font-weight: 700; color: #111827; }

/* Term lists — chips */
.term-list { list-style: none; padding: 0; margin: 0; display:flex; gap:8px; flex-wrap:wrap; }
.term-list li { margin: 0; }

.term-list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.12s ease, transform 0.06s ease;
  text-decoration: none;
  border: 1px solid rgba(15,23,42,0.03);
}
.term-list a:hover, .term-list a:focus-visible { background: #e5e7eb; transform: translateY(-1px); }

/* No-data */
.no-data { font-size: 14px; color: #6b7280; }

/* ABOUT */
.company-about { margin-top: 36px; }
.about-title { font-size: 22px; font-weight: 700; margin: 0 0 14px 0; color: #0f172a; }

/* Max width for readability */
.company-description {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  max-width: 75ch;
}
.company-description p { margin-bottom: 1em; }
.company-description h3, .company-description h4 { margin-top: 1.4em; margin-bottom: 0.6em; font-weight: 700; }

/* Accessibility helper */
.screen-reader-text { position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap; }
/* ===============================
   LOGO QUALITY (MANDATORY)
================================ */
.company-logo__img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
}

/* ===============================
   BUTTON SYSTEM
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: #16a34a;
  color: #fff;
}
.btn-primary:hover { background: #15803d; }

.btn-secondary {
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}
.btn-secondary:hover { background: #f9fafb; }

/* Icons */
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.icon-sm { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ===============================
   BADGES (TRUST SIGNALS)
================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}

.badge.verified {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.badge.export {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.badge.sample {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
/* =====================================================
   LOGO QUALITY ENFORCEMENT (SAFE ADDITION)
   Does NOT modify layout or existing styles
===================================================== */

/* Force visual consistency for all company logos */
.company-logo__img {
  max-width: 120px;
  max-height: 120px;
  width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}

/* Subtle background to prevent transparent logos from looking broken */
.company-logo {
  background: #ffffff;
}

/* Improve perceived quality for low-res logos */
.company-logo__img[src$=".png"],
.company-logo__img[src$=".jpg"],
.company-logo__img[src$=".jpeg"] {
  filter: contrast(1.02) saturate(1.02);
}

/* Placeholder already correct — reinforce hierarchy */
.logo-placeholder {
  font-size: 12px;
  letter-spacing: 0.02em;
}
.site-header a {
  text-decoration: none;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}