/* css/style.css — neuroperceptual.com */

* { box-sizing: border-box; }
html { overflow-x: hidden; }

body {
  margin: 0;
  background: #f6f1e7;
  font-family: 'Inter', system-ui, sans-serif;
  color: #2c2c2c;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; margin: 0; }
.mono { font-family: 'JetBrains Mono', monospace; }
img, svg { max-width: 100%; height: auto; }

.page-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #f6f1e7;
  overflow-x: hidden;
}

:root {
  --gx: 96px;      /* section side gutter */
  --gx-nav: 48px;  /* nav side gutter */
  --gy: 100px;     /* section top/bottom gutter */
}

@media (max-width: 860px) {
  div[style*="display: flex"] { flex-direction: column !important; gap: 24px !important; }
  div[style*="display:flex"]  { flex-direction: column !important; gap: 24px !important; }

  /* A fixed flex-basis (e.g. "flex: 0 0 380px") sets a WIDTH in a desktop
     row layout, but becomes a fixed HEIGHT once the rule above forces that
     same row into a column — leaving large blank gaps. Collapse every
     fixed-basis child back to its natural content height on mobile. */
  div[style*="flex: 0 0"] { flex: 1 1 auto !important; }
  div[style*="flex:0 0"]  { flex: 1 1 auto !important; }

  h1 { font-size: 32px !important; line-height: 1.25 !important; }
  h2 { font-size: 24px !important; line-height: 1.3 !important; }
  h3 { font-size: 17px !important; }
  p  { font-size: 15.5px !important; line-height: 1.6 !important; }
  :root { --gx: 32px; --gx-nav: 20px; --gy: 64px; }
}

@media (max-width: 480px) {
  h1 { font-size: 26px !important; }
  h2 { font-size: 21px !important; }
}

/* ---- Forms (waitlist / enquiry / contact modals) ---- */
.np-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 31, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.np-modal-overlay.np-modal-open {
  display: flex;
}
.np-modal {
  background: #f6f1e7;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-sizing: border-box;
  position: relative;
}
.np-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #6b6b6b;
  cursor: pointer;
  padding: 4px 8px;
}
.np-modal h3 {
  font-size: 22px;
  color: #14181f;
  margin-bottom: 8px;
}
.np-modal p.np-modal-intro {
  font-size: 14.5px;
  color: #6b6b6b;
  line-height: 1.6;
  margin: 0 0 24px;
}
.np-field {
  margin-bottom: 16px;
}
.np-field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #9a9284;
  margin-bottom: 6px;
}
.np-field input,
.np-field textarea {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid #d8d0c4;
  background: #ffffff;
  color: #2c2c2c;
  box-sizing: border-box;
}
.np-field textarea {
  resize: vertical;
  min-height: 90px;
}
.np-submit {
  width: 100%;
  background: #14181f;
  color: #f6f1e7;
  border: none;
  padding: 14px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 8px;
}
.np-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.np-form-msg {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.np-form-msg.np-success { color: #2f6b3a; }
.np-form-msg.np-error   { color: #a03a3a; }

/* ---- Graphic + text split sections (Grid-based, safe on mobile) ---- */
.split-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .split-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Site nav ---- */

.site-nav {
  background: #14181f;
  padding: 18px var(--gx-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2a303a;
  box-sizing: border-box;
  position: relative;
  flex-wrap: nowrap; /* never let the blunt mobile rule touch this one */
}

.site-nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: #d7dbe2;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link-active {
  color: #c8a96e;
  font-weight: 600;
}

.site-nav-cta {
  background: #c8a96e;
  color: #14181f;
  padding: 11px 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Hamburger button: hidden on desktop */
.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f6f1e7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav-toggle-open span:nth-child(2) { opacity: 0; }
.site-nav-toggle-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-nav-toggle {
    display: flex;
  }

  .site-nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #14181f;
    border-bottom: 1px solid #2a303a;
    padding: 8px var(--gx-nav) 20px;
    box-sizing: border-box;
    z-index: 50;
  }

  .site-nav-links-open {
    display: flex;
  }

  .nav-link, .nav-link-active {
    padding: 14px 0;
    border-bottom: 1px solid #22272f;
    width: 100%;
  }

  .site-nav-cta {
    margin-top: 16px;
    text-align: center;
  }
}