/* =========================================================
   QUILLS DIGITAL — Component styles
   ========================================================= */

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover { border-color: var(--border-hover); transform: translateY(-3px); }

.card--pad { padding: 28px; }

.icon-badge {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(13, 123, 114, 0.09);
  color: var(--ink-accent);
  margin-bottom: 22px;
  transition: all 0.4s ease;
}

.icon-badge i { font-size: 23px; }

.card:hover .icon-badge { background: rgba(13, 123, 114, 0.16); color: var(--ink-dark); }
html.dark .card:hover .icon-badge { color: var(--ink-light); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }

.services-grid { grid-template-columns: 1fr; }
.testimonials-grid { grid-template-columns: 1fr; }
.values-grid { grid-template-columns: 1fr; }
.pricing-grid { grid-template-columns: 1fr; }
.offices-grid { grid-template-columns: 1fr; }
.team-grid { grid-template-columns: 1fr; }
.perks-grid { grid-template-columns: 1fr; }
.tech-grid { grid-template-columns: repeat(3, 1fr); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.portfolio-grid { grid-template-columns: 1fr; }
.blog-grid { grid-template-columns: 1fr; }
.process-grid { grid-template-columns: 1fr; }
.split-grid { grid-template-columns: 1fr; gap: 48px; align-items: center; }

/* ---------- Feature lists ---------- */
.feature-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.feature-list li i { color: var(--gold-dark); font-size: 14px; }

.link-more { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-accent); transition: color 0.3s ease; }
.link-more:hover { color: var(--ink-dark); }
.link-more i { transition: transform 0.3s ease; }
.link-more:hover i { transform: translateX(3px); }

/* ---------- Split / Why us ---------- */
.split-media { position: relative; }
.split-media > img { width: 100%; border-radius: var(--radius-card); aspect-ratio: 4 / 5; object-fit: cover; }

.float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 16px;
  width: 160px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  animation: float 6s ease-in-out infinite;
}

.float-card--top { top: -16px; right: -10px; }
.float-card--bottom { bottom: -16px; left: -10px; animation-delay: 2s; animation-duration: 7s; }

.float-card .label { display: flex; align-items: center; gap: 7px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 6px; }
.float-card .label .dot { width: 7px; height: 7px; border-radius: 50%; }
.float-card .label .dot--gold { background: var(--gold-dark); }
.float-card .label .dot--ink { background: var(--ink-accent); }
.float-card .value { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.float-card .value--gold { color: var(--gold-dark); }
.float-card .value--ink { color: var(--ink-accent); }
.float-card .sub { font-size: 10px; color: var(--text-dim); }

.point-list { display: flex; flex-direction: column; gap: 22px; }

.point { display: flex; gap: 15px; }
.point .icon-badge { width: 40px; height: 40px; flex-shrink: 0; margin-bottom: 0; }
.point .icon-badge i { font-size: 18px; }
.point h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 3px; }
.point p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Process ---------- */
.process-wrap { position: relative; }

.process-line {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(13,123,114,0.35), transparent);
}

.process-step { position: relative; height: 100%; }
.process-step .card { height: 100%; padding: 24px; }

.process-num { font-family: var(--font-display); font-size: 30px; color: rgba(13, 123, 114, 0.4); transition: color 0.3s ease; }
.process-step:hover .process-num { color: var(--ink-accent); }

.process-step .icon-badge { width: 32px; height: 32px; margin-bottom: 0; border-radius: 8px; }
.process-step .icon-badge i { font-size: 16px; }

.process-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.process-step h3 { font-size: 20px; margin-bottom: 8px; }
.process-step p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Testimonials ---------- */
.stars { display: flex; gap: 3px; margin-bottom: 18px; }
.stars i { color: var(--gold-dark); font-size: 12px; }

.quote { font-size: 14px; color: var(--text-muted); line-height: 1.7; font-style: italic; margin-bottom: 28px; }

.author { display: flex; align-items: center; gap: 12px; }
.author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author .name { font-size: 14px; font-weight: 600; color: var(--text-heading); }
.author .role { font-size: 12px; color: var(--text-dim); }

/* ---------- Stat cards ---------- */
.stat-card { text-align: center; padding: 24px; }
.stat-value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; color: var(--ink-accent); margin-bottom: 5px; }
.stat-label { font-size: 12px; color: var(--text-muted); }

.stat-card--inline { padding: 20px; }
.stat-card--inline .stat-value { color: var(--text-heading); font-size: 1.875rem; }
.stat-card--inline .icon-badge { width: 48px; height: 48px; margin: 0 auto 14px; }
.stat-card--inline .icon-badge i { font-size: 20px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 64px 32px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.cta-banner .orb { position: absolute; width: 280px; height: 280px; border-radius: 50%; filter: blur(100px); animation: pulseGlow 5s ease-in-out infinite; pointer-events: none; }
.cta-banner .orb--ink { top: 0; right: 0; background: rgba(13,123,114,0.12); }
.cta-banner .orb--gold { bottom: 0; left: 0; background: rgba(194,146,59,0.08); animation-delay: 1.5s; }

.cta-banner h2 { font-size: 2.6rem; margin-bottom: 18px; }
.cta-banner p { color: var(--text-muted); font-size: 15px; max-width: 34rem; margin: 0 auto 34px; line-height: 1.7; }
.cta-banner .actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; }

