/* ═══════════════════════════════════════════════════════════════════════════
   Apsara Consulting GmbH – Company Website Stylesheet
   Design system matches SKYVVA product website (skyvva.com) exactly.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; }

:root {
  --green: #22C55E;
  --green-dark: #16A34A;
  --green-light: #DCFCE7;
  --dark: #0F172A;
  --navy: #1E293B;
  --gray: #64748B;
  --light: #F8FAFC;
  --border: #E2E8F0;
}

/* ── Navigation ────────────────────────────────────────────────────────── */
nav {
  background: var(--dark);
  padding: 0 56px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1E293B;
}

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand-link { text-decoration: none; display: flex; align-items: center; }
.nav-wordmark { font-size: 22px; font-weight: 900; color: var(--green); letter-spacing: 3px; }
.nav-tagline { font-size: 10px; color: #94A3B8; line-height: 1.3; border-left: 1px solid #475569; padding-left: 12px; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: #94A3B8; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.nav-active { color: #fff; border-bottom: 2px solid var(--green); padding-bottom: 2px; }

.nav-lang-wrap { display: flex; align-items: center; gap: 4px; }
.nav-lang-btn { font-size: 12px !important; font-weight: 600; padding: 3px 8px; border-radius: 4px; color: #94A3B8 !important; border: 1px solid #334155; transition: all .2s; }
.nav-lang-btn:hover { background: var(--green); color: #000 !important; border-color: var(--green); }
.nav-lang-active { background: var(--green); color: #000 !important; border-color: var(--green); }
.nav-lang-sep { color: #475569; font-size: 12px; }

.nav-cta { background: var(--green) !important; color: #fff !important; padding: 9px 22px; border-radius: 8px; font-weight: 600 !important; font-size: 14px !important; white-space: nowrap; flex-shrink: 0; }
.nav-cta:hover { background: var(--green-dark) !important; }

/* ── Mobile nav toggle ─────────────────────────────────────────────────── */
.nav-mobile-toggle { display: none; background: none; border: none; color: #94A3B8; font-size: 24px; cursor: pointer; padding: 4px; }
.nav-mobile-close { display: none; background: none; border: none; color: #94A3B8; font-size: 24px; cursor: pointer; position: absolute; top: 16px; right: 20px; }

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero-wrap { max-width: 1100px; margin: 0 auto; padding: 90px 56px 70px; text-align: center; }
.hero-h1 { font-size: 60px; font-weight: 900; color: var(--dark); line-height: 1.1; margin-bottom: 20px; }
.hero-sub { font-size: 19px; color: var(--gray); max-width: 640px; margin: 0 auto 32px; line-height: 1.6; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Section Layout ────────────────────────────────────────────────────── */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 56px; }
.section-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--green-dark); font-weight: 700; margin-bottom: 12px; }
.section-h2 { font-size: 42px; font-weight: 800; color: var(--dark); line-height: 1.15; margin-bottom: 16px; }
.section-lead { font-size: 18px; color: var(--gray); max-width: 560px; line-height: 1.65; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary { display: inline-block; background: var(--green); color: #fff; padding: 14px 32px; border-radius: 10px; font-size: 16px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: all .2s; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-secondary { display: inline-block; background: #fff; color: var(--dark); padding: 14px 32px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all .2s; }
.btn-secondary:hover { border-color: var(--green); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card { border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); transition: all .2s; }
.card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--gray); }

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

/* ── Callout ───────────────────────────────────────────────────────────── */
.callout { background: var(--green-light); border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 24px 0; }
.callout p { color: #166534; font-size: 15px; }

/* ── Page Content (rendered from Markdown) ─────────────────────────────── */
.page-content { max-width: 800px; margin: 0 auto; padding: 60px 56px 80px; }
.page-content h1 { font-size: 42px; font-weight: 800; color: var(--dark); margin-bottom: 24px; line-height: 1.15; }
.page-content h2 { font-size: 24px; font-weight: 700; color: var(--dark); margin: 44px 0 16px; border-bottom: 2px solid var(--green-light); padding-bottom: 8px; }
.page-content h3 { font-size: 18px; font-weight: 600; color: var(--dark); margin: 32px 0 12px; }
.page-content p { font-size: 16px; color: #374151; line-height: 1.8; margin-bottom: 18px; }
.page-content ul, .page-content ol { margin: 0 0 18px 24px; }
.page-content li { font-size: 16px; color: #374151; line-height: 1.8; margin-bottom: 6px; }
.page-content a { color: var(--green-dark); text-decoration: underline; }
.page-content a:hover { color: var(--green); }
.page-content img { max-width: 100%; border-radius: 10px; border: none; box-shadow: none; margin: 24px 0; }
.page-content strong { font-weight: 600; }
.page-content blockquote { border-left: 4px solid var(--green); padding: 16px 20px; background: var(--green-light); border-radius: 0 8px 8px 0; margin: 24px 0; }
.page-content blockquote p { color: #166534; margin-bottom: 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.page-content th, .page-content td { padding: 12px 16px; border: 1px solid var(--border); font-size: 15px; text-align: left; }
.page-content th { background: var(--light); font-weight: 600; }

/* ── Section Image Layouts ─────────────────────────────────────────────── */
.section-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.section-split-img { border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); width: 100%; height: 100%; object-fit: cover; }
.section-img-full { max-width: 100%; border-radius: 14px; box-shadow: none; display: block; margin: 0 auto; }

@media (max-width: 900px) {
  .section-split { grid-template-columns: 1fr !important; }
  .section-split-img { height: auto; }
}

/* ── Timeline ──────────────────────────────────────────────────────────── */
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 3px; background: var(--border); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 40px 72px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 16px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 1; }
.tl-dot-icon { font-size: 14px; line-height: 1; }
.tl-year { font-size: 14px; font-weight: 800; color: var(--green-dark); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.tl-title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.tl-desc { font-size: 15px; color: var(--gray); line-height: 1.7; }

@media (max-width: 768px) {
  .timeline::before { left: 18px; }
  .tl-item { padding-left: 52px; }
  .tl-dot { left: 6px; width: 24px; height: 24px; }
}

/* ── Contact Form ──────────────────────────────────────────────────────── */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: 'Inter', sans-serif; transition: border-color .2s; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--green); }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-submit { margin-top: 8px; }
.form-hint { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer { background: #020617; border-top: 1px solid #1E293B; padding: 44px 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 56px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-wordmark { font-size: 20px; font-weight: 900; color: var(--green); letter-spacing: 3px; }
.footer-sub { font-size: 11px; color: #334155; margin-top: 2px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #64748B; text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #94A3B8; }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social-icon { color: #475569; transition: color .2s; display: flex; align-items: center; }
.footer-social-icon:hover { color: var(--green); }

.footer-copy { font-size: 12px; color: #334155; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 40px; }
  .section-h2 { font-size: 32px; }
  .nav-links { gap: 16px; }
  .nav-cta { padding: 8px 14px; font-size: 12px !important; }
  .nav-tagline { display: none; }
  .section div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--dark); flex-direction: column; justify-content: center; align-items: center; gap: 20px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links.open .nav-mobile-close { display: block; }
  .nav-mobile-toggle { display: block; }
  .hero-wrap { padding: 50px 20px 40px; }
  .hero-h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 50px 20px; }
  .page-content { padding: 40px 20px 60px; }
  .footer-inner { padding: 0 20px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── Contact form dialog (success/error modal) ────────────────────────────── */
.contact-dialog-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: contactDialogFade 0.15s ease-out;
}
@keyframes contactDialogFade { from { opacity: 0; } to { opacity: 1; } }
.contact-dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 480px; width: 100%;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: contactDialogPop 0.2s ease-out;
}
@keyframes contactDialogPop { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.contact-dialog__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: #fff;
}
.contact-dialog--success .contact-dialog__icon { background: #10b981; }
.contact-dialog--error   .contact-dialog__icon { background: #ef4444; }
.contact-dialog__title { font-size: 20px; font-weight: 700; color: #0f172a; margin: 0 0 10px; }
.contact-dialog__body  { font-size: 15px; color: #475569; line-height: 1.55; margin: 0 0 24px; }
.contact-dialog__btn   { min-width: 120px; }

/* ── FAQ accordion (native <details>/<summary>) ───────────────────────────── */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.faq-item[open] { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: #0f172a;
  font-size: 16px;
  position: relative;
  user-select: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: #64748b;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] > summary::after { content: '−'; color: var(--brand, #2563eb); }
.faq-item > summary:hover { background: #f8fafc; }
.faq-item > summary:focus-visible { outline: 2px solid var(--brand, #2563eb); outline-offset: -2px; }
.faq-item > p {
  margin: 0;
  padding: 0 20px 18px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}
