/*
 * RG Tecnoservice Theme — Components
 * Version: 1.0.1
 * Scope: .rg-site
 * Buttons, forms, cards, processes, CTA, FAQ and utilities.
 */

/* ==========================================================================
   06. BUTTONS
   ========================================================================== */

.rg-site .rg-btn,
.rg-site .elementor-button,
.rg-site .wpcf7-submit,
.rg-site input[type="submit"],
.rg-site button[type="submit"] {
  --rg-btn-bg: var(--rg-green-600);
  --rg-btn-color: #fff;
  --rg-btn-border: var(--rg-btn-bg);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--rg-btn-border);
  border-radius: var(--rg-radius-xs);
  color: var(--rg-btn-color) !important;
  background: var(--rg-btn-bg);
  box-shadow: none;
  font-family: var(--rg-font-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform var(--rg-transition),
    background-color var(--rg-transition),
    color var(--rg-transition),
    border-color var(--rg-transition),
    box-shadow var(--rg-transition);
}

.rg-site .rg-btn:hover,
.rg-site .elementor-button:hover,
.rg-site .wpcf7-submit:hover,
.rg-site input[type="submit"]:hover,
.rg-site button[type="submit"]:hover {
  --rg-btn-bg: var(--rg-green-700);
  --rg-btn-border: var(--rg-green-700);
  transform: translateY(-2px);
  box-shadow: var(--rg-shadow-sm);
}

.rg-site .rg-btn--blue {
  --rg-btn-bg: var(--rg-blue-800);
  --rg-btn-border: var(--rg-blue-800);
}

.rg-site .rg-btn--blue:hover {
  --rg-btn-bg: var(--rg-blue-900);
  --rg-btn-border: var(--rg-blue-900);
}

.rg-site .rg-btn--outline {
  --rg-btn-bg: transparent;
  --rg-btn-color: var(--rg-blue-800);
  --rg-btn-border: var(--rg-blue-800);
}

.rg-site .rg-btn--outline:hover {
  --rg-btn-bg: var(--rg-blue-800);
  --rg-btn-color: #fff;
}

.rg-site .rg-btn--light {
  --rg-btn-bg: #fff;
  --rg-btn-color: var(--rg-blue-900);
  --rg-btn-border: #fff;
}

.rg-site .rg-btn--ghost {
  --rg-btn-bg: transparent;
  --rg-btn-color: #fff;
  --rg-btn-border: rgba(255, 255, 255, .35);
}

.rg-site .rg-btn--small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 12px;
}

.rg-site .rg-btn--large {
  min-height: 56px;
  padding-inline: 30px;
}


/*
 * Elementor applies custom classes to the widget wrapper by default.
 * These rules allow classes such as rg-btn--blue or rg-btn--outline
 * to be placed on the Elementor Button widget itself.
 */
.rg-site .rg-btn--blue .elementor-button,
.rg-site .elementor-button.rg-btn--blue {
  --rg-btn-bg: var(--rg-blue-800);
  --rg-btn-border: var(--rg-blue-800);
}

.rg-site .rg-btn--blue .elementor-button:hover,
.rg-site .elementor-button.rg-btn--blue:hover {
  --rg-btn-bg: var(--rg-blue-900);
  --rg-btn-border: var(--rg-blue-900);
}

.rg-site .rg-btn--outline .elementor-button,
.rg-site .elementor-button.rg-btn--outline {
  --rg-btn-bg: transparent;
  --rg-btn-color: var(--rg-blue-800);
  --rg-btn-border: var(--rg-blue-800);
}

.rg-site .rg-btn--outline .elementor-button:hover,
.rg-site .elementor-button.rg-btn--outline:hover {
  --rg-btn-bg: var(--rg-blue-800);
  --rg-btn-color: #fff;
}

.rg-site .rg-btn--light .elementor-button,
.rg-site .elementor-button.rg-btn--light {
  --rg-btn-bg: #fff;
  --rg-btn-color: var(--rg-blue-900);
  --rg-btn-border: #fff;
}

