
/* ==========================================
   YALLA MEDITERRANEO — REACH US
========================================== */

/* PAGE OPENING */

.ru-opening {
  position: relative;
  overflow: hidden;
  padding-block: 88px 32px;
  background: var(--off-white);
}

.ru-opening::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -130px;
  width: 400px;
  height: 400px;
  border: 65px solid var(--mist);
  border-radius: 50%;
  opacity: .65;
  pointer-events: none;
}

.ru-opening-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 65px;
  padding-bottom: 85px;
}

.ru-opening h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.2rem, 6.6vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.075em;
}

.ru-opening h1 span {
  display: block;
}

.ru-accent {
  color: var(--coral);
}

.ru-opening-side > p {
  max-width: 450px;
  margin-bottom: 26px;
  font-size: 1.09rem;
  line-height: 1.85;
}

.ru-opening-rule {
  height: 3px;
  background: linear-gradient(
    to right,
    var(--blue) 0 36%,
    var(--saffron) 36% 61%,
    var(--coral) 61% 84%,
    var(--teal) 84% 100%
  );
}

/* CONTACT CARDS */

.ru-channels {
  background: var(--off-white);
}

.ru-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ru-channel-card {
  display: flex;
  flex-direction: column;
  min-height: 425px;
  overflow: hidden;
  padding: 31px;
  border-radius: var(--radius);
}

.ru-channel-blue {
  background: var(--blue);
  color: var(--off-white);
}

.ru-channel-teal {
  background: var(--teal);
  color: var(--off-white);
}

.ru-channel-sand {
  background: var(--sand);
  color: var(--navy);
}

.ru-channel-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  font-size: .82rem;
  font-weight: 850;
}

.ru-channel-symbol {
  font-size: 3.6rem;
  line-height: 1;
}

.ru-channel-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 55px;
}

.ru-channel-body h3 {
  margin-bottom: 17px;
  font-size: clamp(1.75rem, 2.5vw, 2.7rem);
  font-weight: 850;
}

.ru-channel-body > p {
  max-width: 360px;
  margin-bottom: 20px;
  font-size: .96rem;
  line-height: 1.8;
}

.ru-channel-meta,
.ru-channel-link {
  display: inline-block;
  margin-bottom: 23px;
  font-size: .76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ru-channel-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ru-channel-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin-top: auto;
  padding-block: 14px 5px;
  border-top: 1px solid currentColor;
  font-size: .88rem;
  font-weight: 850;
  transition: gap .25s;
}

.ru-channel-action:hover {
  gap: 25px;
}

/* FORM SECTION */

.ru-form-section {
  overflow: hidden;
  background: var(--navy);
  color: var(--off-white);
}

.ru-form-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.ru-form-intro h2 {
  max-width: 560px;
  margin-bottom: 25px;
}

.ru-form-intro > p:not(.eyebrow) {
  max-width: 420px;
  color: var(--mist);
  line-height: 1.85;
}

.ru-form-decoration {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 380px);
  height: 270px;
  margin-top: 50px;
  overflow: hidden;
  border: 1px solid rgba(247,248,250,.2);
  border-radius: 48% 48% 20px 20px;
  background: var(--blue);
}

.ru-form-ring {
  position: absolute;
  width: 85%;
  aspect-ratio: 1;
  border: 22px solid var(--teal);
  border-radius: 50%;
  opacity: .75;
  transform: translateY(40%);
}

.ru-form-decoration strong {
  position: relative;
  color: var(--saffron);
  font-size: 5.5rem;
  font-weight: 900;
  letter-spacing: -.09em;
  transform: rotate(-10deg);
}

.ru-form-panel {
  min-width: 0;
  padding: 37px;
  border: 1px solid rgba(247,248,250,.18);
  border-radius: var(--radius);
  background: var(--blue);
}

.ru-two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ru-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 23px;
}

.ru-field label {
  font-size: .87rem;
  font-weight: 850;
}

.ru-field input,
.ru-field select,
.ru-field textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 17px;
  border: 1px solid rgba(247,248,250,.4);
  border-radius: 12px;
  background: var(--off-white);
  color: var(--navy);
  font-size: .94rem;
}

.ru-field input,
.ru-field select {
  min-height: 52px;
}

.ru-field textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.7;
}

.ru-field input:focus,
.ru-field textarea:focus,
.ru-field select:focus {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

.ru-form-explanation {
  margin-bottom: 25px;
  color: var(--mist);
  font-size: .85rem;
  line-height: 1.75;
}

.ru-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ru-form-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.ru-form-actions button:disabled:hover {
  transform: none;
}

.ru-form-status {
  margin: 20px 0 0;
  min-height: 1.5em;
  color: var(--saffron);
  font-size: .88rem;
  line-height: 1.7;
}

/* FINAL CTA */

.ru-final {
  position: relative;
  overflow: hidden;
  background: var(--saffron);
}

.ru-final::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 420px;
  height: 420px;
  border: 70px solid var(--coral);
  border-radius: 50%;
  opacity: .25;
  pointer-events: none;
}

