/* ── GMP Companies Directory & Company Pages ── */

/* ══════════════════════════════════════════
   SHARED — All company pages
   ══════════════════════════════════════════ */

/* Astra header hiding + nav fixes handled globally in navigation.css via body.gmp-redesign */

/* General fonts */
body.gmp-companies-directory,
body.gmp-companies-listing,
body.gmp-companies-create,
body.gmp-companies-submitted,
body.gmp-company-single {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  color: #0d1f3c;
}

/* Headings — DM Serif Display */
body.gmp-companies-directory h1,
body.gmp-companies-directory h2,
body.gmp-companies-directory h3,
body.gmp-companies-listing h1,
body.gmp-companies-listing h2,
body.gmp-companies-listing h3,
body.gmp-companies-create h1,
body.gmp-companies-create h2,
body.gmp-companies-create h3,
body.gmp-companies-submitted h1,
body.gmp-companies-submitted h2,
body.gmp-companies-submitted h3,
body.gmp-company-single h1,
body.gmp-company-single h2,
body.gmp-company-single h3 {
  font-family: 'DM Serif Display', Georgia, serif !important;
}

/* Paragraphs and body text */
body.gmp-companies-directory p,
body.gmp-companies-directory span,
body.gmp-companies-directory li,
body.gmp-companies-listing p,
body.gmp-companies-listing span,
body.gmp-companies-listing li,
body.gmp-companies-create p,
body.gmp-companies-create span,
body.gmp-companies-submitted p,
body.gmp-companies-submitted span,
body.gmp-company-single p,
body.gmp-company-single span,
body.gmp-company-single li {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Elementor buttons — GMP blue */
body.gmp-companies-directory .elementor-button,
body.gmp-companies-listing .elementor-button,
body.gmp-companies-create .elementor-button,
body.gmp-companies-submitted .elementor-button,
body.gmp-company-single .elementor-button {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  background-color: #1460dc !important;
  transition: opacity .2s !important;
}
body.gmp-companies-directory .elementor-button:hover,
body.gmp-companies-listing .elementor-button:hover,
body.gmp-companies-create .elementor-button:hover,
body.gmp-companies-submitted .elementor-button:hover,
body.gmp-company-single .elementor-button:hover {
  opacity: 0.88 !important;
}

/* Hero section — remove rounded corners, white button */
body.gmp-companies-directory .elementor-section:first-child,
body.gmp-companies-directory .elementor-section:first-child > .elementor-container,
body.gmp-companies-directory .elementor-section:first-child .elementor-column-wrap,
body.gmp-companies-directory .elementor-section:first-child .elementor-widget-wrap {
  border-radius: 0 !important;
}
body.gmp-companies-directory .elementor-section:first-child .elementor-button {
  background-color: #fff !important;
  color: #0d1f3c !important;
}
body.gmp-companies-directory .elementor-section:first-child .elementor-button:hover {
  background-color: rgba(255,255,255,.9) !important;
  opacity: 1 !important;
}
/* Hero subtitle text — lighter on dark bg */
body.gmp-companies-directory .elementor-section:first-child .elementor-widget-text-editor p,
body.gmp-companies-directory .elementor-section:first-child .elementor-widget-text-editor span {
  color: rgba(255,255,255,.8) !important;
}

/* ══════════════════════════════════════════
   DIRECTORY PAGE (/maritime-companies-directory/)
   ══════════════════════════════════════════ */

/* Plugin-rendered browse page (kept for future dynamic grid) */
.gmp-companies-browse {
  padding: 40px 0 80px;
}

/* Hero */
.gmp-companies__hero {
  text-align: center;
  padding: 40px 0 48px;
}
.gmp-companies__hero .gmp-section-title {
  font-size: 36px;
  margin-bottom: 12px;
}
.gmp-companies__subtitle {
  font-size: 15px;
  color: var(--gmp-muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Toolbar */
.gmp-companies__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gmp-border);
}
.gmp-companies__search-form {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 400px;
}
.gmp-companies__search-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
}
.gmp-companies__search-btn {
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}
.gmp-companies__sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gmp-companies__sort-label {
  font-size: 13px;
  color: var(--gmp-muted);
  white-space: nowrap;
}
.gmp-companies__sort-select {
  width: auto;
  min-width: 160px;
  padding: 8px 12px;
  font-size: 13px;
}
.gmp-companies__count {
  font-size: 14px;
  color: var(--gmp-muted);
  margin-bottom: 24px;
}

/* Grid */
.gmp-companies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Company card */
.gmp-company-card {
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.gmp-company-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gmp-shadow-elevated);
}

