/* ===== Design tokens ===== */
:root {
  --purple-900: #2a1248;
  --purple-700: #5b2a9d;
  --purple-500: #7c3aed;
  --purple-400: #9d6bff;
  --pink-400: #e879c9;
  --ink: #1a1130;
  --slate: #524a63;
  --muted: #7a7390;
  --bg: #ffffff;
  --bg-alt: #f7f4fc;
  --cream: #f1efec;
  --cream-soft: #f6f4f1;
  --border: #ece6f5;
  --shadow: 0 10px 30px rgba(60, 20, 110, 0.08);
  --shadow-lg: 0 20px 50px rgba(60, 20, 110, 0.14);
  --radius: 16px;
  --max: 1120px;
}

/* ===== Reset / base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

/* ===== Typography helpers ===== */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-500);
  margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--purple-500), var(--pink-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--purple-500), var(--purple-700));
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124, 58, 237, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--purple-700);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--purple-400); transform: translateY(-2px); }

.btn-lg { font-size: 1.15rem; padding: 16px 36px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 239, 236, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
}
.brand-mark {
  font-size: 1.5rem;
  color: var(--purple-500);
  line-height: 1;
}
.brand-accent { color: var(--purple-500); }
.brand-logo {
  height: 52px;
  width: auto;
  /* subtle emboss: top-left highlight + bottom-right shadow */
  filter:
    drop-shadow(-0.5px -0.5px 0 rgba(255, 255, 255, 0.65))
    drop-shadow(0.5px 1px 1px rgba(40, 16, 70, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a { font-weight: 500; color: var(--slate); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--purple-700); }
.nav-cta {
  background: var(--purple-500);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--purple-700); }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle, .nav-toggle-label { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 110px 0 120px;
  background:
    radial-gradient(closest-side at 50% 20%, #ffffff, rgba(255, 255, 255, 0) 72%),
    radial-gradient(60% 50% at 50% 0%, rgba(157, 107, 255, 0.12), transparent 70%),
    radial-gradient(40% 40% at 82% 22%, rgba(232, 121, 201, 0.10), transparent 70%),
    var(--cream);
  overflow: hidden;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-logo {
  width: clamp(240px, 42vw, 400px);
  height: auto;
  margin: 0 auto 28px;
  /* embossed look: bright top-left highlight, deeper bottom-right shadow, soft ground shadow */
  filter:
    drop-shadow(-1px -1px 0.5px rgba(255, 255, 255, 0.75))
    drop-shadow(1px 2px 1.5px rgba(40, 16, 70, 0.4))
    drop-shadow(0 10px 18px rgba(60, 20, 110, 0.18));
  transition: filter 0.25s ease, transform 0.25s ease;
}
.hero-logo:hover {
  transform: translateY(-2px);
  filter:
    drop-shadow(-1.5px -1.5px 0.5px rgba(255, 255, 255, 0.9))
    drop-shadow(1.5px 3px 2px rgba(40, 16, 70, 0.45))
    drop-shadow(0 14px 22px rgba(60, 20, 110, 0.22));
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--slate);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 16px;
}
.section-lead { font-size: 1.1rem; color: var(--slate); }

/* ===== What We Do cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(232, 121, 201, 0.12));
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 0.98rem; }

/* ===== Process steps ===== */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  list-style: none;
}
.step {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--slate); }
.step-arrow {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  color: var(--purple-400);
  font-weight: 700;
}

/* ===== About ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--slate); margin-bottom: 16px; }
.about-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.about-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
}
.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  background: var(--purple-500);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-stats {
  display: grid;
  gap: 18px;
}
.stat {
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-value { display: block; font-size: 2rem; font-weight: 800; }
.stat-label { font-size: 0.95rem; opacity: 0.85; }

/* ===== Contact ===== */
.section-contact {
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(157, 107, 255, 0.16), transparent 70%),
    var(--bg-alt);
}
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-inner .btn { margin-top: 12px; }
.contact-note { color: var(--muted); margin-top: 18px; font-size: 0.95rem; }
.contact-note a {
  color: var(--purple-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-note a:hover { color: var(--purple-500); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #cfc6e0;
  padding: 48px 0;
}
.footer-inner { text-align: center; display: grid; gap: 12px; justify-items: center; }
.site-footer .brand { color: #fff; }
.footer-tagline { color: #b9aed1; }
.footer-contact {
  display: inline-block;
  padding: 9px 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-contact:hover { background: var(--purple-500); border-color: var(--purple-500); }
.footer-copy { font-size: 0.9rem; color: #8a7fa6; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}

@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 90px; }

  /* Mobile nav */
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 60;
  }
  .nav-toggle-label span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.25s;
  }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 8px 24px 24px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta { text-align: center; margin-top: 12px; }
  .nav-toggle:checked ~ .nav-links { transform: translateY(0); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translate(0, 7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translate(0, -7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ===== Consultation modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  background: rgba(26, 17, 48, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 36px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--slate);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--border); color: var(--ink); }

.modal-head { margin-bottom: 24px; text-align: center; }
.modal-head h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal-sub { color: var(--slate); font-size: 0.98rem; }

/* Form */
.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.form-section legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--purple-700);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field span { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field span em { color: var(--purple-500); font-style: normal; }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.field textarea { resize: vertical; }
.field input:user-invalid { border-color: #e0617a; }

.contact-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.contact-label { font-weight: 700; font-size: 0.9rem; color: var(--purple-700); }
.contact-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.contact-remove:hover { color: #d24a68; background: rgba(210, 74, 104, 0.08); }

.btn-add {
  width: 100%;
  padding: 11px;
  font-size: 0.92rem;
  border-style: dashed;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.form-status {
  margin-top: 14px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success { color: #2e9e6b; }
.form-status.error { color: #d24a68; }

body.modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .modal { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}
