/* ========================================
   PRIMESOURCING.IO — GLOBAL STYLES
   ======================================== */

:root {
  --dark: #141413;
  --light: #faf9f5;
  --mid: #b0aea5;
  --subtle: #e8e6dc;
  --accent: #d97757;
  --accent-dark: #c56648;
  --blue: #6a9bcc;
  --green: #788c5d;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 20, 19, 0.04);
  --shadow-md: 0 4px 20px rgba(20, 20, 19, 0.08);
  --shadow-lg: 0 12px 40px rgba(20, 20, 19, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

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

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

p {
  color: var(--dark);
  opacity: 0.85;
  max-width: 65ch;
}

.text-lead {
  font-size: 1.25rem;
  line-height: 1.5;
  opacity: 0.9;
}

.text-mid {
  color: var(--mid);
}

.text-accent {
  color: var(--accent);
}

.text-center {
  text-align: center;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(217, 119, 87, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}

.btn-secondary:hover {
  background-color: var(--dark);
  color: var(--light);
}

.btn-light {
  background-color: var(--white);
  color: var(--dark);
  border: 1px solid var(--subtle);
}

.btn-light:hover {
  background-color: var(--light);
  border-color: var(--mid);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  opacity: 0.75;
  transition: var(--transition);
}

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

.header-cta {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 73px;
  left: 0;
  width: 100%;
  background-color: var(--light);
  border-bottom: 1px solid var(--subtle);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--subtle);
}

@media (min-width: 1024px) {
  .nav-links,
  .header-cta {
    display: flex;
  }

  .mobile-menu-btn,
  .mobile-nav {
    display: none !important;
  }
}

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

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-home {
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 55ch;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 0.875rem;
  color: var(--mid);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--subtle) 0%, #d4d0c4 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-placeholder {
  text-align: center;
  padding: 32px;
  color: var(--mid);
}

.hero-visual svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.hero-pattern {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-page {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  border-bottom: 1px solid var(--subtle);
}

.hero-page h1 {
  margin-bottom: 1rem;
}

.hero-page p {
  font-size: 1.15rem;
}

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

.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 100px 0;
  }
}

.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* ========================================
   TRUST BAR
   ======================================== */

.trust-bar {
  background-color: var(--white);
  border-top: 1px solid var(--subtle);
  border-bottom: 1px solid var(--subtle);
  padding: 32px 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .trust-bar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-bar-item {
  text-align: center;
}

.trust-bar-item strong {
  display: block;
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.trust-bar-item span {
  font-size: 0.85rem;
  color: var(--mid);
}

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

.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--subtle);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(217, 119, 87, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ========================================
   GRIDS
   ======================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .split-section.reverse .split-content {
    order: 2;
  }

  .split-section.reverse .split-visual {
    order: 1;
  }
}

.split-content h2 {
  margin-bottom: 1.25rem;
}

.split-content p {
  margin-bottom: 1.25rem;
}

.split-list {
  margin-top: 1.5rem;
}

.split-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
}

.split-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.split-visual {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--subtle) 0%, #ddd9cd 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.split-visual svg {
  width: 100px;
  height: 100px;
  opacity: 0.4;
  color: var(--dark);
}

/* ========================================
   FEATURED BOXES
   ======================================== */

.feature-box {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--subtle);
}

.feature-box-highlight {
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a28 100%);
  color: var(--white);
  border: none;
}

.feature-box-highlight h3,
.feature-box-highlight p {
  color: var(--white);
}

.feature-box-highlight .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.feature-box-highlight .btn-secondary:hover {
  background-color: var(--white);
  color: var(--dark);
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonial {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--subtle);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--dark);
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--mid);
}

/* ========================================
   FAQ
   ======================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}

.faq-answer p {
  opacity: 0.8;
}

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

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--mid);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--subtle);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.1);
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 24px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   CONTACT BLOCK
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  margin-bottom: 4px;
}

.contact-info-item span {
  color: var(--mid);
  font-size: 0.95rem;
}

/* ========================================
   CASE STUDIES
   ======================================== */

.case-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--subtle);
  transition: var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
}

.case-card-visual {
  height: 220px;
  background: linear-gradient(135deg, var(--subtle) 0%, #d4d0c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card-visual svg {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

.case-card-content {
  padding: 28px;
}

.case-card-content h3 {
  margin-bottom: 0.75rem;
}

.case-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.case-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background-color: rgba(217, 119, 87, 0.1);
  color: var(--accent);
}

/* ========================================
   BLOG
   ======================================== */

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--subtle);
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
}

.blog-card-visual {
  height: 200px;
  background: linear-gradient(135deg, var(--subtle) 0%, #d4d0c4 100%);
}

.blog-card-content {
  padding: 24px;
}

.blog-card-content h3 {
  margin-bottom: 0.5rem;
}

.blog-card-content p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--mid);
  font-weight: 600;
}

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

.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a28 100%);
  color: var(--white);
  padding: 80px 0;
  border-radius: var(--radius-xl);
  margin: 0 24px;
}

@media (min-width: 1024px) {
  .cta-section {
    margin: 0 40px;
  }
}

.cta-section h2,
.cta-section p {
  color: var(--white);
}

.cta-section p {
  opacity: 0.85;
}

.cta-section .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.cta-section .btn-secondary:hover {
  background-color: var(--white);
  color: var(--dark);
}

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

.site-footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 80px 0 32px;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--mid);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: var(--mid);
  font-size: 0.95rem;
  padding: 6px 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--mid);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--subtle);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 3px solid var(--light);
}

.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.timeline-item span {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ========================================
   PROCESS STEPS
   ======================================== */

.process-step {
  text-align: center;
  padding: 32px 24px;
}

.process-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 20px;
}

.process-step h3 {
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 0;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* ========================================
   UTILITIES
   ======================================== */

.bg-white {
  background-color: var(--white);
}

.bg-light {
  background-color: var(--light);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
  display: none;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.animate-on-scroll:nth-child(6) { transition-delay: 400ms; }
