/* ===========================================================
   Bizniaga Technologies — Contact Page Stylesheet
   Only sections unique to contact.html live here. Shared chrome
   (header, mega menu, footer, buttons) is in css/base.css.
   Sections: hero (same style as the Services hero) → get in touch
   (contact tiles + message form) → map.
   Previous version (Figma-inspired rounded banner): Backup/Version 8.
   =========================================================== */

:root { --nav-space: 92px; }

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--purple-start);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px;
}

/* ---------------- Hero: full screen, photo + brand-coloured wash ---------------- */
.ct-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-space) + 4vh) 0 calc(60px + 4vh);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #4b3fb0, #241866);
}
.ct-hero-bg {
  position: absolute;
  inset: -12% 0 -12% 0;           /* extra height for the parallax drift */
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.ct-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 2.4s cubic-bezier(.22,.9,.32,1);
}
#ct-hero.is-in .ct-hero-bg img { transform: scale(1); }
.ct-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    /* 29 Oct: neutral shade only (was a purple/blue wash) so the photo keeps its own colours */
    linear-gradient(100deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.38) 45%, rgba(0,0,0,0.08) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.35), transparent 40%);
}
/* faint world map on the right, white so it reads on the purple wash */
.ct-hero-map {
  position: absolute;
  z-index: 1;
  right: -6%;
  top: 52%;
  width: min(62%, 980px);
  transform: translateY(-50%);
  filter: brightness(0) invert(1);
  opacity: 0.35;
  pointer-events: none;
}
.ct-hero-inner { position: relative; z-index: 2; width: 100%; }
.ct-hero h1 {
  margin: 0 0 16px;
  max-width: 640px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 2.4vw + 10px, 50px);
  line-height: 1.2;
}
.ct-hero p {
  margin: 0;
  max-width: 560px;
  font-size: clamp(15px, 0.4vw + 12px, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,0.84);
}
.ct-hero .gleam { --gleam-base: #ffffff; --gleam-shine: #b8adff; }

/* Folder tab, bottom-left (matches the homepage / Services tabs) */
.ct-hero-tabs {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  padding-left: 24px;
}
.ct-hero-tab {
  display: block;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 10px 10px 0 0;
  white-space: nowrap;
  animation: ctTabIn 0.5s cubic-bezier(.22,.9,.32,1) 0.6s both;
}
@keyframes ctTabIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------------- Title shine (same as other pages), replays per section ---------------- */
.gleam { --gleam-base: var(--navy); --gleam-shine: #cfd2ff; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gleam {
    background-image: linear-gradient(110deg,
      var(--gleam-base) 0%, var(--gleam-base) 40%, var(--gleam-shine) 47%,
      #ffffff 50%, var(--gleam-shine) 53%, var(--gleam-base) 60%, var(--gleam-base) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  [data-reveal].is-in .gleam { animation: ctGleam 2.2s ease-in-out 0.9s 1 both; }
}
@keyframes ctGleam { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* ---------------- Get in touch ---------------- */
.ct-touch { padding: clamp(72px, 12vh, 130px) 0 clamp(56px, 9vh, 100px); background: #fff; }
.ct-touch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.ct-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 1.4vw + 14px, 40px);
  line-height: 1.18;
  color: var(--navy);
  max-width: 560px;
}
.ct-lead {
  margin: 0 0 clamp(26px, 4vh, 38px);
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* Contact tiles — same family as the homepage "Why Choose Us" tiles */
.ct-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.1vw, 18px);
}
.ct-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
  padding: clamp(18px, 1.6vw, 26px);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
a.ct-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(18, 22, 58, 0.14); }
.ct-tile--purple { background: linear-gradient(140deg, #4b3fb0, #3a2f9a); color: #fff; }
.ct-tile--navy   { background: #0f1236; color: #fff; }
.ct-tile--light  { background: var(--mist); color: var(--navy); }
.ct-tile-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: auto;            /* label on top, details settle at the bottom */
  padding-bottom: 14px;
}
.ct-tile-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 0.5vw + 11px, 20px);
  line-height: 1.3;
  word-break: break-word;
}
.ct-tile-value--sm { font-size: clamp(14px, 0.3vw + 10px, 16px); font-weight: 600; line-height: 1.45; }
.ct-tile-note { font-size: 13.5px; line-height: 1.5; opacity: 0.78; }
.ct-tile--light .ct-tile-note { color: var(--muted); opacity: 1; }
.ct-tile-link { margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--purple-start); }
.ct-social { display: flex; gap: 10px; margin-top: 8px; }
.ct-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid #d6d8e6;
  color: var(--navy);
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
}
.ct-social a:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.ct-social svg { width: 18px; height: 18px; }

