/* ============================================
   Verism — style.css
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  background-color: #f6f5f0;
  color: #374151;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  background-color: #f6f5f0;
  border-bottom: 1px solid #e0ddd6;
}

/* --- Brand wordmark --- */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  line-height: 1;
}

.brand-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: #0d0d0d;
}

.brand-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: #888;
}

.brand-sub:hover { color: #0d0d0d; }

.footer .brand-name { font-size: 22px; }

/* --- Content --- */
.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 48px 120px;
}

.h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #0d0d0d;
  margin-bottom: 40px;
}

.h1 em {
  font-style: italic;
  color: #444;
}

.content p {
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  font-weight: 300;
  margin-bottom: 24px;
}

.content p.strong {
  color: #0d0d0d;
  font-weight: 500;
}

.content p strong {
  color: #0d0d0d;
  font-weight: 500;
}

.divider {
  width: 40px;
  height: 1px;
  background: #e0ddd6;
  margin: 48px 0;
}

/* --- CTA Row --- */
.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 48px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
}

.cta-btn-primary {
  background: #0d0d0d;
  color: #f6f5f0;
}

.cta-btn-primary:hover { opacity: 0.72; }

.cta-btn-secondary {
  background: transparent;
  color: #0d0d0d;
  border: 1px solid #0d0d0d;
}

.cta-btn-secondary:hover { opacity: 0.6; }

/* --- Overlay --- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-inner {
  background: #111;
  border-radius: 14px;
  padding: 40px 36px;
  max-width: 600px;
  width: 100%;
  position: relative;
  flex-shrink: 0;
  margin-bottom: 48px;
}

.overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #666;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.overlay-close:hover { color: #fff; }

.overlay-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  color: #f0f0f0;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.overlay-subtitle {
  font-size: 13px;
  color: #888;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* --- Intake Form --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 7px;
}

.form-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  color: #e0e0e0;
  background: #191919;
  border: 1px solid #272727;
  border-radius: 7px;
  outline: none;
}

.form-textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.form-input::placeholder { color: #666; }
.form-input:focus { border-color: #404040; }

.form-section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-top: 8px;
  margin-bottom: 10px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.checkbox-group-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.checkbox-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-item input {
  accent-color: #f6f5f0;
}

.form-submit {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0d0d0d;
  background: #f6f5f0;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.form-submit:hover { opacity: 0.85; }
.form-submit:disabled { opacity: 0.6; cursor: default; }

/* --- Footer --- */
.footer {
  padding: 60px 48px 40px;
  border-top: 1px solid #e0ddd6;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: #888;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .navbar { padding: 18px 24px; }
  .content { padding: 72px 24px 80px; }
  .footer { padding: 48px 24px 32px; }
}

@media (max-width: 600px) {
  .content { padding: 56px 20px 64px; }
  .form-row { grid-template-columns: 1fr; }
  .overlay-inner { padding: 28px 20px; }
  .overlay { padding: 24px 16px; }
  .cta-row { flex-direction: column; }
  .checkbox-group-row { flex-direction: column; }
  .footer { padding: 40px 20px 28px; }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
