/* Contact page — matches gallery / services branding */
.contact-page {
  --cp-ink: #1c2539;
  --cp-muted: #5d666f;
  --cp-accent: #fa8b17;
  --cp-bg: var(--gotezu-bg, #f7f4ef);
  --cp-white: #fff;
  --cp-line: #e4e0d8;
  background: var(--cp-bg);
  color: var(--cp-ink);
  font-family: "DM Sans", sans-serif;
}

.contact-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--cp-bg);
}

.contact-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/serviceelement2.png") center top / 100% auto no-repeat;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.92;
}

.contact-intro > * {
  position: relative;
  z-index: 1;
}

.contact-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(20px, 2.5vw, 32px) 24px clamp(28px, 3vw, 40px);
  text-align: center;
}

.contact-hero__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-accent);
}

.contact-hero__title {
  margin: 0 0 14px;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cp-ink);
}

.contact-hero__lead {
  margin: 0 auto;
  max-width: 42ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--cp-muted);
}

/* Main split: info + form */
.contact-main {
  padding: 0 24px clamp(48px, 6vw, 72px);
}

.contact-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.contact-info__title,
.contact-form-wrap__title {
  margin: 0 0 16px;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cp-ink);
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--cp-white);
  border: 1px solid rgba(28, 37, 57, 0.08);
  box-shadow: 0 8px 24px rgba(28, 37, 57, 0.05);
}

.contact-card__label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cp-accent);
}

.contact-card__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card__links a,
.contact-card__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cp-ink);
  text-decoration: none;
  font-weight: 600;
}

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

.contact-card__text {
  font-weight: 500;
  color: var(--cp-muted);
}

.contact-offices-section {
  padding: 0 24px clamp(40px, 5vw, 56px);
}

.contact-offices-section__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.contact-offices-section__head {
  margin-bottom: clamp(20px, 3vw, 28px);
  text-align: center;
}

.contact-offices-section__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-accent);
}

.contact-offices-section__title {
  margin: 0;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cp-ink);
}

.contact-offices__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-office {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--cp-white);
  border: 1px solid rgba(28, 37, 57, 0.08);
  box-shadow: 0 8px 24px rgba(28, 37, 57, 0.05);
}

.contact-office__name {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-ink);
}

.contact-office__addr {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cp-muted);
}

/* Last office when odd count — keep in left column only */
.contact-offices__grid .contact-office:last-child:nth-child(odd) {
  grid-column: 1;
}

/* White thin form bar (from service pages) */
.contact-form-wrap {
  position: sticky;
  top: 96px;
}

.contact-form-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid rgba(28, 37, 57, 0.1);
  border-radius: 16px;
  background: var(--cp-white);
  box-shadow: 0 14px 36px rgba(28, 37, 57, 0.08);
}

.contact-form-bar__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.contact-form-bar input[type="text"],
.contact-form-bar input[type="email"],
.contact-form-bar input[type="number"],
.contact-form-bar input[type="tel"],
.contact-form-bar select,
.contact-form-bar textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  background: var(--cp-white);
  color: var(--cp-ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-bar textarea {
  min-height: 120px;
  resize: vertical;
  border-radius: 12px;
}

.contact-form-bar input::placeholder,
.contact-form-bar textarea::placeholder {
  color: #8a9199;
  opacity: 1;
}

.contact-form-bar input:focus,
.contact-form-bar select:focus,
.contact-form-bar textarea:focus {
  outline: none;
  border-color: var(--cp-accent);
  box-shadow: 0 0 0 3px rgba(250, 139, 23, 0.15);
}

.contact-form-bar input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.contact-form-bar input[type="number"]::-webkit-outer-spin-button,
.contact-form-bar input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.contact-form-bar__submit {
  align-self: flex-start;
  width: auto;
  margin: 4px 0 0;
  padding: 13px 28px;
  border: 0;
  border-radius: 10px;
  background: var(--cp-accent);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form-bar__submit:hover,
.contact-form-bar__submit:focus-visible {
  background: #e67a0f;
  outline: none;
  transform: translateY(-1px);
}

.contact-form-bar__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Map */
.contact-map-section {
  padding: 0 24px clamp(56px, 7vw, 80px);
  background: var(--cp-white);
  border-top: 1px solid var(--cp-line);
}

.contact-map-section__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.contact-map-section__head {
  text-align: center;
  margin-bottom: 24px;
  padding-top: clamp(40px, 5vw, 56px);
}

.contact-map-section__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-accent);
}

.contact-map-section__title {
  margin: 0;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--cp-ink);
}

.contact-map-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(28, 37, 57, 0.08);
  box-shadow: 0 16px 40px rgba(28, 37, 57, 0.1);
  aspect-ratio: 21 / 9;
  min-height: 280px;
  background: var(--cp-line);
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

@media (max-width: 991px) {
  .contact-main__inner {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    position: static;
  }

  .contact-form-bar__row {
    grid-template-columns: 1fr;
  }

  .contact-form-bar__submit {
    width: 100%;
  }

  .contact-map-frame {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .contact-offices__grid {
    grid-template-columns: 1fr;
  }

  .contact-offices__grid .contact-office:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form-bar__submit {
    transition: none;
  }
}