.ru-final-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 65px;
}

.ru-final h2 {
  max-width: 750px;
  margin: 0;
  color: var(--navy);
}

.ru-final-side > p {
  max-width: 450px;
  margin-bottom: 28px;
  line-height: 1.85;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .ru-opening-grid,
  .ru-form-grid,
  .ru-final-grid {
    gap: 40px;
  }

  .ru-channel-grid {
    gap: 13px;
  }

  .ru-channel-card {
    padding: 25px;
  }
}

@media (max-width: 850px) {
  .ru-opening {
    padding-top: 65px;
  }

  .ru-opening-grid,
  .ru-form-grid,
  .ru-final-grid {
    grid-template-columns: 1fr;
  }

  .ru-opening-grid {
    padding-bottom: 58px;
  }

  .ru-opening h1 {
    font-size: clamp(3rem, 8vw, 5.9rem);
  }

  .ru-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ru-channel-card:last-child {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .ru-form-decoration {
    display: none;
  }
}

@media (max-width: 650px) {
  .ru-opening {
    padding-top: 48px;
    padding-bottom: 20px;
  }

  .ru-opening-grid {
    gap: 25px;
    padding-bottom: 45px;
  }

  .ru-opening h1 {
    font-size: clamp(2.8rem, 10.5vw, 4.5rem);
  }

  .ru-opening-side > p {
    font-size: 1rem;
  }

  .ru-channel-grid,
  .ru-two-fields {
    grid-template-columns: 1fr;
  }

  .ru-channel-card,
  .ru-channel-card:last-child {
    grid-column: auto;
    min-height: 335px;
  }

  .ru-channel-body {
    padding-top: 35px;
  }

  .ru-form-panel {
    padding: 24px;
  }

  .ru-form-actions {
    flex-direction: column;
  }

  .ru-form-actions button {
    width: 100%;
  }

  .ru-final-grid {
    gap: 28px;
  }

  .ru-final-side .btn {
    width: 100%;
  }
}

/* RTL */

html[dir="rtl"] .ru-opening h1,
html[dir="rtl"] .ru-final h2 {
  letter-spacing: 0;
  line-height: 1.3;
}

html[dir="rtl"] .ru-form-decoration {
  direction: ltr;
}

html[dir="rtl"] .ru-field input,
html[dir="rtl"] .ru-field textarea {
  text-align: right;
}

html[dir="rtl"] .ru-field input[type="email"] {
  direction: ltr;
  text-align: left;
}


/* ==========================================
   BACKEND CONTACT FORM STATES
========================================== */

/* FIELD ERRORS */

.ru-field-error {
  display: block;
  color: #ffd6cb;
  font-size: .79rem;
  font-weight: 650;
  line-height: 1.5;
}

.ru-field-error:empty {
  display: none;
}

.ru-field input[aria-invalid="true"],
.ru-field select[aria-invalid="true"],
.ru-field textarea[aria-invalid="true"] {
  border: 2px solid #ffd6cb;
  background: #fff4f0;
}

/* ANTI-SPAM FIELD

   Hidden visually and from keyboard users.
   The backend must still validate it.
*/

.ru-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* SUBMIT BUTTON */

.ru-submit-btn {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 12px;
  min-width: 190px;
  min-height: 52px;

  cursor: pointer;
}

.ru-submit-btn:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.ru-submit-btn.is-loading {
  pointer-events: none;
}

.ru-submit-spinner {
  display: none;

  width: 17px;
  height: 17px;

  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;

  animation: ru-spin .75s linear infinite;
}

.ru-submit-btn.is-loading .ru-submit-spinner {
  display: inline-block;
}

.ru-submit-btn.is-loading .ru-submit-icon {
  display: none;
}

@keyframes ru-spin {
  to {
    transform: rotate(360deg);
  }
}

/* FORM STATUS */

.ru-form-status {
  display: none;
  margin-top: 22px;
  padding: 15px 18px;
  border-radius: 12px;

  font-size: .9rem;
  font-weight: 700;
  line-height: 1.7;
}

.ru-form-status[data-state="success"] {
  display: block;
  background: var(--mist);
  color: var(--navy);
  border-inline-start: 4px solid var(--teal);
}

.ru-form-status[data-state="error"] {
  display: block;
  background: #fff1ed;
  color: #8b3022;
  border-inline-start: 4px solid var(--coral);
}

.ru-form-status[data-state="info"],
.ru-form-status[data-state="loading"] {
  display: block;
  background: var(--navy);
  color: var(--off-white);
  border-inline-start: 4px solid var(--saffron);
}

/* Keep HTML hidden elements hidden */

.ru-form-section [hidden] {
  display: none !important;
}

/* MOBILE */

@media (max-width: 650px) {

  .ru-submit-btn {
    width: 100%;
  }

  .ru-form-status {
    padding: 13px 15px;
  }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  .ru-submit-spinner {
    animation-duration: 1.5s;
  }

}






/* ==========================================
   05 / PIF DOWNLOAD SECTION
========================================== */

.projects-pif {
  position: relative;
  overflow: hidden;
  background: var(--saffron);
}

.projects-pif::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -170px;
  width: 500px;
  height: 500px;
  border: 80px solid var(--coral);
  border-radius: 50%;
  opacity: .22;
  pointer-events: none;
}