/* Message form card — white tile with a soft shadow (like the mosaic heading tile) */
.ct-form-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(26px, 3vw, 44px);
  box-shadow: 0 24px 60px rgba(18, 22, 58, 0.10);
  border: 1px solid #eceef6;
}
.ct-form-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 0.6vw + 14px, 26px);
  color: var(--navy);
}
.ct-form-note { margin: 0 0 clamp(18px, 3vh, 26px); font-size: 14px; line-height: 1.6; color: var(--muted); }
.ct-form { display: grid; gap: 16px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: grid; gap: 7px; }
.ct-field > span { font-size: 12.5px; font-weight: 600; color: var(--navy); }
.ct-field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.ct-field input,
.ct-field textarea {
  width: 100%;
  border: 1px solid #e1e3ee;
  background: var(--mist);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ct-field textarea { resize: vertical; min-height: 120px; }
.ct-field input:focus,
.ct-field textarea:focus { border-color: var(--purple-start); background: #fff; box-shadow: 0 0 0 3px rgba(75,63,176,0.12); }
.ct-field .is-invalid { border-color: var(--red); }
.ct-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.ct-submit {
  padding: 13px 26px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14.5px;
}
.ct-submit:hover { background: var(--purple-start); transform: translateY(-2px); }
.ct-submit[disabled] { opacity: 0.6; cursor: wait; }
.ct-status { margin: 0; font-size: 13.5px; color: var(--muted); }
.ct-status.is-ok { color: #1f8a57; }
.ct-status.is-error { color: var(--red); }

/* ---------------- Map ---------------- */
/* Same full width as the hero banner and footer (16px from the window edges) */
.ct-map-section { padding: 0 16px clamp(40px, 7vh, 72px); }
.ct-map-section > .container { max-width: none; padding: 0; }
.ct-map {
  position: relative;
  height: clamp(380px, 56vh, 520px);
  border-radius: 24px;
  overflow: hidden;
  background: var(--mist);
}
.ct-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s ease;
}
.ct-map:hover iframe { filter: grayscale(0.2); }
.ct-map-card {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  top: clamp(16px, 2vw, 28px);
  width: min(360px, calc(100% - 32px));
  padding: 22px 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(18, 22, 58, 0.14);
}
.ct-map-card h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); }
.ct-map-country { margin: 0 0 4px; font-weight: 600; font-size: 14px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.ct-map-company { margin: 0 0 14px; font-weight: 700; font-size: 14px; color: var(--ink); }
.ct-map-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.ct-map-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ct-map-list svg {
  width: 34px; height: 34px; padding: 8px;
  border-radius: 10px;
  background: var(--mist);
  color: var(--navy);
}
.ct-map-list a { color: var(--ink); }
.ct-map-list a:hover { color: var(--purple-start); }
.ct-map-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  color: var(--purple-start);
}
.ct-map-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Scroll reveal (script/contact.js) ----------------
   Each [data-reveal] section's .rv items flow in one after another when the
   section comes on screen — rising from below when scrolling down, dropping
   from above when scrolling up — and drift out again when it leaves. */
