/* Contact page: one responsive layout with shared Drey Studio tokens. */
.contact-page {
  --contact-paper: #f7f5fa;
  --contact-surface: #fff;
  --contact-ink: #17131d;
  --contact-muted: #514c59;
  --contact-line: #e4deeb;
  --contact-purple: #8958e8;
  --contact-purple-dark: #7041c5;
  --contact-error: #a52a4b;
  margin: 0;
  overflow-x: clip;
  background: var(--contact-paper);
  color: var(--contact-ink);
  font-family: Inter, Manrope, system-ui, sans-serif;
}

.contact-page *,
.contact-page *::before,
.contact-page *::after { box-sizing: border-box; }

.contact-main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 96px 0 0; }
.contact-hero { padding: 56px 0 62px; border-bottom: 1px solid var(--contact-line); text-align: center; }
.contact-kicker,
.contact-section-label { display: block; color: var(--contact-purple-dark); font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.contact-hero h1 { max-width: 820px; margin: 18px auto 16px; color: var(--contact-ink); font-size: clamp(2.7rem, 5.3vw, 4.45rem); font-weight: 800; line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.contact-hero-copy { max-width: 660px; margin: 0 auto; color: var(--contact-muted); font-size: 16px; line-height: 1.75; }
.contact-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.contact-hero-button,
.contact-submit,
.contact-close { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border-radius: 999px; font-family: Inter, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.contact-hero-button { padding: 0 22px; border: 1px solid var(--contact-purple); background: var(--contact-purple); color: #fff; }
.contact-hero-button:hover { border-color: var(--contact-purple-dark); background: var(--contact-purple-dark); }
.contact-hero-button--secondary { border-color: var(--contact-line); background: #fff; color: var(--contact-ink); }
.contact-hero-button--secondary:hover { border-color: #c8b7e8; background: #fff; color: var(--contact-purple-dark); }
.contact-hero-button:focus-visible,
.contact-submit:focus-visible,
.contact-close:focus-visible { outline: 3px solid #b99aff; outline-offset: 3px; }

.contact-section { padding: 64px 0; border-bottom: 1px solid var(--contact-line); }
.contact-section h2 { margin: 12px 0 0; color: var(--contact-ink); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.contact-intro { max-width: 620px; margin: 12px 0 0; color: var(--contact-muted); font-size: 15px; line-height: 1.7; }
.contact-conversation { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(28px, 4vw, 48px); }
.contact-conversation > * { min-width: 0; }
.contact-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.contact-method { min-width: 0; padding: 18px; border: 1px solid var(--contact-line); border-radius: 14px; background: var(--contact-surface); }
.contact-method h3 { margin: 0 0 7px; color: var(--contact-ink); font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.contact-method p { margin: 0 0 10px; color: var(--contact-muted); font-size: 14px; line-height: 1.55; }
.contact-method a { color: var(--contact-purple-dark); font-size: 14px; font-weight: 700; line-height: 1.45; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-method a:hover { color: #57319d; }
.contact-method a:focus-visible { border-radius: 2px; outline: 3px solid #b99aff; outline-offset: 3px; }

.contact-form-wrap { min-width: 0; scroll-margin-top: 100px; padding: clamp(22px, 2.5vw, 30px); border: 1px solid var(--contact-line); border-radius: 18px; background: var(--contact-surface); box-shadow: 0 12px 34px rgba(42, 25, 72, .06); }
.contact-form-wrap h2 { margin: 0 0 10px; font-size: clamp(1.65rem, 2.5vw, 1.9rem); }
.contact-form-help { margin: 0 0 22px; color: var(--contact-muted); font-size: 14px; line-height: 1.6; }
.contact-required { color: var(--contact-purple-dark); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; scroll-margin-top: 100px; }
.contact-field { min-width: 0; }
.contact-field--full,
.contact-form-status { grid-column: 1 / -1; }
.contact-field label { display: block; margin: 0 0 7px; color: var(--contact-ink); font-size: 14px; font-weight: 650; line-height: 1.4; }
.contact-field label > span:not(.contact-required) { color: var(--contact-muted); font-size: 13px; font-weight: 400; }
.contact-field input,
.contact-field select,
.contact-field textarea { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 12px 13px; border: 1px solid #d8d2df; border-radius: 9px; background: #fcfbfd; color: var(--contact-ink); font: 400 16px/1.45 Inter, sans-serif; }
.contact-field textarea { min-height: 140px; resize: vertical; }
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: #6d6675; opacity: 1; }
.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible { border-color: var(--contact-purple); outline: 3px solid rgba(137, 88, 232, .2); outline-offset: 1px; background: #fff; }
.contact-field input[aria-invalid="true"],
.contact-field select[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] { border-color: var(--contact-error); }
.contact-error { margin-top: 6px; color: var(--contact-error); font-size: 13px; line-height: 1.45; }
.contact-error:empty { display: none; }
.contact-form-status { min-height: 0; margin: 0; color: var(--contact-error); font-size: 14px; line-height: 1.5; }
.contact-form-status:empty { display: none; }
.contact-submit { width: 100%; padding: 0 22px; border: 1px solid var(--contact-purple); background: var(--contact-purple); color: #fff; cursor: pointer; }
.contact-submit:hover:not(:disabled) { border-color: var(--contact-purple-dark); background: var(--contact-purple-dark); }
.contact-submit:disabled { cursor: wait; opacity: .7; }

.contact-message-guide { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: start; gap: clamp(32px, 6vw, 72px); }
.contact-guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--contact-line); }
.contact-guide-item { padding: 18px 0; border-bottom: 1px solid var(--contact-line); color: var(--contact-muted); font-size: 14px; line-height: 1.6; }
.contact-guide-item strong { display: block; margin-bottom: 5px; color: var(--contact-ink); font-size: 15px; font-weight: 700; line-height: 1.4; }

.contact-page #site-footer { background: #15121a; color: #fff; }
.contact-page #site-footer footer { padding-top: 0; border-top: 0; background: #15121a; color: #fff; }
.contact-page #site-footer footer > div { border-top: 0 !important; border-color: #15121a !important; background: #15121a !important; }
.contact-page #site-footer footer .text-on-background { color: #fff !important; }
.contact-page #site-footer footer .text-on-surface-variant { color: #d6d0dc !important; }
.contact-page #site-footer footer a:hover { color: #d3bbff !important; }
/* Direct WhatsApp actions are already prominent here; the floating bubble can
   cover the contact cards and form while the visitor scrolls on a phone. */
.contact-page .floating-whatsapp { display: none; }
.contact-page .home-case-grid,
.contact-page .home-project-layout,
.contact-page .home-included-grid { width: min(1080px, calc(100% - 56px)); margin-inline: auto; box-sizing: border-box; }
.contact-page .home-reviews-layout { width: min(1120px, calc(100% - 56px)); margin-inline: auto; padding-inline: 0; box-sizing: border-box; }
.contact-page .home-contact-strip-inner { width: min(980px, calc(100% - 56px)); margin-inline: auto; box-sizing: border-box; }

.contact-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow-y: auto; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: rgba(23, 19, 29, .66); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.contact-modal.is-open { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.contact-modal-box { width: min(520px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: clamp(24px, 6vw, 34px); border: 1px solid var(--contact-line); border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(12px); transition: opacity .22s ease, transform .22s ease; }
.contact-modal.is-open .contact-modal-box { opacity: 1; transform: translateY(0); }
.contact-success-label { display: block; margin-bottom: 12px; color: var(--contact-purple-dark); font-size: 12px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.contact-modal-box h2 { margin: 0 0 12px; color: var(--contact-ink); font-size: clamp(1.7rem, 6vw, 2rem); font-weight: 750; line-height: 1.15; }
.contact-modal-box p { margin: 0; color: var(--contact-muted); font-size: 15px; line-height: 1.7; }
.contact-close { margin-top: 24px; padding: 0 22px; border: 1px solid var(--contact-purple); background: var(--contact-purple); color: #fff; cursor: pointer; }
.contact-close:hover { border-color: var(--contact-purple-dark); background: var(--contact-purple-dark); }
body.contact-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .contact-main { width: calc(100% - 48px); padding-top: 88px; }
  .contact-hero { padding: 50px 0 56px; }
  .contact-conversation,
  .contact-message-guide { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .contact-message-guide { gap: 24px; }
  .contact-conversation > div:first-child { max-width: 760px; }
  .contact-page .home-case-grid,
  .contact-page .home-project-layout,
  .contact-page .home-included-grid,
  .contact-page .home-reviews-layout,
  .contact-page .home-contact-strip-inner { width: calc(100% - 48px); }
}

@media (max-width: 700px) {
  .contact-page .home-case-grid,
  .contact-page .home-project-layout,
  .contact-page .home-included-grid,
  .contact-page .home-reviews-layout,
  .contact-page .home-contact-strip-inner { width: calc(100% - 40px); }
}

@media (max-width: 640px) {
  .contact-main { width: calc(100% - 32px); padding-top: 82px; }
  .contact-hero { padding: 42px 0 48px; }
  .contact-hero h1 { margin-top: 16px; font-size: clamp(2.25rem, 10.2vw, 3.35rem); }
  .contact-hero-copy { font-size: 15px; line-height: 1.7; }
  .contact-hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 22px; }
  .contact-hero-button { width: 100%; }
  .contact-section { padding: 50px 0; }
  .contact-section h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .contact-conversation,
  .contact-message-guide { gap: 26px; }
  .contact-methods,
  .contact-guide-list { grid-template-columns: minmax(0, 1fr); }
  .contact-methods { gap: 10px; margin-top: 18px; }
  .contact-method { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px 15px; }
  .contact-method h3 { grid-column: 1 / -1; margin: 0 0 2px; }
  .contact-method p { grid-column: 1; grid-row: 2; margin: 0; }
  .contact-method a { grid-column: 2; grid-row: 2; display: inline-flex; min-width: 44px; min-height: 44px; max-width: 100%; align-items: center; justify-content: flex-end; font-size: 13px; line-height: 1.35; text-align: right; }
  .contact-form-wrap { padding: 20px 16px; border-radius: 16px; }
  .contact-form-wrap h2 { margin-bottom: 8px; font-size: 1.65rem; line-height: 1.18; }
  .contact-form-help { margin-bottom: 20px; font-size: 14px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .contact-field--full,
  .contact-form-status { grid-column: auto; }
  .contact-field label { font-size: 14px; }
  .contact-field input,
  .contact-field select,
  .contact-field textarea { min-height: 50px; padding: 12px; font-size: 16px; }
  .contact-field textarea { min-height: 132px; }
  .contact-submit { min-height: 52px; }
  .contact-guide-list { gap: 0; }
  .contact-guide-item { padding: 15px 0; }
}

@media (max-width: 360px) {
  .contact-main { width: calc(100% - 28px); }
  .contact-method { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .contact-method h3,
  .contact-method p,
  .contact-method a { grid-column: 1; grid-row: auto; }
  .contact-method a { justify-content: flex-start; }
  .contact-form-wrap { padding: 18px 13px; }
  .contact-form-help { font-size: 13px; }
  .contact-page .home-case-grid,
  .contact-page .home-project-layout,
  .contact-page .home-included-grid,
  .contact-page .home-reviews-layout,
  .contact-page .home-contact-strip-inner { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
