/* Custom styles for SELF-CONSULTING static site */
:root {
  --navy: #003366;
  --gold: #C5A059;
  --gold-dark: #a08040;
  --cream: #f9f5eb;
  --text-dark: #271f1c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background: #fff;
}

/* Navigation */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.3s;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

/* Hero section */
.hero-section {
  min-height: 580px;
  background: linear-gradient(135deg, var(--cream) 0%, #fff 60%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(197,160,89,0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Section styles */
.section-title {
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 5px 16px;
  border-radius: 3px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(197,160,89,0.08), rgba(197,160,89,0.02));
  box-shadow: 0 0 12px rgba(197,160,89,0.15);
}
.section-badge::before,
.section-badge::after {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
  align-self: center;
}

.card .section-badge,
.service-card .section-badge {
  margin-bottom: 8px;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

/* Service card */
.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 40px;
  transition: box-shadow 0.3s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,51,102,0.1);
}

/* CTA section */
.cta-section {
  background: var(--navy);
  color: #fff;
}

/* Blog */
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(197,160,89,0.15);
  color: var(--gold-dark);
}

/* Article content */
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.article-body p {
  line-height: 1.9;
  margin-bottom: 1.2rem;
  color: #374151;
}
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
  color: #374151;
}
.article-body strong {
  font-weight: 700;
  color: var(--navy);
}
.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: var(--cream);
  border-radius: 0 8px 8px 0;
  color: #555;
  font-style: italic;
}
.article-body code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
}
.article-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Stats */
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

/* Footer */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
}
#site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
#site-footer a:hover { color: var(--gold); }

/* Mobile menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: 73px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
  z-index: 49;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
#mobile-menu.open { display: block; }
#mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,160,89,0.15);
}

/* Page hero (for inner pages) */
.page-hero {
  min-height: 360px;
  background: linear-gradient(135deg, #001a33 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(197,160,89,0.2) 0%, transparent 60%);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .stat-number { font-size: 2rem; }
  .service-card { padding: 24px; }
  .hero-section { min-height: 460px; }
}

/* Scroll animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pt-header { padding-top: 88px; }
