/* ── Shared styles for Services / Portfolio / About pages ── */

/* Page hero */
.page-hero {
  padding: 140px 5% 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 70% 10%, rgba(0, 113, 227, 0.1) 0%, transparent 60%),
    #ffffff;
  position: relative;
  overflow: hidden;
}

.page-hero-eyebrow {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-secondary);
}

/* Page sections */
.page-section {
  padding: var(--section-pad);
  background: var(--color-surface);
}

.page-section.muted {
  background: var(--color-muted);
}

.page-section .section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--color-secondary);
  line-height: 1.7;
}

/* Services grid */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-secondary);
  line-height: 1.6;
  font-size: var(--text-base);
}

.service-card ul {
  list-style: none;
  margin-top: 1rem;
}

.service-card li {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  padding: 0.25rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.service-card li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--color-accent);
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.process-step .step-num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step .step-num::before {
  content: counter(step);
}

.process-step h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.6;
}

/* Portfolio cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.portfolio-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.portfolio-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.portfolio-card-image {
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  height: 200px;
}

.portfolio-card-image img {
  max-height: 130px;
  max-width: 80%;
  object-fit: contain;
}

.portfolio-card-body {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card-body h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.portfolio-card-body p {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.portfolio-card-body .store-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.store-link:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

.store-link i {
  font-size: 1.1rem;
}

/* Values grid (About) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.value-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.value-card i {
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.value-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.6;
}

/* Stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-value {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.stat-item .stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-secondary);
  margin-top: 0.25rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--color-accent);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.7;
}

/* CTA banner */
.cta-banner {
  padding: var(--section-pad);
  text-align: center;
  background: var(--color-muted);
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.cta-banner p {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--color-secondary);
  line-height: 1.7;
}

.cta-banner .btn {
  margin: 0.25rem;
}

/* Team grid (About) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.team-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.team-card .avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071e3 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.team-card .avatar::before {
  content: attr(data-initial);
}

.team-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.team-card p {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: 400;
}

/* About story split */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.story-grid h3 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.story-grid p {
  color: #444;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.story-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 110px 5% 60px;
  }

  .page-section {
    padding: 4rem 5%;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-image {
    height: 280px;
  }
}
