/* ============================================================
   DEVTECHSYS GmbH — Service & Contact Pages Stylesheet
   ============================================================ */

/* ── Reveal animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--green);
  padding: 36px 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* ── Services list ── */
.services-list {
  padding: 80px 0;
  background: var(--white);
}
.services-list h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.services-list .lead {
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 680px;
  line-height: 1.7;
}
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-item-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 32px 28px;
  border-top: 4px solid var(--green);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-item-card .sic-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.service-item-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.service-item-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Why us / benefits ── */
.why-section {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
}
.why-section h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.why-section .lead {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 620px;
  line-height: 1.7;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px 26px;
  display: flex;
  gap: 18px;
  transition: background 0.25s ease;
}
.why-card:hover { background: rgba(255,255,255,0.09); }
.why-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.why-card p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ── Tech stack ── */
.tech-section {
  background: var(--off-white);
  padding: 72px 0;
}
.tech-section h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 40px;
}
.tech-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tech-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 10px;
  border-left: 4px solid var(--green);
}
.tech-row-label {
  min-width: 160px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  padding-top: 4px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-tag {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tech-tag:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ── Process timeline ── */
.process-section {
  background: var(--white);
  padding: 80px 0;
}
.process-section h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 48px;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  position: relative;
}
.timeline-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--off-white);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.timeline-item:hover { box-shadow: var(--shadow); }
.timeline-num {
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.timeline-body h4 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.timeline-body p {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ── FAQ ── */
.faq-section {
  background: var(--off-white);
  padding: 72px 0;
}
.faq-section h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 36px;
}
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.faq-q {
  padding: 20px 24px;
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
  user-select: none;
}
.faq-q:hover { color: var(--green); }
.faq-q .faq-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--green);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 24px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ── Testimonial ── */
.testimonial-section {
  background: var(--white);
  padding: 72px 0;
}
.testimonial-section h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 40px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 32px 28px;
  border-left: 4px solid var(--green);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--green);
  opacity: 0.18;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}
.testimonial-text {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.72;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.author-info .name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}
.author-info .role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ── Page CTA Banner ── */
.page-cta {
  background: linear-gradient(135deg, #0a1520 0%, #162032 100%);
  padding: 80px 0;
  text-align: center;
}
.page-cta h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}
.page-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Two-col intro ── */
.intro-two-col {
  padding: 72px 0;
  background: var(--white);
}
.intro-two-col .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-two-col h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.intro-two-col p {
  color: var(--text-mid);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.intro-img {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.intro-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* ── Use cases ── */
.usecases-section {
  background: var(--off-white);
  padding: 72px 0;
}
.usecases-section h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 40px;
}
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecase-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.usecase-card:hover { transform: translateY(-4px); }
.usecase-card .uc-icon { font-size: 2rem; margin-bottom: 14px; }
.usecase-card h4 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.usecase-card p {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── CONTACT PAGE ── */
.contact-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162032 100%);
  padding: 140px 0 72px;
  color: var(--white);
}
.contact-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.contact-hero h1 em { font-style: normal; color: var(--green); }
.contact-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cd-icon {
  width: 44px;
  height: 44px;
  background: rgba(141,198,63,0.15);
  border: 1px solid rgba(141,198,63,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cd-text .cd-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
}
.cd-text a, .cd-text span {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
}
.cd-text a:hover { color: var(--green); }

/* Contact form card */
.contact-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.contact-form-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(141,198,63,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input.error,
.form-group textarea.error { border-color: #e03b2e; }
.form-error-msg {
  font-size: 0.78rem;
  color: #e03b2e;
  display: none;
}
.form-group.has-error .form-error-msg { display: block; }
.form-submit { width: 100%; padding: 15px; font-size: 1rem; }
.form-success {
  display: none;
  text-align: center;
  padding: 32px 16px;
}
.form-success .success-icon { font-size: 3.5rem; margin-bottom: 12px; }
.form-success h4 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-success p { color: var(--text-mid); font-size: 0.9rem; }

/* contact info strip */
.contact-info-strip {
  padding: 64px 0;
  background: var(--off-white);
}
.contact-info-strip h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 36px;
  text-align: center;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-info-box {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.contact-info-box:hover { transform: translateY(-3px); }
.contact-info-box .cib-icon { font-size: 2.2rem; margin-bottom: 14px; }
.contact-info-box h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.contact-info-box a, .contact-info-box p {
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Form alert */
.form-alert {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}
.form-alert--success { background: #f0fce8; color: #3a7a0a; border: 1px solid #b3e07b; }
.form-alert--error { background: #fff0f0; color: #b91c1c; border: 1px solid #fca5a5; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-list-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item { border-right: none; }
}
@media (max-width: 768px) {
  .services-list-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .intro-two-col .container { grid-template-columns: 1fr; gap: 32px; }
  .contact-hero .container { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .tech-row { flex-direction: column; gap: 12px; }
  .tech-row-label { min-width: auto; }
  .page-cta h2 { font-size: 1.7rem; }
}
