/* ══════════════════════════════════════════
   Corporate Stories — Contact Styles
   contact.css
══════════════════════════════════════════ */

:root {
  --black:      #0a0a0a;
  --white:      #f5f4f0;
  --light-bg:   #f0efeb;
  --border:     #e0dfd9;
  --dim:        #888;
  --mid:        #c8c6c0;
  --ink:        #2a2926;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  cursor: none;
}

/* ── GRAIN ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9998; opacity: 0.3;
}

/* ── CURSOR ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--black);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
  transform: translate(-50%, -50%);
}
.cursor.expanded {
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--black);
}
@media (hover: none) and (pointer: coarse) {
  .cursor { display: none; }
  body { cursor: auto; }
}

/* Hide default cursor on all interactive elements */
a, button, input, select, textarea,
.field-input, .field-select, .field-textarea,
.social-link, .btn-send, .navbar-brand,
.nav-link, .footer-links a {
  cursor: none;
}
@media (hover: none) and (pointer: coarse) {
  a, button, input, select, textarea,
  .field-input, .field-select, .field-textarea,
  .social-link, .btn-send, .navbar-brand,
  .nav-link, .footer-links a {
    cursor: auto;
  }
}

/* ── NAVBAR ── */
.navbar {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky !important;
  top: 0 !important;
  z-index: 1030;
}
.navbar-brand {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--black) !important;
}
.nav-link {
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #999 !important;
  padding: 0 1.1rem !important; transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--black) !important; }

/* Mobile menu */
.navbar-collapse { background: var(--white); }
@media (max-width: 991px) {
  .navbar-collapse.show {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
  }
  .navbar-nav .nav-link { padding: 0.6rem 0 !important; }
}

/* ── PAGE HERO ── */
.contact-hero {
  padding: 5.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: #bbb;
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--mid);
}
.contact-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em;
}
.contact-hero h1 em {
  font-style: italic;
  color: var(--mid);
}
.hero-tagline {
  font-size: 0.85rem; color: var(--dim);
  line-height: 1.7; margin-top: 1.2rem;
  max-width: 360px;
}

/* ── MAIN LAYOUT ── */
.contact-body { padding: 5rem 0 0; }

/* ── FORM ── */
.form-section {}

.field-group {
  margin-bottom: 2.4rem;
}
.field-label {
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #bbb;
  display: block; margin-bottom: 0.6rem;
}
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  padding: 0.5rem 0 0.8rem;
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none; -webkit-appearance: none;
  border-radius: 0;
}
.field-input::placeholder,
.field-textarea::placeholder { color: #ccc; }
.field-input:focus,
.field-select:focus,
.field-textarea:focus { border-color: var(--black); }

.field-select-wrap {
  position: relative;
}
.field-select-wrap::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--mid);
  pointer-events: none;
}

.field-textarea {
  resize: none;
  height: 130px;
  line-height: 1.7;
}

/* Character counter */
.field-footer {
  display: flex; justify-content: flex-end;
  margin-top: 0.4rem;
}
.char-count {
  font-size: 0.6rem; letter-spacing: 0.1em;
  color: #ccc;
}

/* Submit button */
.btn-send {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--black); color: var(--white);
  border: none; font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  cursor: none;
  position: relative; overflow: hidden;
  transition: background 0.25s;
  margin-top: 1rem;
}
.btn-send::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
}
.btn-send:hover::before { transform: translateX(0); }
.btn-send span, .btn-send svg { position: relative; z-index: 1; }
.btn-send svg { width: 14px; height: 14px; transition: transform 0.2s; }
.btn-send:hover svg { transform: translateX(4px); }

/* Success state */
.form-success {
  display: none;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--light-bg);
  margin-top: 2rem;
}
.form-success.show { display: block; }
.form-success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 0.4rem;
}
.form-success p { font-size: 0.82rem; color: var(--dim); }

/* ── SIDEBAR ── */
.contact-sidebar { padding-left: 3rem; }

.sidebar-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-block:first-child { padding-top: 0; }
.sidebar-block:last-child { border-bottom: none; }

.sidebar-label {
  font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: #bbb;
  margin-bottom: 0.5rem;
}
.sidebar-value {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--black); line-height: 1.4;
}
.sidebar-value a {
  color: var(--black); text-decoration: none;
  cursor: none;
  transition: color 0.2s;
}
.sidebar-value a:hover { color: var(--dim); }

/* Availability badge */
.availability {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #888;
  margin-top: 0.5rem;
}
.availability-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5a9e6f;
  box-shadow: 0 0 0 0 rgba(90,158,111,0.4);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(90,158,111,0.4); }
  70%  { box-shadow: 0 0 0 6px rgba(90,158,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(90,158,111,0); }
}

/* Social links */
.social-links {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-top: 0.6rem;
}
.social-link {
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #bbb;
  text-decoration: none; cursor: none;
  display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s;
}
.social-link::before {
  content: ''; display: inline-block;
  width: 16px; height: 1px; background: currentColor;
  transition: width 0.3s ease;
}
.social-link:hover { color: var(--black); }
.social-link:hover::before { width: 28px; }

/* ── QUOTE STRIP ── */
.quote-strip {
  margin-top: 6rem;
  padding: 5rem 0;
  background: var(--black);
  position: relative; overflow: hidden;
}
.quote-strip::before {
  content: '\201C';
  position: absolute; top: -1rem; left: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 18rem; font-weight: 900;
  color: #1a1a1a; line-height: 1;
  pointer-events: none;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400; font-style: italic;
  color: var(--white); line-height: 1.5;
  position: relative; z-index: 1;
}
.quote-text strong { font-weight: 900; font-style: normal; }
.quote-attr {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #555;
  margin-top: 1.5rem; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 0.6rem;
}
.quote-attr::before {
  content: ''; display: inline-block;
  width: 24px; height: 1px; background: #333;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  border-top: 1px solid #1a1a1a;
  padding: 2rem 0;
}
.footer-brand {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #555;
}
.footer-copy { font-size: 0.65rem; color: #444; }
.footer-links a {
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #555;
  text-decoration: none; margin-left: 1.5rem;
  transition: color 0.2s; cursor: none;
}
.footer-links a:hover { color: #aaa; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Reveal — starts hidden, JS adds .visible */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: if JS never fires, show after 0.8s */
.reveal {
  animation: revealFallback 0.6s ease 0.8s forwards;
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* When JS fires .visible, cancel the fallback animation */
.reveal.visible {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ── MOBILE ── */
@media (max-width: 991px) {
  .contact-sidebar {
    padding-left: 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
  }
  .sidebar-block { padding: 1.5rem 0; }
}

@media (max-width: 768px) {
  .contact-hero { padding: 3.5rem 0 2.5rem; }
  .contact-body { padding: 3rem 0 0; }
  .quote-strip { padding: 3.5rem 0; margin-top: 4rem; }
  .quote-strip::before { font-size: 10rem; }
  .btn-send { width: 100%; justify-content: center; cursor: pointer; }
  .footer-links a { margin-left: 0; margin-right: 1.2rem; }
}