/* CMS pages — /pages/{slug} — match mashaer.store/AboutUs */

.mashaer-page {
  --page-primary: #3b2b22;
  --page-body: #784824;
  --page-border: #ede5d8;
  --page-cream: #faf6ef;
  background: #fff;
  color: var(--page-primary);
  padding: 48px 16px 72px;
}

@media (min-width: 640px) {
  .mashaer-page {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.mashaer-page__shell {
  max-width: 896px;
  margin: 0 auto;
}

.mashaer-page__title {
  margin: 0 0 32px;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--page-primary);
}

.mashaer-page__card {
  border: 1px solid var(--page-border);
  background: rgba(255, 255, 255, 0.8);
  padding: 32px;
}

.mashaer-page__content {
  color: var(--page-body);
  font-size: 18px;
  line-height: 1.75;
  text-align: start;
}

.mashaer-page__content > *:first-child {
  margin-top: 0;
}

.mashaer-page__content > *:last-child {
  margin-bottom: 0;
}

.mashaer-page__content p {
  margin: 0 0 16px;
  color: var(--page-body);
  font-size: 18px;
  line-height: 1.75;
}

.mashaer-page__content a {
  color: var(--page-primary);
  text-decoration: underline;
}

.mashaer-page__content h2,
.mashaer-page__content h3 {
  margin: 24px 0 12px;
  color: var(--page-primary);
  font-weight: 700;
}

.mashaer-page__content ul,
.mashaer-page__content ol {
  margin: 0 0 16px;
  padding-inline-start: 1.25em;
}

@media (max-width: 639px) {
  .mashaer-page {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .mashaer-page__title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .mashaer-page__card {
    padding: 20px;
  }

  .mashaer-page__content,
  .mashaer-page__content p {
    font-size: 16px;
  }
}

/* Contact page — /pages/contact — match mashaer.store/Contact */

.mashaer-page--contact .mashaer-page__shell {
  max-width: 640px;
}

.mashaer-page__lead {
  margin: -16px 0 32px;
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
  color: var(--page-body);
}

.mashaer-page__content--intro {
  margin-bottom: 24px;
  text-align: center;
  font-size: 16px;
}

.mashaer-contact__form-card {
  margin-bottom: 24px;
}

.mashaer-contact__form {
  text-align: start;
}

.mashaer-contact__row {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .mashaer-contact__row {
    grid-template-columns: 1fr 1fr;
  }
}

.mashaer-contact__field {
  margin-bottom: 16px;
}

.mashaer-contact__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--page-primary);
}

.mashaer-contact__field input,
.mashaer-contact__field textarea {
  width: 100%;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--page-primary);
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.mashaer-contact__field textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
  line-height: 1.75;
}

.mashaer-contact__field input:focus,
.mashaer-contact__field textarea:focus {
  border-color: var(--page-primary);
}

.mashaer-contact__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 4px;
  background: #1a2f26;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mashaer-contact__submit:hover,
.mashaer-contact__submit:focus-visible {
  background: #14251e;
}

.mashaer-contact__info {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .mashaer-contact__info {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mashaer-contact__info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: 1px solid var(--page-border);
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mashaer-contact__info-card:hover,
.mashaer-contact__info-card:focus-visible {
  border-color: #d4c4b0;
  background: var(--page-cream);
}

.mashaer-contact__info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--page-primary);
}

.mashaer-contact__info-icon svg {
  width: 24px;
  height: 24px;
}

.mashaer-contact__info-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--page-body);
}

.mashaer-contact__info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--page-primary);
}

@media (max-width: 639px) {
  .mashaer-page__lead {
    margin-top: -8px;
    margin-bottom: 24px;
    font-size: 15px;
  }
}
