/* Contact page — kj-templates desktop + mobile design */

.page-contact {
  --cp-paper: #fffafa;
  --cp-paper-2: #f9f1f1;
  --cp-ink: #333333;
  --cp-clay: #fa5555;
  --cp-accent: #d80909;
  --cp-gut: clamp(20px, 5vw, 64px);
  --cp-wrap: min(1180px, 100%);
  --cp-hero-h: clamp(420px, 56vw, 560px);
  background: var(--cp-paper);
  color: var(--cp-ink);
}

.page-contact .cp-wrap {
  max-width: var(--cp-wrap);
  margin-inline: auto;
  padding-inline: var(--cp-gut);
}

/* Hero */
.cp-hero {
  position: relative;
  width: 100%;
  min-height: var(--cp-hero-h);
  display: flex;
  overflow: hidden;
  background-color: oklch(0.5 0.09 38);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.055) 0 13px,
    rgba(0, 0, 0, 0.05) 13px 26px
  );
}

.cp-hero__media {
  position: absolute;
  inset: 0;
}

.cp-hero__media picture,
.cp-hero__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  aspect-ratio: unset !important;
}

.cp-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 14, 13, 0.12) 0%,
    rgba(20, 14, 13, 0.2) 42%,
    rgba(20, 14, 13, 0.66) 100%
  );
  pointer-events: none;
}

.cp-hero__inner {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--cp-gut) clamp(34px, 5vw, 52px);
}

.cp-hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  max-width: 14ch;
}

.cp-hero__intro {
  margin: clamp(16px, 2vw, 18px) 0 0;
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile quick actions */
.cp-quick {
  display: none;
}

/* Methods */
.cp-methods {
  padding: clamp(56px, 8vw, 96px) 0 clamp(20px, 4vw, 40px);
}

.cp-methods__title {
  margin: 0 0 clamp(30px, 4vw, 46px);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.cp-methods__title--mobile {
  display: none;
}

.cp-methods__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.cp-method {
  border-top: 1px solid rgba(51, 51, 51, 0.16);
  padding-top: 22px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .cp-method:hover {
    transform: translateY(-4px);
  }
}

.cp-method__label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cp-clay);
  margin-bottom: 14px;
}

.cp-method__value {
  display: block;
  font-weight: 700;
  font-size: clamp(17px, 2vw, 19px);
  letter-spacing: -0.01em;
  color: var(--cp-ink);
  text-decoration: none;
  line-height: 1.28;
  word-break: break-word;
}

a.cp-method__value:hover {
  color: var(--cp-accent);
}

.cp-method__note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--cp-ink);
  text-wrap: pretty;
}

.cp-method__note--with-action {
  margin-bottom: 20px;
}

.cp-method__action {
  display: inline-flex;
  font-weight: 600;
  font-size: 13px;
  color: var(--cp-accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.cp-method__action:hover {
  border-bottom-color: var(--cp-accent);
}

/* Follow */
.cp-follow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(51, 51, 51, 0.16);
  flex-wrap: wrap;
}

.cp-follow__label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cp-clay);
}

.cp-follow__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cp-follow__pill {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--cp-ink);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(51, 51, 51, 0.22);
  transition: border-color 0.2s, color 0.2s;
}

.cp-follow__pill:hover {
  border-color: var(--cp-accent);
  color: var(--cp-accent);
}

.cp-follow__pill--wa {
  color: #fff;
  border: none;
  background: linear-gradient(180deg, #2bd46a, #1ea152);
}

.cp-follow__pill--wa:hover {
  color: #fff;
  filter: brightness(1.05);
}

/* Form section */
.cp-form-section {
  background: var(--cp-paper-2);
  border-top: 1px solid rgba(51, 51, 51, 0.08);
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
}

.cp-form-section__inner {
  max-width: var(--cp-wrap);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--cp-gut);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.cp-form-intro h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.cp-form-intro p {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cp-ink);
  max-width: 44ch;
  text-wrap: pretty;
}

.cp-form-intro__image {
  margin-top: clamp(28px, 4vw, 40px);
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cp-paper);
  box-shadow: 0 6px 22px -14px rgba(120, 60, 50, 0.25);
}

