/**
 * Block Styles
 * Styles for all custom blocks
 */

/* Hero Carousel */
.rh-hero-carousel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.rh-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.rh-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.rh-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.rh-slide-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .rh-slide-content {
    grid-template-columns: 2fr 1fr;
    gap: 80px;
  }
}

.rh-carousel-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.rh-carousel-dot {
  width: 48px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.rh-carousel-dot.active {
  background: var(--color-white);
}

/* Services Grid */
.rh-services-grid {
  position: relative;
}

.rh-service-card {
  padding: 40px;
  border: 1px solid var(--color-gray-light);
  transition: all 0.3s ease;
}

.rh-service-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.rh-service-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--color-primary);
  opacity: 0.2;
  margin-bottom: 20px;
}

.rh-service-link {
  color: var(--color-primary);
  font-weight: 600;
}

/* Stats Bar */
.rh-stats-bar {
  padding: 60px 0;
  background: var(--color-light-bg);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: bold;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-dark);
}

/* Forms */
.rh-form {
  max-width: 600px;
}

.rh-form input,
.rh-form textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 16px;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.rh-form input:focus,
.rh-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.rh-form-message {
  padding: 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
}

.rh-form-message-success {
  background: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.rh-form-message-error {
  background: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
}

/* FAQ */
.rh-faq-item {
  border-bottom: 1px solid var(--color-gray-light);
  padding: 24px 0;
}

.rh-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 20px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rh-faq-answer {
  display: none;
  padding-top: 16px;
}

.rh-faq-item.active .rh-faq-answer {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 44px;
}

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

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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