.gmp-company-card__img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--gmp-bg-off);
}
.gmp-company-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gmp-company-card:hover .gmp-company-card__img {
  transform: scale(1.03);
}
.gmp-company-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gmp-bg-off);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gmp-company-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gmp-company-card__name {
  font-family: var(--gmp-font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--gmp-ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.gmp-company-card__desc {
  font-size: 13px;
  color: var(--gmp-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gmp-company-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.gmp-company-card__country,
.gmp-company-card__category {
  font-size: 12px;
  color: var(--gmp-muted);
  background: var(--gmp-bg-off);
  padding: 3px 8px;
  border-radius: var(--gmp-radius-chip);
}

.gmp-company-card__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--gmp-blue);
  transition: color .15s;
}
.gmp-company-card:hover .gmp-company-card__link {
  color: var(--gmp-ink);
}

/* Empty state */
.gmp-companies__empty {
  text-align: center;
  padding: 64px 20px;
}
.gmp-companies__empty h3 {
  font-family: var(--gmp-font-heading);
  font-size: 24px;
  color: var(--gmp-ink);
  margin-bottom: 8px;
}
.gmp-companies__empty p {
  font-size: 14px;
  color: var(--gmp-muted);
}

/* Pagination */
.gmp-companies__pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.gmp-companies__pagination ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.gmp-companies__pagination li {
  display: inline;
}
.gmp-companies__pagination a,
.gmp-companies__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--gmp-radius-btn);
  text-decoration: none;
  transition: all .15s;
}
.gmp-companies__pagination a {
  color: var(--gmp-ink2);
  border: 1px solid var(--gmp-border2);
}
.gmp-companies__pagination a:hover {
  border-color: var(--gmp-blue);
  color: var(--gmp-blue);
}
.gmp-companies__pagination .current {
  background: var(--gmp-blue);
  color: #fff;
  border: 1px solid var(--gmp-blue);
}

/* ══════════════════════════════════════════
   LISTING PAGE (/list-your-maritime-company/)
   ══════════════════════════════════════════ */

/* Pricing card — style checkmarks */
body.gmp-companies-listing .elementor-icon-list-icon svg {
  fill: #1460dc !important;
  color: #1460dc !important;
}
body.gmp-companies-listing .elementor-icon-list-text {
  font-size: 14px !important;
}

/* ══════════════════════════════════════════
   CREATE PROFILE (/create-company-profile/)
   ══════════════════════════════════════════ */

/* Form inputs */
body.gmp-companies-create input[type="text"],
body.gmp-companies-create input[type="email"],
body.gmp-companies-create input[type="tel"],
body.gmp-companies-create input[type="url"],
body.gmp-companies-create textarea,
body.gmp-companies-create select,
body.gmp-companies-create .elementor-field-textual,
body.gmp-companies-create .elementor-field {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  border: 1px solid rgba(13,31,60,.14) !important;
  border-radius: 9px !important;
  padding: 12px 14px !important;
  color: #0d1f3c !important;
  background: #fff !important;
  transition: border-color .15s !important;
}
body.gmp-companies-create input:focus,
body.gmp-companies-create textarea:focus,
body.gmp-companies-create select:focus,
body.gmp-companies-create .elementor-field:focus {
  border-color: #1460dc !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(20,96,220,.1) !important;
}

/* Form labels */
body.gmp-companies-create label,
body.gmp-companies-create .elementor-field-label {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1a3050 !important;
}

/* Submit button */
body.gmp-companies-create input[type="submit"],
body.gmp-companies-create button[type="submit"],
body.gmp-companies-create .elementor-button[type="submit"],
body.gmp-companies-create .e-form__buttons__wrapper button {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: #1460dc !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 28px !important;
  cursor: pointer !important;
  transition: opacity .2s !important;
}
body.gmp-companies-create input[type="submit"]:hover,
body.gmp-companies-create button[type="submit"]:hover,
body.gmp-companies-create .elementor-button[type="submit"]:hover,
body.gmp-companies-create .e-form__buttons__wrapper button:hover {
  opacity: 0.88 !important;
}

/* ══════════════════════════════════════════
   SUBMITTED PAGE (/company-profile-submitted/)
   ══════════════════════════════════════════ */

body.gmp-companies-submitted .entry-content,
body.gmp-companies-submitted .page-content {
  text-align: center;
  padding: 80px 20px;
}

/* ══════════════════════════════════════════
   SINGLE COMPANY (/companies/company-slug/)
   ══════════════════════════════════════════ */

/* "Get in Touch" and other CTA buttons on single company */
body.gmp-company-single .elementor-button.elementor-size-sm,
body.gmp-company-single .elementor-button.elementor-size-md {
  font-size: 14px !important;
  padding: 12px 24px !important;
}

/* Service/capability cards */
body.gmp-company-single .elementor-icon-box-title {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
body.gmp-company-single .elementor-icon-box-description {
  font-size: 13px !important;
  color: #5a7090 !important;
  line-height: 1.6 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .gmp-companies__grid {
    grid-template-columns: 1fr;
  }
  .gmp-companies__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .gmp-companies__search-form {
    max-width: 100%;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gmp-companies__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