[data-reveal] .rv {
  opacity: 0;
  transform: translate3d(var(--rv-x, 0px), var(--rv-y, 40px), 0) scale(0.98);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.4,0,.2,1);
}
[data-reveal] .rv-right { --rv-x: 56px; }
[data-reveal].is-in .rv {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s ease calc(var(--i, 0) * 100ms + 100ms),
    transform 0.9s cubic-bezier(.22,.9,.32,1) calc(var(--i, 0) * 100ms + 100ms);
}
[data-reveal].rv-reset .rv { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .ct-touch-grid { grid-template-columns: 1fr; }
  .ct-title, .ct-lead { max-width: none; }
}
@media (max-width: 640px) {
  .ct-hero { min-height: 0; padding: calc(var(--nav-space) + 56px) 0 110px; }
  .ct-hero-map { width: 140%; right: -50%; opacity: 0.25; }
  .ct-hero-tabs { padding-left: 16px; }
  .ct-hero-tab { padding: 12px 16px; font-size: 12.5px; }
  .ct-touch { padding: 56px 0 48px; }
  .ct-tiles { grid-template-columns: 1fr; }
  .ct-tile { min-height: 0; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-form-card { padding: 24px 18px; }
  .ct-submit { width: 100%; justify-content: center; }
  .ct-map-section { padding: 0 10px 40px; }
  /* map: card sits under the map instead of covering it */
  .ct-map { height: auto; background: none; overflow: visible; }
  .ct-map iframe { position: relative; height: 300px; border-radius: 20px; display: block; }
  .ct-map-card { position: relative; left: auto; top: auto; width: auto; margin-top: 14px; box-shadow: none; border: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .ct-hero-bg img { transform: none; transition: none; }
  .ct-hero-tab { animation: none; }
  [data-reveal].is-in .gleam { animation: none; }
}
/* the email address is long: keep it on one line */
.ct-tile--navy .ct-tile-value { font-size: clamp(14px, 0.3vw + 10.5px, 17px); white-space: nowrap; word-break: normal; }
.ct-hero-map { opacity: 0.22; }


/* ================================================================
   One section per screen (desktop) + scroll snapping (script/contact.js)
   Every size below scales with the window HEIGHT as well as the width,
   so each section fits on one screen from short laptops to large monitors.
   ================================================================ */

/* Map: Google's normal colours (no greyscale) */
.ct-map iframe,
.ct-map:hover iframe { filter: none; }

/* Map scroll guard: a clear layer over the map so the wheel scrolls the page.
   Click it to use the map; it comes back when the mouse leaves. */
.ct-map-guard {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ct-map-guard span {
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(18, 22, 58, 0.78);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ct-map:hover .ct-map-guard span,
.ct-map-guard:focus-visible span { opacity: 1; transform: none; }
.ct-map.is-active .ct-map-guard { display: none; }
.ct-map-card { z-index: 2; }

@media (min-width: 861px) {
  .ct-scene { min-height: 100vh; min-height: 100svh; }

  /* ---- Get in touch: centred in one screen ---- */
  .ct-touch {
    display: flex;
    align-items: center;
    padding: calc(var(--nav-space) + 2vh) 0 4vh;
  }
  .ct-touch-grid { align-items: center; width: 100%; }
  .section-eyebrow { margin-bottom: clamp(6px, 1vh, 10px); }
  .ct-title { font-size: clamp(24px, min(1.4vw + 12px, 3.6vh + 8px), 40px); margin-bottom: clamp(8px, 1.4vh, 14px); }
  .ct-lead { font-size: clamp(14px, min(0.3vw + 11px, 1.4vh + 6px), 16px); margin-bottom: clamp(14px, 3vh, 34px); }
  .ct-tiles { gap: clamp(10px, 1.6vh, 18px); }
  .ct-tile { min-height: clamp(92px, 17vh, 160px); padding: clamp(14px, 2.2vh, 26px) clamp(16px, 1.6vw, 26px); }
  .ct-tile-label { padding-bottom: clamp(6px, 1.4vh, 14px); }
  .ct-form-card { padding: clamp(20px, 3.6vh, 44px) clamp(22px, 2.6vw, 44px); }
  .ct-form-note { margin-bottom: clamp(12px, 2.4vh, 26px); }
  .ct-form { gap: clamp(10px, 1.8vh, 16px); }
  .ct-field { gap: clamp(4px, 0.8vh, 7px); }
  .ct-field input,
  .ct-field textarea { padding: clamp(8px, 1.3vh, 12px) 14px; }
  .ct-field textarea { min-height: clamp(64px, 13vh, 140px); height: clamp(64px, 13vh, 140px); }

  /* ---- Map: fills the screen under the nav bar ---- */
  .ct-map-section {
    display: flex;
    flex-direction: column;
    padding: calc(var(--nav-space) + 1.5vh) 16px 2.5vh;
  }
  .ct-map-section > .container { flex: 1; width: 100%; display: flex; flex-direction: column; }
  .ct-map { flex: 1; height: auto; min-height: 360px; }
  .ct-map-card { padding: clamp(16px, 2.6vh, 24px) 24px; }
  .ct-map-list { gap: clamp(8px, 1.4vh, 12px); }
}

/* Tablets / phones: sections size to their content and scroll normally */
@media (max-width: 860px) {
  .ct-scene { min-height: 0; }
  .ct-hero { min-height: 70vh; min-height: 70svh; }
}
@media (max-width: 640px) {
  .ct-hero { min-height: 0; }
  .ct-map-guard { bottom: auto; height: 300px; }
}


/* =====================================================================
   5 Nov: section 2 = contact tiles + office map; section 3 = large form
   ===================================================================== */
.ct-touch-map { align-self: center; }
.ct-touch-map .ft-map { height: clamp(300px, 52vh, 480px); }

.ct-enquiry {
  position: relative;
  padding: clamp(64px, 10vh, 110px) 0 calc(clamp(40px, 7vh, 80px) + 28px);   /* + footer overlap */
  background:
    radial-gradient(55% 70% at 100% 0%, rgba(107, 79, 224, 0.10), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(228, 32, 48, 0.07), transparent 70%),
    var(--mist);
  overflow: hidden;
}
.ct-enquiry::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(18, 22, 58, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 80%);
          mask-image: linear-gradient(110deg, transparent 35%, #000 80%);
  pointer-events: none;
}
.ct-enquiry > .container { position: relative; }
.ct-enq-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 16px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(18px, 3.5vh, 36px);
}
.ct-enq-head .ct-title { margin-bottom: 0; }
.ct-enq-head .ct-lead { margin: 0; }
.ct-form-card--wide { padding: clamp(22px, 3.4vh, 44px) clamp(22px, 3vw, 48px); }
.ct-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.8vh, 16px) 16px; }

.ct-field select {
  width: 100%;
  border: 1px solid #e1e3ee;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2312163a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  border-radius: 10px;
  padding: 12px 40px 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.ct-field select:invalid { color: var(--muted); }
.ct-field select option, .ct-field select optgroup { color: var(--ink); }
.ct-field select:focus { border-color: var(--purple-start); background-color: #fff; box-shadow: 0 0 0 3px rgba(75,63,176,0.12); }
.ct-field textarea::placeholder { color: #a3a6ba; }

@media (min-width: 861px) {
  .ct-enquiry { display: flex; align-items: center; padding-top: calc(var(--nav-space) + 2vh); }
  .ct-enquiry > .container { width: 100%; }
  .ct-field select { padding-top: clamp(8px, 1.3vh, 12px); padding-bottom: clamp(8px, 1.3vh, 12px); }
  .ct-enquiry .ct-field textarea { min-height: clamp(64px, 12vh, 130px); height: clamp(64px, 12vh, 130px); }
}
@media (max-width: 1000px) { .ct-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ct-enq-head { grid-template-columns: 1fr; }
  .ct-touch-map .ft-map { height: 320px; }
}
@media (max-width: 560px) { .ct-grid3 { grid-template-columns: 1fr; } }
