:root {
  --navy: #002060;
  --royal: #1e4a8c;
  --orange: #f7941d;
  --cyan: #00e5ff;
  --dark: #0a192f;
  --white: #ffffff;
  --gray-100: #f5f7fb;
  --gray-200: #e8ecf4;
  --gray-600: #5a6478;
  --shadow: 0 8px 30px rgba(0, 32, 96, 0.12);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: var(--royal);
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand img,
.brand .logo-svg {
  width: 48px;
  height: auto;
}

.nav-toggle {
  display: none;
  background: var(--navy);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}

.main-nav a:hover {
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--royal);
  margin-bottom: 1.5rem;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.hero-panel {
  background: linear-gradient(135deg, var(--navy), var(--dark));
  color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.kpi-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid var(--cyan);
}

.kpi-card strong {
  font-size: 1.5rem;
  color: var(--cyan);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-header p {
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Two column layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.sidebar-panel {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-panel h3 {
  margin-top: 0;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.5rem;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list strong {
  display: block;
  color: var(--cyan);
}

/* Approach flow */
.approach-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.approach-step {
  flex: 1 1 160px;
  max-width: 200px;
  text-align: center;
  position: relative;
}

.approach-step .step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-weight: 700;
  font-size: 0.75rem;
}

.approach-step h4 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-size: 0.9rem;
}

.approach-step p {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin: 0;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  color: var(--orange);
  line-height: 1;
}

.stat-item span {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--gray-600);
}

/* DOJO page */
.dojo-hero {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(180deg, var(--gray-100), white);
}

.dojo-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

.dojo-hero .dojo-num {
  color: var(--orange);
}

.dojo-hero .dojo-title {
  color: var(--navy);
}

.dojo-layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 1.5rem;
  align-items: start;
}

.dojo-sidebar-box {
  background: var(--navy);
  color: white;
  padding: 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.dojo-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.pillar-card {
  background: var(--navy);
  color: white;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.85rem;
}

.pillar-card h4 {
  margin: 0.5rem 0;
  color: var(--cyan);
  font-size: 0.9rem;
}

.framework-band {
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.framework-band h3 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1rem;
}

.framework-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.framework-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.8rem;
}

.framework-item ul {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
}

.pdca-loop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.pdca-step {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  color: white;
}

.pdca-plan { background: var(--royal); }
.pdca-do { background: #2e7d32; }
.pdca-check { background: #6a1b9a; }
.pdca-act { background: var(--orange); }

.integration-list,
.industry40-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.integration-list li,
.industry40-list li {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.benefits-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  background: var(--navy);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.benefit-item {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--gray-200);
}

.team-card .placeholder-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 700;
}

.team-card h3 {
  margin: 1rem 0 0.25rem;
  color: var(--navy);
}

.team-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  background: var(--navy);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-info a {
  color: var(--cyan);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  margin-bottom: 1rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.9rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

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

.site-footer a {
  color: var(--cyan);
}

.footer-quote {
  font-style: italic;
  color: var(--cyan);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 1rem;
}

/* Accordion (mobile DOJO) */
.accordion-btn {
  width: 100%;
  text-align: left;
  background: var(--navy);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}

.accordion-panel {
  display: none;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: 0 0 8px 8px;
  margin-bottom: 1rem;
}

.accordion-panel.open {
  display: block;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--royal));
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
}

/* Blog / portfolio */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

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

.post-card-body {
  padding: 1.25rem;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  color: var(--navy);
}

/* Responsive */
@media (max-width: 1024px) {
  .dojo-layout {
    grid-template-columns: 1fr;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }
}
