/* ==========================================================================
   components.css — Shared Sections
   Trust bar, FAQ accordion, CTA strip, CTA section, Service areas
   ========================================================================== */

/* --------------------------------------------------------------------------
   Trust Bar
   -------------------------------------------------------------------------- */
.apch-trust-bar {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.apch-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.apch-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.3px;
  position: relative;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.apch-trust-item:hover {
  background-color: var(--cream);
}
.apch-trust-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background: var(--border);
}
.apch-trust-item:last-child::after {
  display: none;
}
.apch-trust-icon {
  width: 36px;
  height: 36px;
  background: var(--sage-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 16px;
  transition: all 0.3s ease;
}
.apch-trust-item:hover .apch-trust-icon {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(107, 143, 113, 0.15);
}

@media (max-width: 900px) {
  .apch-trust-inner {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .apch-trust-item {
    padding: 16px 20px;
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .apch-trust-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .apch-trust-item {
    padding: 14px 16px;
    font-size: 12px;
    white-space: normal;
    border-bottom: 1px solid var(--border);
  }
  .apch-trust-item::after {
    display: none;
  }
  .apch-trust-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
}

/* --------------------------------------------------------------------------
   Icon Background Utilities
   -------------------------------------------------------------------------- */
.apch-icon-bg--sage  { background: rgba(107,143,113,0.12); color: var(--sage); }
.apch-icon-bg--coral { background: rgba(196,74,63,0.1);    color: var(--coral); }
.apch-icon-bg--navy  { background: rgba(27,43,75,0.08);    color: var(--navy); }

/* --------------------------------------------------------------------------
   Bottom CTA Strip
   -------------------------------------------------------------------------- */
.apch-bottom-strip {
  padding: 52px 0;
  background: linear-gradient(135deg, var(--coral) 0%, #D4574C 50%, #C44A3F 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.apch-bottom-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}
.apch-bottom-strip p {
  font-family: 'Lora', serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.apch-bottom-strip-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.apch-bottom-strip .apch-btn-outline {
  border-color: rgba(255,255,255,0.5);
}
.apch-bottom-strip .apch-btn-outline:hover {
  background: var(--white);
  color: var(--coral) !important;
  border-color: var(--white);
}

@media (max-width: 600px) {
  .apch-bottom-strip p {
    font-size: 18px;
  }
  .apch-bottom-strip-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.apch-faq-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.apch-faq-hdr {
  text-align: center;
  margin-bottom: 56px;
}
.apch-faq-hdr .apch-section-label {
  justify-content: center;
}
.apch-faq-hdr h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
}
.apch-faq-hdr p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}
.apch-faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.apch-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(27, 43, 75, 0.04);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-faq-item:hover {
  border-color: rgba(196, 74, 63, 0.3);
  border-left-color: var(--coral);
  box-shadow: var(--shadow-sm);
}
.apch-faq-item.active {
  border-left-color: var(--coral);
  border-color: rgba(196, 74, 63, 0.2);
  box-shadow: var(--shadow-md);
}
.apch-faq-q {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  line-height: 1.4;
}
.apch-faq-q:hover {
  color: var(--coral);
}
.apch-faq-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--coral);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-faq-item.active .apch-faq-icon {
  background: linear-gradient(135deg, var(--coral), #D4574C);
  color: var(--white);
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(196, 74, 63, 0.3);
}
.apch-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-faq-item.active .apch-faq-a {
  max-height: 600px;
}
.apch-faq-a-inner {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .apch-faq-section {
    padding: 60px 0;
  }
  .apch-faq-q {
    font-size: 15px;
    padding: 18px 20px;
  }
  .apch-faq-a-inner {
    padding: 0 20px 20px;
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   Services Grid & Card (Shared — used on home, services overview, locations)
   -------------------------------------------------------------------------- */
.apch-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.apch-service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(27, 43, 75, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.apch-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral) 0%, #D4574C 100%);
  opacity: 0.4;
  transform: scaleX(1);
  transform-origin: center;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.apch-service-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.apch-service-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-service-card:hover .apch-service-card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(107, 143, 113, 0.06);
}
.apch-service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.apch-service-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}
.apch-service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-service-card-link:hover {
  gap: 10px;
  color: var(--coral-hover);
}

@media (max-width: 900px) {
  .apch-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .apch-services-grid {
    gap: 20px;
  }
  .apch-service-card {
    padding: 28px 22px;
  }
}
@media (max-width: 600px) {
  .apch-services-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Shared Button Styles
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.btn--outline:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   CTA Section (Navy Box)
   -------------------------------------------------------------------------- */
.apch-cta-section {
  padding: 80px 0;
  background: var(--white);
}
@keyframes apch-ctaShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.apch-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, #243658 25%, #1d3050 50%, #243658 75%, var(--navy) 100%);
  background-size: 200% 200%;
  animation: apch-ctaShimmer 12s ease infinite;
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(27, 43, 75, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.apch-cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 74, 63, 0.2), transparent 70%);
  pointer-events: none;
}
.apch-cta-inner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 143, 113, 0.1), transparent 70%);
  pointer-events: none;
}
.apch-cta-inner h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  letter-spacing: -0.02em;
}
.apch-cta-inner p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
  position: relative;
}
.apch-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.apch-cta-btns .apch-btn-primary {
  box-shadow: 0 4px 20px rgba(196, 74, 63, 0.45);
}
.apch-cta-btns .apch-btn-primary:hover {
  box-shadow: 0 8px 32px rgba(196, 74, 63, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.apch-cta-btns .apch-btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
}
.apch-cta-btns .apch-btn-outline:hover {
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .apch-cta-inner {
    padding: 48px 32px;
  }
}
@media (max-width: 600px) {
  .apch-cta-section {
    padding: 60px 0;
  }
  .apch-cta-inner {
    padding: 40px 24px;
  }
  .apch-cta-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Focus-Visible Styles (Keyboard Navigation)
   -------------------------------------------------------------------------- */
.apch-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 2px;
}
.apch-faq-q:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   404 Page
   -------------------------------------------------------------------------- */
.apch-404 {
  padding: 80px 0;
  text-align: center;
}
.apch-404-inner {
  max-width: 600px;
  margin: 0 auto;
}
.apch-404-code {
  font-size: 120px;
  font-weight: 700;
  color: var(--coral);
  font-family: 'Lora', serif;
  line-height: 1;
  margin-bottom: 16px;
}
.apch-404-title {
  font-size: 28px;
  margin-bottom: 16px;
}
.apch-404-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
}
.apch-404-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   WPForms Integration
   -------------------------------------------------------------------------- */
.wpforms-container .wpforms-form .wpforms-field-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form input[type="url"],
.wpforms-container .wpforms-form textarea,
.wpforms-container .wpforms-form select {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}
.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form textarea:focus,
.wpforms-container .wpforms-form select:focus {
  border-color: var(--coral);
  outline: none;
  box-shadow: 0 0 0 3px rgba(196,74,63,0.08);
}
.wpforms-container .wpforms-form .wpforms-submit-container button {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--coral) 0%, #D4574C 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 16px rgba(196, 74, 63, 0.3);
}
.wpforms-container .wpforms-form .wpforms-submit-container button:hover {
  background: linear-gradient(135deg, var(--coral-hover) 0%, #C44A3F 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,74,63,0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.wpforms-container .wpforms-form .wpforms-submit-container button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(196, 74, 63, 0.2);
}
.wpforms-container .wpforms-form .wpforms-field.wpforms-has-error input,
.wpforms-container .wpforms-form .wpforms-field.wpforms-has-error textarea {
  border-color: #dc3545;
}
.wpforms-container .wpforms-form .wpforms-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
}
.wpforms-confirmation-container-full {
  background: rgba(107,143,113,0.08);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--navy);
  font-weight: 500;
}
