/* =========================================================
   For companies (partners.html)
   Oct 2026 polish: a real Abu Dhabi tree in an arch (hero) · four moments on a dune band ·
   the moment: your company's name on the card that comes with each tree (type it, see it) ·
   the ending: one short enquiry on the green band, sent through WhatsApp.
   Logical properties only, so the Arabic layout mirrors without overrides.
   ========================================================= */

/* ---------- 1 · hero: the shared .page-hero / .hero-grid, with an arched photo ---------- */
.biz-hero-copy .label { margin-block-end: 1rem; }
.biz-hero-actions { margin-block-start: 2rem; }

.biz-arch {
  --ah: clamp(380px, calc(100svh - var(--header-h) - 12rem), 600px);   /* the arch's height */
  position: relative; margin: 0; justify-self: center;
  width: min(calc(100% - 20px), calc(var(--ah) * .8)); aspect-ratio: 4 / 5;
}
.biz-arch-photo, .biz-arch-line { position: absolute; border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px; }
.biz-arch-photo {
  inset: 0; overflow: hidden; isolation: isolate; background: var(--athar-sand);
  box-shadow: 0 30px 70px rgba(104, 73, 37, .2);
}
.biz-arch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.biz-arch-line { inset-block: -18px 18px; inset-inline: 18px -18px; border: 1px solid rgba(104, 73, 37, .32); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .biz-arch-photo img { animation: biz-settle 2.4s var(--ease) both; }
}
@keyframes biz-settle { from { transform: scale(1.06); } to { transform: none; } }

@media (max-width: 960px) {
  .biz-arch { --ah: min(560px, 118vw); width: min(calc(100% - 20px), 420px); margin-block-start: 1.5rem; }
}
@media (max-width: 520px) {
  .biz-hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- 2 · who it's for: four columns between hairlines, on the dune band ---------- */
.biz-who .section-head { margin-block-end: clamp(2rem, 3.5vw, 3rem); }
.biz-moments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-block-start: 1.5px solid var(--athar-brown); }
.biz-moments > li { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1rem, 2vw, 2rem) .5rem; border-inline-start: 1px solid rgba(104, 73, 37, .22); }
.biz-moments > li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.biz-moments > li:last-child { padding-inline-end: 0; }
.biz-moments .disc { background: var(--athar-cream); margin-block-end: .35rem; }
.aud-title { font-weight: 800; font-size: 1.3rem; line-height: 1.25; color: var(--athar-green); }
html[lang="ar"] .aud-title { font-family: var(--font-arabic-display); font-weight: 700; font-size: 1.35rem; }
.aud-text { color: var(--muted); max-width: 26ch; text-wrap: pretty; }
html[lang="ar"] .aud-text { font-size: 1.0625rem; line-height: 1.8; }

@media (max-width: 960px) {
  .biz-moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-moments > li { padding-inline: 0 1.5rem; border-inline-start: 0; }
  .biz-moments > li:nth-child(even) { padding-inline: 1.5rem 0; border-inline-start: 1px solid rgba(104, 73, 37, .22); }
  .biz-moments > li:nth-child(n + 3) { border-block-start: 1px solid rgba(104, 73, 37, .22); }
}
/* phones: compact rows, the disc beside the words */
@media (max-width: 620px) {
  .biz-moments { grid-template-columns: 1fr; }
  .biz-moments > li, .biz-moments > li:nth-child(even) {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: .1rem; align-items: start;
    padding: 1.15rem 0; border-inline-start: 0;
  }
  .biz-moments > li + li { border-block-start: 1px solid rgba(104, 73, 37, .22); }
  .biz-moments .disc { grid-row: span 2; width: 52px; height: 52px; margin: 0; }
  .biz-moments .disc .ms { font-size: 26px; }
  .aud-title { font-size: 1.2rem; margin-block-start: .1rem; }
  .aud-text { max-width: none; }
}

/* ---------- 3 · the moment: your name on the card, in front of the box ---------- */
.cb-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas: "stage copy" "stage try"; grid-template-rows: 1fr 1fr;
  column-gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.cb-copy { grid-area: copy; align-self: end; }
.cb-copy .label { margin-block-end: .9rem; }
.cb-text { max-width: 40ch; color: var(--athar-ink); font-size: 1.125rem; line-height: 1.6; }
html[lang="ar"] .cb-text { font-size: 1.1875rem; line-height: 1.85; max-width: 44ch; }

/* One composition at every width: the stage is a size container, so the plinth, the box photo and the
   card all scale together (cqi = 1% of the stage's width). */
.cb-stage { grid-area: stage; position: relative; margin: 0; container-type: inline-size; }
/* the box photo is matched to the dune tone, so it sits on the plinth with no seam; the card stands a
   little in front of it */
.cb-plinth { display: block; aspect-ratio: 5 / 4; margin-block-end: 8.7cqi; border-radius: 32px; overflow: hidden; background: var(--athar-dune); }
.cb-plinth img { width: 100%; height: 100%; object-fit: contain; object-position: 62% 40%; padding: 9% 6% 5% 10%; }

/* the card: a physical object, so it never mirrors. direction:ltr also anchors its insets, so it always
   stands at the box's right corner, in front of the box: the card and the box, the two things that come
   with each tree (the photo's sand keepsake stays hidden behind the card) */
