/* ============================================================
   SAGE-SEO.CSS — Sage Titans v1.1
   Page-specific styles for seo-services.php
   ============================================================ */

/* ── SEO HERO DASHBOARD VISUAL ──
   Layout + reserved space: in critical inline CSS (seo-services.php)
   Visual detail styles only here. */

/* ── HERO GRID — fluid so widget never clips ── */
.seo-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.seo-dash {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;       /* fills its grid cell — never overflows */
  min-width: 0;      /* prevents grid blowout */
}

.seo-dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.seo-dash-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.seo-dash-dot--red    { background: #ff5f57; }
.seo-dash-dot--yellow { background: #febc2e; }
.seo-dash-dot--green  { background: #28c840; }

.seo-dash-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.seo-dash-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 20px; }

.seo-dash-section { display: flex; flex-direction: column; gap: 10px; }

.seo-dash-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.seo-kw-row {
  display: grid;
  grid-template-columns: 130px 1fr 72px;
  align-items: center;
  gap: 10px;
}

.seo-kw-term {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  white-space: nowrap;
}

.seo-kw-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.seo-kw-fill {
  height: 100%;
  background: linear-gradient(90deg, #29abe2, #caef45);
  border-radius: 3px;
  animation: kw-grow 1.2s ease-out both;
}

@keyframes kw-grow { from { width: 0 !important; } }

.seo-kw-pos { font-size: 12px; font-weight: 700; text-align: right; white-space: nowrap; }
.seo-kw-pos--up { color: #4ade80; }

.seo-dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.seo-metric {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seo-metric-val {
  font-size: 18px;
  font-weight: 800;
  color: #caef45;
  line-height: 1;
}

.seo-metric-label {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.seo-traffic-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.seo-traffic-fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, #29abe2 0%, #caef45 100%);
  border-radius: 4px;
  animation: kw-grow 1.4s ease-out both;
}

.seo-traffic-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

/* ── HERO RESPONSIVE ──
   900px : widget stacks below content, goes full width
   Mirrors the CRM page pattern — display:none only at 480px (in critical CSS) */
@media (max-width: 1100px) {
  .seo-hero-grid { gap: 32px; }
}
@media (max-width: 900px) {
  .seo-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .seo-hero-visual { display: flex; min-height: auto; width: 100%; }
  .seo-dash { max-width: 600px; margin: 0 auto; }
  /* Tighten internal widget padding on smaller screens */
  .seo-dash-body { padding: 16px 14px; gap: 16px; }
  .seo-kw-row { grid-template-columns: 110px 1fr 68px; gap: 8px; }
  .seo-dash-metrics { gap: 8px; }
  .seo-metric { padding: 10px 8px; }
  .seo-metric-val { font-size: 16px; }
}


/* ══════════════════════════════════════════
   MODAL
   Handled by custom-modal.css (async load in
   seo-services.php head). No rules needed here.
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   PARTNERING / TRUST SECTION
   FIX: constrain width so it doesn't stretch
   full page, centred with max-width
══════════════════════════════════════════ */

.partnering-sec {
  min-height: 260px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-bottom: 60px;  /* consistent bottom gap before next section */
}

.partnering-sec h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: #0a1628;
  line-height: 1.35;
  margin-bottom: 14px;
}

.partnering-sec p {
  font-size: 16px;
  line-height: 1.7;
  color: #516070;
  margin-bottom: 28px;
}

.partnering-logos ul { min-height: 140px; }

/* Partner logo cards — match av-partner-card hover from about-us */
.partnering-logos ul li {
  border: 1px solid #e2eaf4 !important;
  border-radius: 10px !important;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.partnering-logos ul li:hover {
  border-color: #29abe2 !important;
  box-shadow: 0 4px 16px rgba(41,171,226,0.12);
}

/* FIX: explicit dimensions on partner logos — prevents unsized image CLS */
.partnering-logos ul li img {
  width: 120px !important;
  height: 120px !important;
  object-fit: contain;
  display: block;
}

/* Gap above Trusted by section —
   !important needed to beat async sage-site-components.css */
.seo-page .clients-section {
  padding-top: 80px !important;
  margin-top: 48px !important;
}

/* Remove the separator line image — replace with clean border */
.partnering-logos {
  background: none !important;
  padding-bottom: 0;
  border-bottom: 1px solid #e5eaf0;
  padding-bottom: 48px;
}


/* ══════════════════════════════════════════
   SECTION HEAD — suppress the blue line
   when heading is centre-aligned
   (the ::before line is left-aligned by
   design in sage-site-components — override
   it for centre-aligned headings on this page)
══════════════════════════════════════════ */

.section-head-center h2::before,
.section-head-center .section-head h2::before,
.seo-page .section-head-center h2::before {
  display: none !important;
}

/* Also fix the span sub-label size in testimonial heading */
.section-head-center h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
}

.section-head-center h2 span {
  display: inline !important; /* override block from sage-site-components */
  font-size: inherit !important;
  font-style: normal;
  color: #1d2594;
}

.section-head-center p {
  font-size: 16px;
  line-height: 1.7;
  color: #516070;
  max-width: 680px;
  margin: 0 auto;
}

/* Fix review-user list bullets —
   review-user uses <ul> for name/role in old HTML
   but sage-site-components styles treat them as
   a flex list — bullets appear because list-style
   isn't reset inside .review-user */
.review-user ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-user ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}


/* ══════════════════════════════════════════
   PACKAGES TABLE
══════════════════════════════════════════ */

.our-pack-heading {
  text-align: center;
  padding: 60px 0 20px;
}

.our-pack-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #0a1628;
}

.our-packages-sec {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* FIX: outer border to frame the whole table */
  border: 1.5px solid #c7d0f5;
}

.table-head-rw {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  background: #0d1b6e;
}

.head-rw-item {
  padding: 18px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.head-rw-item:first-child {
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.head-rw-item:last-child { border-right: none; }

.op-main-head-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  background: #eef2ff;
  border-top: 2px solid #c7d0f5;
}

.op-main-head-row .clm {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #1d2594;
  text-align: center;
}

.op-main-head-row .clm:first-child { text-align: left; }

.op-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  border-top: 1px solid #e5e8f0;
}

.op-row:nth-child(even) { background: #fafafa; }
.op-row:nth-child(odd)  { background: #ffffff; }

.clm {
  padding: 12px 16px;
  font-size: 13.5px;
  color: #3d4f63;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #eff0f5;
}

.clm:first-child {
  text-align: left;
  justify-content: flex-start;
  font-weight: 500;
  color: #1a202c;
  border-right: 1px solid #dde1ee;
}

.clm:last-child { border-right: none; }
.clm span { font-size: 13.5px; color: #1a202c; font-weight: 500; }

.clm img { width: 22px; height: 22px; display: block; }

.op-dark-border { border-top: 2px solid #dde1ee !important; }
.op-no-border   { border-top: none !important; }

.pkg-cta-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #0d1b6e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.1s;
  white-space: nowrap;
}

.pkg-cta-btn:hover {
  background: #1a2fa8;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.p-bot-cta { font-size: 12.5px; padding: 9px 16px; }

@media (max-width: 767px) {
  .our-packages-sec { border-radius: 10px; }
  .table-head-rw,
  .op-main-head-row,
  .op-row { min-width: 680px; }
  .our-packages-sec { display: block; overflow-x: auto; }
}


/* ══════════════════════════════════════════
   CUSTOM PLAN CTA BANNER
   FIX: add a right-side graphic element so
   it doesn't look too empty
══════════════════════════════════════════ */

.cust-plan-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: linear-gradient(135deg, #01273d 0%, #0d1b6e 100%);
  padding: 52px 64px;
  border-radius: 20px;
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
}

/* Decorative circle — fills the empty right space */
.cust-plan-cta::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 40px solid rgba(202,239,69,0.08);
  pointer-events: none;
}

.cust-plan-cta::after {
  content: "";
  position: absolute;
  right: 60px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 30px solid rgba(41,171,226,0.08);
  pointer-events: none;
}

.cp-content { position: relative; z-index: 1; max-width: 680px; }

.cp-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.cp-content h2 span { color: #caef45; }

.cp-content h3 {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin: 0;
}

.cp-cta { flex-shrink: 0; position: relative; z-index: 1; }

.cp-link { font-size: 15px; padding: 13px 28px; }

@media (max-width: 767px) {
  .cust-plan-cta {
    padding: 36px 24px;
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ══════════════════════════════════════════
   WHY SEO MATTERS — stat cards
══════════════════════════════════════════ */

.wsm-sec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 40px;
}

.wsm-sec-card {
  background: #f4f7fc;
  border: 1.5px solid #e2eaf4;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.wsm-sec-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #29abe2, #0d1b6e);
}

.wsm-sec-card:hover {
  box-shadow: 0 8px 32px rgba(13,27,110,0.1);
  border-color: #29abe2;
  transform: translateY(-4px);
}

.wsm-sec-card img {
  width: 120px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.wsm-sec-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 12px;
  line-height: 1.35;
}

.wsm-sec-card p {
  font-size: 15px;
  color: #516070;
  line-height: 1.65;
  margin: 0;
}

.wsm-cta { text-align: center; padding: 8px 0 60px; }

@media (max-width: 767px) {
  .wsm-sec { grid-template-columns: 1fr; gap: 16px; }
  .wsm-sec-card { padding: 28px 20px; }
}


/* ══════════════════════════════════════════
   TOP REASONS — radio accordion
   FIX: add card-style box on active tab
   so it looks like the original boxed design
══════════════════════════════════════════ */

.seo-serve-sec {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
  padding: 64px 0;
}

.seo-serve-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #0a1628;
  line-height: 1.3;
  margin-bottom: 16px;
}

.seo-serve-head p {
  font-size: 15px;
  color: #516070;
  line-height: 1.75;
  margin-bottom: 24px;
}

.accordion--radio { display: flex; flex-direction: column; gap: 0; }

.tab {
  border-bottom: 1px solid #e5eaf0;
  border-radius: 0;
  transition: background 0.18s;
}

.tab:first-child { border-top: 1px solid #e5eaf0; }

.tab input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.tab__label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
  cursor: pointer;
  user-select: none;
  transition: color 0.18s;
  border-radius: 8px;
}

.tab__label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dce8fb;   /* slightly darker bg for contrast */
  color: #1a4fa8;        /* darker blue — passes WCAG AA on #dce8fb */
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}

.tab__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.2s ease;
  padding: 0 12px 0 58px;
}

.tab__content p {
  font-size: 14.5px;
  color: #516070;
  line-height: 1.75;
  margin: 0;
  padding-bottom: 16px;
}

/* Active tab — unified card wrapping label + content */
.tab input[type="radio"]:checked ~ .tab__label {
  color: #1a4fa8;   /* darkened from #207de9 — passes WCAG AA 4.5:1 on #f0f7ff */
  background: #f0f7ff;
  border-radius: 0;
  margin-bottom: 0;
}

.tab input[type="radio"]:checked ~ .tab__label span {
  background: #207de9;
  color: #ffffff;
}

.tab input[type="radio"]:checked ~ .tab__content {
  max-height: 200px;
  background: #f0f7ff;
  border-radius: 0;
  padding-bottom: 4px;
}

@media (max-width: 900px) {
  .seo-serve-sec { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
}


/* ══════════════════════════════════════════
   WE HELP OUR CLIENTS GROW
   FIX: images bigger and centre-aligned
══════════════════════════════════════════ */

.client-grow-sec {
  background: #f4f7fc;
  padding: 72px 0;
  margin-bottom: 0;
}

.cgs-head-sec {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.cgs-head-sec h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 14px;
  line-height: 1.3;
}

.cgs-head-sec p {
  font-size: 16px;
  color: #516070;
  line-height: 1.75;
  margin: 0;
}

.cgs-card-sec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.cgs-card {
  background: #ffffff;
  border: 1.5px solid #e2eaf4;
  border-radius: 16px;
  padding: 32px 22px 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;  /* centre all content */
  text-align: center;
}

.cgs-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #29abe2, #0d1b6e);
}

.cgs-card:hover {
  box-shadow: 0 10px 36px rgba(13,27,110,0.1);
  border-color: #29abe2;
  transform: translateY(-4px);
}

/* FIX: bigger centred image */
.cgs-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
}

.cgs-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 10px;
  line-height: 1.3;
}

.cgs-card p {
  font-size: 13.5px;
  color: #516070;
  line-height: 1.65;
  margin-bottom: 16px;
}

.cgs-card ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  width: 100%;
}

.cgs-card ul li {
  font-size: 13px;
  color: #2d3748;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.cgs-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #29abe2;
  font-size: 11px;
  font-weight: 700;
  top: 1px;
}

.cgs-cta-sec { text-align: center; padding-top: 8px; }

.cgs-cta-sec ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
}

@media (max-width: 991px) {
  .cgs-card-sec { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cgs-card-sec { grid-template-columns: 1fr; }
  .client-grow-sec { padding: 48px 0; }
}


/* ══════════════════════════════════════════
   M-SHOT-HEAD (FAQ section heading)
══════════════════════════════════════════ */

.m-shot-head {
  text-align: center;
  margin-bottom: 8px;
}

.m-shot-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #0a1628;
  line-height: 1.3;
}


/* ══════════════════════════════════════════════════════════════
   FOOTER TOUCH TARGET FIX — Google PageSpeed mobile requirement
   Min 48×48px touch area for footer copyright links
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .copyright-sec ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .copyright-sec ul li { display: block; }
  .copyright-sec ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px !important;
    font-size: 14px;
  }
}
