/* ==========================================================================
   TheDarkForce — Service landing pages
   Loaded after site.css + premium.css. Also provides the Services dropdown
   used by index-premium.html.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Services dropdown
   -------------------------------------------------------------------------- */
.has-sub { position: relative; }
.nav-caret { font-size: 0.6em; margin-left: 0.3rem; opacity: 0.7; transition: transform 0.2s; }
.nav-sub {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 120;
  min-width: 270px; padding: 0.5rem;
  border-radius: 16px;
  background: rgba(10, 24, 51, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover .nav-caret { transform: rotate(180deg); }
.nav-sub a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.75rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s, color 0.2s;
}
.nav-sub a i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(14, 154, 167, 0.18); color: #4DD9E8; font-size: 0.85rem; flex-shrink: 0; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: rgba(255, 255, 255, 0.07); color: #fff; }

@media (max-width: 1100px) {
  .nav-sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; padding: 0.25rem 0 0.5rem 0.75rem; margin: 0;
    background: none; border: 0; box-shadow: none; backdrop-filter: none;
  }
  .nav-sub::before { display: none; }
  .has-sub:hover .nav-sub,
  .has-sub:focus-within .nav-sub { transform: none; }
  .nav-caret { display: none; }
  .nav-sub a { font-size: 0.88rem; padding: 0.45rem 0.6rem; }
  .nav-sub a i { width: 26px; height: 26px; }
  .premium .site-nav { overflow-y: auto; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: 0.55rem; opacity: 0.6; }
.crumbs [aria-current] { color: rgba(255, 255, 255, 0.85); }

.svc-hero .hero-title { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
.svc-hero .hero-badge-tag { padding: 0.25rem 0.5rem; }

.svc-visual-wrap { position: relative; min-width: 0; }
.svc-visual-wrap::before {
  content: ""; position: absolute; inset: 8% 4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(14, 154, 167, 0.55), transparent);
  filter: blur(40px);
}
.svc-visual {
  position: relative;
  padding: 1.25rem; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.svc-visual::before {
  content: ""; position: absolute; left: 15%; right: 15%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, #4DD9E8, transparent);
}
.svc-visual-wrap .dash-note { color: rgba(255, 255, 255, 0.38); }

/* Web — browser + scores */
.v-browser { border-radius: 16px; overflow: hidden; background: #fff; }
.v-bar { display: flex; align-items: center; gap: 5px; padding: 0.6rem 0.8rem; background: #F1F5F9; border-bottom: 1px solid #E2E8F0; }
.v-bar span { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.v-bar em { margin-left: 0.6rem; flex: 1; padding: 0.2rem 0.7rem; border-radius: 6px; background: #fff; font-style: normal; font-family: var(--mono); font-size: 0.68rem; color: var(--text-soft); }
.v-bar em i { color: #10B981; font-size: 0.85em; margin-right: 0.25rem; }
.v-site { padding: 1rem; display: grid; gap: 0.7rem; }
.v-site-hero { display: grid; gap: 7px; padding: 1.1rem; border-radius: 12px; background: linear-gradient(135deg, var(--navy), #1B3A78); }
.v-site-hero i { display: block; height: 9px; width: 70%; border-radius: 5px; background: rgba(255, 255, 255, 0.85); }
.v-site-hero i:nth-child(2) { width: 48%; background: rgba(255, 255, 255, 0.4); }
.v-site-btn { justify-self: start; margin-top: 6px; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--blue); color: #fff; font-size: 0.68rem; font-weight: 700; }
.v-site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.v-site-cards i { height: 44px; border-radius: 10px; background: #EEF2F8; }
.v-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0.4rem 1rem 1.1rem; }
.v-score { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.v-score svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.v-score circle { fill: none; stroke-width: 3; }
.v-score .r-bg { stroke: #E2F7EC; }
.v-score .r-fg { stroke: #10B981; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 - 97.4 * var(--p) / 100); }
.v-score b { position: absolute; top: 20px; font-size: 1rem; color: #047857; }
.v-score small { margin-top: 0.3rem; font-size: 0.68rem; font-weight: 600; color: var(--text-muted); }

/* SEO — search results */
.v-serp { display: grid; gap: 0.7rem; }
.v-search {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 1rem; border-radius: 999px; background: #fff; color: var(--text);
  font-size: 0.85rem; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.4);
}
.v-search span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-search .fa-google { color: var(--blue); }
.v-search .fa-magnifying-glass { color: var(--text-soft); }
.v-result { position: relative; display: grid; gap: 6px; padding: 0.9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.v-result i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); width: 40%; }
.v-result i:nth-child(2) { width: 75%; background: rgba(147, 197, 253, 0.3); }
.v-result i:nth-child(3) { width: 90%; }
.v-result.is-you { background: #fff; border: 0; box-shadow: 0 20px 40px -16px rgba(14, 154, 167, 0.7), 0 0 0 2px rgba(0, 188, 212, 0.6); }
.v-result.is-you small { font-size: 0.7rem; color: #047857; }
.v-result.is-you b { font-size: 0.95rem; color: #1A0DAB; line-height: 1.3; padding-right: 2.5rem; }
.v-result.is-you p { font-size: 0.75rem; color: var(--text-muted); }
.v-stars { color: #F59E0B; letter-spacing: 1px; }
.v-rank { position: absolute; top: 0.8rem; right: 0.8rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--blue); color: #fff; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; }
.v-tracker { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1rem; border-radius: 14px; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.25); font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }
.v-tracker b { font-family: var(--mono); color: #34D399; font-size: 0.95rem; }
.v-tracker s { color: rgba(255, 255, 255, 0.4); }
.v-tracker i { font-size: 0.7em; margin: 0 0.25rem; }

/* Ads — campaign overview */
.v-ads { color: #fff; }
.v-ads-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.85rem; font-weight: 700; }
.v-ads-head > span { display: flex; align-items: center; gap: 0.5rem; }
.v-ads-head em { font-style: normal; font-family: var(--mono); font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.v-ads-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.v-ads-kpis > div { display: grid; gap: 0.15rem; padding: 0.85rem; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.v-ads-kpis small { font-size: 0.7rem; color: rgba(255, 255, 255, 0.55); }
.v-ads-kpis b { font-size: 1.4rem; letter-spacing: -0.02em; }
.v-ads-kpis em { font-style: normal; font-family: var(--mono); font-size: 0.7rem; color: #34D399; }
.v-ads-rows { display: grid; gap: 0.5rem; margin-top: 0.8rem; padding: 0.9rem; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.v-ads-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 0.8rem; align-items: center; font-size: 0.78rem; color: rgba(255, 255, 255, 0.8); }
.v-ads-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-ads-row i { width: 16px; color: #4DD9E8; }
.v-ads-row b { font-family: var(--mono); font-size: 0.8rem; }
.v-meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.v-meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #0E9AA7, #00BCD4); }

/* WhatsApp — phone chat */
.v-whatsapp { display: grid; place-items: center; padding: 1.5rem 1rem; }
.v-phone { position: relative; width: min(300px, 100%); padding: 10px; border-radius: 36px; background: #0B1F44; box-shadow: inset 0 0 0 2px #1B3A78, 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.v-phone-notch { position: absolute; top: 16px; left: 50%; width: 70px; height: 14px; margin-left: -35px; border-radius: 10px; background: #0B1F44; z-index: 2; }
.v-wa { border-radius: 28px; overflow: hidden; background: #ECE5DD; }
.v-wa-head { display: flex; align-items: center; gap: 0.6rem; padding: 2.1rem 0.9rem 0.7rem; background: #075E54; color: #fff; }
.v-wa-head b { display: block; font-size: 0.85rem; }
.v-wa-head small { font-size: 0.68rem; opacity: 0.8; }
.v-wa-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.8rem; }
.v-wa-body .msg { font-size: 0.75rem; max-width: 88%; color: var(--text); }
.msg-opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.45rem; }
.msg-opts span { padding: 0.2rem 0.5rem; border-radius: 999px; background: #fff; color: #0A7CFF; font-weight: 700; font-size: 0.66rem; }
.service-page .reveal .msg, .svc-hero .msg { opacity: 1; transform: none; }

/* CRM — kanban */
.v-crm { color: #fff; }
.v-crm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.85rem; font-weight: 700; }
.v-crm-head i { color: #4DD9E8; margin-right: 0.35rem; }
.v-crm-head em { font-style: normal; font-family: var(--mono); font-size: 0.72rem; color: #34D399; }
.v-crm-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.v-col { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; padding: 0.55rem; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); min-height: 210px; }
.v-col h4 { display: flex; justify-content: space-between; font-size: 0.7rem; font-weight: 700; color: rgba(255, 255, 255, 0.7); letter-spacing: 0; text-transform: uppercase; }
.v-col h4 span { font-family: var(--mono); color: rgba(255, 255, 255, 0.4); }
.v-deal { display: grid; gap: 0.15rem; padding: 0.55rem; border-radius: 10px; background: #fff; color: var(--navy); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.5); }
.v-deal b { font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-deal small { font-size: 0.62rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-deal em { font-style: normal; font-size: 0.6rem; font-weight: 700; color: #B45309; }
.v-deal.is-hot { box-shadow: 0 0 0 2px #00BCD4, 0 10px 20px -8px rgba(0, 188, 212, 0.6); }
.v-deal.is-won em { color: #047857; }

/* Mobile — two phones */
.v-mobile { display: grid; place-items: center; padding: 1.5rem 1rem 2rem; }
.v-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 400px; width: 100%; }
.v-phones .phone { width: 190px; }
.v-ph-back { transform: rotate(-8deg) translate(30px, -10px); opacity: 0.85; }
.v-ph-front { transform: rotate(5deg) translate(-20px, 10px); z-index: 1; }
.svc:hover .v-ph-front { transform: rotate(5deg) translate(-20px, 10px); }
.v-ph-front .p-card { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Problem
   -------------------------------------------------------------------------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pain {
  padding: 2rem 1.75rem; border-radius: var(--r-card, 24px);
  background: #fff; border: 1px solid #E6EBF3;
  position: relative; overflow: hidden;
}
.pain::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #F87171, transparent);
}
.pain-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.25rem; background: #FEF2F2; color: #DC2626; font-size: 1.1rem; }
.pain h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.pain p { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feat h3 { font-size: 1.2rem !important; }
.feat > p { margin-top: 0.6rem !important; }

/* --------------------------------------------------------------------------
   Deliverables
   -------------------------------------------------------------------------- */
.deliver-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.deliver-copy h2 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.05; }
.deliver-copy p { margin: 1rem 0 2rem; color: var(--on-ink-muted); font-size: 1.05rem; }
.deliver-card {
  padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.deliver-card h3 { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #4DD9E8; margin-bottom: 1rem; }
.deliver-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1.5rem; }
.deliver-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: #fff; font-weight: 600; font-size: 0.95rem; line-height: 1.45; }
.deliver-list i { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 0.6rem; }
.deliver-stack { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.deliver-stack ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.deliver-stack li { padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }

/* --------------------------------------------------------------------------
   Related services
   -------------------------------------------------------------------------- */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.rel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; border-radius: 20px;
  background: #fff; border: 1px solid #E6EBF3;
  transition: transform 0.25s, box-shadow 0.25s;
}
.rel:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(11, 31, 68, 0.3); }
.rel .svc-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; color: var(--blue); background: linear-gradient(180deg, #EEF9F9, #DDF2F3); box-shadow: inset 0 0 0 1px rgba(14, 154, 167, 0.12); }
.rel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rel-text b { color: var(--navy); font-size: 1rem; }
.rel-text small { font-family: var(--mono); font-size: 0.7rem; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-arrow { color: var(--blue); transition: transform 0.2s; }
.rel:hover .rel-arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .svc-visual-wrap { max-width: 600px; }
  .deliver-grid { grid-template-columns: 1fr; }
  .pain-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .pain-grid, .feat-grid { grid-template-columns: 1fr; }
  .deliver-list { grid-template-columns: 1fr; }
  .v-crm-cols { grid-template-columns: repeat(2, 1fr); }
  .v-col { min-height: 0; }
}

@media (max-width: 640px) {
  .svc-visual { padding: 0.9rem; border-radius: 20px; }
  .v-ads-kpis b { font-size: 1.1rem; }
  .v-ads-row { grid-template-columns: 1fr auto; }
  .v-ads-row .v-meter { display: none; }
  .v-score svg { width: 52px; height: 52px; }
  .v-score b { top: 15px; font-size: 0.9rem; }
  .v-phones { height: 330px; }
  .v-phones .phone { width: 150px; }
  .v-ph-back { transform: rotate(-8deg) translate(24px, -10px); }
  .v-ph-front { transform: rotate(5deg) translate(-16px, 10px); }
}

/* Related: five equal columns on desktop */
@media (min-width: 1101px) {
  .rel-grid { grid-template-columns: repeat(5, 1fr); }
  .rel { flex-direction: column; align-items: flex-start; gap: 0.9rem; padding: 1.4rem; }
  .rel-text small { white-space: normal; }
  .rel-arrow { margin-top: auto; }
}
@media (max-width: 1100px) {
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rel-grid { grid-template-columns: 1fr; }
}
.rel { min-width: 0; }
@media (max-width: 1100px) { .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rel-grid { grid-template-columns: minmax(0, 1fr); } }
