/* ============================================================
   SourceSolid — Main Stylesheet
   ============================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #18171f;
  background-color: #f8f9fc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

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

/* Navbar — class selector only, never bare nav */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease;
}

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

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  color: #18171f;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.logo-text { letter-spacing: -0.5px; }

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

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #4b5563;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.25s ease;
}

.nav-link:hover { color: #2563eb; }
.nav-link:hover::after { width: 100%; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #18171f;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Section Labels & Titles */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #2563eb;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #18171f;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 17px;
  color: #6b7280;
  max-width: 700px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* Hero Section — class selector */
.hero-section {
  position: relative;
  padding: 160px 0 120px;
  background-color: #f8f9fc;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, #dbeafe 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg-shape2 {
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef3c7 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #18171f;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  letter-spacing: 0.2px;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.3);
}

.btn-outline {
  background-color: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.btn-outline:hover {
  background-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
}

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

.hero-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}

.hero-card-inner { display: flex; flex-direction: column; gap: 24px; }

.hero-icon-wrap {
  width: 64px;
  height: 64px;
  background-color: #eff6ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.hero-icon { font-size: 28px; }

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

.hero-stat:last-child { border-bottom: none; }

.hero-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: -1px;
}

.hero-stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* About Section — class selector */
.about-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.highlight-item {
  background-color: #f8f9fc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.highlight-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 12px;
  color: #2563eb;
}

.highlight-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: #18171f;
  margin-bottom: 8px;
}

.highlight-item p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* Services Section — class selector */
.services-section {
  padding: 100px 0;
  background-color: #f8f9fc;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: #c7d2fe;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background-color: #eff6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon { font-size: 22px; }

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #18171f;
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list { display: flex; flex-direction: column; gap: 8px; }

.service-list li {
  font-size: 14px;
  color: #6b7280;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: #2563eb;
  border-radius: 50%;
}

/* Approach Section — class selector */
.approach-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.approach-step {
  display: flex;
  gap: 32px;
  background-color: #f8f9fc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.approach-step:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #18171f;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
}

/* Stats Section — class selector */
.stats-section {
  padding: 80px 0;
  background-color: #1d1b26;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
}

.stat-number {
  display: block;
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  display: block;
  font-size: 15px;
  color: #94a3b8;
  font-weight: 500;
}

/* Contact Section — class selector */
.contact-section {
  padding: 100px 0;
  background-color: #f8f9fc;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.contact-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background-color: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.contact-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: #18171f;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.contact-form {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 36px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #18171f;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #18171f;
  background-color: #f8f9fc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

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

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: #94a3b8;
}

.form-success {
  display: none;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  margin-top: 16px;
}

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

/* Footer */
.site-footer {
  background-color: #1d1b26;
  color: #94a3b8;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin-top: 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
}

.footer-links h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links ul li,
.footer-links ul li a {
  font-size: 14px;
  color: #94a3b8;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.footer-links ul li a:hover { color: #ffffff; }

.footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid #312e3b;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #64748b;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Legal Shared Styles (also in legal.css)
   ============================================================ */

/* Legal Header — uses <header> element, never <section> */
.legal-header {
  background: linear-gradient(135deg, #1d1b26 0%, #2d2a3a 100%);
  padding: 60px 0 48px;
  text-align: center;
  border-bottom: 4px solid #2563eb;
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 32px;
}

.legal-title {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.legal-date {
  font-size: 14px;
  color: #94a3b8;
}

.legal-content {
  padding: 60px 0;
  background-color: #ffffff;
}

.legal-content .container { max-width: 820px; }

.legal-intro {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 48px;
  padding: 24px;
  background-color: #f8f9fc;
  border-radius: 10px;
  border-left: 4px solid #2563eb;
}

.legal-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #18171f;
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.legal-content p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 18px;
}

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

.legal-contact-info {
  background-color: #f8f9fc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  margin-top: 8px;
}

.legal-contact-info p {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-contact-info p:last-child { margin-bottom: 0; }

/* Table of Contents */
.toc {
  background-color: #f8f9fc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.toc-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #18171f !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc ol li {
  font-size: 15px;
  color: #4b5563;
}

.toc ol li a {
  color: #2563eb;
  font-weight: 500;
  transition: color 0.2s ease;
}

.toc ol li a:hover { color: #1d4ed8; text-decoration: underline; }

/* Legal Footer */
.legal-footer {
  background-color: #f8f9fc;
  border-top: 1px solid #e5e7eb;
  padding: 32px 0;
  text-align: center;
}

.legal-footer p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-footer p:last-child { margin-bottom: 0; }

.legal-footer a {
  color: #2563eb;
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-footer a:hover { color: #1d4ed8; }

/* ============================================================
   Scope isolation for legal pages
   ============================================================ */
.legal-page .legal-content section,
.legal-page .legal-content .section {
  background-color: transparent !important;
}

/* ============================================================
   Responsive Design
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 38px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link { font-size: 20px; }

  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .section-title { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .approach-step { flex-direction: column; gap: 16px; }

  .hero-section { padding: 130px 0 80px; }
  .about-section,
  .services-section,
  .approach-section,
  .contact-section { padding: 60px 0; }
  .legal-content { padding: 40px 0; }
  .legal-title { font-size: 30px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 36px; }
  .contact-form { padding: 24px; }
  .toc { padding: 20px; }
}
