/* ==========================================================================
   Squarely — Contact page
   ========================================================================== */

/* ---- Hero ---- */
.contact-hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: var(--white);
  min-height: 705px;
}
.contact-hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
}
.contact-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 158px;
}
.contact-hero__eyebrow {
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 18px;
}
.contact-hero__title {
  font-weight: 800;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: -1.5px;
  margin: 0;
  max-width: 899px;
}
.contact-hero__title .grad {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-hero__text {
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
  max-width: 808px;
  margin: 22px 0 0;
}

/* ---- Section eyebrow + heading (shared by both columns) ---- */
.eyebrow {
  font-weight: 600;
  font-size: 20px;
  color: var(--green-600);
  margin: 0 0 6px;
}
.section-title {
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  color: var(--teal-900);
  margin: 0 0 32px;
}

/* ---- Main two-column layout ---- */
.contact-main { padding: 80px 0 96px; }
.contact-main .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 730px;
  gap: 80px;
  align-items: start;
}

/* ---- Contact form ---- */
.contact-form { max-width: 646px; }
.contact-form__row {
  display: grid;
  grid-template-columns: 307px 1fr;
  gap: 17px;
}
.field {
  width: 100%;
  height: 42px;
  padding: 0 20px;
  margin-bottom: 26px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 18px;
  color: var(--teal-900);
  background: var(--white);
  border: 1px solid var(--teal-700);
  border-radius: var(--radius-pill);
}
.field--message {
  height: 274px;
  padding: 14px 20px;
  border-radius: 15px;
  resize: vertical;
}
.field::placeholder { color: var(--teal-900); opacity: 1; }
.field:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(18, 94, 89, 0.25);
}
.contact-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.contact-form__actions .btn { font-weight: 500; font-size: 18px; padding: 0 28px; }

/* ==========================================================================
   "Where to find us" — gradient card with map + city cards
   ========================================================================== */
.find-card {
  position: relative;
  width: 730px;
  max-width: 100%;
  height: 516px;
  border-radius: 35px;
  background: var(--grad-card);
}
.find-card > * { position: absolute; }

.location-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* map tiles */
.map-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.map-tile img { max-height: 100%; width: auto; }
.map-tile--uae   { left: 18px;  top: 21px;  width: 278px; height: 219px; }
.map-tile--saudi { left: 434px; top: 254px; width: 278px; height: 242px; }

/* city text cards */
.city {
  padding: 24px 30px;
}
.city--dubai     { left: 315px; top: 20px;  width: 397px; height: 102px; }
.city--abudhabi  { left: 315px; top: 138px; width: 397px; height: 102px; }
.city--riyadh    { left: 18px;  top: 253px; width: 397px; height: 243px; display: flex; flex-direction: column; justify-content: flex-end; }

.city__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 25px;
  margin: 0 0 8px;
  background: var(--grad-mint);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: max-content;
}
.city__address {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  color: var(--ink);
  margin: 0;
}

/* ---- CTA banner under the card ---- */
.find-cta {
  position: relative;
  width: 730px;
  max-width: 100%;
  min-height: 83px;
  margin-top: 29px;
  padding: 18px 30px;
  border-radius: 40px;
  background: var(--grad-cta);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 24px;
}
.find-cta__text { flex: 1; min-width: 0; }
.find-cta__title { display: block; font-weight: 700; font-size: 18px; line-height: 1.25; margin: 0 0 4px; }
.find-cta__sub   { display: block; font-weight: 300; font-size: 10px; line-height: 1.3; margin: 0; }
.find-cta__btn {
  flex: none;
  background: var(--white);
  color: var(--teal-700);
  border-radius: 30px;
  min-width: 155px;
  min-height: 48px;
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.05;
}

/* ==========================================================================
   Responsive fallback. Pixel-faithful at desktop (>=1100px); below that all
   elements remain and simply stack/resize. No horizontal overflow at any width.
   ========================================================================== */
@media (max-width: 1100px) {
  .contact-hero { min-height: 0; }
  .contact-hero .container { padding-top: 130px; padding-bottom: 70px; }
  .contact-hero__title { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; }
  .contact-hero__text { font-size: clamp(17px, 2.4vw, 24px); }

  .contact-main { padding: 64px 0 72px; }
  .contact-main .container { grid-template-columns: 1fr; gap: 56px; }
  .section-title { font-size: clamp(28px, 5vw, 40px); }

  /* form widens to full column */
  .contact-form { max-width: none; }

  /* map card stops being an absolute canvas and becomes a fluid grid */
  .find-card {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px;
  }
  .find-card > * { position: static; width: auto !important; height: auto !important; }
  .map-tile { min-height: 170px; }
  .city { min-height: 110px; }
  .city--riyadh { grid-column: 1 / -1; }

  .find-cta { width: 100%; flex-wrap: wrap; }
  .find-cta__sub { font-size: 12px; }
}

@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
  .find-card { grid-template-columns: 1fr; }
  .map-tile { min-height: 200px; }
  .find-cta { justify-content: center; text-align: center; }
  .find-cta__btn { width: 100%; }
}