/* ---------- Team ---------- */
.team-card { overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.team-card .body { padding: 20px; }
.team-card h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text-heading); margin-bottom: 2px; }
.team-card .role { font-size: 12px; color: var(--ink-accent); margin-bottom: 8px; }
.team-card p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Tech stack ---------- */
.tech-card { text-align: center; padding: 18px 12px; }
.tech-card .icon-badge { width: 40px; height: 40px; margin: 0 auto 8px; }
.tech-card .icon-badge i { font-size: 20px; }
.tech-card .name { font-size: 12px; font-weight: 500; color: var(--text-heading); margin-bottom: 2px; }
.tech-card .cat { font-size: 10px; color: var(--text-dim); }

/* ---------- Pricing ---------- */
.pricing-card { padding: 30px; }
.pricing-card--highlight { border-color: rgba(13, 123, 114, 0.4); }

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  background: var(--ink-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card h3 { font-size: 23px; margin-bottom: 8px; }
.pricing-card .price { font-family: var(--font-display); font-size: 28px; color: var(--ink-accent); margin-bottom: 12px; }
.pricing-card .desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }

/* ---------- Filter pills ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }

.filter-pill {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.filter-pill:hover { color: var(--text-primary); border-color: var(--border-hover); }
.filter-pill.active { background: var(--ink-accent); border-color: var(--ink-accent); color: #fff; }

/* ---------- Portfolio card ---------- */
.project-card { overflow: hidden; }

.project-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s ease; }
.project-card:hover .project-media img { transform: scale(1.05); }

.project-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--ink-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4) 50%, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-overlay .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.project-overlay .chips span {
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 10px;
  font-weight: 500;
}

.project-body { padding: 22px; }
.project-body h3 { font-size: 21px; margin-bottom: 10px; transition: color 0.3s ease; }
.project-card:hover .project-body h3 { color: var(--ink-accent); }

.project-body .desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-metrics { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.project-metrics > div { flex: 1; text-align: center; }
.project-metrics .m-value { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink-accent); }
.project-metrics .m-label { font-size: 10px; color: var(--text-dim); white-space: nowrap; margin-top: 2px; }

.hidden { display: none !important; }

/* ---------- Blog ---------- */
.featured-post { overflow: hidden; }
.featured-grid { display: grid; grid-template-columns: 1fr; }
.featured-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.featured-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.featured-post:hover .featured-media img { transform: scale(1.04); }

.featured-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--ink-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }

.meta-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(13, 123, 114, 0.1);
  color: var(--ink-accent);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-date { font-size: 12px; color: var(--text-dim); }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }

.featured-body h2 { font-size: 26px; margin-bottom: 14px; transition: color 0.3s ease; }
.featured-post:hover .featured-body h2 { color: var(--ink-accent); }

.featured-body .excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.tag-row span {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(13, 123, 114, 0.06);
  border: 1px solid rgba(13, 123, 114, 0.12);
  color: var(--ink-accent);
  font-size: 10px;
  font-weight: 500;
}

.blog-card { overflow: hidden; }
.blog-card .featured-media { aspect-ratio: 16 / 10; }

.blog-card .meta-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
}

.blog-card .body { padding: 20px; }
.blog-card .meta-row { margin-bottom: 12px; gap: 8px; }

.blog-card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover h3 { color: var(--ink-accent); }

.blog-card .excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .author { padding-top: 16px; border-top: 1px solid var(--border-color); }
.blog-card .author img { width: 32px; height: 32px; }
.blog-card .author .name { font-size: 12px; }
.blog-card .author .role { font-size: 10px; }

/* ---------- Perks ---------- */
.perk-card { padding: 24px; }

/* ---------- Offices ---------- */
.office-card { padding: 24px; }
.office-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.office-head .flag { font-size: 26px; }
.office-head h3 { font-size: 20px; }
.office-head .country { font-size: 12px; color: var(--text-dim); }
.office-card .addr { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.office-card .tz { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.office-card .tz i { font-size: 13px; }

.map-frame { overflow: hidden; border-radius: var(--radius-card); border: 1px solid var(--border-color); }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { overflow: hidden; }

.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; text-align: left; }
.faq-q span { font-size: 14px; font-weight: 500; color: var(--text-heading); padding-right: 8px; }

.faq-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.faq-icon i { font-size: 13px; }

.faq-item.open .faq-icon { background: var(--ink-accent); border-color: var(--ink-accent); color: #fff; transform: rotate(45deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.faq-a p { padding: 0 20px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---------- Job cards ---------- */
.job-card { overflow: hidden; }
.job-head { padding: 24px; }
.job-top { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.job-top h3 { font-size: 22px; margin-bottom: 8px; }

.job-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip--ink { background: rgba(13, 123, 114, 0.1); color: var(--ink-accent); }
.chip--gray { background: var(--bg-surface); color: var(--text-muted); }
.chip i { font-size: 10px; }

.job-salary { font-size: 12px; color: var(--text-dim); }
.job-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.job-posted { font-size: 12px; color: var(--text-dim); }
.job-posted i { margin-right: 4px; }

.job-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.job-toggle:hover { border-color: var(--border-hover); color: var(--ink-accent); }
.job-toggle i { font-size: 12px; transition: transform 0.3s ease; }

.job-body { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.job-body-inner { padding: 20px 24px 24px; border-top: 1px solid var(--border-color); }
.job-body h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 12px; }

.req-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.req-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text-muted); }
.req-list li i { color: var(--ink-accent); margin-top: 3px; flex-shrink: 0; font-size: 14px; }