/* =============================================
   DINAKpartner LP — Main Stylesheet
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --navy:   #0A1628;
  --dark:   #0D1F3C;
  --blue:   #1A3A6B;
  --accent: #2563EB;
  --gold:   #D4A847;
  --light:  #EFF4FF;
  --text:   #1E293B;
  --muted:  #64748B;
  --border: #E2E8F0;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); line-height: 1.7; }

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

/* ---------- Header ---------- */
#header {
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
#header.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ---------- Logo ---------- */
.logo-wrap {
  display: block;
  line-height: 0;
  overflow: visible;
}

.logo-wrap img {
  height: 56px;
  width: auto;
  max-width: none;
  display: block;
}

/* ---------- HERO ---------- */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #0A1628 0%, #1A3A6B 50%, #0D1F3C 100%);
  position: relative;
}

.hero-bg-overlay {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212,168,71,0.08) 0%, transparent 50%);
}

/* Animated particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero-particles::before {
  width: 400px; height: 400px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
}
.hero-particles::after {
  width: 300px; height: 300px;
  bottom: -50px; right: -50px;
  background: radial-gradient(circle, rgba(212,168,71,0.05) 0%, transparent 70%);
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #60A5FA, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero stat boxes */
.hero-stat {
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* ---------- Animations ---------- */
.animate-fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s ease forwards;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ---------- Section Headings ---------- */
.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-label-dark {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,168,71,0.12);
  border: 1px solid rgba(212,168,71,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ---------- ISSUE CARDS ---------- */
.issue-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.issue-card:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,0.1);
  transform: translateY(-4px);
}
.issue-card--highlight {
  background: linear-gradient(135deg, #EFF4FF, #fff);
  border-color: rgba(37,99,235,0.2);
}

.issue-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(37,99,235,0.06);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  user-select: none;
}

.issue-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--accent), #3B82F6);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.issue-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.issue-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ---------- RESULT CARDS ---------- */
.result-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(4px);
  transition: transform 0.3s;
}
.result-card:hover { transform: translateY(-4px); }
.result-card--gold {
  border-color: rgba(212,168,71,0.3);
  background: rgba(212,168,71,0.06);
}

.result-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin: 0 0 0.5rem;
}

.result-detail {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.6;
}

/* Results background pattern */
.results-bg-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- CASE TIMELINE ---------- */
.case-timeline {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2.5rem;
}

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

.timeline-dot {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), #1D4ED8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.timeline-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.65;
}

/* ---------- SERVICE CARDS ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-card:hover {
  box-shadow: 0 12px 40px rgba(37,99,235,0.1);
  transform: translateY(-4px);
}

.service-icon-wrap {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--light), #DBEAFE);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.service-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-list li {
  font-size: 0.825rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-list li i { flex-shrink: 0; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 24px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(212,168,71,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ---------- WHY CARDS ---------- */
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.why-card:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
  transform: translateY(-4px);
}

.why-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), #1D4ED8);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 6px 20px rgba(37,99,235,0.25);
}

.why-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.why-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ---------- FLOW STEPS ---------- */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: box-shadow 0.3s;
}
.flow-step:hover {
  box-shadow: 0 4px 24px rgba(37,99,235,0.08);
}

.flow-step-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  margin-left: 59px;
}

.flow-step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  align-self: center;
}

.flow-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.flow-step-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(37,99,235,0.03); }
.faq-question[aria-expanded="true"] { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--accent);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 1.5rem;
}
.faq-answer.open {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

/* ---------- CONTACT FORM ---------- */
.contact-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
}

.required {
  color: #F87171;
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(212,168,71,0.15);
}
.form-input.invalid,
.form-textarea.invalid {
  border-color: #F87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.15);
}

.form-textarea { resize: vertical; }

.form-error {
  font-size: 0.78rem;
  color: #F87171;
  margin-top: 4px;
  min-height: 1rem;
}

.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 100px;
  padding: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.form-submit:active { transform: translateY(0); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-success {
  text-align: center;
  padding: 2rem;
  color: #4ADE80;
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 14px;
  background: rgba(74,222,128,0.05);
  margin-top: 1rem;
}

.form-error-box {
  text-align: center;
  padding: 1rem;
  color: #F87171;
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 10px;
  background: rgba(248,113,113,0.05);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .service-card {
    flex-direction: column;
    gap: 1rem;
  }

  .flow-step {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .flow-step-connector { margin-left: auto; margin-right: auto; }

  .case-timeline { padding: 1.5rem; }

  .contact-form { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-cta-primary,
  .hero-cta-secondary {
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
  }
}

/* ---------- Scroll-to-top hint ---------- */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 40;
}
#scrollTop.visible { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: #1D4ED8; }
