/* ==========================================================================
   CONTACT PAGE — S.I.S architectural luxury system
   ========================================================================== */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-page); color: var(--text-primary); }

/* ==========================================================================
   01 STANDARD CANONICAL HERO SECTION (MATCHING SITE-WIDE HERO SYSTEM)
   Strictly aligned with index.html, about.html, and meet-the-people.html
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--surface-dark);
  padding: clamp(72px, 10vh, 110px) var(--margin-page) clamp(32px, 5vh, 60px);
  box-sizing: border-box;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  opacity: 1;
  border: 0;
  z-index: 1;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 20, 15, 0.45) 0%, rgba(23, 20, 15, 0.55) 50%, rgba(23, 20, 15, 0.92) 100%);
  pointer-events: none;
  z-index: 1;
}
.sound-toggle {
  position: absolute;
  left: 28px;
  bottom: 36px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in oklab, white 35%, transparent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--warm-white);
  background: rgba(23, 20, 15, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.sound-toggle:hover {
  background: var(--interactive);
  border-color: var(--interactive);
}
.sound-toggle svg { display: none; }
.sound-toggle[data-sound="off"] .icon-on { display: block; }
.sound-toggle[data-sound="on"] .icon-off { display: block; }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.hero-copy .eyebrow {
  color: var(--warm-white);
  letter-spacing: 0.24em;
  margin-bottom: 18px;
  text-transform: uppercase;
  font: var(--text-subheading);
  display: block;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 20px;
}
.hero-copy h1 span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--warm-white);
}
.hero-copy p {
  font: var(--text-body);
  color: var(--warm-white);
  margin: 0 auto;
  max-width: 700px;
  opacity: 1;
  line-height: 1.7;
}

/* ---------- details + enquiry ---------- */
.ct-main { padding: clamp(56px, 9vh, 104px) var(--margin-page); }
.ct-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
.ct-intro .section-rule { margin: 12px 0 18px; }
.ct-intro h2 { font: var(--text-display-md); font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 14px; }
.ct-intro > p { font: var(--text-body); color: var(--text-secondary); margin: 0 0 28px; max-width: 46ch; }

.ct-details { list-style: none; margin: 0 0 26px; padding: 0; border-top: var(--border-hairline); }
.ct-detail { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 0; border-bottom: var(--border-hairline); }
.ct-ico { width: 38px; height: 38px; border: 1px solid var(--border-subtle); display: grid; place-items: center; color: var(--interactive); transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.ct-detail:hover .ct-ico { background: var(--interactive); border-color: var(--interactive); color: #fff; }
.ct-ico svg { display: block; }
.ct-label { display: block; font: var(--text-subheading); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-secondary); margin-bottom: 5px; }
.ct-value { font: var(--text-ui); font-size: 1.02rem; line-height: 1.5; color: var(--text-primary); text-decoration: none; }
a.ct-value { background: linear-gradient(var(--interactive), var(--interactive)) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease-cinematic), color 0.25s ease; }
a.ct-value:hover { color: var(--interactive); background-size: 100% 1px; }
.ct-note { display: block; margin-top: 4px; font: var(--text-caption); color: var(--text-secondary); }
.ct-visit { font: var(--text-body-sm); color: var(--text-secondary); margin: 0; max-width: 46ch; }
.ct-visit a { color: var(--interactive); text-decoration: none; border-bottom: 1px solid var(--garnet-hairline); }

/* ---------- form ---------- */
.ct-form-card {
  position: relative; background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  padding: clamp(28px, 3.6vw, 52px);
  box-shadow: 0 24px 60px rgba(42, 39, 35, 0.07);
}
.ct-form-card::before { content: ''; position: absolute; left: -1px; top: -1px; width: 64px; height: 3px; background: var(--interactive); }
.ct-form-head { margin-bottom: 26px; }
.ct-form-head h3 { font: var(--text-display-md); font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; margin: 6px 0 6px; }
.ct-form-head p { font: var(--text-body-sm); color: var(--text-secondary); margin: 0; }
.ct-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.ct-field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-field.is-wide { grid-column: 1 / -1; }
.ct-field label { font: var(--text-subheading); font-size: 0.7rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-secondary); transition: color 0.25s ease; }
.ct-field label i { font-style: normal; color: var(--interactive); }
.ct-input, .ct-select, .ct-textarea {
  width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--border-subtle); border-radius: 0;
  background: transparent; color: var(--text-primary); padding: 9px 0 10px;
  font: var(--text-ui); font-size: 1rem; outline: none; transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none; appearance: none;
}
.ct-textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.ct-select { padding-right: 26px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236E6F71' stroke-width='1.6'%3E%3Cpolyline points='1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; }
.ct-input::placeholder, .ct-textarea::placeholder { color: rgba(110, 111, 113, 0.65); font-style: italic; }
.ct-input:hover, .ct-select:hover, .ct-textarea:hover { border-bottom-color: var(--pewter); }
.ct-input:focus, .ct-select:focus, .ct-textarea:focus { border-bottom-color: var(--interactive); box-shadow: 0 1px 0 var(--interactive); }
.ct-field:focus-within label { color: var(--interactive); }
.ct-field.has-error .ct-input, .ct-field.has-error .ct-select { border-bottom-color: var(--interactive); }
.ct-error { display: none; font: var(--text-caption); font-size: 0.74rem; color: var(--interactive); }
.ct-field.has-error .ct-error { display: block; }