.cp-form-intro__image picture,
.cp-form-intro__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-form-intro__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cp-ink);
  background: var(--cp-paper);
}

.cp-form-card {
  background: var(--cp-paper);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 20px 50px -28px rgba(120, 60, 50, 0.4);
}

.cp-form-card--solo {
  max-width: 640px;
}

.cp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cp-contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.cp-contact-form label {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--cp-ink);
}

.cp-contact-form .required {
  color: var(--cp-accent);
}

.cp-contact-form input,
.cp-contact-form textarea {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: var(--cp-ink);
  padding: 13px 14px;
  border: 1px solid rgba(51, 51, 51, 0.16);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.cp-contact-form input:focus,
.cp-contact-form textarea:focus {
  border-color: var(--cp-accent);
}

.cp-contact-form textarea {
  line-height: 1.6;
  resize: vertical;
  min-height: 8rem;
}

.cp-contact-form .form-error {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cp-accent);
  margin: 0;
}

.cp-contact-form .btn--send {
  align-self: flex-start;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--cp-accent);
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.cp-contact-form .btn--send:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cp-form-success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3vw, 40px) 0;
  animation: cpRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cp-form-success__icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--cp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.cp-form-success h3 {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.cp-form-success p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cp-ink);
  max-width: 40ch;
  text-wrap: pretty;
}

.cp-form-success .form-flash {
  margin: 0;
}

.cp-form-success .flash {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cp-ink);
}

@keyframes cpRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile layout */
@media (max-width: 767px) {
  .page-contact {
    --cp-hero-h: clamp(420px, 72vh, 540px);
  }

  .cp-hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(20, 14, 13, 0.1) 0%,
      rgba(20, 14, 13, 0.28) 45%,
      rgba(20, 14, 13, 0.78) 100%
    );
  }

  .cp-hero__inner {
    padding: 0 24px 30px;
  }

  .cp-hero__title {
    font-size: clamp(38px, 11vw, 50px);
    max-width: none;
  }

  .cp-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px;
  }

  .cp-quick__card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: 14px;
    background: var(--cp-paper-2);
    text-decoration: none;
    border: 1px solid rgba(51, 51, 51, 0.08);
  }

  .cp-quick__label {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cp-clay);
  }

  .cp-quick__text {
    font-weight: 700;
    font-size: 15px;
    color: var(--cp-ink);
  }

  .cp-methods {
    padding: 8px 20px 4px;
  }

  .cp-methods .cp-wrap {
    padding-inline: 0;
  }

  .cp-methods__title--desktop {
    display: none;
  }

  .cp-methods__title--mobile {
    display: block;
    margin-bottom: 22px;
    font-size: 26px;
  }

  .cp-methods__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cp-method {
    padding: 18px 0;
    border-top: 1px solid rgba(51, 51, 51, 0.16);
  }

  .cp-method:last-child {
    border-bottom: 1px solid rgba(51, 51, 51, 0.16);
  }

  .cp-method__label {
    font-size: 10px;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
  }

  .cp-method__value {
    font-size: 17px;
  }

  .cp-method__note {
    margin-top: 8px;
  }

  .cp-method__action {
    display: none;
  }

  .cp-follow {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0 4px;
    margin-top: 0;
    border-top: none;
  }

  .cp-follow__label {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .cp-form-section__inner {
    display: block;
    padding: 34px 20px 40px;
  }

  .cp-form-intro {
    margin-bottom: 24px;
  }

  .cp-form-intro h2 {
    font-size: 28px;
  }

  .cp-form-intro p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.65;
  }

  .cp-form-intro__image {
    display: none;
  }

  .cp-form-card {
    padding: 22px;
    box-shadow: 0 16px 40px -26px rgba(120, 60, 50, 0.4);
  }

  .cp-contact-form {
    gap: 16px;
  }

  .cp-contact-form input,
  .cp-contact-form textarea {
    font-size: 16px;
  }

  .cp-contact-form textarea {
    min-height: 6rem;
  }

  .cp-contact-form .btn--send {
    width: 100%;
    align-self: stretch;
    font-size: 16px;
    padding: 15px 32px;
  }

  .cp-form-success__icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .cp-form-success h3 {
    font-size: 21px;
  }
}
