/* ─── TOKENS (mirrors index exactly) ─────────────────── */
:root {
  --ink:        #0D1117;
  --ink-dim:    #6B7280;
  --surface:    #FFFFFF;
  --panel:      #F4F5F6;
  --dark:       #0F1B2D;
  --navy:       #1A3A5C;
  --blue:       #2563AE;
  --sky:        #5BA8D9;
  --lime:       #C8E84A;
  --lime-dark:  #A8C832;
  --border-l:   #E5E7EB;
  --radius:     12px;
  --radius-lg:  18px;
  --nav-h:      56px;

  /* ── motion tokens (same as index) ── */
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --ease-spring:   cubic-bezier(.34,1.56,.64,1);
  --ease-gentle:   cubic-bezier(.25,.46,.45,.94);
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img, video { display: block; width: 100%; }
ul { list-style: none; }

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: var(--nav-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-l);
  transition: box-shadow .3s var(--ease-out-expo);
}
nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}

.nav-left { display: flex; align-items: center; gap: 20px; }
.nav-logo {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.3px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }
.nav-logo span {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
}
.nav-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-dim); }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color .2s;
}

/* Lime underline — plain links only, NOT .nav-cta */
.nav-links a:not(.nav-cta) {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--lime-dark);
  border-radius: 2px;
  transition: width .25s var(--ease-out-expo);
}
.nav-links a:not(.nav-cta):hover        { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-active {
  font-weight: 600;
  color: var(--ink) !important;
}
.nav-active:not(.nav-cta)::after { width: 100% !important; }

/* Contact CTA — grey pill, black text */
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: #d0d0d0;
  color: #000 !important;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: #e1e1e1; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease-out-expo), opacity .2s;
}

/* Hamburger → X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-l);
  padding: 20px 32px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform .25s var(--ease-out-expo), opacity .2s;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  font-size: 16px;
  color: var(--ink-dim);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-l);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu a:last-child { border-bottom: none; }

/* ─── TWO-COLUMN LAYOUT ──────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}

/* ─── LEFT PANEL — testimonial carousel ─────────────── */
.contact-left {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(37,99,174,.3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(26,58,92,.45) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.t-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.t-carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* Hint to browser that this element handles horizontal gestures,
     so vertical page scrolling isn't blocked during a swipe */
  touch-action: pan-y;
}

/* ── Slides ───────────────────────────────────────────── */
/*
  FIX 1 — CAROUSEL DOTS OVERLAP
  The extra padding-bottom shifts the vertically-centred card
  upward within the slide, creating a clear gap between the
  card's bottom edge and the dots row.

  To adjust the gap manually:
    - Increase padding-bottom  →  more space below card (dots lower)
    - Decrease padding-bottom  →  less space (card sits closer to dots)

  The dots themselves sit at `bottom: 28px` (see .t-dots below).
  To move the dots independently, change that value.
*/
.t-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 52px 72px;   /* ← bottom padding creates dot clearance */
}
.t-slide--active { opacity: 1; }

/* ── Card ─────────────────────────────────────────────── */
.t-card {
  width: 100%;
  max-width: 600px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(4px);
  transition: transform .3s var(--ease-out-expo), box-shadow .3s;
}
.t-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}

.t-card-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 300px;
}
.t-card-inner--reverse { flex-direction: row-reverse; }

/* ── Text block ───────────────────────────────────────── */
.t-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 40px 30px;
}

.t-stars {
  color: #F59E0B;
  font-size: 16px;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.t-quote {
  font-size: 19px;
  line-height: 1.85;
  color: rgba(255,255,255,.85);
  font-style: italic;
  flex: 1;
}

.t-byline { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.t-name { font-size: 16px; font-weight: 600; color: #fff; }
.t-org  { font-size: 15px; color: rgba(255,255,255,.5); }

/* ── Photo block ──────────────────────────────────────── */
.t-photo {
  flex-shrink: 0;
  width: 38%;
  overflow: hidden;
  position: relative;
  border-left: 1px solid rgba(255,255,255,.08);
}
.t-card-inner--reverse .t-photo {
  border-left: none;
  border-right: 1px solid rgba(255,255,255,.08);
}
.t-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.t-photo--placeholder {
  background: rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.2);
}
.t-photo--placeholder svg { opacity: .5; }
.t-photo--placeholder span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
}

/* ── Arrows ───────────────────────────────────────────── */
.t-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .25s var(--ease-spring), opacity .2s;
  backdrop-filter: blur(6px);
  opacity: .7;
}
.t-arrow:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}
.t-arrow--prev { left: 16px; }
.t-arrow--next { right: 16px; }