.rg-site .rg-btn--ghost .elementor-button,
.rg-site .elementor-button.rg-btn--ghost {
  --rg-btn-bg: transparent;
  --rg-btn-color: #fff;
  --rg-btn-border: rgba(255, 255, 255, .35);
}

.rg-site .rg-btn--small .elementor-button {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 12px;
}

.rg-site .rg-btn--large .elementor-button {
  min-height: 56px;
  padding-inline: 30px;
}

.rg-site .rg-btn[disabled],
.rg-site .rg-btn.is-disabled {
  opacity: .45;
  pointer-events: none;
}

/* ==========================================================================
   07. FORMS
   ========================================================================== */

.rg-site .rg-field {
  display: grid;
  gap: 8px;
}

.rg-site .rg-field > label,
.rg-site .wpcf7-form label {
  color: var(--rg-blue-950);
  font-family: var(--rg-font-title);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.rg-site :is(
  .rg-input,
  .rg-select,
  .rg-textarea,
  .elementor-field,
  .elementor-field-textual,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="url"],
  input[type="search"],
  select,
  textarea
) {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #cfd8e2;
  border-radius: var(--rg-radius-xs);
  color: var(--rg-ink);
  background: #fff;
  box-shadow: none;
  outline: none;
  font-family: var(--rg-font-text);
  font-size: 15px;
  line-height: 1.4;
  transition:
    border-color var(--rg-transition),
    box-shadow var(--rg-transition),
    background-color var(--rg-transition);
}

.rg-site :is(.rg-textarea, textarea) {
  min-height: 132px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.rg-site :is(
  .rg-input,
  .rg-select,
  .rg-textarea,
  input,
  select,
  textarea
)::placeholder {
  color: #8793a0;
  opacity: 1;
}

.rg-site :is(
  .rg-input,
  .rg-select,
  .rg-textarea,
  .elementor-field,
  .elementor-field-textual,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="url"],
  input[type="search"],
  select,
  textarea
):focus {
  border-color: var(--rg-blue-700);
  box-shadow: 0 0 0 3px rgba(18, 80, 148, .11);
}

.rg-site :is(.rg-input, input, select, textarea).is-success {
  border-color: var(--rg-success);
  box-shadow: 0 0 0 3px rgba(20, 122, 56, .09);
}

.rg-site :is(.rg-input, input, select, textarea).is-error,
.rg-site .wpcf7-not-valid {
  border-color: var(--rg-danger) !important;
  box-shadow: 0 0 0 3px rgba(196, 61, 61, .09);
}

.rg-site .rg-help,
.rg-site .wpcf7-not-valid-tip {
  color: var(--rg-muted);
  font-size: 12px;
  line-height: 1.5;
}

.rg-site .rg-help--success {
  color: var(--rg-success);
}

.rg-site .rg-help--error,
.rg-site .wpcf7-not-valid-tip {
  color: var(--rg-danger);
}

.rg-site .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 12px 14px !important;
  border-width: 1px !important;
  border-radius: var(--rg-radius-xs);
  font-size: 13px;
}


/* Elementor Pro Form */
.rg-site .elementor-form .elementor-field-group {
  margin-bottom: 16px;
}

.rg-site .elementor-form .elementor-field-label {
  margin-bottom: 8px;
  color: var(--rg-blue-950);
  font-family: var(--rg-font-title);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.rg-site .elementor-form .elementor-button {
  min-height: 50px;
}

.rg-site .elementor-message {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.rg-site .elementor-message-success {
  color: var(--rg-success);
}

.rg-site .elementor-message-danger {
  color: var(--rg-danger);
}

/* ==========================================================================
   08. SERVICE CARDS
   ========================================================================== */

.rg-site .rg-card,
.rg-site .rg-service-card {
  position: relative;
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--rg-line);
  border-radius: var(--rg-radius-sm);
  background: var(--rg-surface);
  overflow: hidden;
  transition:
    transform var(--rg-transition),
    border-color var(--rg-transition),
    box-shadow var(--rg-transition);
}

.rg-site .rg-card:hover,
.rg-site .rg-service-card:hover {
  transform: translateY(-5px);
  border-color: #c9d5df;
  box-shadow: var(--rg-shadow-md);
}

.rg-site .rg-card::before,
.rg-site .rg-service-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 54px;
  height: 54px;
  border-top: 4px solid var(--rg-green-600);
  border-left: 4px solid var(--rg-green-600);
  pointer-events: none;
}

