/* ===================== Custom Properties ===================== */
:root {
  --navy: #171a2b;
  --navy-soft: #4b4f63;
  --blue: #2f5fda;
  --blue-dark: #2447b3;
  --teal: #22c7c3;
  --purple: #7b3fe4;
  --grad-brand: linear-gradient(90deg, var(--teal), var(--blue));
  --grad-cta: linear-gradient(90deg, var(--blue) 0%, #5a4bd8 55%, var(--purple) 100%);
  --bg-light: #f6f7fb;
  --bg-white: #ffffff;
  --border-soft: #e7e9f2;
  --shadow-card: 0 10px 30px -12px rgba(23, 26, 43, 0.12);
  --radius-md: 10px;
  --radius-lg: 18px;
  --font-heading: 'Poppins', 'Montserrat', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-w: 1180px;
}

/* ===================== Reset ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; color: var(--navy); }
p { margin: 0; }
button { font-family: inherit; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(47, 95, 218, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 28px -8px rgba(47, 95, 218, 0.65); }

.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: #f0f4ff; }

.btn-white {
  background: #fff;
  color: var(--blue);
}
.btn-white:hover { background: #eef1ff; }

.btn-sm { padding: 11px 22px; font-size: 12px; }
.btn-nav { margin-left: 12px; padding: 16px 32px; font-size: 14px; }

/* ===================== Header ===================== */
.site-header {
  position: relative;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 28px;
}

.logo img { height: 68px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 34px;
}

.nav-link {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover { color: var(--blue); }
.nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===================== Hero ===================== */
.hero {
  background: var(--bg-white);
  padding: 76px 0 90px;
  overflow: hidden;
}

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

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }
.hero .eyebrow { font-size: 20px; }

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

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

.hero-lead {
  font-size: 1.05rem;
  color: var(--navy-soft);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- hero visual: desk photo --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ===================== Services ===================== */
.services { background: var(--bg-light); padding: 90px 0; }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.services .section-heading .eyebrow,
.process .section-heading .eyebrow { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.3px;
}

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

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(23, 26, 43, 0.18);
}

.service-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  color: var(--blue);
  margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--navy-soft);
  line-height: 1.6;
}

.section-cta-link { text-align: center; margin-top: 40px; }
.section-cta-link a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.3px;
}
.section-cta-link a:hover { color: var(--blue-dark); }

/* ===================== Process ===================== */
.process { padding: 96px 0; background: var(--bg-white); }

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  max-width: 980px;
  margin: 0 auto;
}

.process-step {
  flex: 1 1 0;
  text-align: center;
  max-width: 200px;
}

.step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  color: var(--purple);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
  background: #fff;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--navy-soft);
  line-height: 1.55;
}

.process-arrow {
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 16px;
  flex: 0 0 auto;
}

/* ===================== CTA Banner ===================== */
.cta-banner {
  padding: 0 24px;
}

.cta-inner {
  background: var(--grad-cta);
  border-radius: var(--radius-lg);
  padding: 46px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
  max-width: var(--container-w);
}

.cta-banner .container.cta-inner { padding-left: 48px; padding-right: 48px; }

.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-bottom: 8px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

/* ===================== Page Hero (inner pages) ===================== */
.page-hero {
  padding: 64px 0 56px;
  background: var(--bg-light);
  text-align: center;
}
.page-hero .eyebrow { font-size: 20px; }
.page-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.page-hero .lead {
  max-width: 560px;
  margin: 0 auto;
  color: var(--navy-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.notice-box {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--border-soft);
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 0.9rem;
  color: var(--navy-soft);
  line-height: 1.55;
}

/* ===================== Service detail (services.html) ===================== */
.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 90px 0;
}

.service-detail-card {
  display: flex;
  gap: 32px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.service-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 199, 195, 0.14), rgba(47, 95, 218, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex: 0 0 auto;
}
.service-detail-icon svg { width: 32px; height: 32px; }

.service-detail-body h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.service-detail-body p.desc {
  color: var(--navy-soft);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 640px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--navy);
}
.feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
  flex: 0 0 auto;
}

.addon-services { padding: 0 0 90px; text-align: center; }
.addon-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}
.addon-pill {
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}
.addon-cta { display: flex; justify-content: center; }

/* ===================== About page ===================== */
.about-story { padding: 90px 0 40px; }
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-story .eyebrow { margin-bottom: 14px; }
.about-story h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 18px; letter-spacing: -0.3px; }
.about-story p { color: var(--navy-soft); line-height: 1.75; margin-bottom: 14px; }
.about-story p:last-child { margin-bottom: 0; }

.about-story-visual {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14%;
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.about-story-visual img { width: 100%; height: auto; }

.values { padding: 40px 0 90px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
}
.value-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 0.9rem; color: var(--navy-soft); line-height: 1.6; }

