/* ================================================================
   OMMO v2 — Secondary page: DESPRE
   Depends on: tokens.css, typography.css, layout.css, flatsome.css
   ================================================================ */

.ommo-page-hero--about {
  padding-bottom: 56px;
}

.ommo-about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
}

.ommo-about-intro p {
  max-width: 560px;
  margin: 0 !important;
  font-family: var(--ommo-font-body);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ommo-ink);
  text-wrap: pretty;
}

.ommo-about-quote {
  max-width: 560px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--ommo-ink) 30%, transparent);
  font-family: var(--ommo-font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ommo-ink);
  text-wrap: balance;
}

.ommo-about-quote em {
  font-style: italic;
  color: var(--ommo-taupe-deep);
}

.ommo-photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ommo-cream-2);
  color: var(--ommo-ink);
}

.ommo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Proporții media */

.ommo-about-hero-photo {
  aspect-ratio: 16 / 7;
}

.ommo-photo--portrait {
  aspect-ratio: 4 / 5;
}

.ommo-photo--square {
  aspect-ratio: 1 / 1;
}

.ommo-photo--wide {
  aspect-ratio: 4 / 3;
}

/* Hero image section */

.ommo-section--about-hero-image {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Split identitate */

.ommo-about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.ommo-about-split__text {
  min-width: 0;
}

.ommo-about-split__text .ommo-section-title {
  margin: 16px 0 20px !important;
}

.ommo-about-split__text p {
  max-width: 520px;
  margin: 0 0 16px !important;
  font-family: var(--ommo-font-body);
  font-size: 17px;
  line-height: 1.55;
  color: inherit;
  text-wrap: pretty;
}

.ommo-about-split__media {
  min-width: 0;
}

/* Section head local fallback */

.ommo-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.ommo-section-head .ommo-section-title {
  margin: 0 !important;
}

/* Principii */

.ommo-principles {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.ommo-principles li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.ommo-principles li:nth-child(odd) {
  padding-right: 24px;
  border-right: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.ommo-principles li:nth-child(even) {
  padding-left: 24px;
}

.ommo-principles li span {
  font-family: var(--ommo-font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .12em;
  opacity: .55;
}

.ommo-principles li strong {
  font-family: var(--ommo-font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: lowercase;
}

.ommo-principles li em {
  font-family: var(--ommo-font-display);
  font-size: 22px;
  line-height: 1.05;
  font-style: italic;
  letter-spacing: -.01em;
  opacity: .75;
}

/* Galerie DESPRE */

.ommo-about-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
  margin-top: 32px;
}

.ommo-about-gallery .ommo-photo {
  height: 100%;
}

.ommo-about-gallery__a {
  grid-column: span 4;
  grid-row: span 4;
}

.ommo-about-gallery__b {
  grid-column: span 4;
  grid-row: span 3;
}

.ommo-about-gallery__c {
  grid-column: span 4;
  grid-row: span 3;
}

.ommo-about-gallery__d {
  grid-column: 5 / span 4;
  grid-row: span 2;
}

.ommo-about-gallery__e {
  grid-column: 9 / span 4;
  grid-row: span 4;
  margin-top: -120px;
}

/* Contact strip */

.ommo-about-contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.ommo-about-contact .ommo-section-title {
  margin-top: 8px !important;
}

.ommo-about-contact__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.ommo-about-contact__info p {
  margin: 0 !important;
  font-family: var(--ommo-font-body);
  font-size: 20px;
  line-height: 1.4;
  color: inherit;
}

.ommo-about-contact__info > div:nth-child(3) p {
  font-size: 16px;
}

/* Backward compatibility cu clasele vechi din sistem */

.ommo-page-intro__text,
.ommo-page-intro__text p {
  max-width: 560px;
  margin: 0 !important;
  font-family: var(--ommo-font-body);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ommo-ink);
  text-wrap: pretty;
}

.ommo-page-intro__quote {
  max-width: 560px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--ommo-ink) 30%, transparent);
  font-family: var(--ommo-font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ommo-ink);
  text-wrap: balance;
}

.ommo-page-intro__quote em {
  font-style: italic;
  color: var(--ommo-taupe-deep);
}

.ommo-photo--banner {
  aspect-ratio: 16 / 7;
}

.ommo-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
  margin-top: 32px;
}