.projects-pif-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: 65px;
}

.projects-pif-content h2 {
  max-width: 800px;
  margin-bottom: 27px;
  color: var(--navy);
  font-size: clamp(3rem, 5.5vw, 5.7rem);
  font-weight: 900;
}

.projects-pif-content h2 span {
  display: block;
}

.projects-pif-highlight {
  color: var(--blue);
}

.projects-pif-content > p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 0;
  font-size: 1.06rem;
  line-height: 1.85;
}

.projects-pif-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.projects-pif-download {
  transition:
    transform .25s var(--ease),
    background .25s,
    opacity .25s;
}

.projects-pif-download.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.projects-pif-content .projects-pif-note {
  margin-top: 18px;
  color: var(--navy);
  font-size: .83rem;
  font-weight: 650;
}

/* DECORATIVE PIF CARD */

.projects-pif-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  isolation: isolate;
}

.projects-pif-arch {
  position: absolute;
  width: 95%;
  height: 92%;
  bottom: -70px;
  border: 32px solid var(--coral);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  opacity: .32;
}

.projects-pif-paper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(82%, 335px);
  min-height: 410px;
  padding: 31px;
  border-radius: 13px;
  background: var(--off-white);
  color: var(--navy);
  box-shadow: 18px 20px 0 rgba(21,43,85,.19);
  transform: rotate(8deg);
}

.projects-pif-paper-top {
  margin-bottom: 50px;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.projects-pif-paper-line {
  display: block;
  height: 8px;
  margin-bottom: 13px;
  border-radius: 20px;
  background: var(--mist);
}

.projects-pif-paper-line.short {
  width: 60%;
}

.projects-pif-paper strong {
  margin-top: auto;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.1em;
}

.projects-pif-paper-bottom {
  margin-top: 17px;
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.projects-pif-art-circle {
  position: absolute;
  z-index: 3;
  width: 95px;
  height: 95px;
  left: -25px;
  bottom: 30px;
  border-radius: 50%;
  background: var(--teal);
}

/* PIF RESPONSIVE — copied from Projects page */
@media (max-width: 1100px) {
  .projects-pif-grid {
    gap: 45px;
  }
}

@media (max-width: 900px) {
  .projects-pif-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .projects-pif-art {
    width: min(100%, 500px);
    min-height: 390px;
    margin-inline: auto;
  }

  .projects-pif-paper {
    min-height: 350px;
  }
}

@media (max-width: 650px) {
  .projects-pif-content h2 {
    font-size: clamp(2.9rem, 10vw, 4.4rem);
  }

  .projects-pif-content > p:not(.eyebrow) {
    font-size: .98rem;
  }

  .projects-pif-actions {
    flex-direction: column;
  }

  .projects-pif-actions .btn {
    width: 100%;
  }

  .projects-pif-art {
    min-height: 335px;
  }

  .projects-pif-paper {
    width: min(75%, 260px);
    min-height: 300px;
    padding: 22px;
  }

  .projects-pif-paper-top {
    margin-bottom: 35px;
    font-size: .55rem;
  }

  .projects-pif-paper strong {
    font-size: 5rem;
  }

  .projects-pif-paper-bottom {
    font-size: .51rem;
  }

  .projects-pif-art-circle {
    width: 65px;
    height: 65px;
    left: 5px;
  }
}

/* ARABIC / RTL */
html[dir="rtl"] .projects-pif-content h2 {
  letter-spacing: 0;
  line-height: 1.3;
}

html[dir="rtl"] .projects-pif-art,
html[dir="rtl"] .projects-pif-paper {
  direction: ltr;
}

html[dir="rtl"] .projects-pif-paper strong {
  letter-spacing: -.1em;
}

html[dir="rtl"] .projects-pif-actions {
  justify-content: flex-start;
}