/* ===================== Work / Portfolio page ===================== */
.portfolio { padding: 90px 0; background: var(--bg-light); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.portfolio-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(23, 26, 43, 0.18);
}
.portfolio-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-thumb svg { width: 52px; height: 52px; color: #fff; opacity: 0.92; }
.portfolio-thumb.grad-1 { background: linear-gradient(135deg, #2f5fda, #22c7c3); }
.portfolio-thumb.grad-2 { background: linear-gradient(135deg, #7b3fe4, #2f5fda); }
.portfolio-thumb.grad-3 { background: linear-gradient(135deg, #22c7c3, #2447b3); }

.portfolio-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
}

.portfolio-body { padding: 22px 24px; }
.portfolio-body h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.portfolio-body p { font-size: 0.88rem; color: var(--navy-soft); line-height: 1.55; margin-bottom: 12px; }
.portfolio-stat { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--blue); }

/* ===================== Pricing page ===================== */
.pricing { padding: 90px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 24px 50px -20px rgba(47, 95, 218, 0.35);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-cta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.pricing-desc { font-size: 0.88rem; color: var(--navy-soft); margin-bottom: 20px; min-height: 40px; }
.pricing-plus-note {
  font-size: 0.82rem;
  font-weight: 700;
  font-style: italic;
  color: var(--blue);
  margin: -8px 0 4px;
}
.pricing-price { font-family: var(--font-heading); font-size: 2.3rem; font-weight: 800; margin-bottom: 4px; }
.pricing-price span { font-size: 0.92rem; font-weight: 500; color: var(--navy-soft); }
.pricing-features { margin: 22px 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pricing-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--navy); }
.pricing-features li svg { width: 18px; height: 18px; color: var(--teal); flex: 0 0 auto; margin-top: 2px; }
.pricing-card .btn { width: 100%; }
.price-prefix {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 2px;
}
.pricing-provides {
  font-size: 0.8rem;
  color: var(--navy-soft);
  line-height: 1.55;
  margin: -8px 0 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
}
.pricing-provides strong { color: var(--navy); }

/* ===================== Contact page ===================== */
.contact-section { padding: 90px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.3px; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: #fbfbfd;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 95, 218, 0.15);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--navy-soft); margin-top: 4px; }

.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--teal);
}
.contact-info-item .icon-badge svg { width: 18px; height: 18px; }
.contact-info-item a,
.contact-info-item span { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.contact-info-item a:hover { color: #fff; }
.contact-info-card .social-links a { background: rgba(255, 255, 255, 0.1); }
.contact-info-card .social-links a:hover { background: var(--blue); }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: #eefaf3;
  border: 1px solid #b9ecd0;
  color: #1a7a44;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-success.visible { display: flex; }

/* ===================== Footer ===================== */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-soft);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 50px;
}

.footer-brand img { height: 48px; width: auto; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.9rem;
  color: var(--navy-soft);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 18px;
}

.social-links { display: flex; gap: 10px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-links a svg { width: 16px; height: 16px; }
.social-links a:hover { background: var(--blue); transform: translateY(-2px); }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--navy);
}

.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li {
  font-size: 0.92rem;
  color: var(--navy-soft);
}
.footer-col a:hover { color: var(--blue); }

.footer-contact { display: flex; flex-direction: column; }
.footer-contact ul { margin-bottom: 20px; }
.footer-contact .btn { align-self: flex-start; }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-inner p { font-size: 0.85rem; color: var(--navy-soft); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 0.85rem; color: var(--navy-soft); }
.footer-legal a:hover { color: var(--blue); }

/* ===================== Chat Widget ===================== */
.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
}

.chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(47, 95, 218, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -8px rgba(47, 95, 218, 0.6); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .icon-close { display: none; }
.chat-widget.open .chat-fab .icon-chat { display: none; }
.chat-widget.open .chat-fab .icon-close { display: block; }

.chat-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
}
.chat-widget.open .chat-fab-badge { display: none; }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 366px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(15, 17, 26, 0.35), 0 0 0 1px var(--border-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.chat-widget.open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--navy);
  color: #fff;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  flex: 0 0 auto;
}
.chat-title { font-size: 0.92rem; font-weight: 700; color: #fff; }
.chat-status { font-size: 0.76rem; color: rgba(255, 255, 255, 0.7); display: flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.chat-header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.chat-restart,
.chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 0.76rem;
  padding: 4px 6px;
  border-radius: 6px;
}
.chat-restart:hover,
.chat-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.chat-close { font-size: 1.2rem; line-height: 1; padding: 2px 7px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-light);
}

.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.chat-msg.bot .chat-bubble {
  background: #fff;
  color: var(--navy);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px -4px rgba(23, 26, 43, 0.15);
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble strong { font-weight: 700; }

.chat-typing-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-soft);
  opacity: 0.4;
  animation: chatTypingBounce 1.1s infinite ease-in-out;
}
.chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingBounce {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
  background: var(--bg-light);
}
.chat-chip {
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chat-chip:hover { background: #eef2ff; border-color: var(--blue); }

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
  background: #fff;
}
.chat-input-row input {
  flex: 1;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--navy);
  background: var(--bg-light);
}
.chat-input-row input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.chat-send svg { width: 16px; height: 16px; }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-disclaimer {
  font-size: 0.68rem;
  color: var(--navy-soft);
  text-align: center;
  padding: 6px 14px 10px;
  background: #fff;
}

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story-grid { grid-template-columns: 1fr; }
  .about-story-visual { max-width: 380px; margin: 0 auto; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pricing-card.featured { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul {
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }
  .process-steps { flex-wrap: wrap; row-gap: 36px; }
  .process-arrow { display: none; }
  .process-step { flex: 1 1 40%; max-width: none; }
  .service-detail-card { flex-direction: column; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; padding: 34px 26px; }
  .hero { padding: 50px 0 60px; }
  .services, .process { padding: 64px 0; }
  .values-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .service-detail-card { padding: 28px; }
  .feature-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-detail-list, .about-story, .values, .portfolio, .pricing, .contact-section { padding: 60px 0; }
  .page-hero { padding: 48px 0 40px; }

  .chat-widget { right: 14px; bottom: 14px; }
  .chat-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 100px);
    max-height: none;
    bottom: 72px;
    right: -8px;
  }
}
