/* ============================================================
   SERVICES PAGE — "Advertise. Rank. Build." in three chapters.
   Each chapter: the problem in the customer's words on one side and
   a link tile for each service page on the other. The middle chapter
   is navy and flipped, so the page alternates.
   The final banner comes from css/closing.css.
   (css/services.css is the homepage's three cards.)
   ============================================================ */

/* --- Page hero --- */
.svc-hero {
  padding: calc(var(--nav-height) + 90px) 0 90px;
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(46, 101, 184, 0.35) 0%, rgba(46, 101, 184, 0) 70%),
    linear-gradient(180deg, var(--dark) 0%, var(--navy) 100%);
  color: var(--white);
}
.svc-hero-label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-blue);
}
.svc-hero h1 { margin: 0 0 1rem; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--white); }
.svc-hero p { max-width: 36rem; margin: 0; font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); }

.svc-jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.svc-jump a {
  display: block;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.svc-jump a:hover,
.svc-jump a:focus-visible { background: var(--white); border-color: var(--white); color: var(--navy); }

/* --- Chapters: white, navy (flipped), white --- */
.svc-chapter { padding: 110px 0; background: var(--white); scroll-margin-top: var(--nav-height); }
.svc-chapter--navy {
  background:
    radial-gradient(ellipse 55% 80% at 90% 50%, rgba(46, 101, 184, 0.3) 0%, rgba(46, 101, 184, 0) 70%),
    var(--navy);
}

.svc-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4.5rem;
}
.svc-inner--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.svc-inner--flip .svc-copy { order: 2; }

.svc-problem { margin: 0.5rem 0 1rem; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; }
.svc-intro { max-width: 36rem; margin: 0; font-size: 1.1rem; }
.svc-chapter--navy .section-label { color: var(--light-blue); }
.svc-chapter--navy .svc-problem { color: var(--white); }
.svc-chapter--navy .svc-intro { color: rgba(255, 255, 255, 0.8); }

/* --- The doors: one link tile per service page (navy on white chapters,
   white on the navy chapter) --- */
.svc-doors { display: grid; gap: 1.1rem; }
.svc-door {
  --door-bg: var(--navy);
  --door-text: var(--white);
  --door-soft: rgba(255, 255, 255, 0.78);
  --door-rule: rgba(255, 255, 255, 0.16);
  --door-tick: var(--light-blue);
  --door-tick-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1f42' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  display: block;
  padding: 1.75rem 1.75rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--door-bg);
  color: var(--door-text);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
  transition: translate var(--transition), box-shadow var(--transition);
}
.svc-chapter--navy .svc-door {
  --door-bg: var(--white);
  --door-text: var(--navy);
  --door-soft: var(--text-muted);
  --door-rule: var(--border);
  --door-tick: var(--blue);
  --door-tick-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}

.svc-door-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.svc-door-text { display: grid; gap: 0.35rem; min-width: 0; flex: 1; }
/* Logo (Meta, Google Ads) or line icon before each service name */
.svc-door-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-right: -0.5rem;          /* sits a little closer to the name than the arrow does */
  border-radius: 14px;
  background: var(--white);
  color: var(--blue);
}
.svc-chapter--navy .svc-door-badge { background: var(--off-white); border: 1px solid var(--border); }
/* SEO and AI Search: solid blue badge with a white icon so they stand out on the white cards */
.svc-chapter--navy .svc-door-badge--solid { background: var(--blue); border-color: var(--blue); color: var(--white); }
.svc-door-badge img { width: 2.2rem; height: auto; }
.svc-door-badge svg { width: 1.8rem; height: 1.8rem; }
.svc-door-name { font-size: 1.6rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.svc-door-line { font-size: 0.98rem; line-height: 1.5; color: var(--door-soft); }
.svc-door .svc-arrow {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  border-radius: 50%;
  background: var(--door-text);
  color: var(--door-bg);
  box-sizing: border-box;
  transition: translate var(--transition);
}

.svc-door-list { display: grid; gap: 0.6rem; margin: 1.3rem 0 0; padding: 1.3rem 0 0; border-top: 1px solid var(--door-rule); list-style: none; }
.svc-door-list li { position: relative; padding-left: 1.75rem; font-size: 0.93rem; font-weight: 500; line-height: 1.45; }
.svc-door-list li::before {
  content: "";
  position: absolute;
  top: 0.14rem;
  left: 0;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--door-tick) var(--door-tick-mark) center / 72% no-repeat;
}

.svc-door:hover,
.svc-door:focus-visible { translate: 0 -4px; box-shadow: var(--shadow-lg); }
.svc-door:hover .svc-arrow,
.svc-door:focus-visible .svc-arrow { translate: 4px 0; }
.svc-door:focus-visible { outline: 2px solid var(--light-blue); outline-offset: 3px; }

/* --- Text link with arrow --- */
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--light-blue);
  font-weight: 700;
  color: var(--blue);
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
}
.svc-link .svc-arrow { width: 1.1rem; height: 1.1rem; }
.svc-link:hover,
.svc-link:focus-visible { gap: 0.8rem; border-color: var(--navy); color: var(--navy); }

/* --- How it works, in one row --- */
.svc-steps { padding: 90px 0; background: var(--off-white); }
.svc-steps-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.svc-steps-head h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.svc-steps-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.svc-steps-list li {
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.svc-steps-list span { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--light-blue); }
.svc-steps-list strong { display: block; margin: 0.9rem 0 0.3rem; font-size: 1.1rem; font-weight: 800; color: var(--navy); }

/* ============ Smaller screens ============ */
@media (max-width: 1000px) {
  .svc-steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .svc-hero { padding: calc(var(--nav-height) + 56px) 0 64px; }
  .svc-chapter { padding: 68px 0; }
  .svc-inner,
  .svc-inner--flip { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .svc-inner--flip .svc-copy { order: 0; }
  .svc-door { padding: 1.4rem 1.4rem 1.35rem; }
  .svc-door-name { font-size: 1.35rem; }
  .svc-door-head { gap: 1rem; }
  .svc-door-badge { width: 2.9rem; height: 2.9rem; margin-right: 0; border-radius: 12px; }
  .svc-door-badge img { width: 1.85rem; }
  .svc-door-badge svg { width: 1.5rem; height: 1.5rem; }
  .svc-steps { padding: 64px 0; }
}
@media (max-width: 480px) {
  .svc-steps-list { grid-template-columns: minmax(0, 1fr); }
}
