/* Landing — site colors + classic Gutenberg blocks (Laraberg-editable) */

.laraberg-landing {
  --rh-red: #DB010A;
  --rh-dark: #323642;
  --rh-heading: #363636;
  --rh-text: #545454;
  --rh-muted: #f5f5f5;
  --rh-white: #fff;
  --rh-radius: 10px;
  --rh-max: 1160px;

  direction: rtl;
  text-align: right;
  font-family: IranYekan, sans-serif;
  color: var(--rh-text);
  background: var(--rh-white);
  overflow-x: hidden;
}

.laraberg-landing *,
.laraberg-landing *::before,
.laraberg-landing *::after {
  box-sizing: border-box;
}

.laraberg-landing .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.laraberg-landing > *:not(.alignfull):not(.rh-request-form-wrap) {
  max-width: var(--rh-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.laraberg-landing > .wp-block-heading,
.laraberg-landing > h1,
.laraberg-landing > h2,
.laraberg-landing > h3,
.laraberg-landing > p,
.laraberg-landing > .wp-block-columns,
.laraberg-landing > .wp-block-buttons,
.laraberg-landing > .wp-block-image,
.laraberg-landing > .wp-block-list,
.laraberg-landing > ul,
.laraberg-landing > ol,
.laraberg-landing > .wp-block-separator,
.laraberg-landing > hr {
  max-width: var(--rh-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.laraberg-landing h1,
.laraberg-landing h2,
.laraberg-landing h3 {
  font-family: IranYekan, sans-serif;
  font-weight: 700;
  color: var(--rh-dark);
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.laraberg-landing > h2,
.laraberg-landing h2.has-text-align-center {
  font-size: 32px;
  color: var(--rh-heading);
  text-align: center;
  margin-top: 70px;
}

.laraberg-landing > h2::after,
.laraberg-landing h2.has-text-align-center::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rh-red);
  margin: 14px auto 0;
}

.laraberg-landing h1 {
  font-size: 42px;
}

.laraberg-landing h3 {
  font-size: 20px;
  color: var(--rh-heading);
}

.laraberg-landing p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--rh-text);
  margin-bottom: 14px;
}

.laraberg-landing .has-text-align-center {
  text-align: center;
}

.laraberg-landing a {
  color: var(--rh-red);
  text-decoration: none;
  transition: 0.5s;
}

.laraberg-landing a:hover {
  color: var(--rh-dark);
}

/* Cover / Hero — classic + new Gutenberg formats (Laraberg may switch between them) */
.laraberg-landing .wp-block-cover,
.laraberg-landing .wp-block-cover.alignfull {
  position: relative;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 80px 15px;
  margin-top: 0 !important;
  margin-bottom: 0;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.laraberg-landing .wp-block-cover.rh-final-cta {
  min-height: 360px;
  margin-top: 70px !important;
}

/* Dim overlay — classic (::before) and new (.wp-block-cover__background) */
.laraberg-landing .wp-block-cover.has-background-dim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rh-dark);
  opacity: 0.72;
  z-index: 1;
  pointer-events: none;
}

.laraberg-landing .wp-block-cover__background,
.laraberg-landing .wp-block-cover__gradient-background {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: var(--rh-dark) !important;
  opacity: 0.72;
  z-index: 1;
  pointer-events: none;
}

/* New Gutenberg: background as <img> inside cover */
.laraberg-landing .wp-block-cover__image-background,
.laraberg-landing .wp-block-cover > img,
.laraberg-landing .wp-block-cover .wp-block-cover__image-background {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  z-index: 0 !important;
  pointer-events: none;
}

.laraberg-landing .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.laraberg-landing .wp-block-cover h1,
.laraberg-landing .wp-block-cover h2,
.laraberg-landing .wp-block-cover p {
  color: #fff !important;
}

.laraberg-landing .wp-block-cover h1::after,
.laraberg-landing .rh-final-cta h2::after,
.laraberg-landing .wp-block-cover.rh-final-cta h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--rh-red);
  margin: 18px auto 0;
}

/* Buttons */
.laraberg-landing .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px auto;
}

.laraberg-landing .wp-block-buttons.aligncenter {
  text-align: center;
  justify-content: center;
}

.laraberg-landing .wp-block-button__link,
.laraberg-landing .rh-btn-primary,
.laraberg-landing .rh-btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  font-family: IranYekan, sans-serif;
  transition: 0.5s;
  cursor: pointer;
  line-height: 1.4;
  border: 0;
  text-decoration: none !important;
}

.laraberg-landing .wp-block-button__link,
.laraberg-landing .rh-btn-primary {
  background-color: var(--rh-red) !important;
  color: #fff !important;
}

.laraberg-landing .wp-block-button__link:hover,
.laraberg-landing .rh-btn-primary:hover {
  background-color: var(--rh-dark) !important;
  color: #fff !important;
}

.laraberg-landing .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

.laraberg-landing .wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #fff !important;
  color: var(--rh-dark) !important;
}

.laraberg-landing > .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link,
.laraberg-landing .rh-btn-secondary {
  background: transparent !important;
  color: var(--rh-dark) !important;
  border: 2px solid var(--rh-dark) !important;
}

.laraberg-landing > .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover,
.laraberg-landing .rh-btn-secondary:hover {
  background: var(--rh-dark) !important;
  color: #fff !important;
}

/* Columns */
.laraberg-landing .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px auto 10px;
}

.laraberg-landing .wp-block-column {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--rh-white);
  border-radius: var(--rh-radius);
  box-shadow: 0 0 20px 0 rgba(220, 220, 220, 0.55);
  padding: 24px 18px;
  transition: 0.5s;
}

