/* ============================================
   Avodah Services Connect — Global Stylesheet
   B2B / Government Contracting Website
   ============================================ */

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

:root {
  --ink: #1a1a2e;
  --warm: #e8d5b7;
  --accent: #c4956a;
  --accent-deep: #8b5e3c;
  --cream: #faf6f0;
  --sage: #7a8b6f;
  --sage-light: #e8ede5;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #9a9a9a;
  --gray-600: #5a5a6a;
  --gray-700: #4a4a5a;
  --error: #c0392b;
  --success: #27ae60;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(26, 26, 46, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

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

.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: #2a2a4e;
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
  position: absolute;
  left: 0;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

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

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, var(--cream) 0%, var(--warm) 50%, #d4c4a8 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(200deg, var(--accent) 0%, var(--accent-deep) 100%);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.12;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 750px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 span {
  color: var(--accent-deep);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  max-width: 560px;
  margin-top: 28px;
  color: var(--gray-700);
}

.hero-stat-row {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stat { position: relative; }

.hero-stat::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* Page Hero (shorter, for inner pages) */
.page-hero {
  padding: 140px 24px 80px;
  background: linear-gradient(160deg, var(--cream) 0%, var(--warm) 50%, #d4c4a8 100%);
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(200deg, var(--accent) 0%, var(--accent-deep) 100%);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.08;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.page-hero p {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 600px;
  margin-top: 20px;
  color: var(--gray-700);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #2a2a4e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.2);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid rgba(26, 26, 46, 0.15);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--cream);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--white);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 149, 106, 0.35);
}

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

.section {
  padding: 100px 24px;
}

.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-warm { background: linear-gradient(160deg, var(--warm) 0%, var(--cream) 100%); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.section-dark .section-label { color: var(--accent); }

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 650px;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--gray-700);
  max-width: 600px;
}

.section-dark .section-subtitle { color: rgba(250, 246, 240, 0.65); }

/* ============================================
   CARDS
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  padding: 36px;
  background: var(--white);
  border: 1px solid rgba(26, 26, 46, 0.06);
  border-radius: 16px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(139, 94, 60, 0.08);
  transform: translateY(-2px);
}

.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-dark:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--sage-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-dark .card-icon {
  background: rgba(196, 149, 106, 0.15);
}

.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.card-dark p { color: rgba(250, 246, 240, 0.6); }

.card-list {
  list-style: none;
  margin-top: 16px;
}

.card-list li {
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.card-dark .card-list li { color: rgba(250, 246, 240, 0.55); }
.card-dark .card-list li::before { color: var(--accent); }

/* ============================================
   FEATURE ROWS (alternating image/text)
   ============================================ */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 80px;
}

.feature-row:first-child { margin-top: 56px; }

.feature-row.reverse .feature-content { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.feature-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.feature-visual {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--warm) 100%);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.feature-visual-icon {
  font-size: 5rem;
  opacity: 0.7;
}

.feature-visual::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: rgba(196, 149, 106, 0.15);
  border-radius: 50%;
}

/* ============================================
   COMPLIANCE / TRUST BADGES
   ============================================ */

.trust-bar {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 48px;
  align-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 10px;
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--sage-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* ============================================
   PROCESS / TIMELINE
   ============================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 40px;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.process-step:last-child::after { display: none; }

.process-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gray-600);
}

/* ============================================
   FORMS
   ============================================ */

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

.form-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(26, 26, 46, 0.12);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.12);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a5a6a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 6px;
}

.form-message {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  display: none;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  display: block;
}

.form-message.error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
  display: block;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 100px 24px;
  background: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 149, 106, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-inner {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(250, 246, 240, 0.65);
  line-height: 1.6;
  margin-bottom: 36px;
}

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

.footer {
  padding: 60px 24px 40px;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(250, 246, 240, 0.5);
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.7);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(250, 246, 240, 0.45);
  padding: 5px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(250, 246, 240, 0.35);
}

/* ============================================
   UTILITY
   ============================================ */

.text-accent { color: var(--accent-deep); }
.text-sage { color: var(--sage); }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mt-8 { margin-top: 64px; }
.mb-4 { margin-bottom: 32px; }

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

@media (max-width: 1024px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-content { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: block; }

  .hero { padding: 120px 20px 60px; min-height: auto; }
  .hero::before { width: 100%; opacity: 0.06; clip-path: none; }
  .hero-stat-row { gap: 32px; }
  .hero-stat::before { left: -16px; }

  .page-hero { padding: 120px 20px 60px; }
  .page-hero::before { width: 100%; opacity: 0.05; clip-path: none; }

  .section { padding: 70px 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trust-bar { gap: 16px; }

  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .cta-section { padding: 70px 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .process-grid { grid-template-columns: 1fr; }
}