/* ── Dots — morphing pill (mirrors homepage carousel) ── */
/*
  To move the dots UP or DOWN independently of the card:
    Change `bottom` here. Higher value = closer to bottom edge.
    Current value: 28px (was 22px — bumped slightly for breathing room).
*/
.t-dots {
  position: absolute;
  bottom: 28px;              /* ← adjust this to reposition dots vertically */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 10;
}
.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
  transition:
    width         .4s var(--ease-out-expo),
    border-radius .4s var(--ease-out-expo),
    background    .35s ease;
}
.t-dot:hover:not(.t-dot--active) { background: rgba(255,255,255,.5); }
.t-dot--active {
  width: 28px;
  border-radius: 4px;
  background: var(--lime);
}

/* ─── RIGHT PANEL ────────────────────────────────────── */
.contact-right {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border-l);
}

.form-section {
  padding: 56px 60px;
  flex: 1;
}

.contact-heading {
  font-family: 'Noto Sans', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.contact-sub {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-dim);
  margin-bottom: 36px;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; }
.form-group--select { position: relative; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink-dim); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37,99,174,.08);
}
.form-input.input-error { border-color: #EF4444; animation: shake .35s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}
.form-select { padding-right: 40px; cursor: pointer; }
.select-chevron {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-dim);
  pointer-events: none;
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.65; }

/* Send Message button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--lime);
  color: var(--ink);
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.75em;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease-spring), box-shadow .2s;
  margin-top: 4px;
}
.btn-submit:hover:not(:disabled) {
  background: var(--lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168,200,50,.3);
}
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  margin-top: 4px;
}
.form-success.visible { display: flex; }

/* ─── FOOTER ──────────────────────────────────────────── */
.contact-footer {
  padding: 32px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-l);
}
.footer-copy { font-size: 12px; color: var(--ink-dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--ink-dim); transition: color .2s; }
.footer-links a:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   960 → 768 → 640 → 625 → 580 → 480
   ═══════════════════════════════════════════════════════ */

/* ── 960px: stack to single column ──────────────────── */
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; min-height: auto; }

  .contact-left {
    position: relative;
    top: auto;
    height: 60vw;
    min-height: 320px;
  }

  .t-card       { max-width: 480px; }
  .t-card-inner { min-height: 240px; }
  .t-card-text  { gap: 12px; padding: 32px 24px; }
  .t-stars      { font-size: 13px; }
  .t-quote      { font-size: 15px; line-height: 2; }
  .t-name       { font-size: 13px; }
  .t-org        { font-size: 12px; }
  .t-byline     { gap: 2px; }

  .form-section   { padding: 40px 36px; }
  .contact-footer { padding: 24px 36px; }
}

/* ── 768px: mobile nav + compact layout ─────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links, .nav-status, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .contact-left { height: 56vw; min-height: 280px; }
  .t-slide      { padding: 32px 40px 64px; } /* keep dot clearance on mobile */

  .form-section   { padding: 36px 24px; }
  .contact-footer { padding: 20px 24px; flex-direction: column; align-items: flex-start; }
  .form-row       { grid-template-columns: 1fr; }
}

/* ── 640px: lock image right, text left on reverse cards */
@media (max-width: 640px) {
  .t-card-inner--reverse { flex-direction: row; }
  .t-card-inner--reverse .t-photo {
    border-left: 1px solid rgba(255,255,255,.08);
    border-right: none;
  }
}

/* ── 625px: hide carousel arrows on very narrow panels ── */
@media (max-width: 625px) {
  .t-arrow { display: none; }
}

/* ── 580px: scale card down to fit viewport ─────────── */
@media (max-width: 580px) {
  .t-slide      { padding: 20px 16px 60px; }
  .t-card       { max-width: 100%; }
  .t-card-inner { min-height: 180px; }
  .t-card-text  { gap: 8px; padding: 20px 14px; }
  .t-stars      { font-size: 11px; letter-spacing: 1px; }
  .t-quote      { font-size: 12px; line-height: 1.65; }
  .t-name       { font-size: 12px; }
  .t-org        { font-size: 11px; }
  .t-photo      { width: 34%; }
}

/* ── 480px: small phones ─────────────────────────────── */
@media (max-width: 480px) {
  .contact-heading { font-size: 28px; }
  .contact-left    { height: 60vw; min-height: 240px; }

  .t-card-inner,
  .t-card-inner--reverse { flex-direction: row; }
  .t-card-inner--reverse .t-photo {
    border-left: 1px solid rgba(255,255,255,.08);
    border-right: none;
  }
  .t-photo {
    width: 34%;
    border-left: 1px solid rgba(255,255,255,.08);
  }

  .form-section   { padding: 28px 20px; }
  .contact-footer { padding: 20px; }
}
