/* ==========================================================================
   seo-answers.css
   Styles for the "Key Answers" section (#seo-answers) on the domestic SEO page,
   plus the shorter hero H1. Uses only the site's existing theme variables, so it
   follows the light/dark theme toggle automatically:
   --primary-color, --secondary-color, --accent-color,
   --bg-primary, --bg-secondary, --bg-tertiary, --border-color
   Does not modify app.css or seoo.css. Load it after seoo.css.
   ========================================================================== */

/* ---------- Hero H1: short and not oversized ---------- */
.page-hero h1.section-title {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    line-height: 1.2;
}

/* ---------- Section heading (the H2 is long, so keep it modest) ---------- */
#seo-answers .section-title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.25;
}

/* ---------- Answer cards ---------- */
#seo-answers .col-lg-10 {
    counter-reset: ds-answer;
}

.ds-answer {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1.75rem 1.75rem 1.5rem 4.5rem;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-secondary);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* left accent bar */
.ds-answer::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

/* numbered badge */
.ds-answer::before {
    counter-increment: ds-answer;
    content: counter(ds-answer);
    position: absolute;
    left: 1.35rem;
    top: 1.7rem;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.ds-answer:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.ds-answer h3 {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
}

.ds-answer p {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

/* ---------- Source line (attribution next to each claim) ---------- */
.ds-source {
    font-size: 0.9rem;
}

.ds-source a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ds-source a::after {
    content: " \2197";
    font-size: 0.85em;
}

.ds-source a:hover,
.ds-source a:focus-visible {
    color: var(--accent-color);
}

/* inside an answer card the source sits under a dashed divider */
.ds-answer .ds-source {
    margin: 1rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

/* the standalone attribution line under the stats (centered) */
.ds-results-section .ds-source {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* ---------- Comparison table ---------- */
.ds-answer .table-responsive {
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-primary);
}

.ds-compare {
    width: 100%;
    min-width: 600px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.ds-compare caption {
    caption-side: top;
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
}

.ds-compare thead th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 0;
}

.ds-compare tbody th[scope="row"] {
    width: 20%;
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 600;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.ds-compare td {
    padding: 0.8rem 1rem;
    vertical-align: top;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

/* neutral overlays work in both light and dark themes */
.ds-compare tbody tr:nth-child(even) td {
    background: rgba(127, 127, 127, 0.06);
}

.ds-compare tbody tr:hover td {
    background: rgba(127, 127, 127, 0.12);
}

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
    .ds-answer {
        padding: 3.6rem 1.15rem 1.15rem 1.35rem;
    }

    .ds-answer::before {
        left: 1.35rem;
        top: 1rem;
    }

    .ds-answer h3 {
        font-size: 1.1rem;
    }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .ds-answer {
        transition: none;
    }

    .ds-answer:hover {
        transform: none;
    }
}

/* ---------- Hero H1: second line is smaller so the full entity name stays compact ---------- */
.page-hero h1.section-title .ds-h1-sub {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.6em;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0.85;
}

/* "Last updated" line above the first answer */
#seo-answers .col-lg-10 > .ds-source {
    margin-bottom: 1rem;
    text-align: left;
}

/* ---------- Heading tags changed to h3 for a clean outline (h2 -> h3); keep card titles sized like before ---------- */
.solution-card h3,
.ds-service-tile h3,
.feature-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

.re-process-step h3 {
    margin: 0.75rem 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-card-large .author-info h3 {
    margin-bottom: 0.15rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.re-faq .accordion-header {
    margin: 0;
}

/* ---------- Lists inside answer cards (Google's local ranking factors) ---------- */
.ds-answer ul {
    margin: 0.5rem 0 0.85rem;
    padding-left: 1.25rem;
}

.ds-answer li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.ds-answer li::marker {
    color: var(--primary-color);
}

/* ---------- Software development services page (services.html) ---------- */
#software-answers .col-lg-10 {
    counter-reset: ds-answer;
}

#software-answers .section-title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.25;
}

.ds-answer ol {
    margin: 0.5rem 0 0.85rem;
    padding-left: 1.25rem;
}

.ds-answer ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.ds-compare td a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* industry/feature/solution titles are h3 now (outline fix) */
.industry-card-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

/* ---------- Services page: industry card titles are h3 now ---------- */
.industry-card-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

/* ---------- FAQ accordion that follows the site's light/dark theme ---------- */
.services-faq .accordion-item {
    margin-bottom: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    overflow: hidden;
}

.services-faq .accordion-button {
    padding: 1.1rem 1.35rem;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: none;
}

.services-faq .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.services-faq .accordion-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.services-faq .accordion-body {
    padding: 1.1rem 1.35rem 1.35rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
