/* =====================================================================
   SmarDac — Contact page
   Scoped with the `ct-` prefix so nothing here leaks into other pages.
   Same design language as the about page (about.css); the shared
   primitives are repeated because about.css loads on /about only.
   ===================================================================== */

:root {
  --ct-p: #0092ff;
  --ct-p2: #3fd0ff;
  --ct-navy: #091d3e;
  --ct-navy2: #0b2452;
  --ct-navy3: #10305f;
  --ct-ink: #1f314f;
  --ct-muted: #6b7a90;
  --ct-line: #e6ecf5;
  --ct-head: 'Sora', 'IBM Plex Sans', sans-serif;
  --ct-body: 'IBM Plex Sans', 'Roboto', sans-serif;
  --ct-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* The theme floats its transparent header only over its own .page-title
   block; this hero is not one, so it takes the same treatment here. */
.header.header-transparent { position: absolute; top: 0; left: 0; right: 0; width: 100%; }

.ct-section { position: relative; overflow: hidden; }
.ct-container { width: 100%; padding: 0 var(--site-gutter, clamp(20px, 5vw, 96px)); }

/* ---------- Typography helpers ---------- */
.ct-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--ct-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ct-p); margin-bottom: 18px;
}
.ct-eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--ct-p), var(--ct-p2)); border-radius: 2px; }
.ct-h2 {
  font: 700 clamp(28px, 3.4vw, 42px)/1.15 var(--ct-head); text-transform: none;
  color: var(--ct-ink); letter-spacing: -.02em; margin: 0 0 16px;
}
.ct-lead { font: 400 17px/1.7 var(--ct-body); color: var(--ct-muted); margin: 0; }
.ct-grad { background: linear-gradient(90deg, var(--ct-p) 0%, var(--ct-p2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.ct-btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: 14px; border: 1px solid transparent;
  font: 600 15px/1 var(--ct-body); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .35s var(--ct-ease), box-shadow .35s var(--ct-ease), background .35s, color .35s, border-color .35s;
}
.ct-btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ct-ease); }
.ct-btn:hover svg { transform: translateX(4px); }
.ct-btn:hover { transform: translateY(-2px); text-decoration: none; }
.ct-btn:focus-visible { outline: 2px solid var(--ct-p2); outline-offset: 3px; }
.ct-btn--primary { color: #fff; background: linear-gradient(135deg, #0a84ff 0%, #0092ff 45%, #22c1ff 100%); box-shadow: 0 10px 30px -10px rgba(0, 146, 255, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.ct-btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ct-ease);
}
.ct-btn--primary:hover { color: #fff; box-shadow: 0 18px 40px -12px rgba(0, 146, 255, .9), inset 0 1px 0 rgba(255,255,255,.3); }
.ct-btn--primary:hover::after { transform: translateX(120%); }
.ct-btn--primary[disabled] { opacity: .7; cursor: progress; transform: none; }
.ct-btn--ghost { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.ct-btn--ghost:hover { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }

.ct-link { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--ct-body); color: var(--ct-p); text-decoration: none; position: relative; }
.ct-link::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ct-ease); }
.ct-link:hover { color: var(--ct-p); text-decoration: none; }
.ct-link:hover::after { transform: scaleX(1); transform-origin: left; }
.ct-link svg { width: 16px; height: 16px; transition: transform .35s var(--ct-ease); }
.ct-link:hover svg { transform: translateX(4px); }

/* =====================================================================
   HERO — same layout as the about page: copy on the left, the platform
   (photo mirrored so it sits on the right) clear on the right.
   ===================================================================== */
.ct-hero {
  position: relative; min-height: clamp(680px, 92vh, 960px); padding: 220px 0 180px;
  display: flex; align-items: center; color: #fff; background: var(--ct-navy);
}
.ct-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ct-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 42%; display: block; }
.ct-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 15, 36, .94) 0%, rgba(9, 29, 62, .84) 30%, rgba(9, 29, 62, .42) 60%, rgba(9, 29, 62, .22) 100%),
    linear-gradient(180deg, rgba(5, 15, 36, .55) 0%, rgba(5, 15, 36, 0) 28%, rgba(5, 15, 36, 0) 60%, rgba(5, 15, 36, .92) 100%);
}
.ct-hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%);
}
.ct-hero__glow { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; }
.ct-hero__glow--a { width: 620px; height: 620px; left: -220px; top: 0; background: radial-gradient(circle, rgba(10,92,255,.34), rgba(10,92,255,.12) 45%, transparent 70%); }
.ct-hero__glow--b { width: 480px; height: 480px; right: -160px; bottom: -20%; background: radial-gradient(circle, rgba(18,184,255,.22), rgba(18,184,255,.08) 45%, transparent 70%); }

