/* ==========================================================================
   PetSathi — Services Page Styles (services.css)
   Dedicated styles for frontend/pages/services.html
   Built on design variables & tokens from global.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section
   -------------------------------------------------------------------------- */
.services-hero {
  min-height: 520px;
  padding-block: 50px 75px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.services-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.services-hero-copy h1 {
  max-width: 620px;
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -2.5px;
}

.services-hero-copy p {
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 28px;
}

.services-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.services-hero-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-hero-note .note-icon {
  color: var(--green);
  font-size: 1.05rem;
}

.services-hero-visual {
  min-height: 420px;
  position: relative;
  display: grid;
  place-items: center;
}

.services-hero-blob {
  position: absolute;
  width: 90%;
  height: 90%;
  background: #e6ede3;
  border-radius: 46% 54% 40% 60% / 58% 42% 58% 42%;
  z-index: 1;
}

.services-hero-photo {
  position: relative;
  z-index: 2;
  width: 82%;
  height: 380px;
  object-fit: cover;
  border-radius: 40% 40% 24px 24px;
  box-shadow: var(--shadow);
  border: 4px solid white;
}

.services-floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  font-size: 1.15rem;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.services-floating-card span:last-child {
  display: grid;
  line-height: 1.25;
}

.services-floating-card b {
  font-size: 0.86rem;
  color: var(--ink);
}

.services-floating-card small {
  font-size: 0.72rem;
  color: var(--muted);
}

.services-card-top {
  top: 35px;
  right: -10px;
}

.services-card-bottom {
  bottom: 25px;
  left: -10px;
  animation-delay: -2s;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

/* --------------------------------------------------------------------------
   2. Trust Strip
   -------------------------------------------------------------------------- */
.services-trust-strip {
  text-align: center;
  background: #eff3ec;
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #7b887e;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.strip-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #4b5a50;
}

.strip-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(40, 104, 73, 0.12);
}

/* --------------------------------------------------------------------------
   3. Interactive Controls (Filter Tabs & Search)
   -------------------------------------------------------------------------- */
.services-controls-card {
  background: white;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.services-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  background: #e2e9df;
  color: var(--green);
}

.filter-tab.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.services-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.services-search-wrapper .search-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}

.services-search-input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 44px;
  border: 1px solid #dce2d9;
  border-radius: 12px;
  background: #fbfcf9;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.services-search-input:focus {
  border-color: var(--green);
  background: white;
  box-shadow: 0 0 0 3px rgba(40, 104, 73, 0.12);
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  background: #e2e8df;
  border: none;
  color: var(--muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.clear-search-btn:hover {
  background: #ccd7c8;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   4. No Results State
   -------------------------------------------------------------------------- */
.services-no-results {
  display: none;
  text-align: center;
  padding: 50px 24px;
  background: white;
  border: 1px dashed #cfdad0;
  border-radius: 20px;
  margin-block: 20px 40px;
}

.services-no-results.visible {
  display: block;
}

.no-results-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.services-no-results h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.services-no-results p {
  max-width: 460px;
  margin: 0 auto 20px;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   5. Services Grid & Cards
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(35, 57, 43, 0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #cbded0;
}

.service-card.hidden {
  display: none !important;
}

.service-card-media {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #edf2eb;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.service-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eaf2e8;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.service-category-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green);
  margin-bottom: 2px;
}

.service-card-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
}

.service-card-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 18px;
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  border-top: 1px solid #f0f3ed;
  padding-top: 14px;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #55665c;
  margin-bottom: 8px;
}

.service-features-list li span {
  color: var(--green);
  font-weight: 800;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f0f3ed;
}

.service-action-btn {
  text-decoration: none;
}

.service-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   6. How Services Support You (Steps)
   -------------------------------------------------------------------------- */
.services-steps-section {
  background: #f1f5ee;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  background: white;
  padding: 32px 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(35, 57, 43, 0.04);
  position: relative;
  transition: transform 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-num {
  font-family: Manrope, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #cbd8ca;
  line-height: 1;
  margin-bottom: 12px;
}

.step-icon-wrap {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eaf2e8;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.step-card p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   7. Interactive FAQ Section
   -------------------------------------------------------------------------- */
.services-faq-section {
  padding-block: 80px;
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(35, 57, 43, 0.03);
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: #bcd1c1;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--green);
}

.faq-indicator {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.25s ease;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.faq-item.active .faq-indicator {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  padding-bottom: 22px;
}

.faq-answer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. Call to Action (CTA) Banner
   -------------------------------------------------------------------------- */
.services-cta-banner {
  background: var(--dark);
  color: white;
  border-radius: 28px;
  padding: 56px 54px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  margin-bottom: 75px;
}

.services-cta-banner::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-eyebrow {
  color: #c4dec9;
}

.cta-content h2 {
  color: white;
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.cta-content h2 em {
  color: #f6cfac;
  font-style: normal;
}

.cta-content p {
  color: #d6e5d8;
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 0 28px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button-outline-light {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

.cta-badge-art {
  display: grid;
  place-items: center;
}

.cta-emoji-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  letter-spacing: 4px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   9. Site Footer
   Consistent PetSathi footer styling from home.css & other pages
   -------------------------------------------------------------------------- */
.footer {
  background: #f0f3eb;
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 35px;
  padding-bottom: 35px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-grid p {
  max-width: 260px;
  margin: 0;
  line-height: 1.6;
}

.footer-grid b {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--green);
}

.footer-grid .brand {
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-grid .brand span {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid #dfe5dc;
  font-size: 0.74rem;
  color: #839087;
}

/* --------------------------------------------------------------------------
   10. Responsive Design & Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-hero {
    gap: 28px;
  }
}

@media (max-width: 850px) {
  .services-hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .services-hero-visual {
    order: -1;
    min-height: 360px;
  }

  .services-hero-photo {
    width: 70%;
    height: 320px;
  }

  .services-card-top {
    top: 15px;
    right: 5%;
  }

  .services-card-bottom {
    bottom: 15px;
    left: 5%;
  }

  .services-steps-grid {
    grid-template-columns: 1fr;
  }

  .services-cta-banner {
    grid-template-columns: 1fr;
    padding: 38px 28px;
  }

  .cta-badge-art {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-filter-tabs {
    overflow-x: auto;
    padding-bottom: 6px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab {
    white-space: nowrap;
  }

  .services-hero h1 {
    font-size: 2.5rem;
  }

  .services-hero-photo {
    width: 88%;
    height: 270px;
  }

  .services-floating-card {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .services-floating-card b {
    font-size: 0.78rem;
  }

  .services-floating-card small {
    font-size: 0.65rem;
  }

  .strip-tags {
    gap: 10px;
    font-size: 0.8rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 16px 18px;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
    text-align: center;
  }

  .footer-bottom span {
    display: block;
    margin-top: 5px;
  }
}