.rg-site .rg-card__icon,
.rg-site .rg-service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rg-blue-800);
  background: var(--rg-blue-100);
}

.rg-site .rg-card__icon :is(svg, img),
.rg-site .rg-service-card__icon :is(svg, img) {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.rg-site .rg-card__eyebrow,
.rg-site .rg-service-card__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--rg-green-700);
  font-family: var(--rg-font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.rg-site .rg-card :is(h3, h4),
.rg-site .rg-service-card :is(h3, h4) {
  font-weight: 600;
  line-height: 1.2;
}

.rg-site .rg-card p,
.rg-site .rg-service-card p {
  font-size: 15px;
}

.rg-site .rg-check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rg-site .rg-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--rg-muted);
  font-size: 14px;
}

.rg-site .rg-check-list li::before {
  content: "";
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  background: var(--rg-green-600);
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m9 16.2-3.5-3.5L4.1 14.1 9 19 20.3 7.7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m9 16.2-3.5-3.5L4.1 14.1 9 19 20.3 7.7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.rg-site .rg-card--feature,
.rg-site .rg-service-card--feature {
  border-color: transparent;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .075), transparent 55%),
    var(--rg-blue-900);
  box-shadow: var(--rg-shadow-md);
}

.rg-site .rg-card--feature :is(h2, h3, h4),
.rg-site .rg-service-card--feature :is(h2, h3, h4) {
  color: #fff;
}

.rg-site .rg-card--feature :is(p, li),
.rg-site .rg-service-card--feature :is(p, li) {
  color: rgba(255, 255, 255, .74);
}

.rg-site .rg-card--feature :is(.rg-card__icon, .rg-service-card__icon) {
  color: #fff;
  background: rgba(255, 255, 255, .10);
}

.rg-site .rg-card--feature :is(.rg-card__eyebrow, .rg-service-card__eyebrow) {
  color: #6de391;
}

/* ==========================================================================
   09. PROJECT CARDS
   ========================================================================== */

.rg-site .rg-project-card {
  position: relative;
  border: 1px solid var(--rg-line);
  border-radius: var(--rg-radius-sm);
  background: #fff;
  overflow: hidden;
  transition:
    transform var(--rg-transition),
    box-shadow var(--rg-transition);
}

.rg-site .rg-project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--rg-shadow-md);
}

.rg-site .rg-project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rg-blue-900);
}

.rg-site .rg-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--rg-ease);
}

.rg-site .rg-project-card:hover .rg-project-card__media img {
  transform: scale(1.035);
}

.rg-site .rg-project-card__tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--rg-blue-950);
  background: rgba(255, 255, 255, .94);
  font-family: var(--rg-font-title);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.rg-site .rg-project-card__body {
  padding: 22px 24px 25px;
}

.rg-site .rg-project-card__body h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
}

.rg-site .rg-project-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rg-muted);
  font-size: 13px;
}

/* ==========================================================================
   10. ADVANTAGES
   ========================================================================== */

.rg-site .rg-advantage-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--rg-line);
  border-radius: var(--rg-radius-sm);
  background: #fff;
}

.rg-site .rg-advantage-card__number {
  display: block;
  margin-bottom: 28px;
  color: var(--rg-green-700);
  font-family: var(--rg-font-title);
  font-size: 16px;
  font-weight: 700;
}

.rg-site .rg-advantage-card h3 {
  font-size: 21px;
  font-weight: 600;
}

.rg-site .rg-section--dark .rg-advantage-card,
.rg-site .rg-section--blue .rg-advantage-card {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
}

.rg-site .rg-section--dark .rg-advantage-card__number,
.rg-site .rg-section--blue .rg-advantage-card__number {
  color: #6de391;
}

/* ==========================================================================
   11. PROCESS
   ========================================================================== */

.rg-site .rg-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.rg-site .rg-process::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 27px;
  height: 1px;
  background: var(--rg-line);
}

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

