/* ==========================================================
   content-writing.css
   Page-specific styles for Content Writing Company in Chennai
   SMEdigital - smedigital.in
   ========================================================== */

/* ── Floating typewriter pills ── */
.cw-float {
  position: absolute;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(235, 96, 31, 0.18);
  pointer-events: none; white-space: nowrap; z-index: 1;
  animation: cw-float 10s ease-in-out infinite;
  border: 1px solid rgba(235, 96, 31, 0.1);
  padding: 0.3rem 0.7rem; border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
}
.cw-float--1 { top: 20%;    left: 4%;   animation-delay: 0s;   animation-duration: 10s; }
.cw-float--2 { top: 35%;    right: 5%;  animation-delay: 2.5s; animation-duration: 12s; }
.cw-float--3 { bottom: 26%; left: 7%;   animation-delay: 5s;   animation-duration: 9s;  }
.cw-float--4 { bottom: 16%; right: 9%;  animation-delay: 1.5s; animation-duration: 11s; }

@keyframes cw-float {
  0%, 100% { transform: translateY(0);     opacity: 0.18; }
  50%       { transform: translateY(-16px); opacity: 0.42; }
}
@media (max-width: 768px) { .cw-float { display: none; } }

/* ── Blinking cursor decoration ── */
.cw-cursor-blink {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  font-weight: 200;
  color: rgba(235, 96, 31, 0.12);
  pointer-events: none;
  animation: cw-cursor-blink 1.1s step-end infinite;
  font-family: 'Montserrat', sans-serif;
  z-index: 0;
  user-select: none;
}

@keyframes cw-cursor-blink {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0; }
}

@media (max-width: 768px) { .cw-cursor-blink { display: none; } }

/* ── Service chip ── */
.cw-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(235, 96, 31, 0.1);
  border: 1px solid rgba(235, 96, 31, 0.3);
  color: #eb601f; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; padding: 0.4rem 1rem; border-radius: 999px;
  font-family: 'Montserrat', sans-serif; text-transform: uppercase;
}

/* ── Image badge ── */
.cw-img-badge {
  display: inline-flex; align-items: center;
  background: rgba(235, 96, 31, 0.88); color: #000;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  font-family: 'Montserrat', sans-serif; letter-spacing: 0.04em;
}

/* ── Three Pillars Section ── */
.cw-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .cw-pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

.cw-pillar-card {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem; padding: 2.25rem 2rem;
  position: relative; overflow: hidden;
  transition: all 0.35s ease; cursor: default;
}

/* Numbered watermark in background */
.cw-pillar-number {
  position: absolute;
  top: -0.5rem; right: 1rem;
  font-size: 6rem; font-weight: 900;
  color: rgba(235, 96, 31, 0.05);
  font-family: 'Montserrat', sans-serif;
  line-height: 1; pointer-events: none;
  user-select: none;
  transition: color 0.35s ease;
}

.cw-pillar-card:hover .cw-pillar-number { color: rgba(235, 96, 31, 0.1); }

/* Top border accent per card */
.cw-pillar-card--1::before,
.cw-pillar-card--2::before,
.cw-pillar-card--3::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}

