/* ==========================================================================
   AlamoSites - Components
   ========================================================================== */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-align: center;
  border-radius: var(--radius-sm);
  border: var(--border-width-thick) solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

/* Primary - Terracotta */
.btn-primary {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-hover);
  border-color: var(--color-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 92, 56, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary - Outline Slate */
.btn-secondary {
  background-color: transparent;
  color: var(--color-deep-slate);
  border-color: var(--color-deep-slate);
}

.btn-secondary:hover {
  background-color: var(--color-deep-slate);
  color: var(--color-white);
}

/* Ghost - For dark backgrounds */
.btn-ghost {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background-color: var(--color-white);
  color: var(--color-deep-slate);
  border-color: var(--color-white);
}

/* Tertiary - Text button with arrow */
.btn-text {
  padding: 0;
  background: none;
  border: none;
  color: var(--color-river-teal);
  font-weight: var(--weight-semibold);
}

.btn-text:hover {
  color: var(--color-terracotta);
}

/* Button Sizes */
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-small);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-body-lg);
}

/* Full Width */
.btn-block {
  width: 100%;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--color-limestone);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
}

.card.has-banner {
  position: relative;
  overflow: hidden;
  padding-bottom: calc(var(--space-xl) + 2.25rem);
}

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

/* Card without hover effect */
.card-static {
  composes: card;
}

.card-static:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

/* Featured Card (for pricing) */
.card-featured {
  border: var(--border-width-thick) solid var(--color-terracotta);
  position: relative;
}

.card-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  z-index: 2;
}

.card-badge.badge-inset {
  top: 0.75rem;
  transform: translateX(-50%);
}

/* Card Header */
.card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-limestone);
}

/* Card Title */
.card-title {
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-deep-slate);
  margin-bottom: var(--space-sm);
}

/* Card Body */
.card-body {
  flex: 1;
}

/* Card Footer */
.card-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-limestone);
}

/* ========================================
   PRICING CARDS
   ======================================== */

.pricing-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--color-limestone);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
}

.pricing-card.has-banner {
  position: relative;
  overflow: hidden;
  padding-bottom: calc(var(--space-xl) + 2.25rem);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
  border: var(--border-width-thick) solid var(--color-terracotta);
  position: relative;
}

.annual-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 1;
}

.pricing-tier {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-sm);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  color: var(--color-deep-slate);
  line-height: 1;
}

.pricing-period {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-soft-gray);
  margin-left: var(--space-xs);
}

.pricing-description {
  font-size: var(--text-body);
  color: var(--color-soft-gray);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.pricing-features {
  flex: 1;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--text-body);
  color: var(--color-soft-gray);
}

.pricing-features li::before {
  content: '+';
  color: var(--color-sage);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

/* ========================================
   SERVICE CARDS
   ======================================== */

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-limestone);
  transition: all var(--transition-slow);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-sage-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--color-sage);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card-title {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-deep-slate);
  margin-bottom: var(--space-sm);
}

.service-card-text {
  font-size: var(--text-body);
  color: var(--color-soft-gray);
  margin-bottom: var(--space-lg);
  flex: 1;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-deep-slate);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-deep-slate);
  background-color: var(--color-white);
  border: 1px solid var(--color-limestone);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-river-teal);
  box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-soft-gray);
  opacity: 0.6;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: var(--space-2xl);
}

.form-hint {
  font-size: var(--text-small);
  color: var(--color-soft-gray);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: var(--text-small);
  color: var(--color-error);
  margin-top: var(--space-xs);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--color-error);
}

/* ========================================
   TRUST BAR / STATS
   ======================================== */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

@media (min-width: 640px) {
  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.trust-stat {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--color-deep-slate);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.trust-label {
  font-size: var(--text-small);
  color: var(--color-soft-gray);
}

/* ========================================
   PROCESS STEPS
   ======================================== */

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-terracotta-light);
  color: var(--color-terracotta);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.process-title {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-deep-slate);
  margin-bottom: var(--space-sm);
}

.process-text {
  font-size: var(--text-body);
  color: var(--color-soft-gray);
}

/* Connector line between steps (desktop only) */
@media (min-width: 1024px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: linear-gradient(to right, var(--color-limestone), transparent);
  }
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-style: italic;
  color: var(--color-deep-slate);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-lg);
}

.testimonial-quote::before {
  content: '"';
}

.testimonial-quote::after {
  content: '"';
}

.testimonial-author {
  font-size: var(--text-body);
  color: var(--color-soft-gray);
}

.testimonial-author strong {
  color: var(--color-deep-slate);
  font-weight: var(--weight-semibold);
}

/* ========================================
   INDUSTRY CARDS
   ======================================== */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-limestone);
  transition: all var(--transition-base);
}

.industry-card:hover {
  border-color: var(--color-sage);
  transform: translateY(-2px);
}

.industry-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  color: var(--color-sage);
}

.industry-name {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-deep-slate);
}

/* ========================================
   ACCORDION / FAQ
   ======================================== */

.accordion-item {
  border-bottom: 1px solid var(--color-limestone);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-deep-slate);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.accordion-trigger:hover {
  color: var(--color-terracotta);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding-bottom: var(--space-lg);
  color: var(--color-soft-gray);
}