.ommo-gallery__item {
  overflow: hidden;
}

.ommo-gallery__item--a {
  grid-column: span 4;
  grid-row: span 4;
}

.ommo-gallery__item--b {
  grid-column: span 4;
  grid-row: span 3;
}

.ommo-gallery__item--c {
  grid-column: span 4;
  grid-row: span 3;
}

.ommo-gallery__item--d {
  grid-column: 5 / span 4;
  grid-row: span 2;
}

.ommo-gallery__item--e {
  grid-column: 9 / span 4;
  grid-row: span 4;
  margin-top: -120px;
}

.ommo-gallery__item .ommo-photo {
  height: 100%;
}

/* Responsive */

@media (max-width: 820px) {
  .ommo-page-hero--about {
    padding-bottom: 48px;
  }

  .ommo-about-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ommo-about-intro p,
  .ommo-page-intro__text,
  .ommo-page-intro__text p {
    font-size: 18px;
  }

  .ommo-about-quote,
  .ommo-page-intro__quote {
    max-width: none;
  }

  .ommo-about-hero-photo,
  .ommo-photo--banner {
    aspect-ratio: 4 / 5;
  }

  .ommo-about-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ommo-section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .ommo-principles {
    grid-template-columns: 1fr;
  }

  .ommo-principles li,
  .ommo-principles li:nth-child(odd),
  .ommo-principles li:nth-child(even) {
    grid-template-columns: 48px 1fr;
    padding-inline: 0;
    border-right: 0;
  }

  .ommo-principles li em {
    grid-column: 2;
  }

  .ommo-about-gallery,
  .ommo-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .ommo-about-gallery__a,
  .ommo-gallery__item--a {
    grid-column: span 2;
    grid-row: span 2;
  }

  .ommo-about-gallery__b,
  .ommo-about-gallery__c,
  .ommo-gallery__item--b,
  .ommo-gallery__item--c {
    grid-column: span 1;
    grid-row: span 1;
  }

  .ommo-about-gallery__d,
  .ommo-gallery__item--d {
    grid-column: span 2;
    grid-row: span 1;
  }

  .ommo-about-gallery__e,
  .ommo-gallery__item--e {
    grid-column: span 2;
    grid-row: span 2;
    margin-top: 0;
  }

  .ommo-about-contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ommo-about-contact__info {
    grid-template-columns: 1fr;
  }
}

/* Fluent Forms — Contact form on DESPRE (form ID 3). */
#fluentform_3 .ff-el-form-control {
  border-radius: 5px !important;
}

/* Keep the two Name subfields top-aligned when inline validation adds height. */
#fluentform_3 .ff-name-field-wrapper > .ff-t-container {
  align-items: flex-start !important;
}


/* Fluent Forms — Submit CTA aligned with the OMMO primary button system. */
#fluentform_3 .ff-btn-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 46px !important;
  padding: 14px 22px !important;
  border-radius: var(--ommo-radius-pill) !important;
  border: 1px solid var(--ommo-ink) !important;
  background: var(--ommo-ink) !important;
  color: var(--ommo-cream) !important;
  font-family: var(--ommo-font-mono) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition:
    transform 160ms var(--ommo-ease),
    background 180ms var(--ommo-ease),
    color 180ms var(--ommo-ease),
    border-color 180ms var(--ommo-ease) !important;
}

#fluentform_3 .ff-btn-submit::after {
  content: "→";
  display: inline-block;
  line-height: 1;
  transition: transform 220ms var(--ommo-ease);
}

#fluentform_3 .ff-btn-submit:hover {
  background: var(--ommo-ink-soft) !important;
  color: var(--ommo-cream) !important;
  border-color: var(--ommo-ink-soft) !important;
  transform: translateY(-2px);
}

#fluentform_3 .ff-btn-submit:hover::after {
  transform: translateX(4px);
}

#fluentform_3 .ff-btn-submit:active {
  transform: translateY(0) scale(.98);
}

@media (hover: none) {
  #fluentform_3 .ff-btn-submit:hover {
    transform: none;
  }

  #fluentform_3 .ff-btn-submit:hover::after {
    transform: none;
  }
}