.rg-site .rg-process-step__dot {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 7px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--rg-blue-800);
  box-shadow: 0 0 0 1px var(--rg-line);
  font-family: var(--rg-font-title);
  font-size: 13px;
  font-weight: 700;
}

.rg-site .rg-process-step:nth-child(n+3) .rg-process-step__dot {
  background: var(--rg-green-700);
}

.rg-site .rg-process-step h3 {
  font-size: 20px;
  font-weight: 600;
}

.rg-site .rg-process-step p {
  margin: 0;
  font-size: 14px;
}

/* ==========================================================================
   12. CTA BANNERS
   ========================================================================== */

.rg-site .rg-cta {
  position: relative;
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--rg-radius-lg);
  color: #fff;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .075), transparent 50%),
    var(--rg-blue-900);
  box-shadow: var(--rg-shadow-md);
  overflow: hidden;
}

.rg-site .rg-cta::before,
.rg-site .rg-cta::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  transform: rotate(32deg);
  pointer-events: none;
}

.rg-site .rg-cta::before {
  width: 54px;
  height: 310px;
  right: 140px;
  top: -90px;
  background: rgba(255, 255, 255, .08);
}

.rg-site .rg-cta::after {
  width: 58px;
  height: 350px;
  right: 50px;
  top: -120px;
  background: var(--rg-green-600);
}

.rg-site .rg-cta__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.rg-site .rg-cta :is(h2, h3) {
  color: #fff;
}

.rg-site .rg-cta p {
  color: rgba(255, 255, 255, .75);
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.rg-site .rg-faq {
  border-top: 1px solid var(--rg-line);
}

.rg-site .rg-faq__item {
  border-bottom: 1px solid var(--rg-line);
}

.rg-site .rg-faq__button {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 2px;
  border: 0;
  color: var(--rg-blue-950);
  background: transparent;
  font-family: var(--rg-font-title);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.rg-site .rg-faq__button::after {
  content: "+";
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rg-blue-800);
  background: var(--rg-blue-100);
  font-size: 20px;
  transition: transform var(--rg-transition);
}

.rg-site .rg-faq__item.is-open .rg-faq__button::after {
  transform: rotate(45deg);
}

.rg-site .rg-faq__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--rg-ease);
}

.rg-site .rg-faq__content > * {
  max-width: 790px;
  padding-bottom: 22px;
}

/* ==========================================================================
   15. UTILITIES
   ========================================================================== */

.rg-site .rg-text-blue { color: var(--rg-blue-800) !important; }
.rg-site .rg-text-green { color: var(--rg-green-700) !important; }
.rg-site .rg-text-muted { color: var(--rg-muted) !important; }
.rg-site .rg-text-white { color: #fff !important; }

.rg-site .rg-bg-white { background: #fff !important; }
.rg-site .rg-bg-soft { background: var(--rg-surface-soft) !important; }
.rg-site .rg-bg-blue { background: var(--rg-blue-900) !important; }
.rg-site .rg-bg-dark { background: var(--rg-blue-950) !important; }

.rg-site .rg-border { border: 1px solid var(--rg-line); }
.rg-site .rg-radius { border-radius: var(--rg-radius-sm); }
.rg-site .rg-shadow { box-shadow: var(--rg-shadow-md); }

.rg-site .rg-mb-0 { margin-bottom: 0 !important; }
.rg-site .rg-mb-1 { margin-bottom: 8px !important; }
.rg-site .rg-mb-2 { margin-bottom: 16px !important; }
.rg-site .rg-mb-3 { margin-bottom: 24px !important; }
.rg-site .rg-mb-4 { margin-bottom: 32px !important; }
.rg-site .rg-mb-5 { margin-bottom: 48px !important; }

.rg-site .rg-mt-0 { margin-top: 0 !important; }
.rg-site .rg-mt-1 { margin-top: 8px !important; }
.rg-site .rg-mt-2 { margin-top: 16px !important; }
.rg-site .rg-mt-3 { margin-top: 24px !important; }
.rg-site .rg-mt-4 { margin-top: 32px !important; }
.rg-site .rg-mt-5 { margin-top: 48px !important; }

.rg-site .rg-hide { display: none !important; }
