:root {
  --primary: #7d3574;
  --primary-dark: #17225e;
  --accent: #0a58b0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --dark: #0c1130;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

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

.section {
  padding: 88px 0;
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(125, 53, 116, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: inherit;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
}

.logo-mark {
  height: 38px;
  width: auto;
  display: block;
}

.footer-grid .logo-mark {
  height: 38px;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  box-sizing: content-box;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
}

html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 15% 20%, rgba(125, 53, 116, 0.08), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(10, 88, 176, 0.08), transparent 40%), var(--bg);
  background-size: 140% 140%, 140% 140%, auto;
  padding: 96px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
  color: var(--dark);
}

.hero-stats div span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-visual {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.hero-visual .card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}

.hero-visual .card:last-child {
  margin-bottom: 0;
}

.hero-visual .card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.hero-visual .card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Logos strip */
.logos-strip {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos-strip p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.logos-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.7;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Feature list */
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.feature-list li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(125, 53, 116, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

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

.step {
  position: relative;
  padding-top: 8px;
}

.step .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(125, 53, 116, 0.15);
  margin-bottom: 8px;
}

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

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.page-hero .eyebrow {
  color: var(--accent);
}

.page-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto;
}

/* Service detail blocks */
.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.service-block.reverse .service-visual {
  order: -1;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.service-block h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.service-block > div > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-visual {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(125, 53, 116, 0.25);
}

.feature-tile {
  text-align: center;
  padding: 8px;
}

.feature-tile .card-icon {
  margin: 0 auto 20px;
}

.feature-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-tile p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* About page */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 28px 20px;
}

.value-card .card-icon {
  margin: 0 auto 18px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-info-row:last-child {
  margin-bottom: 0;
}

form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea,
.field select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125, 53, 116, 0.12);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

#form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

#form-status.show {
  display: block;
}

#form-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(125, 53, 116, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Orphan-card centering for a 7-item grid-3 */
@media (min-width: 901px) {
  .grid-3 .card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

/* Chat widget */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.chat-toggle:hover {
  transform: scale(1.06);
}

.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 48px);
  height: 460px;
  max-height: 70vh;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-header .chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chat-header h4 {
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.chat-header span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.8;
}

.chat-close:hover {
  opacity: 1;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-alt);
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: #fff;
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.chat-quick button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.chat-quick button:hover {
  background: rgba(125, 53, 116, 0.08);
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.chat-input-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-family: inherit;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-input-row button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-input-row button:hover {
  background: var(--primary-dark);
}

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 32px);
    right: -8px;
  }

  .chat-widget {
    right: 16px;
    bottom: 16px;
  }
}

/* Animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-grid > div:first-child > h1 {
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.05s;
}

.hero-grid > div:first-child > p {
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.15s;
}

.hero-grid > div:first-child > .hero-actions {
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.25s;
}

.hero-grid > div:first-child > .hero-stats {
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.35s;
}

.hero-visual {
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.3s;
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero p {
  animation: heroFadeUp 0.6s ease both;
}

.page-hero h1 {
  animation-delay: 0.1s;
}

.page-hero p {
  animation-delay: 0.2s;
}

@keyframes heroDrift {
  0%,
  100% {
    background-position: 0% 0%, 100% 0%;
  }
  50% {
    background-position: 10% 10%, 90% 5%;
  }
}

.hero {
  animation: heroDrift 22s ease-in-out infinite;
}

.has-reveal .section .card,
.has-reveal .section .feature-tile,
.has-reveal .section .step,
.has-reveal .section .faq-item,
.has-reveal .section .service-block,
.has-reveal .section .cta-banner,
.has-reveal .section .section-header,
.has-reveal .section img {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.card-icon {
  transition: transform 0.25s ease;
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.site-header {
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

@keyframes chatPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(125, 53, 116, 0.35), var(--shadow-lg);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(125, 53, 116, 0), var(--shadow-lg);
  }
}

.chat-toggle {
  animation: chatPulse 2.2s ease-in-out 2;
  animation-delay: 1.5s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Community */
.qa-tag {
  display: inline-block;
  flex-shrink: 0;
  background: rgba(125, 53, 116, 0.1);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.faq-item summary {
  gap: 14px;
}

.faq-item summary .q-text {
  flex: 1;
}

.qa-answer-meta {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

/* Blog */
.blog-tag {
  display: inline-block;
  background: rgba(125, 53, 116, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card .blog-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  display: flex;
  gap: 10px;
  align-items: center;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.blog-card .card-link {
  margin-top: 4px;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 32px 0 14px;
}

.article-body p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 22px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
}

.resource-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(125, 53, 116, 0.06), rgba(10, 88, 176, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0;
}

.resource-box .resource-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-box h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.resource-box p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 14px;
}

.resource-box .btn {
  padding: 9px 20px;
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .resource-box {
    flex-direction: column;
    text-align: center;
  }
}

.article-cta {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 48px;
  text-align: center;
}

.article-cta p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.95fr 1fr 0.9fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-grid .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-grid p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul li a {
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-grid ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .service-block,
  .service-block.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-block.reverse .service-visual {
    order: 0;
  }

  .grid-3,
  .grid-4,
  .steps,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta .btn-outline,
  .nav-cta .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .grid-3,
  .grid-4,
  .steps,
  .values-grid,
  .footer-grid,
  form .form-row {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }
}
