/* Homepage sections — about, VMV, partners/reviews, subscribe, footer categories */

.apm-home-about {
  padding-block: clamp(48px, 6vw, 80px);
}

.apm-home-about__inner {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.apm-home-about__title {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--apm-text, #0f172a);
  letter-spacing: -0.02em;
}

.apm-home-about__content {
  text-align: justify;
}

.apm-home-about__content p {
  margin: 0 0 1.1em;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--apm-text-muted, #475569);
}

.apm-home-about__content p:last-child {
  margin-bottom: 0;
}

/* Company profile PDF */
.apm-home-profile {
  padding-block: clamp(48px, 6vw, 80px);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.apm-home-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.apm-home-profile__eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--apm-primary, #1e4ed8);
}

.apm-home-profile__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--apm-text, #0f172a);
  letter-spacing: -0.02em;
}

.apm-home-profile__subtitle {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--apm-text-muted, #475569);
}

.apm-home-profile__doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.apm-home-profile__doc-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--apm-primary-light, #eff4ff);
  color: var(--apm-primary, #1e4ed8);
  flex-shrink: 0;
}

.apm-home-profile__doc-name {
  display: block;
  font-size: 0.98rem;
  color: var(--apm-text, #0f172a);
}

.apm-home-profile__doc-type {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.apm-home-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apm-home-profile__actions .apm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.apm-home-profile__preview {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 18px;
  background: #fff;
}

.apm-home-profile__preview-frame {
  height: 100%;
  min-height: 360px;
}

.apm-home-profile__preview-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  background: #f8fafc;
}

.apm-home-profile__preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.45) 100%);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.apm-home-profile__preview-overlay span {
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-weight: 600;
}

.apm-home-profile__preview-overlay:hover {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.58) 100%);
}

.apm-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.apm-profile-modal[hidden] {
  display: none;
}

.apm-profile-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.apm-profile-modal__dialog {
  position: relative;
  width: min(1100px, 100%);
  height: min(88vh, 900px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
}

.apm-profile-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.apm-profile-modal__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.apm-profile-modal__head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apm-profile-modal__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.apm-profile-modal__body {
  flex: 1;
  min-height: 0;
}

.apm-profile-modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.apm-home-services__thumb {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16 / 10;
}

.apm-home-services__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apm-home-vmv__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "vision mission"
    "values values";
  gap: 24px;
  align-items: start;
}

.apm-home-vmv__card--vision {
  grid-area: vision;
}

.apm-home-vmv__card--mission {
  grid-area: mission;
}

.apm-home-vmv__card--values {
  grid-area: values;
}

.apm-home-vmv__card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.apm-section--alt .apm-home-vmv__card {
  background: #fff;
}

.apm-home-vmv__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--apm-primary, #2563eb);
  margin-bottom: 16px;
}

.apm-home-vmv__card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.apm-home-vmv__card > p {
  margin: 0;
  line-height: 1.7;
  color: var(--apm-text-muted, #475569);
}

.apm-home-vmv__values {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.apm-home-vmv__values li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--apm-text, #0f172a);
}

.apm-home-vmv__values li span {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--apm-text-muted, #475569);
}

.apm-home-partners-reviews .apm-home-partners {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.apm-home-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.apm-home-reviews__item .apm-testimonial--featured {
  height: 100%;
}

.apm-home-subscribe {
  background: linear-gradient(135deg, #0f2744 0%, #1e3a5f 55%, #2563eb 100%);
  color: #fff;
  padding-block: clamp(48px, 6vw, 72px);
}

.apm-home-subscribe__title {
  margin: 0 0 32px;
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
}

.apm-home-subscribe__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.apm-home-subscribe__card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.apm-home-subscribe__card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #fff;
}

.apm-home-subscribe__card > p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.apm-home-subscribe__form {
  display: grid;
  gap: 10px;
}

.apm-home-subscribe__form input[type="text"],
.apm-home-subscribe__form input[type="email"],
.apm-home-subscribe__form input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}

.apm-home-subscribe__form .apm-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1024px) {
  .apm-home-profile__grid,
  .apm-home-reviews__grid,
  .apm-home-subscribe__grid {
    grid-template-columns: 1fr 1fr;
  }

  .apm-home-profile__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .apm-home-vmv__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "vision"
      "mission"
      "values";
  }

  .apm-home-reviews__grid,
  .apm-home-subscribe__grid {
    grid-template-columns: 1fr;
  }

  .apm-home-about__content {
    text-align: left;
  }
}

/* Hero search — final overrides (after combobox base styles) */
.apm-home .apm-home-hero__search .apm-home-hero__input,
.apm-home .apm-home-hero__search .apm-location-combobox__input {
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  font-family: var(--apm-font, 'Inter', system-ui, sans-serif) !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
}

.apm-home .apm-home-hero__search .apm-home-hero__input::placeholder,
.apm-home .apm-home-hero__search .apm-location-combobox__input::placeholder {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  color: #94a3b8 !important;
}
