/* ============================================
   ORGANIC SEO SERVICES — "Growth Engine"
   Page accent: #00FF66 (SEO Green)
   ============================================ */

/* ---------- Hero ---------- */
.seo-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 30%, rgba(0, 255, 102, 0.06) 0%, transparent 60%);
}

.seo-hero .growth-engine-svg {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translate(0, -50%);
    width: 480px;
    height: 480px;
    opacity: 0.15;
    z-index: 0;
}

/* Animations for Authority Web & Growth Line */
.web-node {
    fill: #000;
    stroke: #00FF66;
    stroke-width: 2;
    transition: r 0.3s ease, fill 0.3s ease;
}

.web-node.center {
    fill: #00FF66;
    filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.6));
    animation: center-pulse 3s infinite alternate;
}

.web-node:hover {
    r: 12px;
    fill: #00FF66;
    cursor: pointer;
}

.web-connector {
    stroke: #00FF66;
    stroke-width: 1.5;
    stroke-dasharray: 8 8;
    stroke-linecap: round;
    opacity: 0.4;
    animation: flow-dash 30s linear infinite;
}

.growth-path {
    stroke: #00FF66;
    stroke-width: 3;
    stroke-linecap: round;
    fill: none;
    filter: drop-shadow(0 0 5px rgba(0, 255, 102, 0.5));
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-path 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes center-pulse {
    0% { filter: drop-shadow(0 0 4px rgba(0, 255, 102, 0.4)); }
    100% { filter: drop-shadow(0 0 12px rgba(0, 255, 102, 0.8)); }
}

@keyframes flow-dash {
    to { stroke-dashoffset: -200; }
}

@keyframes draw-path {
    to { stroke-dashoffset: 0; }
}

/* ---------- Stats Row ---------- */
.seo-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.seo-metric-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-md);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.seo-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00FF66, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.seo-metric-card:hover {
    border-color: rgba(0, 255, 102, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 255, 102, 0.05);
}

.seo-metric-card:hover::before {
    opacity: 1;
}

.seo-metric-card .metric-icon {
    color: #00FF66;
    margin-bottom: var(--space-sm);
}

.seo-metric-card .metric-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.seo-metric-card .metric-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Topic Cluster Diagram (Interactive CSS) ---------- */
.topic-cluster-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.cluster-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 320px;
    position: relative;
}

.cluster-center {
    background: #00FF66;
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.4);
    z-index: 10;
    font-size: 1rem;
    text-transform: uppercase;
}

.cluster-satellite {
    position: absolute;
    background: var(--color-bg);
    border: 1px solid rgba(0, 255, 102, 0.3);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 5;
    cursor: pointer;
    transform: translate(var(--tx, 0), var(--ty, 0)) scale(1);
}

.cluster-satellite:hover {
    border-color: #00FF66;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
    transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.05);
    z-index: 15;
}

/* Positions for satellites */
.sat-1 { --tx: -140px; --ty: -90px; }
.sat-2 { --tx: 140px; --ty: -90px; }
.sat-3 { --tx: -160px; --ty: 90px; }
.sat-4 { --tx: 160px; --ty: 90px; }
.sat-5 { --tx: 0; --ty: -130px; }
.sat-6 { --tx: 0; --ty: 130px; }

/* ---------- SEO ROI Calculator ---------- */
.seo-calculator {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-lg);
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.seo-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00FF66, #33ff99, #00FF66);
}

.calc-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.calc-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.calc-field input, .calc-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calc-field input:focus, .calc-field select:focus {
    outline: none;
    border-color: #00FF66;
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.calc-result-item {
    text-align: center;
}

.calc-result-item .result-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #00FF66;
}

.calc-result-item .result-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* ---------- CTR Optimizer Sandbox ---------- */
.ctr-sandbox {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.serp-preview {
    background: #ffffff !important;
    border-radius: 8px;
    padding: 1.25rem;
    color: #4d5156 !important;
    font-family: Arial, sans-serif;
    margin-top: var(--space-sm);
    text-align: left;
}

.serp-title {
    color: #1a0dab !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: normal !important;
    text-decoration: none !important;
    margin-bottom: 2px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    cursor: pointer;
}
.serp-title:hover {
    text-decoration: underline !important;
    color: #1a0dab !important;
}
.serp-title:visited {
    color: #609 !important;
}

.serp-url {
    color: #202124 !important;
    font-size: 14px !important;
    line-height: 1.43 !important;
    margin-bottom: 2px !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.serp-desc {
    color: #4d5156 !important;
    font-size: 14px !important;
    line-height: 1.57 !important;
    margin: 0 !important;
    word-wrap: break-word !important;
}

/* ---------- Methodology Steps ---------- */
.seo-methodology {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
    margin-top: var(--space-lg);
}

.seo-methodology::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.3), #00FF66, rgba(0, 255, 102, 0.3), transparent);
}

.seo-methodology-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
}

.seo-methodology-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00FF66;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 auto var(--space-sm);
    position: relative;
    z-index: 2;
}

.seo-methodology-step h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #fff;
}

.seo-methodology-step p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 100%;
}

/* ---------- FAQ Accordion ---------- */
.seo-faq details {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.seo-faq details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    transition: color 0.3s ease;
}

.seo-faq details summary::-webkit-details-marker { display: none; }

.seo-faq details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #00FF66;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.seo-faq details[open] summary::after {
    transform: rotate(45deg);
}

.seo-faq details summary:hover { color: #00FF66; }

.seo-faq details .faq-answer {
    padding-top: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 90%;
}

/* ---------- CTA ---------- */
.seo-cta {
    text-align: center;
    padding: var(--space-xl) 0;
    background: radial-gradient(ellipse at center, rgba(0, 255, 102, 0.05) 0%, transparent 70%);
    border-top: 1px solid var(--color-border);
}

.seo-cta .btn-primary {
    background: #00FF66;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

.seo-cta .btn-primary:hover {
    background: transparent;
    color: #00FF66;
    border: 1px solid #00FF66;
}

/* ---------- Section Label ---------- */
.seo-label {
    color: #00FF66;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-sm);
    display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .seo-stats-row { grid-template-columns: repeat(2, 1fr); }
    .seo-methodology { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
    .seo-methodology::before { display: none; }
    .calc-inputs { grid-template-columns: 1fr; }
    .calc-results { grid-template-columns: 1fr; }
    .seo-hero .growth-engine-svg { display: none; }
    .cluster-satellite { position: relative; transform: none !important; margin-bottom: 0.75rem; text-align: center; width: 100%; }
    .cluster-visual { flex-direction: column; height: auto; gap: 0.5rem; padding: var(--space-md) 0; }
    .cluster-center { width: 100%; margin-bottom: 1rem; }
}

@media (max-width: 768px) {
    .seo-stats-row { grid-template-columns: 1fr; }
    .seo-methodology { grid-template-columns: 1fr; }
}
