/* Component Styles */

/* Service Card */
.service-card {
  background-color: transparent;
  padding: var(--spacing-lg);
  border-radius: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.05s linear;
  will-change: transform;
}

.service-card.animate {
  opacity: 1;
}

.service-card-inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  height: 100%;
}

.service-number {
  width: 100%;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}

.service-number-img {
  width: auto;
  height: clamp(60px, 12vw, 100px);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-card.animate .service-number-img {
  opacity: 0.5;
  transform: translateY(0);
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex: 1;
}

.service-title {
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: var(--font-extrabold);
  letter-spacing: 0.05em;
  margin: 0;
  color: var(--color-dark);
}

.service-description {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-dark);
  margin: 0 0 var(--spacing-sm) 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: auto;
}

.service-tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: rgba(194, 201, 188, 0.2);
  border-radius: 2px;
  font-size: clamp(10px, 1.5vw, 12px);
  color: var(--color-dark);
  font-weight: var(--font-regular);
  white-space: nowrap;
}

/* Tablet and Desktop Layout */
@media (min-width: 768px) {
  .service-card {
    padding: var(--spacing-xl);
  }

  .service-card-inner {
    flex-direction: row;
    gap: var(--spacing-lg);
    align-items: flex-start;
  }

  .service-number {
    width: auto;
    flex-shrink: 0;
    height: clamp(80px, 10vw, 120px);
  }

  .service-number-img {
    height: clamp(80px, 10vw, 120px);
  }

  .service-content {
    flex: 1;
  }

  .service-title {
    font-size: clamp(16px, 2vw, 20px);
  }
}

/* Desktop Only */
@media (min-width: 1200px) {
  .service-card {
    padding: var(--spacing-2xl);
  }

  .service-number {
    height: 140px;
  }

  .service-number-img {
    height: 140px;
  }

  .service-description {
    font-size: 16px;
  }
}

/* Feature Card */
.feature-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  opacity: 0;
}

.feature-card.animate {
  animation: slideUp 0.8s ease-out both;
}

/* Staggered delays for each card */
.feature-card:nth-child(1).animate {
  animation-delay: 0.2s;
}

.feature-card:nth-child(2).animate {
  animation-delay: 0.35s;
}

.feature-card:nth-child(3).animate {
  animation-delay: 0.5s;
}

/* Scale up animation keyframes */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.feature-graphic {
  width: 80px;
  height: 80px;
  margin-bottom: var(--spacing-sm);
  opacity: 0;
}

.feature-card.animate .feature-graphic {
  animation: scaleUp 0.6s ease-out both;
}

/* Staggered delays for graphics (starts after card) */
.feature-card:nth-child(1).animate .feature-graphic {
  animation-delay: 0.4s;
}

.feature-card:nth-child(2).animate .feature-graphic {
  animation-delay: 0.55s;
}

.feature-card:nth-child(3).animate .feature-graphic {
  animation-delay: 0.7s;
}

.feature-title {
  font-size: var(--font-size-lg);
  margin: 0;
  margin-bottom: var(--spacing-sm);
  color: #E9ECE7;
  font-weight: var(--font-extrabold);
}

.feature-description {
  color: #A0A69B;
  line-height: 1.7;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 43px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-regular);
  color: var(--color-white);
}

.form-input,
.form-textarea {
  padding: 8px 8px 8px 0px;
  border: none;
  border-bottom: 1px solid #434343;
  border-radius: 0;
  background-color: transparent;
  color: var(--color-white);
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 32px;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: #9ba691;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ba691;
  font-size: 18px;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
  padding-bottom: 8px;
}

/* Budget Selection */
.budget-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.budget-label {
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 32px;
  color: #9ba691;
}

.budget-options {
  display: flex;
  gap: 24px;
  width: 100%;
}

.budget-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 8px;
  border: 1px solid #9ba691;
  border-radius: 500px;
  background-color: transparent;
  color: #9ba691;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.budget-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.budget-btn.selected {
  border-color: #9ba691;
  background-color: rgba(155, 166, 145, 0.1);
  color: #9ba691;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .budget-options {
    flex-direction: column;
    gap: 12px;
  }

  .budget-btn {
    width: 100%;
  }

  .btn-submit {
    width: 100%;
  }
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-regular);
  border-radius: 4px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-sage);
  color: var(--color-dark);
  border: 1px solid var(--color-sage);
}

.btn-primary:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-submit {
  height: 48px;
  width: 273px;
  padding: 16px;
  border: 1px solid #9ba691;
  border-radius: 8px;
  background-color: transparent;
  color: #9ba691;
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-submit:hover {
  background-color: rgba(155, 166, 145, 0.1);
  border-color: #c2c9bc;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Messages */
.form-message {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 4px;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-sm);
}

.form-message.success {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
  background-color: rgba(244, 67, 54, 0.2);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.form-message.hidden {
  display: none;
}

/* Footer Info */
.footer-info h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-copyright {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* Section Titles */
.section-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-xl);
}

/* Slide up animation keyframes */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features section title animation */
.features .section-title {
  opacity: 0;
}

.features .section-title.animate {
  animation: slideUp 0.8s ease-out 0.2s both;
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  font-weight: var(--font-light);
  max-width: 600px;
  margin-bottom: var(--spacing-xl);
}