.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ct-chip { position: relative; }
.ct-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ct-chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border-subtle); font: var(--text-ui-sm); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-primary); transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.ct-chip:hover span { border-color: var(--charcoal); }
.ct-chip input:checked + span { background: var(--charcoal); color: var(--warm-white); border-color: var(--charcoal); }
.ct-chip input:focus-visible + span { outline: 2px solid var(--interactive); outline-offset: 2px; }

.ct-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.ct-consent { font: var(--text-caption); font-size: 0.76rem; color: var(--text-secondary); max-width: 38ch; margin: 0; }
.ct-consent a { color: var(--interactive); }
.ct-done { display: none; text-align: left; padding: 8px 0; }
.ct-done .ct-tick { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--interactive); color: var(--interactive); display: grid; place-items: center; margin-bottom: 18px; }
.ct-done h3 { font: var(--text-display-md); letter-spacing: -0.02em; margin: 6px 0 10px; }
.ct-done p { font: var(--text-body); color: var(--text-secondary); margin: 0 0 22px; max-width: 46ch; }
.ct-form-card.is-sent .ct-form-live { display: none; }
.ct-form-card.is-sent .ct-done { display: block; }

/* ---------- map ---------- */
.ct-map-section { padding: 0 var(--margin-page) clamp(56px, 9vh, 104px); }
.ct-map-inner { max-width: 1280px; margin: 0 auto; }
.ct-map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.ct-map-head h2 { font: var(--text-display-md); font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.02em; margin: 6px 0 0; }
.ct-map-frame { position: relative; height: clamp(360px, 54vh, 540px); border: 1px solid rgba(185, 169, 138, 0.6); overflow: hidden; background: #F5F1E9; }
#contact-map { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.ct-map-card {
  position: absolute; left: 18px; bottom: 18px; z-index: 3; max-width: min(340px, calc(100% - 36px));
  background: rgba(255, 253, 248, 0.96); border: 1px solid rgba(185, 169, 138, 0.7); padding: 16px 18px; box-shadow: 0 10px 30px rgba(42, 39, 35, 0.14);
}
.ct-map-card strong { display: block; font: var(--text-heading); font-size: 1.05rem; margin-bottom: 4px; }
.ct-map-card span { display: block; font: var(--text-caption); color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.ct-map-card a { font: var(--text-subheading); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--interactive); text-decoration: none; }
.ct-map-card a:hover { text-decoration: underline; }
.ct-office { position: relative; width: 0; height: 0; pointer-events: none; }
.ct-office-dot { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; border-radius: 50%; background: var(--garnet); border: 3px solid #fff; box-shadow: 0 6px 18px rgba(162, 28, 64, 0.5); }
.ct-office-dot::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid var(--garnet); animation: ctPulse 2.6s infinite; }
@keyframes ctPulse { 0% { transform: scale(0.75); opacity: 0.7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- entrance ---------- */
.ct-rise { animation: ctRise 0.9s var(--ease-cinematic) both; }
.ct-rise.d1 { animation-delay: 0.08s; } .ct-rise.d2 { animation-delay: 0.16s; } .ct-rise.d3 { animation-delay: 0.24s; }
@keyframes ctRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ct-rise { animation: none; } }

@media (max-width: 960px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-fields { grid-template-columns: 1fr; }
  .ct-form-foot { flex-direction: column; align-items: stretch; }
  .ct-form-foot .btn-sweep, .ct-form-foot .btn { width: 100%; }
}
