/* Contact page — scoped luxury layout */

html[lang="ar"] body[data-page="contact"] {
  font-family: "Tajawal", "Cairo", sans-serif;
}

.kz-hero {
  position: relative;
  min-height: min(62vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}

.kz-hero-media,
.kz-hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kz-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.kz-hero-veil {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(212, 175, 55, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.42), rgba(8, 7, 6, 0.78));
}

.kz-hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 72px 16px 56px;
}

.kz-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  color: #f8f5ec;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}

.kz-hero-copy .lead {
  margin: 0 auto;
  color: #efe6cc;
  max-width: 540px;
}

.kz-kicker {
  margin: 0 0 8px;
  color: #e8c76a;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.kz-kicker-sm {
  letter-spacing: 0.2em;
  font-size: 0.68rem;
}

.kz-hero-copy .gold-line {
  margin: 10px auto 18px;
}

.kz-section { padding: 72px 0; }
.kz-section-alt { background: var(--bg-2); }

.kz-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kz-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 176px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.07), transparent 48%),
    var(--card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.28s ease, box-shadow 0.3s ease;
}

.kz-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.kz-info-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.kz-info strong {
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
}

a.kz-info[href^="tel"] strong,
a.kz-info[href^="mailto"] strong {
  direction: ltr;
  unicode-bidi: isolate;
}

.kz-info:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 199, 106, 0.7);
  box-shadow: 0 18px 36px rgba(212, 175, 55, 0.12);
}

.kz-form-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: start;
}

.kz-form-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.kz-form-intro .btn { margin-top: 18px; }

.kz-form {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

body[data-page="contact"] .kz-form input,
body[data-page="contact"] .kz-form textarea {
  min-height: 48px;
  border-radius: 14px;
  background: var(--input);
}

body[data-page="contact"] .kz-form textarea { min-height: 150px; }

body[data-page="contact"] .kz-form label {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.kz-map {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.kz-map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.kz-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.kz-map-btn {
  min-width: min(280px, 100%);
  text-align: center;
}

.kz-wa-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 55;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1a1208;
  background: linear-gradient(180deg, #f3d58a, #d4af37 55%, #b8860b);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
  transition: transform 0.25s ease;
}

.kz-wa-float:hover { transform: translateY(-4px) scale(1.04); }

body[data-page="contact"] .footer-grid {
  grid-template-columns: 1.5fr 1fr 1.1fr 1fr;
}

html[data-theme="light"] .kz-hero-veil {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(212, 175, 55, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(20, 16, 10, 0.35), rgba(8, 7, 6, 0.55) 55%, var(--bg) 100%);
}

@media (max-width: 1100px) {
  .kz-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-page="contact"] .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .kz-form-layout { grid-template-columns: 1fr; }
  .kz-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .kz-info-grid { grid-template-columns: 1fr 1fr; }
  .kz-hero { min-height: 48vh; }
  .kz-hero-copy { padding: 56px 12px 40px; }
  .kz-form { padding: 18px 14px; }
  .kz-wa-float { width: 52px; height: 52px; inset-inline-end: 14px; bottom: 14px; }
  .kz-map-frame {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }
  .kz-map-btn { width: 100%; }
}

@media (max-width: 430px) {
  .kz-info-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .kz-info, .kz-wa-float { transition: none; }
}
