/* =============================================================================
   CONTACT.CSS — Contact page styles
   Shares tokens.css. All contact-page-specific styles live here.
   ============================================================================= */


/* ─────────────────────────────────────────────
   NAV  (matches components.css pattern)
   ───────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--black);
}

/* ✕ close button — offset shadow style (matches case study nav) */
.nav__close {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav__close-shadow {
  position: absolute;
  inset: 3px 0 0 3px;
  background: var(--black);
  border: 1px solid var(--black);
}
.nav__close-face {
  position: absolute;
  inset: 0 3px 3px 0;
  background: var(--white);
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: red;
  transition: transform 0.15s ease;
}
.nav__close:hover .nav__close-face { transform: translate(2px, 2px); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18px;
  color: var(--black);
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 3px -3px -3px 3px;
  border: 1px solid var(--black);
  pointer-events: none;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--black);
}

.nav-links a.contact-btn {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.nav-links a.contact-btn::before {
  border-color: var(--black);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--black);
  z-index: 99;
  flex-direction: column;
  padding: 20px 32px 28px;
  gap: 12px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: 12px;
}
.mobile-nav a:last-child { border-bottom: none; }


/* ─────────────────────────────────────────────
   BACKGROUND
   ───────────────────────────────────────────── */

.hero-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
  display: none;
}
body {
  background: #ffffff;
}


/* ─────────────────────────────────────────────
   MAIN LAYOUT
   ───────────────────────────────────────────── */

#contact-main {
  min-height: 100svh;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  display: flex;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  width: 100%;
  align-items: start;
}


/* ─────────────────────────────────────────────
   FORM
   ───────────────────────────────────────────── */

.form-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--black);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--black);
  border-radius: 0;
  padding: 10px 14px;
  outline: none;
  resize: none;
  transition: background 0.2s, border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--navy);
}

.form-group textarea {
  min-height: 140px;
}

/* Coloured left-border accents matching the screenshot */
#name    { border-left: 3px solid var(--yellow); }
#email   { border-left: 3px solid var(--coral); }
#message { border-left: 3px solid var(--sky); }

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.send-btn {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 8px 28px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.send-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.send-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.send-status.error   { color: var(--coral); }
.send-status.success { color: var(--teal); }


/* ─────────────────────────────────────────────
   ANIMATION PLACEHOLDER
   ───────────────────────────────────────────── */

.anim-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  background: rgba(200, 200, 200, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.1);
}


/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */

footer {
  background: var(--black);
  color: var(--white);
  padding: 32px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.back-to-top {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 20px;
  transition: background 0.2s;
}
.back-to-top:hover { background: rgba(255, 255, 255, 0.1); }


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

/* ── Tablet ≤ 900px ── */
@media (max-width: 900px) {
  nav { padding: 16px 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { top: 57px; }

  #contact-main {
    padding-left: 28px;
    padding-right: 28px;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .anim-placeholder {
    max-width: 100%;
  }

  footer { padding: 24px 28px; }
}

/* ── Mobile ≤ 540px ── */
@media (max-width: 540px) {
  nav { padding: 14px 20px; }
  .mobile-nav { top: 53px; }

  #contact-main {
    padding-top: 88px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 56px;
  }

  .contact-grid { gap: 36px; }

  .form-group label { font-size: 16px; }

  .form-group input,
  .form-group textarea {
    font-size: 15px;
    padding: 9px 12px;
  }

  footer {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ── Narrow ≤ 360px ── */
@media (max-width: 360px) {
  .nav-logo { font-size: 16px; }
  .form-group label { font-size: 15px; }
}