/* BUF Contact Page. Everything is scoped to the page-contact template; the theme's form markup and handler are unchanged. */
.page-template-page-contact .buf-contact { max-width: var(--container, 1240px); padding: 32px var(--gutter, 24px) 72px; }
.page-template-page-contact .buf-contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }

/* Left: cinematic panel. Header (eyebrow / headline / lede) is moved in here by the script. */
.page-template-page-contact .buf-contact-info { position: relative; overflow: hidden; border-radius: var(--radius-lg, 22px); background: #0B0B0A; color: #fff; padding: 52px 44px 48px; min-height: 620px; isolation: isolate; }
.page-template-page-contact .buf-contact-info::before { content: ""; position: absolute; inset: 0; background: #0B0B0A var(--bufcp-lab) right center / auto 100% no-repeat; z-index: -2; }
.page-template-page-contact .buf-contact-info::after  { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,11,10,.96) 0%, rgba(11,11,10,.88) 38%, rgba(11,11,10,.35) 68%, rgba(11,11,10,.05) 100%), linear-gradient(180deg, rgba(11,11,10,.25), rgba(11,11,10,0) 30%, rgba(11,11,10,.55) 100%); }
.page-template-page-contact .buf-contact-info .buf-section-head { max-width: none; padding: 0; margin: 0 0 30px; text-align: left; }
.page-template-page-contact .buf-contact-info .buf-eyebrow { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .32em; margin: 0 0 18px; }
.page-template-page-contact .buf-contact-info .buf-eyebrow::after { content: ""; width: 52px; height: 1px; background: var(--buf-red, #E30613); }
.page-template-page-contact .buf-contact-info h1 { font-family: var(--ff-display, Inter, sans-serif); font-weight: 800; letter-spacing: -.035em; line-height: .95; font-size: clamp(2.8rem, 5vw, 4.6rem); color: #fff; margin: 0 0 18px; max-width: 8ch; }
.page-template-page-contact .buf-contact-info h1 .buf-red { color: var(--buf-red, #E30613); display: block; }
.page-template-page-contact .buf-contact-info .buf-lede { color: #EDEDE8; font-size: 1.05rem; line-height: 1.5; max-width: 30ch; margin: 0; }
.page-template-page-contact .buf-ci { display: grid; grid-template-columns: 34px 1fr; gap: 0 16px; align-items: start; margin: 0 0 22px; max-width: 34ch; }
.page-template-page-contact .buf-ci svg { width: 30px; height: 30px; fill: none; stroke: var(--buf-red, #E30613); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.page-template-page-contact .buf-contact-info h3 { font-family: var(--ff-body, Inter, sans-serif); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 4px; }
.page-template-page-contact .buf-contact-info p { font-size: 15px; line-height: 1.5; color: #E4E4DE; margin: 0; }
.page-template-page-contact .buf-contact-info a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.page-template-page-contact .buf-contact-info a:hover { color: var(--buf-red, #E30613); border-color: currentColor; }

/* Right: form card */
.page-template-page-contact .buf-contact-form { background: #fff; border-radius: var(--radius-lg, 22px); box-shadow: 0 10px 40px rgba(20,20,15,.08), 0 1px 0 rgba(20,20,15,.04); padding: 40px 38px 34px; gap: 18px; }
.page-template-page-contact .buf-cf__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 4px; font-family: var(--ff-body, Inter, sans-serif); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--buf-ink, #14140F); }
.page-template-page-contact .buf-cf__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--buf-red, #E30613); }
.page-template-page-contact .buf-contact-form label { gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--buf-ink, #14140F); }
.page-template-page-contact .buf-contact-form input, .page-template-page-contact .buf-contact-form textarea { padding: 14px 16px; border: 1px solid var(--buf-line, #E6E6E1); border-radius: 12px; background: #FBFBF9; font-size: 15px; color: var(--buf-ink, #14140F); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.page-template-page-contact .buf-contact-form input::placeholder, .page-template-page-contact .buf-contact-form textarea::placeholder { color: #A3A39A; }
.page-template-page-contact .buf-contact-form input:focus, .page-template-page-contact .buf-contact-form textarea:focus { outline: none; background: #fff; border-color: var(--buf-red, #E30613); box-shadow: 0 0 0 3px rgba(227,6,19,.12); }
.page-template-page-contact .buf-contact-form textarea { min-height: 150px; }
.page-template-page-contact .buf-contact-form .buf-btn-primary { width: 100%; justify-content: center; position: relative; margin-top: 6px; padding: 17px 48px; font-size: 13px; letter-spacing: .12em; border-radius: 999px; transition: background .15s ease, transform .15s ease; }
.page-template-page-contact .buf-contact-form .buf-btn-primary .buf-cf__arrow { position: absolute; right: 22px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.page-template-page-contact .buf-contact-form .buf-btn-primary:hover .buf-cf__arrow { transform: translate(3px, -50%); }
.page-template-page-contact .buf-cf__note { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--buf-mute, #6B6B62); }


@media (max-width: 860px) {
  .page-template-page-contact .buf-contact { padding-top: 16px; padding-bottom: 48px; }
  .page-template-page-contact .buf-contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .page-template-page-contact .buf-contact-info { min-height: 0; padding: 40px 26px 36px; border-radius: 16px; }
  .page-template-page-contact .buf-contact-info::before { background-size: cover; background-position: 70% center; }
  .page-template-page-contact .buf-contact-info::after { background: linear-gradient(90deg, rgba(11,11,10,.92) 0%, rgba(11,11,10,.78) 55%, rgba(11,11,10,.35) 100%); }
  .page-template-page-contact .buf-contact-info h1 { font-size: 2.6rem; }
  .page-template-page-contact .buf-contact-form { padding: 28px 22px 26px; border-radius: 16px; }
}
