/* ================================================
   CSS Custom Properties & Variables
================================================ */
:root {
  /* Service Cards */
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-hover-bg: rgba(255, 255, 255, 1);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-hover-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);

  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-ease: all 0.2s ease-out;

  /* Service Grid */
  --grid-gap: clamp(1rem, 3vw, 1.5rem);
  --card-radius: 12px;
}

/* ================================================
   Screen Reader Only (Accessibility)
================================================ */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ================================================
  1. Hero Section
================================================ */
.services-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  overflow: hidden;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  max-width: 78rem;
  margin: 0 auto;
  padding: 2rem;
}

.services-hero-inner {
  border-radius: 16px;
  padding: 2rem 1.5rem;
}

.services-hero-title {
  font-size: var(--h1-size);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--tmd-heading);
}

/* Typewriter Animation */
.typewriter-container {
  display: inline-block;
  position: relative;
  min-height: 1.4em;
  line-height: 1.4;
}

.typewriter-text {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  border-right: 1px solid transparent;
  color: inherit;
  min-height: 1.4em;
  line-height: 1.4;
  vertical-align: baseline;
}

.typewriter-text:empty::before {
  content: attr(data-text);
}

.typewriter-text:not(:empty) {
  color: inherit;
}

.typewriter-cursor {
  display: none;
  color: var(--tmd-text);
  font-weight: 300;
  font-size: inherit;
  line-height: 1;
  animation: typewriterCursor 1s infinite;
  position: relative;
  top: -15px;
}

.no-js .typewriter-text,
.no-js .typewriter-text::after {
  border-right: none;
  display: none;
}

@keyframes typewriterCursor {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.services-hero-subtitle {
  font-size: 1.3rem;
  margin-block-end: 2.5rem;
  max-width: 500px;
  margin-inline: auto;
}

.services-hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-block-start: 1.5rem;
  will-change: transform, opacity;
}

.services-hero-cta,
.services-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-base);
  padding: 0.6rem 1.8rem;
  border-radius: 0.5rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 110, 225, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-hero-cta {
  background: var(--tmd-accent);
  color: var(--tmd-white);
  border: 1px solid var(--tmd-accent);
}

.services-hero-secondary {
  background: var(--tmd-white);
  color: var(--tmd-accent);
  border: 1px solid var(--tmd-accent);
}

.services-hero-cta::before,
.services-hero-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.services-hero-cta:hover::before,
.services-hero-secondary:hover::before {
  left: 100%;
}

