:root {
  --purple: #4A2E7C;
  --purple-dark: #382063;
  --purple-light: #B79FDE;
  --orange: #F7A600;
  --orange-dark: #E08E00;
  --green: #C6D93A;
  --cream: #F3EEE2;
  --cream-dark: #E9E2D0;
  --dark: #2A2333;
  --gray: #6B6470;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(74, 46, 124, 0.12);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Poppins', sans-serif;
  color: var(--purple);
  font-weight: 800;
  line-height: 1.2;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple-dark);
  background: linear-gradient(135deg, var(--orange), #ffcf5c);
  padding: 10px 20px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(247,166,0,0.4);
}
.hero-highlight strong { font-size: 1.08em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: rgba(247, 166, 0, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section {
  padding: 84px 0;
  position: relative;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--gray); font-size: 1.05rem; }

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

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 238, 226, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74,46,124,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand span { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--purple); font-size: 1.05rem; letter-spacing: 0.02em; }

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  transition: color 0.2s;
}
nav ul a:hover { color: var(--orange-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--purple-dark);
  box-shadow: 0 8px 20px rgba(247,166,0,0.35);
}
.btn-primary:hover { background: var(--orange-dark); }

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

.btn-ghost {
  background: var(--white);
  color: var(--purple);
  border: 2px solid rgba(74,46,124,0.15);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 24px; height: 3px; background: var(--purple); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-blob {
  position: absolute;
  top: -120px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: var(--orange);
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  opacity: 0.85;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--orange-dark); }

.hero p.lead {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.6rem;
  color: var(--purple);
}
.hero-stats div span { font-size: 0.85rem; color: var(--gray); }

.hero-media {
  position: relative;
  z-index: 1;
}
.hero-media .frame {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}
.hero-media .frame img { width: 100%; height: 320px; object-fit: cover; }

.hero-media .badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--purple);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 200px;
}

.clients-strip {
  padding: 28px 0;
  border-top: 1px solid rgba(74,46,124,0.08);
  border-bottom: 1px solid rgba(74,46,124,0.08);
}
.clients-strip p {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
  font-weight: 700;
}
.clients-strip img { max-height: 90px; margin: 0 auto; opacity: 0.9; }

/* ---------- About / definition block ---------- */
.about-single {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-single .definition-block { text-align: left; }

.definition-block {
  background: var(--white);
  border-left: 4px solid var(--orange);
  padding: 24px 26px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.definition-block h3 { font-size: 1.1rem; margin-bottom: 8px; }
.definition-block p { color: var(--dark); font-size: 0.98rem; }

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

.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(74,46,124,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--white);
}
.service-card:nth-child(5n+1) .service-icon { background: var(--orange); }
.service-card:nth-child(5n+2) .service-icon { background: var(--purple); }
.service-card:nth-child(5n+3) .service-icon { background: var(--green); color: var(--purple-dark); }
.service-card:nth-child(5n+4) .service-icon { background: var(--purple-light); color: var(--purple-dark); }
.service-card:nth-child(5n+5) .service-icon { background: var(--orange-dark); }

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.94rem; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  text-align: center;
  padding: 30px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-card .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin: 0 auto 16px;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { color: var(--gray); font-size: 0.94rem; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.portfolio-item .img-wrap { height: 190px; overflow: hidden; }
.portfolio-item .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.portfolio-item:hover .img-wrap img { transform: scale(1.06); }
.portfolio-item .info { padding: 18px 20px; }
.portfolio-item .info .tag { font-size: 0.72rem; font-weight: 800; color: var(--orange-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.portfolio-item .info h3 { font-size: 1.02rem; margin: 6px 0 8px; }
.portfolio-item .info p { font-size: 0.88rem; color: var(--gray); }

/* ---------- Partners ---------- */
.partners-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}
.partners-box img { max-width: 100%; margin: 0 auto 20px; }
.partners-box .logos-extra {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partners-box .logos-extra img { max-height: 60px; width: auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(74,46,124,0.07);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--orange-dark);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-a {
  padding: 0 24px 22px;
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-card h3 { color: var(--white); margin-bottom: 20px; }
.contact-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-row .ic {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row a, .contact-row p { color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.contact-row strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); margin-bottom: 4px; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 8px; }
.contact-form p.hint { color: var(--gray); margin-bottom: 22px; font-size: 0.92rem; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(74,46,124,0.15);
  margin-bottom: 18px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--white); font-size: 1.1rem; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); }
footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; font-size: 0.9rem; }
footer ul a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 90;
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  nav ul { display: none; }
  .menu-toggle { display: flex; }
  .nav .btn-outline { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-blob { width: 260px; height: 260px; top: -80px; right: -100px; }
  .section { padding: 60px 0; }
}

body.menu-open nav ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 20px 24px;
  gap: 16px;
  box-shadow: var(--shadow);
}
