/* CSS Variables - JSB Legal Brand Palette */
:root {
  /* Brand Colors */
  --olive-leaf: #404A1F;
  --golden-bronze: #D5A642;
  --olive-leaf-2: #525523;
  --olive-leaf-3: #57612E;
  --olive-leaf-4: #454B1F;
  
  /* Support Colors */
  --white: #ffffff;
  --overlay-dark: rgba(0,0,0,0.6);
  --divider-light: rgba(255,255,255,0.15);
  
  /* Typography */
  --font-heading: "Marcellus", serif;
  --font-body: "Instrument Sans", sans-serif;
  
  /* Layout */
  --container-max-width: 1200px;
  --section-spacing-desktop: 70px;
  --section-spacing-tablet: 45px;
  --section-spacing-mobile: 30px;
  --border-radius: 12px;
  --button-radius: 12px;
  
  /* Transitions */
  --transition-smooth: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--olive-leaf);
  overflow-x: hidden;
}

body.scroll-locked {
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--button-radius);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-height: 44px;
  text-align: center;
}

.btn-primary {
  background-color: var(--olive-leaf-4);
  color: var(--white);
  border-color: var(--olive-leaf-4);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--olive-leaf);
  border-color: var(--golden-bronze);
  box-shadow: 0 0 0 2px var(--golden-bronze);
}

.btn-secondary {
  background-color: transparent;
  color: var(--olive-leaf-4);
  border-color: var(--olive-leaf-4);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--olive-leaf-4);
  color: var(--white);
  border-color: var(--golden-bronze);
}

/* Forms */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  flex: 1;
}

.form-field.full-width {
  flex: 1 1 100%;
}

.form-field.half-width {
  flex: 1 1 calc(50% - 10px);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--olive-leaf);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition-smooth);
  min-height: 44px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--golden-bronze);
  box-shadow: 0 0 0 2px rgba(213, 166, 66, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background-color: var(--olive-leaf-4);
  color: var(--white);
  border: none;
  border-radius: var(--button-radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-height: 56px;
}

.form-submit:hover,
.form-submit:focus {
  background-color: var(--olive-leaf);
  box-shadow: 0 0 0 2px var(--golden-bronze);
}

.form-success {
  padding: 16px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: var(--border-radius);
  margin-top: 16px;
}

/* Section Spacing */
section {
  padding: var(--section-spacing-desktop) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-heading);
  color: var(--olive-leaf);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--olive-leaf-2);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Focus States */
*:focus {
  outline: 2px solid var(--golden-bronze);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--golden-bronze);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 991px) {
  section {
    padding: var(--section-spacing-tablet) 0;
  }
  
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .form-field.half-width {
    flex: 1 1 100%;
  }
}

@media (max-width: 767px) {
  section {
    padding: var(--section-spacing-mobile) 0;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-delay-1 {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.fade-in-delay-2 {
  animation: fadeIn 0.6s ease-out 0.4s both;
}

.fade-in-delay-3 {
  animation: fadeIn 0.6s ease-out 0.6s both;
}
