/* ============================================
   NEXUS LEGAL – Swiss International Style
   Radical Clarity • Light Mode Only
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F5F7;
  --color-text: #0A0A0A;
  --color-text-secondary: #4A4A4A;
  --color-accent: #001F54;
  --color-border: #E5E5E5;
  --color-hover: #F0F0F0;

  /* Typography */
  --font-primary: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Spacing (8px base unit) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* Layout */
  --max-width: 1200px;
  --grid-gap: 1px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
}

p {
  max-width: 65ch;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--color-bg);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: var(--space-md);
}

.hero-text h1 {
  margin-bottom: var(--space-md);
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

/* AI Input Field */
.ai-input-container {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
}

.ai-input-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  display: block;
}

.ai-input-field {
  width: 100%;
  padding: var(--space-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  margin-bottom: var(--space-sm);
  transition: border-color 0.2s ease;
}

.ai-input-field:focus {
  outline: none;
  border-color: var(--color-accent);
}

.ai-input-field::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.ai-submit-btn {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ai-submit-btn:hover {
  background: #003080;
}

.ai-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

/* Hero Image */
.hero-image {
  position: relative;
  height: 100%;
  min-height: 500px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}

/* --- Practice Areas Section --- */
.practice-areas {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header p {
  color: var(--color-text-secondary);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--color-border);
}

.practice-item {
  padding: var(--space-lg);
  border-right: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
  cursor: default;
}

.practice-item:last-child {
  border-right: none;
}

.practice-item:hover {
  background: var(--color-hover);
}

.practice-item h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.practice-item p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.practice-number {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  display: block;
}

/* --- Legal Brain Section --- */
.legal-brain {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.legal-brain-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.legal-brain-text h2 {
  margin-bottom: var(--space-md);
}

.legal-brain-text p {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.legal-brain-text .highlight {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

/* Document Scanner Visual */
.document-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.doc-scanner {
  width: 280px;
  height: 360px;
  position: relative;
}

.doc-page {
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-text);
  background: var(--color-bg);
  position: relative;
  padding: var(--space-md);
}

.doc-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-line {
  height: 8px;
  background: var(--color-border);
  border-radius: 0;
}

.doc-line:nth-child(1) {
  width: 80%;
}

.doc-line:nth-child(2) {
  width: 100%;
}

.doc-line:nth-child(3) {
  width: 60%;
}

.doc-line:nth-child(4) {
  width: 90%;
}

.doc-line:nth-child(5) {
  width: 75%;
}

.doc-line:nth-child(6) {
  width: 100%;
}

.doc-line:nth-child(7) {
  width: 45%;
}

.doc-line:nth-child(8) {
  width: 85%;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  animation: scan 2.5s ease-in-out infinite;
}

@keyframes scan {

  0%,
  100% {
    top: 0;
    opacity: 1;
  }

  50% {
    top: calc(100% - 3px);
    opacity: 1;
  }
}

.doc-checkmarks {
  position: absolute;
  right: -40px;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-accent);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.checkmark:nth-child(1) {
  animation-delay: 0.5s;
}

.checkmark:nth-child(2) {
  animation-delay: 1s;
}

.checkmark:nth-child(3) {
  animation-delay: 1.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* --- Partners Section --- */
.partners {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.partner-card {
  text-align: center;
}

.partner-image {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-md);
  overflow: hidden;
  filter: grayscale(100%);
}

.partner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-name {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
}

.partner-title {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.footer-logo {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.footer-credit a {
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .legal-brain-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .document-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
  }

  .nav-links {
    display: none;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .practice-item:last-child {
    border-bottom: none;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}