/* ============================================
   STARS - Service Pages Stylesheet
   New layout: Hero > Services Bar > About >
   Process > Documents > Lead Form
   ============================================ */

/* === 1. HERO (Title Only) === */
.service-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: center/cover no-repeat;
  margin-top: var(--header-height);
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--color-dark-brown-rgb), 0.7);
}

.service-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
}

.service-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-white);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* === 2. SERVICES BAR === */
.services-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.services-bar::-webkit-scrollbar { display: none; }

.services-bar-inner {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.services-bar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.services-bar-link:hover {
  color: var(--color-moss-green);
  background: var(--color-tan-lighter);
}

.services-bar-link.active {
  color: var(--color-moss-green);
  border-bottom-color: var(--color-moss-green);
}

.services-bar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.services-bar-link.active svg { opacity: 1; }

/* === 3. ABOUT THIS SERVICE === */
.service-about {
  padding: 80px 0;
  background: var(--color-white);
}

.service-about-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.service-about-inner .section-label {
  margin-bottom: 16px;
}

.service-about-inner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 24px;
  color: var(--color-dark-brown);
}

.service-about-inner p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

.service-about-inner p:last-of-type {
  margin-bottom: 36px;
}

/* === 4. WHAT WE PROCESS === */
.service-process {
  padding: 80px 0;
  background: var(--color-off-white);
}

.service-process .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.service-process .section-subtitle {
  margin: 0 auto;
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-moss-green);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.process-card:hover::before {
  transform: scaleX(1);
}

.process-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-moss-green);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.process-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark-brown);
  margin-bottom: 10px;
}

.process-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* === 5. DOCUMENTS NEEDED === */
.service-docs {
  padding: 80px 0;
  background: var(--color-white);
}

.service-docs .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.service-docs .section-subtitle {
  margin: 0 auto;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.doc-card:hover {
  border-color: var(--color-moss-green);
  background: var(--color-tan-lighter);
}

.doc-card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-moss-green);
}

.doc-card-icon svg { width: 100%; height: 100%; }

.doc-card span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

/* === 6. LEAD FORM === */
.service-lead {
  padding: 80px 0;
  background: var(--color-off-white);
}

.service-lead-inner {
  max-width: 740px;
  margin: 0 auto;
}

.service-lead .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.service-lead .section-subtitle {
  margin: 0 auto;
}

.lead-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.lead-form-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 5px 16px;
  background: var(--color-moss-green);
  color: var(--color-white);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-field { display: flex; flex-direction: column; }

.lead-field label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.lead-field label .req { color: #d9534f; }

.lead-field input,
.lead-field select,
.lead-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--color-moss-green);
  box-shadow: 0 0 0 3px rgba(111,134,88,0.1);
}

.lead-field textarea { resize: vertical; min-height: 80px; }

.lead-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-moss-green);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}

.lead-submit:hover {
  background: var(--color-moss-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lead-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.lead-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--color-moss-green);
}

.lead-success-icon svg { width: 100%; height: 100%; }

.lead-success h4 {
  font-size: 1.2rem;
  color: var(--color-dark-brown);
  margin-bottom: 8px;
}

.lead-success p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* === 5.5 FAQ SECTION === */
.service-faq {
  padding: 80px 0;
  background: var(--color-off-white);
}

.service-faq .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.service-faq .section-subtitle {
  margin: 0 auto;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--color-moss-green);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark-brown);
  line-height: 1.4;
  transition: color var(--transition);
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-moss-green);
  transition: transform 0.3s ease;
}

.faq-icon svg { width: 100%; height: 100%; }

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 8px;
}

.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .process-cards { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .service-hero { height: 220px; }

  .services-bar {
    border-top: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .services-bar-inner {
    justify-content: flex-start;
    padding: 0 8px;
    gap: 4px;
  }

  .services-bar-link {
    padding: 14px 16px;
    font-size: 0.78rem;
    gap: 5px;
    border-bottom-width: 3px;
  }

  .services-bar-link svg {
    width: 16px;
    height: 16px;
  }

  .service-about,
  .service-process,
  .service-docs,
  .service-faq,
  .service-lead { padding: 48px 0; }

  .process-cards { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr 1fr; }

  .lead-row { grid-template-columns: 1fr; }

  .lead-form-card { padding: 28px 20px; }
}

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