.cw-pillar-card--1::before { background: linear-gradient(to right, #eb601f, #f97316); }
.cw-pillar-card--2::before { background: linear-gradient(to right, #3b82f6, #06b6d4); }
.cw-pillar-card--3::before { background: linear-gradient(to right, #28c840, #10b981); }

.cw-pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(235, 96, 31, 0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.cw-pillar-card:hover::before { transform: scaleX(1); }

.cw-pillar-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
}

.cw-pillar-title {
  font-size: 1.3rem; font-weight: 800; color: #fff;
  margin-bottom: 0.75rem; font-family: 'Montserrat', sans-serif;
}

.cw-pillar-desc {
  font-size: 0.9rem; color: rgba(255,255,255,0.58);
  line-height: 1.65; margin-bottom: 1.25rem;
}

.cw-pillar-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}

.cw-pillar-list li {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  padding-left: 1.1rem; position: relative;
  font-family: 'Montserrat', sans-serif;
}

.cw-pillar-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: #eb601f; font-weight: 700;
  font-size: 0.75rem;
}

/* ── Stats Section ── */
.cw-stats-section {
  border-radius: 2rem; background: rgba(17,17,17,0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(235,96,31,0.2); padding: 3rem 2rem;
  position: relative; overflow: hidden;
}
.cw-stats-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, transparent, #eb601f, transparent); }
.cw-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .cw-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.cw-stat-card { text-align: center; padding: 1.5rem 1rem; border-radius: 1rem; transition: transform 0.3s, box-shadow 0.3s; }
.cw-stat-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(235,96,31,0.15); }
.cw-stat-icon   { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.cw-stat-number { font-size: 2.5rem; font-weight: 900; color: #eb601f; line-height: 1; margin-bottom: 0.5rem; font-family: 'Montserrat', sans-serif; }
.cw-stat-label  { font-size: 0.82rem; color: rgba(255,255,255,0.55); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; font-family: 'Montserrat', sans-serif; line-height: 1.4; }

/* ── Industries + Quality Section ── */
.cw-industry-wrapper {
  display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: start;
}
@media (min-width: 1024px) { .cw-industry-wrapper { grid-template-columns: 1fr 1fr; } }

/* Industry grid */
.cw-ind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (min-width: 480px) { .cw-ind-grid { grid-template-columns: repeat(3, 1fr); } }

.cw-ind-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.9rem 0.6rem;
  background: rgba(17,17,17,0.6);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.9rem; text-align: center; cursor: default;
  transition: all 0.25s ease;
}
.cw-ind-item:hover {
  border-color: rgba(235,96,31,0.3);
  background: rgba(235,96,31,0.05);
  transform: translateY(-3px);
}
.cw-ind-emoji { font-size: 1.6rem; line-height: 1; }
.cw-ind-name  { font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.65); font-family: 'Montserrat', sans-serif; line-height: 1.3; }

.cw-cta-btn {
  display: inline-flex; align-items: center; padding: 1rem 2rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; background: #eb601f; color: #000;
  text-decoration: none; transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(235,96,31,0.35); font-family: 'Montserrat', sans-serif;
}
.cw-cta-btn:hover { background: #fff; color: #000; box-shadow: 0 0 40px rgba(235,96,31,0.5); transform: scale(1.04); }

/* ── Quality Panel ── */
.cw-quality-panel {
  background: rgba(13,13,13,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem; overflow: visible;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  display: flex; flex-direction: column;
  transition: box-shadow 0.3s ease;
}
.cw-quality-panel:hover { box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(235,96,31,0.12); }

.cw-qp-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.25rem; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.07); border-radius: 1.5rem 1.5rem 0 0; flex-shrink: 0; }
.cw-qp-dots { display: flex; gap: 6px; }
.cw-qpdot  { width: 11px; height: 11px; border-radius: 50%; }
.cw-qpdot--r { background: #ff5f57; }
.cw-qpdot--y { background: #febc2e; }
.cw-qpdot--g { background: #28c840; }
.cw-qp-title { margin-left: 0.4rem; font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; font-family: 'Montserrat', sans-serif; }

.cw-qp-section { padding: 1.1rem 1.5rem; flex-shrink: 0; }

.cw-qp-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.cw-qp-label { font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.09em; font-family: 'Montserrat', sans-serif; }
.cw-qp-badge { font-size: 0.68rem; font-weight: 800; color: #28c840; background: rgba(40,200,64,0.12); border: 1px solid rgba(40,200,64,0.25); padding: 0.18rem 0.55rem; border-radius: 999px; font-family: 'Montserrat', sans-serif; }

/* Checklist */
.cw-checks { display: flex; flex-direction: column; gap: 5px; }

.cw-check-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.42rem 0.6rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px; transition: all 0.2s ease;
}
.cw-check-row:hover { border-color: rgba(40,200,64,0.2); background: rgba(40,200,64,0.03); }

.cw-check-mark {
  font-size: 0.75rem; font-weight: 900;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0; width: 16px; text-align: center;
  transition: color 0.2s ease;
}
.cw-check-mark.passed { color: #28c840; }

.cw-check-text {
  font-size: 0.75rem; color: rgba(255,255,255,0.6);
  font-family: 'Montserrat', sans-serif; line-height: 1.3;
}

/* Metrics row */
.cw-qp-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
  padding: 1rem 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.cw-qp-metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 0.8rem 0.6rem 0.7rem;
  text-align: center; transition: all 0.25s ease; cursor: default;
}
.cw-qp-metric:hover { border-color: rgba(235,96,31,0.25); background: rgba(235,96,31,0.05); }

.cw-qp-metric-val { display: block; font-size: 1.15rem; font-weight: 900; color: #eb601f; line-height: 1; margin-bottom: 0.2rem; font-family: 'Montserrat', sans-serif; }
.cw-qp-metric-lbl { display: block; font-size: 0.6rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.05em; font-family: 'Montserrat', sans-serif; }
.cw-qp-metric-sub { display: block; font-size: 0.58rem; color: rgba(255,255,255,0.25); font-family: 'Montserrat', sans-serif; margin-top: 0.1rem; }

.cw-qp-caption {
  font-size: 0.75rem; color: rgba(255,255,255,0.3);
  line-height: 1.6; padding: 0.85rem 1.5rem 1.25rem;
  text-align: center; border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.cw-qp-caption strong { color: rgba(255,255,255,0.55); font-weight: 700; }

/* ── Why Choose Section ── */
.cw-why-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .cw-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cw-why-grid { grid-template-columns: repeat(3, 1fr); } }

.cw-why-card {
  background: rgba(17,17,17,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 1.5rem; padding: 2rem 1.75rem;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.cw-why-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, transparent, rgba(235,96,31,0.4), transparent); transform: scaleX(0); transition: transform 0.4s ease; }
.cw-why-card:hover { transform: translateY(-6px); border-color: rgba(235,96,31,0.3); box-shadow: 0 12px 40px rgba(235,96,31,0.12); }
.cw-why-card:hover::after { transform: scaleX(1); }
.cw-why-card--highlight { border-color: rgba(235,96,31,0.3); background: rgba(235,96,31,0.05); }
.cw-why-card--highlight::after { background: linear-gradient(to right, transparent, #eb601f, transparent); transform: scaleX(1); }
.cw-why-icon  { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.cw-why-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; font-family: 'Montserrat', sans-serif; }
.cw-why-desc  { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .cw-stats-section    { padding: 2rem 1rem; }
  .cw-stat-number      { font-size: 1.75rem; }
  .cw-industry-wrapper { gap: 2.5rem; }
  .cw-pillars-grid     { gap: 1rem; }
  .cw-ind-grid         { grid-template-columns: repeat(2, 1fr); }
  .cw-qp-metrics       { grid-template-columns: repeat(3, 1fr); }
}