.cb-card {
  --cw: 34.5cqi;
  position: absolute; inset-block-end: 0; inset-inline-end: 8.2%; z-index: 1;
  width: var(--cw); aspect-ratio: 54 / 86; direction: ltr;
  display: grid; justify-items: center; align-content: start;
  padding: calc(var(--cw) * .17) calc(var(--cw) * .1) 0; border-radius: calc(var(--cw) * .07);
  background: linear-gradient(165deg, var(--athar-ivory) 0%, var(--athar-cream) 55%, var(--athar-dune) 100%);
  box-shadow: 0 34px 50px rgba(56, 40, 20, .22), 0 6px 14px rgba(56, 40, 20, .12), inset 0 0 0 1px rgba(104, 73, 37, .08);
  transform: rotate(-4deg); transform-origin: 50% 100%;
}
.cb-logo { width: 64%; height: auto; }
.cb-rule { width: 26%; height: 1px; margin-block: 12% 9%; background: var(--athar-brown); opacity: .45; }
/* a long name is set smaller, with less tracking, and the logo makes room for it */
.cb-card.is-long .cb-logo { width: 54%; }
.cb-card.is-long .cb-rule { margin-block: 9% 7%; }
.cb-card.is-longer .cb-logo { width: 48%; }
.cb-name {
  display: block; max-width: 100%; text-align: center; unicode-bidi: plaintext;
  font-family: var(--font-latin); font-weight: 700; font-size: max(10.5px, calc(var(--cw) * .062)); line-height: 1.3;
  letter-spacing: .16em; text-transform: uppercase; color: var(--athar-brown); overflow-wrap: anywhere;
  transition: opacity .25s;
}
/* Arabic names: no tracking (it breaks the joins), the Arabic face, a touch larger */
.cb-name.is-ar, html[lang="ar"] .cb-name:not(.is-typed) { font-family: var(--font-arabic-display); letter-spacing: 0; text-transform: none; font-size: max(12px, calc(var(--cw) * .072)); }
.cb-card.is-long .cb-name { font-size: max(9px, calc(var(--cw) * .053)); letter-spacing: .09em; line-height: 1.25; }
.cb-card.is-longer .cb-name { font-size: max(8.5px, calc(var(--cw) * .048)); letter-spacing: .06em; }
.cb-card.is-long .cb-name.is-ar { font-size: max(10.5px, calc(var(--cw) * .062)); letter-spacing: 0; line-height: 1.45; }
.cb-card.is-longer .cb-name.is-ar { font-size: max(10px, calc(var(--cw) * .056)); }
.cb-name:not(.is-typed) { opacity: .7; }
.cb-nfc { position: absolute; inset-block-end: 6%; inset-inline-end: 9%; font-size: calc(var(--cw) * .085); color: var(--athar-green); }

.cb-try { grid-area: try; align-self: start; margin-block-start: clamp(1.5rem, 2.6vw, 2.25rem); padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); max-width: 34rem; }
.cb-try > label { display: inline-flex; align-items: center; gap: .45rem; margin-block-end: .6rem; font-weight: 700; font-size: .9375rem; color: var(--athar-brown); }
.cb-try > label .ms { font-size: 1.15rem; color: var(--athar-green); }
.cb-try-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.cb-try-row .input { flex: 1 1 14rem; min-width: 0; }
.cb-try-row .btn { flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .cb-card { transition: transform .6s var(--ease); }
  .cb-stage:hover .cb-card, .cb-card.is-live { transform: rotate(-2deg) translateY(-1cqi); }
}

@media (max-width: 960px) {
  .cb-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "try"; grid-template-rows: none; row-gap: 2rem; }
  .cb-copy { align-self: start; }
  .cb-stage { max-width: 40rem; }
  .cb-try { margin-block-start: 0; }
}
@media (max-width: 520px) {
  .cb-plinth { border-radius: 24px; }
  .cb-try-row .btn { flex: 1 1 100%; }
}

/* ---------- 4 · the ending: the enquiry on the green band ---------- */
.biz-enquire-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.biz-enquire-copy { padding-block-start: clamp(0rem, 2vw, 1.5rem); }
.biz-enquire-copy .label { margin-block-end: 1rem; }
.biz-enquire-copy .lead { text-wrap: pretty; }
.biz-promise { margin-block-start: 2rem; padding-block-start: 1.25rem; border-block-start: 1px solid rgba(252, 248, 239, .22); }

/* the card keeps its own ink inside the green band */
.biz-form, .biz-done { color: var(--athar-ink); box-shadow: 0 30px 70px rgba(20, 30, 18, .28); }
.biz-form { display: grid; gap: 1.4rem; padding: clamp(1.4rem, 2.6vw, 2.25rem); }
.biz-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1rem; }
.biz-form-grid .span-2 { grid-column: 1 / -1; }
.biz-form .opt { font-weight: 400; color: var(--muted); font-size: .875rem; }
.biz-form .chips { gap: .45rem; }
.biz-form .chip:not([aria-checked="true"]):hover { border-color: var(--athar-brown); }
.biz-form .textarea { min-height: 6.5rem; }
.biz-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.biz-note { flex: 1; min-width: 12rem; font-size: .875rem; color: var(--muted); text-wrap: balance; }
html[lang="ar"] .biz-note { font-size: .9375rem; }
.biz-done { display: grid; gap: 1rem; justify-items: start; padding: clamp(1.5rem, 3vw, 2.5rem); }
.section.green .biz-done .h3 { color: var(--athar-green); }
.biz-done:focus { outline: none; }
.biz-form[hidden], .biz-done[hidden] { display: none; }

@media (max-width: 960px) {
  .biz-enquire-grid { grid-template-columns: 1fr; }
  .biz-enquire-copy { padding-block-start: 0; }
}
@media (max-width: 560px) {
  .biz-form-grid { grid-template-columns: 1fr; }
  .biz-form-foot .btn { width: 100%; }
}