.ct-hero__inner { position: relative; z-index: 2; max-width: 720px; }

/* Breadcrumb: pinned just under the 135px transparent header, not part
   of the vertically centred copy block. */
.ct-hero__top { position: absolute; left: 0; right: 0; top: 156px; z-index: 3; opacity: 0; animation: ctUp .8s var(--ct-ease) .05s both; }
.ct-crumb {
  display: inline-flex; align-items: center; gap: 12px; height: 38px; padding: 0 16px 0 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(9, 29, 62, .38);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 600 11.5px/1 var(--ct-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.ct-crumb a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); text-decoration: none; transition: color .3s; }
.ct-crumb a svg { width: 15px; height: 15px; flex: none; opacity: .9; }
.ct-crumb a:hover { color: #fff; text-decoration: none; }
.ct-crumb i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); }
.ct-crumb [aria-current] { color: var(--ct-p2); }
.ct-hero .ct-eyebrow { color: var(--ct-p2); }
.ct-hero__title {
  font: 800 clamp(36px, 4.8vw, 64px)/1.06 var(--ct-head); letter-spacing: -.03em; color: #fff;
  margin: 0 0 22px; text-transform: none;
}
.ct-hero__title .ct-grad { background: linear-gradient(90deg, #4fd8ff, #0092ff 60%, #7ee0ff); -webkit-background-clip: text; background-clip: text; }
.ct-hero__lead { font: 400 clamp(16px, 1.25vw, 19px)/1.7 var(--ct-body); color: rgba(255,255,255,.78); max-width: 560px; margin: 0 0 34px; }
.ct-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Entrance */
.ct-hero__inner > * { opacity: 0; transform: translateY(18px); animation: ctUp .8s var(--ct-ease) both; }
.ct-hero__inner > :nth-child(1) { animation-delay: .15s; }
.ct-hero__inner > :nth-child(2) { animation-delay: .25s; }
.ct-hero__inner > :nth-child(3) { animation-delay: .37s; }
.ct-hero__inner > :nth-child(4) { animation-delay: .5s; }
.ct-hero__bg img { transform: scale(1.06); animation: ctSettle 6s cubic-bezier(.25, .1, .25, 1) forwards; }

/* =====================================================================
   QUICK CONTACT — three cards overlapping the hero's lower edge
   ===================================================================== */
.ct-quick { position: relative; z-index: 5; margin-top: -64px; }
.ct-quick__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ct-card {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  border-radius: 20px; background: #fff; border: 1px solid var(--ct-line); text-decoration: none;
  box-shadow: 0 24px 50px -28px rgba(9, 29, 62, .55); overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ct-ease), box-shadow .45s var(--ct-ease), border-color .3s;
}
.ct-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, var(--ct-p2) 0%, var(--ct-p) 45%, rgba(0,146,255,0) 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .45s ease;
}
.ct-quick__grid .ct-card:hover { transform: translateY(-6px); text-decoration: none; box-shadow: 0 30px 60px -28px rgba(0, 146, 255, .45), 0 8px 20px -12px rgba(9, 29, 62, .18); }
.ct-quick__grid .ct-card:hover::before { opacity: 1; }
.ct-card:focus-visible { outline: 2px solid var(--ct-p); outline-offset: 4px; }
.ct-card__icon { flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0a84ff, #22c1ff); box-shadow: 0 10px 20px -10px rgba(0,146,255,.8); transition: transform .45s var(--ct-ease); }
.ct-card__icon svg { width: 22px; height: 22px; }
.ct-quick__grid .ct-card:hover .ct-card__icon { transform: rotate(-6deg) scale(1.06); }
.ct-card small { display: block; font: 600 11px var(--ct-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ct-muted); margin-bottom: 4px; }
.ct-card strong { display: block; font: 700 16px/1.3 var(--ct-head); color: var(--ct-ink); word-break: break-word; transition: color .3s; }
.ct-quick__grid .ct-card:hover strong { color: var(--ct-p); }
.ct-card__arrow { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ct-p); background: #eef6ff; transition: background .3s, color .3s, transform .35s var(--ct-ease); }
.ct-card__arrow svg { width: 16px; height: 16px; }
.ct-quick__grid .ct-card:hover .ct-card__arrow { background: var(--ct-p); color: #fff; transform: translateX(3px); }

/* =====================================================================
   MAIN — copy on the left, form card on the right
   ===================================================================== */
.ct-main { padding: 96px 0 110px; background: #fff; }
.ct-main__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.ct-aside { position: sticky; top: 110px; }
.ct-aside .ct-lead { margin-bottom: 30px; }

.ct-steps { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 6px; counter-reset: ct-step; }
.ct-steps li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; transition: background .3s, border-color .3s; }
.ct-steps li:hover { background: #f6f9fd; border-color: var(--ct-line); }
.ct-steps li::before {
  counter-increment: ct-step; content: "0" counter(ct-step);
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font: 800 12px var(--ct-head); letter-spacing: .08em; color: var(--ct-p);
  background: linear-gradient(135deg, #eef6ff, #dff1ff);
}
.ct-steps h5 { font: 700 16px var(--ct-head); text-transform: none; color: var(--ct-ink); margin: 6px 0 4px; }
.ct-steps p { font: 400 14.5px/1.6 var(--ct-body); color: var(--ct-muted); margin: 0; }

.ct-office {
  position: relative; padding: 24px 26px; border-radius: 20px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, #0d2c60 0%, #091d3e 70%); box-shadow: 0 24px 50px -24px rgba(9,29,62,.75), 0 0 0 1px rgba(255,255,255,.07) inset;
}
.ct-office::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 70%); }
.ct-office > * { position: relative; }
.ct-office small { display: block; font: 600 11px var(--ct-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ct-p2); margin-bottom: 8px; }
.ct-office strong { display: block; font: 700 17px/1.4 var(--ct-head); color: #fff; margin-bottom: 4px; }
.ct-office p { font: 400 14px/1.6 var(--ct-body); color: rgba(255,255,255,.7); margin: 0 0 16px; }
.ct-office .ct-link { color: #7ee0ff; }
.ct-office .ct-link:hover { color: #fff; }

.ct-social { display: flex; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.ct-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ct-ink); background: #f6f9fd; border: 1px solid var(--ct-line); transition: background .3s, color .3s, transform .3s, border-color .3s; }
.ct-social a:hover { background: var(--ct-p); border-color: var(--ct-p); color: #fff; transform: translateY(-3px); }
.ct-social a svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Form card ---------- */
.ct-form {
  position: relative; padding: 40px 40px 36px; border-radius: 28px; background: #fff;
  border: 1px solid var(--ct-line); box-shadow: 0 40px 80px -40px rgba(9, 29, 62, .45), 0 2px 6px -2px rgba(9, 29, 62, .08);
}
.ct-form::before { content: ""; position: absolute; left: 40px; right: 40px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--ct-p), var(--ct-p2)); }
.ct-form__head { margin-bottom: 26px; }
.ct-form__head h3 { font: 700 24px/1.2 var(--ct-head); text-transform: none; letter-spacing: -.02em; color: var(--ct-ink); margin: 0 0 6px; }
.ct-form__head p { font: 400 14.5px/1.6 var(--ct-body); color: var(--ct-muted); margin: 0; }

.ct-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 22px; font: 500 14.5px/1.55 var(--ct-body); }
.ct-alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.ct-alert--ok { color: #0f5132; background: #e8f7ee; border: 1px solid #bfe7cf; }
.ct-alert--err { color: #842029; background: #fdecee; border: 1px solid #f5c2c7; }

.ct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-field--full { grid-column: 1 / -1; }
.ct-field label { font: 600 13px/1 var(--ct-body); color: var(--ct-ink); margin: 0; }
.ct-field label em { font-style: normal; color: var(--ct-p); }
.ct-field label span { font-weight: 400; color: var(--ct-muted); }
.ct-input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 13px;
  border: 1px solid #dfe6f0; background: #f8fafd; color: var(--ct-ink);
  font: 500 15px var(--ct-body); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.ct-input::placeholder { color: #9aa7ba; font-weight: 400; }
.ct-input:hover { border-color: #c9d5e6; }
.ct-input:focus { border-color: var(--ct-p); background: #fff; box-shadow: 0 0 0 4px rgba(0, 146, 255, .14); }
.ct-input:user-invalid { border-color: #e5484d; }
textarea.ct-input { height: auto; min-height: 150px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.ct-select { position: relative; }
.ct-select .ct-input { padding-right: 44px; cursor: pointer; }
/* Only the chevron below should be visible: strip the browser's own
   dropdown arrow (Blink/WebKit, Gecko and the Edge/IE expand button). */
.ct-select select.ct-input {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: none;
}
.ct-select select.ct-input::-ms-expand { display: none; }
.ct-select .ct-input.is-placeholder { color: #9aa7ba; font-weight: 400; }
.ct-select svg { position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ct-muted); pointer-events: none; transition: color .25s, transform .3s var(--ct-ease); }
.ct-select:focus-within svg { color: var(--ct-p); transform: translateY(-50%) rotate(180deg); }
.ct-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ct-line); }
.ct-form__foot .g-recaptcha { transform-origin: left top; }
.ct-form__note { font: 400 12.5px/1.6 var(--ct-body); color: var(--ct-muted); margin: 14px 0 0; }
.ct-form__note a { color: var(--ct-p); text-decoration: none; }
.ct-form__note a:hover { text-decoration: underline; }

/* =====================================================================
   Scroll reveal + keyframes
   ===================================================================== */
.ct-io { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ct-ease), transform .9s var(--ct-ease); transition-delay: var(--d, 0ms); }
.ct-io.in { opacity: 1; transform: none; }

@keyframes ctUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ctSettle { to { transform: scale(1); } }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1199px) {
  .ct-main__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .ct-form { padding: 32px 28px 30px; }
  .ct-form::before { left: 28px; right: 28px; }
}
@media (max-width: 991px) {
  .ct-hero { padding: 170px 0 140px; min-height: 0; }
  .ct-hero__top { top: 100px; }
  .ct-hero__bg img { object-position: 64% 40%; }
  .ct-quick { margin-top: -54px; }
  .ct-quick__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ct-main { padding: 80px 0 90px; }
  .ct-main__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ct-aside { position: static; }
}
@media (max-width: 767px) {
  /* The 80px mobile header is opaque and sits over the hero. */
  .ct-hero { padding: 150px 0 110px; display: block; }
  .ct-hero__top { top: 96px; }
  .ct-hero__bg::after {
    background:
      linear-gradient(180deg, rgba(5, 15, 36, .92) 0%, rgba(9, 29, 62, .78) 45%, rgba(5, 15, 36, .94) 100%),
      linear-gradient(90deg, rgba(5, 15, 36, .55) 0%, rgba(5, 15, 36, .15) 100%);
  }
  .ct-hero__bg img { object-position: 66% 40%; }
  .ct-hero__glow--a { width: 340px; height: 340px; left: -160px; }
  .ct-hero__glow--b { width: 300px; height: 300px; right: -140px; }
  .ct-hero__title { font-size: clamp(30px, 8.6vw, 40px); }
  .ct-hero__lead { font-size: 15.5px; margin-bottom: 26px; }
  .ct-hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ct-hero__actions .ct-btn { width: 100%; justify-content: center; height: 52px; }
  .ct-card { padding: 16px 18px; border-radius: 16px; gap: 14px; }
  .ct-card__icon { width: 44px; height: 44px; border-radius: 12px; }
  .ct-card__icon svg { width: 19px; height: 19px; }
  .ct-card strong { font-size: 15px; }
  .ct-main { padding: 64px 0 70px; }
  .ct-form { padding: 26px 20px 24px; border-radius: 20px; }
  .ct-form::before { left: 20px; right: 20px; }
  .ct-form__head h3 { font-size: 21px; }
  .ct-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ct-form__foot { flex-direction: column; align-items: stretch; }
  .ct-form__foot .ct-btn { width: 100%; justify-content: center; }
  .ct-steps li { padding: 12px 10px; }
  .ct-office { padding: 20px 20px; }
}
@media (max-width: 575px) {
  .ct-hero { padding: 140px 0 100px; }
  .ct-eyebrow { font-size: 11px; letter-spacing: .14em; margin-bottom: 14px; }
  .ct-crumb { font-size: 10.5px; height: 34px; }
  .ct-h2 { font-size: clamp(24px, 6.6vw, 30px); }
  .ct-card__arrow { display: none; }
}
@media (max-width: 359px) {
  .ct-btn { padding: 0 18px; font-size: 14px; }
  /* Google's widget is 304px wide; scale it down so it never overflows */
  .ct-form__foot .g-recaptcha { transform: scale(.88); }
}

@media (hover: none) {
  .ct-card:hover, .ct-btn:hover, .ct-social a:hover { transform: none; }
  .ct-btn, .ct-link, .ct-card { -webkit-tap-highlight-color: rgba(0, 146, 255, .18); }
}