.services-hero-cta:hover,
.services-hero-cta:focus {
  background: #005bb5;
  color: var(--tmd-white);
  box-shadow: 0 8px 24px rgba(0, 110, 225, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.services-hero-secondary:hover,
.services-hero-secondary:focus {
  background: var(--tmd-accent);
  color: var(--tmd-white);
  border-color: var(--tmd-accent);
  box-shadow: 0 8px 24px rgba(0, 110, 225, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.services-hero-arrow {
  transition: transform 0.3s ease;
}

.services-hero-secondary:hover .services-hero-arrow {
  transform: translateX(4px);
}

.services-hero-scroll {
  position: absolute;
  bottom: 3rem;
  /* Increased from 2rem to provide more space from buttons */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.scroll-indicator {
  width: 1px;
  height: 50px;
  position: relative;
  background: linear-gradient(180deg, var(--tmd-accent) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--tmd-accent);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  animation: scrollArrow 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tmd-accent);
  opacity: 0.8;
  animation: scrollTextFade 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes scrollArrow {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.8;
  }

  50% {
    transform: rotate(45deg) translateY(-8px);
    opacity: 1;
  }
}

@keyframes scrollTextFade {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* ================================================
  2. Services Grid Section
================================================ */
.services-grid-section {
  position: relative;
  margin: 10rem 0;
  padding: 1rem;
}

.services-grid-inner {
  max-width: 75rem;
  margin: 0 auto;
}

.services-grid-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.services-grid-title {
  font-size: var(--h2-size);
  letter-spacing: -0.02em;
}

.services-grid-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

/* Service Card */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 1.25rem;
  border-radius: 10px;
  background: var(--tmd-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tmd-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover::before,
.service-card:focus::before {
  transform: scaleX(1);
}

.service-card:hover,
.service-card:focus {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  background: var(--card-hover-bg);
  outline: none;
}

.service-card.featured {
  border: 2px solid var(--tmd-accent);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin-bottom: 0.75rem;
  color: var(--tmd-white);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tmd-accent) 0%, #0056b3 100%);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 110, 225, 0.4);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--tmd-text);
}

.service-description {
  font-size: var(--font-md);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.services-features {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.services-features li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1rem;
  font-size: 0.85rem;
}

.services-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.3rem;
  font-weight: bold;
  font-size: 0.875rem;
  color: var(--tmd-accent);
}

.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.service-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tmd-accent);
}

.service-button {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tmd-accent);
  background: var(--tmd-white);
  border: 1px solid var(--tmd-accent);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.service-button:hover,
.service-button:focus {
  color: var(--tmd-white);
  background: var(--tmd-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 110, 225, 0.4);
  outline: none;
}

/* ================================================
  3. Process Section
================================================ */
.services-process {
  position: relative;
  overflow: hidden;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(0, 110, 225, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
}

.services-process::before,
.services-process::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 110, 225, 0.3), transparent);
}

.services-process::before {
  top: 0;
}

.services-process::after {
  bottom: 0;
}

.services-process-inner {
  max-width: 75rem;
  margin: 0 auto;
  position: relative;
}

.process-header {
  text-align: center;
  margin-bottom: 3rem;
}

.process-title {
  font-size: var(--h2-size);
  margin-bottom: 1.5rem;
}

.process-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.process-timeline {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: 2rem 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: 3.5rem;
  width: 2px;
  background: var(--tmd-accent);
  opacity: 0.3;
}

.process-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--tmd-white);
  background: var(--tmd-accent);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 110, 225, 0.2);
  transition: transform 0.2s ease;
}

.step-number:hover {
  transform: scale(1.05);
}

.step-content {
  padding: 1.5rem 1.5rem 1.5rem 1rem;
  /* Reduced left padding from 1.5rem to 1rem */
  background: var(--tmd-white);
  border: 1px solid var(--tmd-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  text-align: left;
  /* Ensure left alignment for all content */
}

.step-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--tmd-accent);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--tmd-text);
  text-align: left;
  /* Ensure left alignment */
}

.step-description {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--tmd-gray);
  line-height: 1.6;
  text-align: left;
  /* Ensure left alignment */
}

.step-deliverables {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.step-deliverables li {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tmd-accent);
  background: rgba(0, 110, 225, 0.06);
  border: 1px solid rgba(0, 110, 225, 0.1);
  border-radius: 16px;
}

/* ================================================
  4. Features Section
================================================ */
.services-features-section {
  padding: 3rem 1rem;
  margin: 5rem 0 2rem;
}

.services-features-section-inner {
  max-width: 75rem;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.features-title {
  font-size: var(--h2-size);
}

.features-subtitle {
  font-size: var(--font-lg);
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem 3rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.feature-item:hover {
  transform: translateY(-4px);
  background: rgba(0, 110, 225, 0.02);
}

.feature-icon {
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--tmd-text);
}

.feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tmd-gray);
}

/* ================================================
  5. Quick Consultation Section
================================================ */
.consultation-section {
  padding: 1rem;
  margin: 2rem 0;
}

.consultation-container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 3rem 2.5rem 2.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.consultation-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.consultation-container>* {
  position: relative;
  z-index: 2;
}

.consultation-header {
  text-align: left;
}

.consultation-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #ffffff;
}

.consultation-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #cbd5e1;
}

.consultation-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #e2e8f0;
}

.benefit-item svg {
  color: var(--tmd-accent);
  flex-shrink: 0;
}

.consultation-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: #e2e8f0;
}

.required {
  color: #dc3545;
  font-weight: 700;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  font-size: 0.95rem;
  background: var(--tmd-primary);
  border: 1px solid var(--tmd-border);
  border-radius: 6px;
  box-sizing: border-box;
  transition: all .2s ease;
}

