/* SEO By Ganesh | Phase C2B | Proof, clarity & conversion UI.
   Homepage only via the existing C2A route condition.
   Additive CSS, no JS/HTML, no tracking/CRM/schema/form/SEO modifications.
   Supports C1 design tokens and C2A service/AI polish. */

/* Proof-first visual hierarchy: calm, readable and consistent section rhythm. */
section[aria-labelledby="case-studies-heading"],
section[aria-labelledby="reviews-heading"],
section[aria-labelledby="consultation-heading"],
section[aria-labelledby="faq-heading"],
section[aria-labelledby="final-cta-heading"] {
  padding-block: clamp(3.75rem, 6.5vw, 6.25rem);
}
section[aria-labelledby="case-studies-heading"] h2,
section[aria-labelledby="reviews-heading"] h2,
section[aria-labelledby="consultation-heading"] h2,
section[aria-labelledby="faq-heading"] h2,
section[aria-labelledby="final-cta-heading"] h2,
section[aria-labelledby="process-heading"] h2 {
  letter-spacing: -.038em;
  line-height: 1.13;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
section[aria-labelledby="case-studies-heading"] > .max-w-7xl,
section[aria-labelledby="reviews-heading"] > .max-w-7xl,
section[aria-labelledby="process-heading"] > .max-w-7xl {
  max-width: 1200px;
}

/* Published case studies: preserve exact claims, links and optional metrics. */
section[aria-labelledby="case-studies-heading"] {
  background-color: #0b1220;
  isolation: isolate;
}
section[aria-labelledby="case-studies-heading"] > .max-w-7xl > .grid {
  gap: clamp(1rem, 2.5vw, 1.7rem);
  align-items: stretch;
}
section[aria-labelledby="case-studies-heading"] .grid > article {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #dbe7f4;
  border-radius: 20px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .19);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
section[aria-labelledby="case-studies-heading"] .grid > article > div:first-child {
  min-height: 190px;
  background: linear-gradient(145deg, #dbeafe, #ecfeff);
}
section[aria-labelledby="case-studies-heading"] .grid > article > div:first-child img {
  object-fit: cover;
  object-position: center;
}
section[aria-labelledby="case-studies-heading"] .grid > article > div:last-child {
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
}
section[aria-labelledby="case-studies-heading"] .grid > article h3 {
  font-size: clamp(1.12rem, 1.6vw, 1.4rem);
  line-height: 1.36;
  letter-spacing: -.025em;
}
section[aria-labelledby="case-studies-heading"] .grid > article p {
  color: #475569;
  line-height: 1.7;
}
section[aria-labelledby="case-studies-heading"] .grid > article [aria-label="Reported Project Metrics"] {
  gap: .7rem;
  border-top-color: #e2e8f0;
}
section[aria-labelledby="case-studies-heading"] .grid > article [aria-label="Reported Project Metrics"] > div {
  min-width: 0;
  padding: .65rem .75rem;
  border: 1px solid #dcfce7;
  background: #f0fdf4;
  border-radius: 12px;
}
section[aria-labelledby="case-studies-heading"] .grid > article [aria-label="Reported Project Metrics"] > div > div:first-child {
  color: #047857;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
section[aria-labelledby="case-studies-heading"] .grid > article [aria-label="Reported Project Metrics"] > div > div:last-child {
  color: #475569;
  letter-spacing: .05em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
section[aria-labelledby="case-studies-heading"] .grid > article:focus-within {
  outline: 3px solid #93c5fd;
  outline-offset: 4px;
  border-color: #2563eb;
}
@media (hover: hover) and (pointer: fine) {
  section[aria-labelledby="case-studies-heading"] .grid > article:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .26);
    border-color: #93c5fd;
  }
}

/* Client feedback is DB-gated. No stars, names or reviews are invented. */
section[aria-labelledby="reviews-heading"] {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
section[aria-labelledby="reviews-heading"] > div > .grid {
  gap: clamp(1rem, 2.6vw, 1.75rem);
}
section[aria-labelledby="reviews-heading"] figure {
  min-width: 0;
  background: #fff;
  border: 1px solid #dce6f1;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
  padding: clamp(1.3rem, 3vw, 2rem);
}
section[aria-labelledby="reviews-heading"] figure blockquote {
  color: #334155;
  line-height: 1.72;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
section[aria-labelledby="reviews-heading"] figure figcaption {
  border-top-color: #e2e8f0;
  margin-top: auto;
}

/* Process: connected step cards, predictable mobile stacking. */
section[aria-labelledby="process-heading"] {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
section[aria-labelledby="process-heading"] ol {
  align-items: stretch;
  gap: clamp(.9rem, 2vw, 1.35rem);
}
section[aria-labelledby="process-heading"] ol > li {
  min-width: 0;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: #fff;
  border: 1px solid #dce6f1;
  border-radius: 20px;
  box-shadow: 0 9px 28px rgba(15, 23, 42, .045);
  transition: border-color .2s ease, box-shadow .2s ease;
}
section[aria-labelledby="process-heading"] ol > li > div:first-child {
  margin-bottom: 1.1rem;
}
section[aria-labelledby="process-heading"] ol > li > div:first-child > div {
  width: 3.65rem;
  height: 3.65rem;
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  box-shadow: none;
}
section[aria-labelledby="process-heading"] ol > li > div:first-child > div span {
  color: #1d4ed8;
  font-size: 1.15rem;
}
section[aria-labelledby="process-heading"] ol > li h3 {
  font-size: clamp(1.06rem, 1.55vw, 1.22rem);
  line-height: 1.35;
  letter-spacing: -.02em;
}
section[aria-labelledby="process-heading"] ol > li p {
  color: #475569;
  font-size: .93rem;
  line-height: 1.7;
}
section[aria-labelledby="process-heading"] ol > li > div:last-child > div {
  max-width: 100%;
  background: #f0fdf4;
  border-color: #d1fae5;
  border-radius: 10px;
}
section[aria-labelledby="process-heading"] ol > li > div:last-child > div span {
  color: #14532d;
  line-height: 1.45;
}
@media (hover: hover) and (pointer: fine) {
  section[aria-labelledby="process-heading"] ol > li:hover > div:first-child > div {
    background: #dbeafe;
    border-color: #93c5fd;
  }
  section[aria-labelledby="process-heading"] ol > li:hover > div:first-child > div span { color: #1d4ed8; }
  section[aria-labelledby="process-heading"] ol > li:hover {
    border-color: #bfdbfe;
    box-shadow: 0 16px 35px rgba(37, 99, 235, .07);
  }
}

/* Search framework: less visual noise in the existing long-form ten-layer overview. */
.svl-section .svl-container,
.dme .dme-wrap { max-width: 1200px; }
.svl-section .svl-header h2,
.dme .dme-head h2 {
  text-wrap: balance;
  overflow-wrap: anywhere;
  letter-spacing: -.035em;
}
.svl-section .svl-stack { gap: 1rem; }
.svl-section .svl-card {
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .10);
}
.svl-section .svl-card__identity,
.svl-section .svl-card__column { min-width: 0; }
.svl-section :is(.svl-identity-copy, .svl-list li, .svl-card__column) {
  overflow-wrap: anywhere;
}
.svl-section .svl-link:focus-visible,
.svl-section .svl-cta:focus-visible {
  outline: 3px solid #67e8f9;
  outline-offset: 4px;
}
.dme .dme-card {
  min-width: 0;
  border: 1px solid #dce6f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .035);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dme .dme-card h3,
.dme .dme-card p,
.dme .dme-links a { overflow-wrap: anywhere; }
.dme .dme-links a:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .dme .dme-card:hover { border-color: #93c5fd; box-shadow: 0 12px 26px rgba(37, 99, 235, .07); }
}

/* Local credibility: geographic coverage is not a claim of a physical office. */
section[aria-labelledby="vizag-focus-title"],
section[aria-labelledby="coverage-title"] {
  padding-block: clamp(3.5rem, 6vw, 5rem);
}
section[aria-labelledby="vizag-focus-title"] h2,
section[aria-labelledby="coverage-title"] h2 {
  line-height: 1.16;
  letter-spacing: -.032em;
  text-wrap: balance;
}
section[aria-labelledby="coverage-title"] .grid > article {
  min-width: 0;
  border: 1px solid #dce6f1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .035);
}

/* Paid consultation: stronger conversion contrast without changing form behavior. */
section[aria-labelledby="consultation-heading"] {
  background: radial-gradient(circle at 12% 10%, rgba(37,99,235,.22), transparent 38%), #0b1220;
  isolation: isolate;
}
section[aria-labelledby="consultation-heading"] > .max-w-6xl > div {
  max-width: 1120px;
  margin-inline: auto;
  border-color: rgba(148, 163, 184, .27);
  background: rgba(255,255,255,.055);
  border-radius: 24px;
  gap: clamp(1.5rem, 4vw, 3.25rem);
}
section[aria-labelledby="consultation-heading"] h2 {
  font-size: clamp(1.85rem, 3.65vw, 2.7rem);
}
section[aria-labelledby="consultation-heading"] p,
section[aria-labelledby="consultation-heading"] li { line-height: 1.68; }
section[aria-labelledby="consultation-heading"] [data-lead-form-wrapper] {
  min-width: 0;
  max-width: 440px;
  border-radius: 18px;
  border-color: #e2e8f0;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,.23);
}
#consultationLeadForm :is(input:not([type="hidden"]), select, textarea) {
  min-height: 48px;
  max-width: 100%;
  font-size: 16px; /* Prevent iOS focus zoom. */
  border-radius: 10px;
  color: #0f172a;
}
#consultationLeadForm :is(input:not([type="hidden"]), select, textarea):focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-color: #2563eb;
}
#consultationLeadForm button[type="submit"] {
  min-height: 52px;
  border-radius: 11px;
  color: #06261b;
  background: #34d399;
  font-weight: 800;
}
#consultationLeadForm button[type="submit"]:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
#consultationLeadForm button[type="submit"]:hover { background: #6ee7b7; }

/* FAQ details stay native, keyboard-friendly and JS-free. */
section[aria-labelledby="faq-heading"] { background: #f8fafc; }
section[aria-labelledby="faq-heading"] details {
  min-width: 0;
  border-radius: 15px;
  border-color: #dce6f1;
  box-shadow: 0 3px 12px rgba(15,23,42,.027);
  overflow: hidden;
}
section[aria-labelledby="faq-heading"] details[open] {
  background: #fff;
  border-color: #93c5fd;
  box-shadow: 0 10px 26px rgba(37,99,235,.06);
}
section[aria-labelledby="faq-heading"] details > summary {
  min-height: 60px;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  color: #0f172a;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
section[aria-labelledby="faq-heading"] details > summary:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: -3px;
}
section[aria-labelledby="faq-heading"] details > div {
  color: #334155;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* Final action: phone, WhatsApp and free audit remain in their existing order. */
section[aria-labelledby="final-cta-heading"] {
  background: linear-gradient(125deg, #1d4ed8 0%, #15367d 62%, #0b1220 100%);
  isolation: isolate;
}
section[aria-labelledby="final-cta-heading"] h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}
section[aria-labelledby="final-cta-heading"] > div.max-w-5xl > p {
  color: #e0ecff;
  line-height: 1.65;
}
section[aria-labelledby="final-cta-heading"] > div.max-w-5xl > div.flex {
  flex-wrap: wrap;
}
section[aria-labelledby="final-cta-heading"] [data-conversion-location="homepage_final_cta"] {
  min-width: 0;
  min-height: 54px;
  padding: .95rem 1.35rem;
  border-radius: 13px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
section[aria-labelledby="final-cta-heading"] [data-conversion-action="phone"] {
  background: #34d399;
  color: #06261b;
}
section[aria-labelledby="final-cta-heading"] [data-conversion-action="phone"]:hover { background: #6ee7b7; }
section[aria-labelledby="final-cta-heading"] [data-conversion-action="whatsapp"] {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.12);
  color: #fff;
}
section[aria-labelledby="final-cta-heading"] [data-conversion-action="whatsapp"]:hover {
  background: rgba(255,255,255,.19);
}
section[aria-labelledby="final-cta-heading"] [data-conversion-action="seo_audit"] {
  background: #fff;
  color: #1d4ed8;
}
section[aria-labelledby="final-cta-heading"] [data-conversion-action="seo_audit"]:hover {
  background: #eff6ff;
}
section[aria-labelledby="final-cta-heading"] [data-conversion-location="homepage_final_cta"]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(37,99,235,.3);
}

/* Narrow screens: keep evidence readable and avoid horizontal scrolling. */
@media (max-width: 767px) {
  section[aria-labelledby="case-studies-heading"] .grid > article > div:first-child { min-height: 175px; }
  section[aria-labelledby="case-studies-heading"] .grid > article [aria-label="Reported Project Metrics"] { gap: .5rem; }
  section[aria-labelledby="process-heading"] ol > li { padding: 1.2rem; }
  section[aria-labelledby="consultation-heading"] > .max-w-6xl > div { padding: 1.15rem; }
  section[aria-labelledby="consultation-heading"] [data-lead-form-wrapper] { padding: 1.3rem; }
  section[aria-labelledby="final-cta-heading"] > div.max-w-5xl > div.flex { gap: .85rem; }
  section[aria-labelledby="final-cta-heading"] [data-conversion-location="homepage_final_cta"] { width: 100%; }
  .svl-section .svl-card { border-radius: 15px; }
  .dme .dme-card { border-radius: 15px; }
}
@media (max-width: 359px) {
  section[aria-labelledby="case-studies-heading"] .grid > article > div:last-child { padding: 1rem; }
  section[aria-labelledby="case-studies-heading"] .grid > article [aria-label="Reported Project Metrics"] > div { padding: .5rem; }
  section[aria-labelledby="consultation-heading"] [data-lead-form-wrapper] { padding: 1rem; }
  section[aria-labelledby="faq-heading"] details > summary { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  section[aria-labelledby="case-studies-heading"] .grid > article,
  section[aria-labelledby="case-studies-heading"] .grid > article img,
  section[aria-labelledby="process-heading"] ol > li,
  .dme .dme-card,
  section[aria-labelledby="final-cta-heading"] [data-conversion-location="homepage_final_cta"] {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}
/* SBG_PHASE_C2B_STYLES_END */
