/* ============================================================
   Schwartz IP — Shared Stylesheet
   Design system: editorial, modern, tech-edge
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Palette */
  --ink: #0A0E1A;
  --ink-soft: #1A1F2E;
  --ink-mute: #4A5060;
  --paper: #FAFAF7;
  --paper-warm: #F2EFE8;
  --rule: #E5E2DA;
  --orange: #E85D1F;
  --blue: #2B6BB8;
  --blue-deep: #1E4A80;
  --gradient: linear-gradient(90deg, #E85D1F 0%, #D94E2A 25%, #5F5C7A 55%, #2B6BB8 100%);
  --gradient-soft: linear-gradient(135deg, rgba(232,93,31,0.08) 0%, rgba(43,107,184,0.08) 100%);

  /* Type */
  --display: 'Instrument Serif', Georgia, serif;
  --sans: 'Manrope', -apple-system, sans-serif;

  /* Scale */
  --max-w: 1280px;
  --gutter: 2rem;
  --radius: 2px;
}

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

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

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  height: 52px;
  width: auto;
  display: block;
  /* Ensure crisp rendering in all browsers */
  shape-rendering: geometricPrecision;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover { color: var(--orange); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.7rem 1.3rem !important;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--orange); color: var(--paper) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.eyebrow.light { color: var(--paper); opacity: 0.8; }

h1, h2, h3 { font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 400;
}

.h2 em {
  font-style: italic;
  color: var(--orange);
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 60ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover { background: var(--orange); transform: translateY(-1px); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.btn-light:hover { background: var(--orange); color: var(--paper); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   SECTIONS
   ============================================================ */

section { padding: clamp(4rem, 8vw, 8rem) var(--gutter); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.gradient-rule {
  height: 3px;
  background: var(--gradient);
  width: 60px;
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem var(--gutter) 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 250, 247, 0.1);
}

.footer-brand h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-brand p { color: rgba(250, 250, 247, 0.6); font-size: 0.92rem; line-height: 1.6; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.65rem; }

.footer-col a {
  color: rgba(250, 250, 247, 0.75);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--paper); }

.footer-meta {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(250, 250, 247, 0.5);
}

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

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter);
    gap: 1.25rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   EMBEDDED CONTACT SECTION (used at the bottom of every page)
   ============================================================ */

.contact-section {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 80px; /* account for sticky nav when anchored */
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-section-head {
  margin-bottom: 2.5rem;
}

.contact-section-head .gradient-rule { margin-bottom: 1.25rem; }

.contact-section-head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 1rem;
}

.contact-section-head h2 em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0.05em 0.12em 0.18em;
  margin: -0.05em -0.08em -0.18em;
  line-height: 1.15;
}

.contact-section-head p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-mute);
  max-width: 56ch;
  line-height: 1.55;
}

.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
}

/* Contact details column */
.contact-details .gradient-rule { margin-bottom: 1.5rem; }

.contact-details h3.contact-details-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.contact-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}

.contact-block:last-child { border-bottom: 1px solid var(--rule); }

.contact-block h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.contact-block a, .contact-block p {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.3;
  font-style: italic;
  font-weight: 400;
}

.contact-block a:hover { color: var(--orange); }

.contact-block p { font-style: normal; font-family: var(--sans); font-size: 1.05rem; }

/* Form column */
.form-wrap {
  background: var(--paper-warm);
  padding: 3rem;
  border: 1px solid var(--rule);
}

.form-wrap h3.form-wrap-title {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.form-wrap > p {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }

.field { display: block; margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 93, 31, 0.12);
}

.field textarea { resize: vertical; min-height: 140px; }

.form-wrap .btn { width: 100%; justify-content: center; margin-top: 1rem; }

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.form-success {
  display: none;
  padding: 1.5rem;
  background: rgba(232, 93, 31, 0.08);
  border: 1px solid var(--orange);
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-success.show { display: block; }

/* Honeypot field — visually hidden but still rendered so bots will fill it.
   Avoids display:none/visibility:hidden which sophisticated bots check for. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-wrap { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