.form-group input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.form-group select::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.3),
    0 0 0 1px rgba(59, 130, 246, 0.5);
  background: #1e293b;
  color: #ffffff;
}

/* Select Styling */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--tmd-primary) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 0.6rem center / 0.9rem;
  padding-right: 2rem;
  cursor: pointer;
}

.form-group select:hover {
  background: #1e293b url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 0.6rem center / 0.9rem;
}

.form-group select:focus {
  background: #1e293b url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 0.6rem center / 0.9rem;
}

.form-group input:hover,
.form-group select:hover {
  border-color: #3b82f6;
  background: #1e293b;
  color: #ffffff;
}

.form-group select option {
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  color: var(--tmd-text);
  background: var(--tmd-white);
}

.form-group select option:hover,
.form-group select option:checked {
  background: var(--tmd-accent);
  color: var(--tmd-white);
}

.field-error {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.consultation-submit {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tmd-white);
  background: var(--tmd-accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consultation-submit:hover:not(:disabled) {
  background: #005bb5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 110, 225, 0.3);
}

.consultation-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-privacy {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
  text-align: center;
}

/* Form Alert Styles */
.form-alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.3s ease;
}

.form-alert--success {
  background-color: #d1f2eb;
  color: #0e5135;
  border: 1px solid #a3e4d7;
}

.form-alert--error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-icon {
  flex-shrink: 0;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* =============================================
  6. FAQ Section
================================================ */

.tmd-faq-section {
  padding: 4rem 1rem;
  margin: 5rem 0;
}

.tmd-faq-inner {
  max-width: 75rem;
  margin: 0 auto;
}

.tmd-faq-title {
  font-size: var(--h2-size);
  font-weight: 800;
  color: var(--tmd-text);
  margin-block-end: 3.5rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.tmd-faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.2rem;
  align-items: start;
  margin-block-start: 1.2rem;
}

.tmd-faq-item {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 0.1rem 0.7rem;
  font-size: var(--font-sm);
  border: 1px solid var(--tmd-border);
  border-radius: var(--tmd-radius);
  box-shadow: 0 1px 6px rgba(0, 113, 227, 0.03);
  transform: translateZ(0);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tmd-faq-item:hover {
  box-shadow: 0 2px 12px rgba(0, 113, 227, 0.05);
}

.tmd-faq-item[open] {
  background: var(--tmd-primary);
  border-color: var(--tmd-accent);
  box-shadow: 0 4px 18px rgba(0, 113, 227, 0.07);
}

.tmd-faq-question {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: var(--font-base);
  font-weight: 600;
  padding-block: 0.9rem 0.7rem;
  transition: color 0.18s;
  letter-spacing: -0.01em;
  outline: none;
  position: relative;
}

.tmd-faq-question::-webkit-details-marker {
  display: none;
}

.tmd-faq-question::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  background: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.5 7.5L9 12L13.5 7.5" stroke="%23007ae3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center/contain;
  vertical-align: middle;
  transform: rotate(0deg);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.tmd-faq-answer {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateY(-8px);
  will-change: max-height, opacity, transform;
}

.tmd-faq-item.open .tmd-faq-answer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tmd-faq-answer p {
  margin: 0.5rem 0 0;
  padding: 0 1.2rem 1rem;
  font-size: calc(var(--font-sm) * 0.95);
  line-height: 1.5;
}

/* Mobile responsive FAQ */
@media (max-width: 699.99px) {
  .tmd-faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tmd-faq-item {
    min-height: 80px;
    display: flex;
    flex-direction: column;
  }

  .tmd-faq-question {
    font-size: calc(var(--font-base) * 0.9);
    line-height: 1.4;
    padding: 1rem 1.2rem;
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    flex: 1;
    display: flex;
    align-items: center;
  }

  .tmd-faq-answer {
    padding: 0 1.2rem 1rem 1.2rem;
    font-size: calc(var(--font-sm) * 0.95);
    line-height: 1.5;
    margin-top: 0.5rem;
  }
}

/* ================================================
   Tablet Responsive Design (700px - 999.99px)
   ========================= */
@media (min-width: 700px) and (max-width: 999.98px) {

  /* 1. Hero Section - Tablet */
  .services-hero {
    min-height: 90vh;
    padding: 2rem 1.5rem;
  }

  .services-hero-inner {
    max-width: 100%;
    padding: 0 1rem;
  }

  .services-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }

  .services-hero-subtitle {
    font-size: var(--font-lg);
    max-width: 90%;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
  }

  .services-hero-buttons {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .services-hero-cta,
  .services-hero-secondary {
    padding: 0.875rem 1.75rem;
    font-size: var(--font-base);
    min-width: 180px;
  }

  /* Scroll indicator positioning for tablet */
  .services-hero-scroll {
    bottom: 1.5rem;
    /* Move scroll indicator further down on tablet */
  }

  /* Typewriter Tablet Optimizations */
  .typewriter-container {
    display: block;
    width: 100%;
    text-align: center;
    min-height: 1.3em;
    line-height: 1.3;
  }

  .typewriter-text {
    white-space: normal;
    /* Allow text wrapping on tablet */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-align: center;
  }

  .typewriter-cursor {
    top: -12px;
    /* Better positioning for tablet */
    font-size: 0.95em;
    /* Slightly smaller cursor on tablet */
  }

  /* 2. Services Grid Section - Tablet */
  .services-grid-section {
    padding: 4rem 1.5rem;
  }

  .services-grid-inner {
    max-width: 100%;
  }

  .services-grid-title {
    font-size: var(--font-xxl);
    margin-bottom: 1.5rem;
  }

  .services-grid-subtitle {
    font-size: var(--font-lg);
    max-width: 80%;
    margin: 0 auto 3rem auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
    min-height: 320px;
    text-align: left;
    /* Left-align content on tablet */
  }

  .service-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 0 1.5rem 0;
    /* Remove auto margins for left alignment */
  }

  .service-card-title {
    font-size: var(--font-xl);
    margin-bottom: 1rem;
    text-align: left;
    /* Left-align title */
  }

  .service-card-description {
    font-size: var(--font-base);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
    /* Left-align description */
  }

  .service-card-features {
    margin-bottom: 1.5rem;
    text-align: left;
    /* Ensure features list is left-aligned */
  }

  .service-card-features li {
    font-size: var(--font-sm);
    padding: 0.4rem 0;
  }

  .service-card-cta {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-sm);
  }

  /* 3. Process Section - Tablet */
  .services-process {
    padding: 4rem 1.5rem;
  }

  .services-process-inner {
    max-width: 100%;
  }

  .services-process-title {
    font-size: var(--font-xxl);
    margin-bottom: 1.5rem;
  }

  .services-process-subtitle {
    font-size: var(--font-lg);
    max-width: 80%;
    margin: 0 auto 3rem auto;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .process-step {
    padding: 2rem 1.5rem 2rem 1rem;
    /* Reduced left padding from 1.5rem to 1rem */
    min-height: 280px;
    text-align: left;
    /* Ensure left alignment */
  }

  .process-step-number {
    width: 3rem;
    height: 3rem;
    font-size: var(--font-lg);
    margin-bottom: 1.5rem;
  }

  .process-step-title {
    font-size: var(--font-lg);
    margin-bottom: 1rem;
    text-align: left;
    /* Ensure left alignment */
  }

  .process-step-description {
    font-size: var(--font-base);
    line-height: 1.6;
    text-align: left;
    /* Ensure left alignment */
  }

  /* 4. Features Section - Tablet */
  .services-features-section {
    padding: 4rem 1.5rem;
  }

  .services-features-section-inner {
    max-width: 100%;
  }

  .features-header {
    text-align: center;
    margin-bottom: 3rem;
  }

  .features-title {
    font-size: var(--font-xxl);
    margin-bottom: 1.5rem;
  }

  .features-subtitle {
    font-size: var(--font-lg);
    max-width: 80%;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .feature-item {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.5rem auto;
  }

  .feature-title {
    font-size: var(--font-lg);
    margin-bottom: 1rem;
  }

  .feature-description {
    font-size: var(--font-base);
    line-height: 1.6;
  }

  /* 5. Consultation Section - Tablet */
  .consultation-section {
    padding: 4rem 1.5rem;
  }

  .consultation-container {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .consultation-header {
    text-align: center;
  }

  .consultation-title {
    font-size: var(--font-xxl);
    margin-bottom: 1.5rem;
  }

  .consultation-subtitle {
    font-size: var(--font-lg);
    max-width: 80%;
    margin: 0 auto 2rem auto;
  }

  .consultation-benefits {
    margin-bottom: 2rem;
  }

  .benefit-item {
    font-size: var(--font-base);
    margin-bottom: 0.75rem;
  }

  .consultation-form {
    max-width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-group label {
    font-size: var(--font-sm);
  }

  .form-group input,
  .form-group select {
    padding: 0.75rem 1rem;
    font-size: var(--font-base);
  }

  .consultation-submit {
    padding: 0.875rem 2rem;
    font-size: var(--font-base);
  }

  /* 6. FAQ Section - Tablet */
  .tmd-faq-section {
    padding: 4rem 1.5rem;
  }

  .tmd-faq-inner {
    max-width: 100%;
  }

  .tmd-faq-title {
    font-size: var(--font-xxl);
    margin-bottom: 1.5rem;
  }

  .tmd-faq-subtitle {
    font-size: var(--font-lg);
    max-width: 80%;
    margin: 0 auto 3rem auto;
  }

  .tmd-faq-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tmd-faq-item {
    border-radius: 8px;
  }

  .tmd-faq-question {
    padding: 1.25rem 1.5rem;
    font-size: var(--font-base);
  }

  .tmd-faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: var(--font-sm);
  }
}

/* ================================================
   Mobile Responsive Design (600.99px and below)
   ========================= */
@media (max-width: 600.99px) {

  /* 1. Hero Section - Mobile */
  .services-hero {
    min-height: 85vh;
    padding: 1.5rem 1rem;
  }

  .services-hero-inner {
    max-width: 100%;
    padding: 0;
  }

  .services-hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
  }

  .services-hero-subtitle {
    font-size: var(--font-base);
    max-width: 100%;
    margin: 0 auto 1.75rem auto;
    line-height: 1.5;
    padding: 0 0.5rem;
  }

  .services-hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }

  .services-hero-cta,
  .services-hero-secondary {
    width: 100%;
    max-width: 280px;
    padding: 0.875rem 1.5rem;
    font-size: var(--font-sm);
    justify-content: center;
  }

  /* Scroll indicator positioning for mobile */
  .services-hero-scroll {
    bottom: 1rem;
    /* Move scroll indicator further down on mobile */
  }

  /* Typewriter Mobile Optimizations */
  .typewriter-container {
    display: block;
    width: 100%;
    text-align: center;
    min-height: 1.2em;
    line-height: 1.2;
  }

  .typewriter-text {
    display: inline-block;
    white-space: normal;
    /* Allow text wrapping on mobile */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: center;
  }

  .typewriter-cursor {
    top: -8px;
    /* Better positioning for mobile */
    font-size: 0.9em;
    /* Slightly smaller cursor on mobile */
  }

  /* 2. Services Grid Section - Mobile */
  .services-grid-section {
    padding: 3rem 1rem;
  }

  .services-grid-inner {
    max-width: 100%;
  }

  .services-grid-title {
    font-size: var(--font-xl);
    margin-bottom: 1.25rem;
    line-height: 1.2;
  }

  .services-grid-subtitle {
    font-size: var(--font-base);
    max-width: 100%;
    margin: 0 auto 2rem auto;
    line-height: 1.5;
    padding: 0 0.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .service-card {
    padding: 1.75rem 1.25rem;
    min-height: auto;
    text-align: left;
    /* Left-align content on mobile */
  }

  .service-card-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 0 1.25rem 0;
    /* Remove auto margins for left alignment */
  }

  .service-card-title {
    font-size: var(--font-lg);
    margin-bottom: 0.875rem;
    text-align: left;
    /* Left-align title */
  }

  .service-card-description {
    font-size: var(--font-sm);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    text-align: left;
    /* Left-align description */
  }

  .service-card-features {
    margin-bottom: 1.25rem;
    text-align: left;
  }

  .service-card-features li {
    font-size: calc(var(--font-sm) * 0.9);
    padding: 0.3rem 0;
  }

  .service-card-cta {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: var(--font-sm);
  }

  /* 3. Process Section - Mobile */
  .services-process {
    padding: 3rem 1rem;
  }

  .services-process-inner {
    max-width: 100%;
  }

  .services-process-title {
    font-size: var(--font-xl);
    margin-bottom: 1.25rem;
    line-height: 1.2;
  }

  .services-process-subtitle {
    font-size: var(--font-base);
    max-width: 100%;
    margin: 0 auto 2rem auto;
    line-height: 1.5;
    padding: 0 0.5rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-step {
    padding: 1.75rem 1.25rem 1.75rem 1rem;
    /* Reduced left padding from 1.25rem to 1rem */
    min-height: auto;
    text-align: left;
    /* Changed from center to left alignment */
  }

  .process-step-number {
    width: 2.75rem;
    height: 2.75rem;
    font-size: var(--font-base);
    margin: 0 0 1.25rem 0;
    /* Changed from center to left alignment */
  }

  .process-step-title {
    font-size: var(--font-base);
    margin-bottom: 0.875rem;
    text-align: left;
    /* Ensure left alignment */
  }

  .process-step-description {
    font-size: var(--font-sm);
    line-height: 1.5;
    text-align: left;
    /* Ensure left alignment */
  }

  /* 4. Features Section - Mobile */
  .services-features-section {
    padding: 3rem 1rem;
  }

  .services-features-section-inner {
    max-width: 100%;
  }

  .features-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .features-title {
    font-size: var(--font-xl);
    margin-bottom: 1.25rem;
    line-height: 1.2;
  }

  .features-subtitle {
    font-size: var(--font-base);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.5;
    padding: 0 0.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-item {
    padding: 1.75rem 1.25rem;
    text-align: center;
  }

  .feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem auto;
  }

  .feature-title {
    font-size: var(--font-base);
    margin-bottom: 0.875rem;
  }

  .feature-description {
    font-size: var(--font-sm);
    line-height: 1.5;
  }

  /* 5. Consultation Section - Mobile */
  .consultation-section {
    padding: 3rem 1rem;
  }

  .consultation-container {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .consultation-header {
    text-align: center;
  }

  .consultation-title {
    font-size: var(--font-xl);
    margin-bottom: 1.25rem;
    line-height: 1.2;
  }

  .consultation-subtitle {
    font-size: var(--font-base);
    max-width: 100%;
    margin: 0 auto 1.5rem auto;
    line-height: 1.5;
    padding: 0 0.5rem;
  }

  .consultation-benefits {
    margin-bottom: 1.5rem;
  }

  .benefit-item {
    font-size: var(--font-sm);
    margin-bottom: 0.5rem;
  }

  .consultation-form {
    max-width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .form-group label {
    font-size: calc(var(--font-sm) * 0.9);
  }

  .form-group input,
  .form-group select {
    padding: 0.75rem 1rem;
    font-size: var(--font-sm);
  }

  .consultation-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: var(--font-sm);
  }

  /* 6. FAQ Section - Mobile */
  .tmd-faq-section {
    padding: 3rem 1rem;
  }

  .tmd-faq-inner {
    max-width: 100%;
  }

  .tmd-faq-title {
    font-size: var(--font-xl);
    margin-bottom: 1.25rem;
    line-height: 1.2;
  }

  .tmd-faq-subtitle {
    font-size: var(--font-base);
    max-width: 100%;
    margin: 0 auto 2rem auto;
    line-height: 1.5;
    padding: 0 0.5rem;
  }

  .tmd-faq-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tmd-faq-item {
    border-radius: 6px;
  }

  .tmd-faq-question {
    padding: 1rem 1.25rem;
    font-size: var(--font-sm);
  }

  .tmd-faq-answer {
    padding: 0 1.25rem 1rem 1.25rem;
    font-size: calc(var(--font-sm) * 0.9);
    line-height: 1.4;
  }
}