.laraberg-landing .wp-block-column:hover {
  transform: translateY(-8px);
}

.laraberg-landing .wp-block-column .wp-block-image {
  margin: -24px -18px 16px;
}

.laraberg-landing .wp-block-column .wp-block-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: var(--rh-radius) var(--rh-radius) 0 0;
}

.laraberg-landing .wp-block-column figcaption {
  text-align: center;
  font-weight: 600;
  color: var(--rh-heading);
  margin-top: 10px;
  line-height: 1.7;
  padding: 0 8px;
}

.laraberg-landing .wp-block-column figcaption a {
  color: var(--rh-heading);
  font-size: 18px;
}

.laraberg-landing .wp-block-column figcaption a:hover {
  color: var(--rh-red);
}

.laraberg-landing .wp-block-column h3.has-text-align-center::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--rh-red);
  margin: 0 auto 16px;
}

/* Images outside cards */
.laraberg-landing > .wp-block-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--rh-radius);
  display: block;
}

.laraberg-landing > .wp-block-image figcaption {
  text-align: center;
  margin-top: 12px;
  color: #888;
}

/* Separator */
.laraberg-landing .wp-block-separator,
.laraberg-landing hr.wp-block-separator {
  border: 0;
  border-top: 1px solid #ebebeb;
  margin: 50px auto;
  max-width: 200px;
  background: none;
}

/* Steps list */
.laraberg-landing .rh-steps-list,
.laraberg-landing ol.rh-steps-list {
  max-width: 780px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: rh-step;
}

.laraberg-landing .rh-steps-list li {
  position: relative;
  list-style: none;
  background: var(--rh-muted);
  border-radius: var(--rh-radius);
  padding: 18px 72px 18px 20px;
  margin-bottom: 14px;
  line-height: 1.8;
  counter-increment: rh-step;
}

.laraberg-landing .rh-steps-list li::before {
  content: counter(rh-step);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rh-red);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laraberg-landing ul:not(.rh-steps-list) {
  padding-right: 22px;
  line-height: 2;
  margin: 0 auto 24px;
  max-width: 780px;
}

.laraberg-landing ul:not(.rh-steps-list) li::marker {
  color: var(--rh-red);
}

/* FAQ headings */
.laraberg-landing > h3:not(.has-text-align-center) {
  max-width: 860px;
  margin: 28px auto 8px;
  padding: 16px 20px;
  background: var(--rh-muted);
  border-radius: var(--rh-radius) var(--rh-radius) 0 0;
  border-right: 4px solid var(--rh-red);
  font-size: 18px;
}

.laraberg-landing > h3 + p {
  max-width: 860px;
  margin: 0 auto 8px;
  padding: 0 20px 18px;
  background: var(--rh-muted);
  border-radius: 0 0 var(--rh-radius) var(--rh-radius);
}

/* Form partial */
.laraberg-landing .rh-request-form-wrap {
  max-width: var(--rh-max);
  margin: 10px auto 20px;
  padding: 0 15px;
}

.laraberg-landing .rh-request-form {
  max-width: 860px;
  margin: 0 auto;
  background: var(--rh-white);
  border-radius: var(--rh-radius);
  box-shadow: 0 0 20px 0 rgba(220, 220, 220, 0.55);
  padding: 30px 28px;
}

.laraberg-landing .rh-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.laraberg-landing .rh-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--rh-heading);
}

.laraberg-landing .rh-form-grid .rh-span-2 {
  grid-column: 1 / -1;
}

.laraberg-landing .rh-form-grid input,
.laraberg-landing .rh-form-grid select,
.laraberg-landing .rh-form-grid textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  padding: 12px 14px;
  font-weight: 400;
  font-family: IranYekan, sans-serif;
  font-size: 15px;
  color: var(--rh-text);
  background: #fff;
}

.laraberg-landing .rh-form-grid input:focus,
.laraberg-landing .rh-form-grid select:focus,
.laraberg-landing .rh-form-grid textarea:focus {
  outline: 0;
  border-color: var(--rh-red);
  box-shadow: 0 0 0 3px rgba(219, 1, 10, 0.08);
}

.laraberg-landing .rh-form-grid small {
  font-weight: 400;
  color: #888;
  font-size: 12px;
  line-height: 1.6;
}

.laraberg-landing .rh-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.laraberg-landing .rh-form-note {
  margin-top: 14px;
  color: var(--rh-heading);
  background: #fff5f5;
  border: 1px solid #ffd6d6;
  border-radius: 5px;
  padding: 12px 14px;
  font-size: 14px;
}

@media (max-width: 991px) {
  .laraberg-landing h1 { font-size: 32px; }
  .laraberg-landing > h2,
  .laraberg-landing h2.has-text-align-center { font-size: 26px; margin-top: 50px; }
  .laraberg-landing .wp-block-cover { min-height: 420px; padding: 60px 15px; }
}

@media (max-width: 767px) {
  .laraberg-landing h1 { font-size: 26px; }
  .laraberg-landing > h2,
  .laraberg-landing h2.has-text-align-center { font-size: 22px; }
  .laraberg-landing .wp-block-column { flex: 1 1 100%; }
  .laraberg-landing .rh-form-grid { grid-template-columns: 1fr; }
  .laraberg-landing .rh-request-form { padding: 22px 16px; }
  .laraberg-landing .rh-steps-list li { padding-right: 66px; }
  .laraberg-landing .wp-block-column .wp-block-image img { height: 180px; }
}
