/*
 * Pratinidhi Media Solutions — Service Pages Shared Stylesheet
 * Used by: political-pr.php, election-strategy.php, digital-campaigns.php,
 *          ground-campaign.php, political-training.php
 * Inherits all design tokens from style.css (:root variables)
 */

/* ========================================================================== 
   Service Page Hero Banner
   ========================================================================== */

.service-hero {
    background-image: linear-gradient(to bottom, rgba(18,18,18,0.92) 0%, rgba(18,18,18,0.72) 100%), var(--hero-bg);
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--color-primary-dark);
    min-height: 68vh;
    display: flex;
    align-items: center;
    padding: calc(80px + 4.5rem) 1.25rem 4.5rem;
    position: relative;
    text-align: center;
    width: 100%;
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

/* Parallax on capable desktops only */
@media (min-width: 1024px) and (hover: hover) {
    .service-hero {
        background-attachment: fixed;
        min-height: 72vh;
    }
}

/* Decorative horizontal accent line at bottom of hero */
.service-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.service-hero-pretitle {
    font-family: var(--font-primary);
    font-size: clamp(0.65rem, 1.8vw, 0.8rem);
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.service-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    color: var(--color-primary-light);
    line-height: 1.15;
    max-width: 860px;
    margin: 0 auto 1.25rem;
    letter-spacing: -0.5px;
}

.service-hero-title span {
    color: var(--color-accent);
}

.service-hero-subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.72);
    max-width: 680px;
    margin: 0 auto 2.25rem;
    line-height: 1.75;
}

/* Breadcrumb */
.service-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2rem;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
}

.service-breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
}

.service-breadcrumb a:hover {
    color: var(--color-accent);
}

.service-breadcrumb .sep {
    color: var(--color-accent);
    font-size: 0.7rem;
}

.service-breadcrumb .current {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================================
   Service Intro / Hook Section
   ========================================================================== */

.service-intro-section {
    padding: var(--section-padding);
    background-color: var(--color-primary-light);
    position: relative;
    z-index: 1;
}

.service-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

@media (min-width: 900px) {
    .service-intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        margin-top: 3rem;
    }
}

.service-intro-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.85rem;
    display: block;
}

.service-intro-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 3.5vw, 2.4rem);
    color: var(--color-primary-dark);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.service-intro-body {
    color: var(--color-text-muted);
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.service-intro-body strong {
    color: var(--color-primary-dark);
    font-weight: 700;
}

/* Right: highlight card (SGE Definition box) */
.service-definition-card {
    background: var(--color-primary-dark);
    border: 1px solid rgba(229, 163, 42, 0.22);
    border-left: 4px solid var(--color-accent);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
}

.service-definition-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(229,163,42,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.service-definition-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.85rem;
    display: block;
}

.service-definition-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    color: var(--color-primary-light);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-definition-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.97rem;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   Core Services Grid (What We Do)
   ========================================================================== */

.service-offerings-section {
    padding: var(--section-padding);
    background-color: var(--color-surface-muted);
    position: relative;
    overflow: hidden;
}

.service-offerings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), rgba(229, 163, 42, 0.2), transparent);
}

.offerings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .offerings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.offering-card {
    background-color: var(--color-primary-light);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.2, 1),
                box-shadow 0.4s ease,
                background-color 0.3s ease;
}

@media (min-width: 768px) {
    .offering-card { padding: 2.25rem 2rem; }
}

/* Ambient glow on hover */
.offering-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 20% 120%, rgba(229,163,42,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.offering-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.09), 0 0 0 1px rgba(229,163,42,0.18);
    background-color: #fdfbf7;
}

.offering-card:hover::after { opacity: 1; }

@media (hover: none) {
    .offering-card:hover { transform: none; }
}

.offering-card > * {
    position: relative;
    z-index: 1;
}

.offering-icon {
    width: 52px;
    height: 52px;
    background: rgba(229, 163, 42, 0.10);
    border: 1.5px solid rgba(229, 163, 42, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    transition: background 0.35s ease, transform 0.4s cubic-bezier(0.2,1,0.2,1);
}

.offering-card:hover .offering-icon {
    background: rgba(229, 163, 42, 0.2);
    transform: scale(1.1) rotate(-5deg);
}

.offering-card h3 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.offering-card:hover h3 {
    color: var(--color-accent-hover);
}

.offering-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin: 0;
}

/* ==========================================================================
   SGE Optimized Section — Numbered Process / How We Do It
   ========================================================================== */

.service-process-section {
    padding: var(--section-padding);
    background-color: var(--color-primary-light);
    position: relative;
    z-index: 1;
}

.process-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
}

.process-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .process-item {
        grid-template-columns: 64px 1fr;
        gap: 2rem;
    }
}

.process-number {
    width: 56px;
    height: 56px;
    background: var(--color-primary-dark);
    border: 2px solid rgba(229, 163, 42, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s ease;
}

@media (min-width: 768px) {
    .process-number { width: 64px; height: 64px; font-size: 1.5rem; }
}

.process-item:hover .process-number {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
    transform: scale(1.08);
}

.process-content {
    padding-top: 0.6rem;
}

.process-content h3 {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.process-content p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* Connecting line between process steps.
 * IMPORTANT: .process-number has no position:relative, so its ::after
 * resolves to the nearest positioned ancestor (.process-item).
 * We use .process-item::before directly, with hardcoded left: 27px
 * (half of the 56px circle) to correctly center under the number.
 */
.process-list .process-item:not(:last-child) {
    position: relative;
}

.process-list .process-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 27px;               /* 56px circle ÷ 2 = centered under circle */
    top: 58px;                /* Just below the circle bottom */
    width: 1px;
    height: calc(100% + 1.5rem); /* Spans the gap to the next item */
    background: rgba(229, 163, 42, 0.18);
}

@media (min-width: 768px) {
    .process-list .process-item:not(:last-child)::before {
        left: 31px;           /* 64px circle ÷ 2 = centered at tablet+ */
        top: 66px;
    }
}

.process-item { position: relative; }

/* ==========================================================================
   Feature / War Room Section (Dark)
   ========================================================================== */

.service-feature-section {
    padding: var(--section-padding);
    background: var(--color-primary-dark);
    position: relative;
    overflow: hidden;
}

.service-feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.service-feature-section h2 {
    color: var(--color-primary-light);
}

.service-feature-section .section-eyebrow {
    color: rgba(229, 163, 42, 0.85);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(229, 163, 42, 0.12);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s ease;
}

.feature-item:hover {
    background: rgba(229, 163, 42, 0.07);
    border-color: rgba(229, 163, 42, 0.28);
    transform: translateY(-5px);
}

@media (hover: none) {
    .feature-item:hover { transform: none; }
}

/* Dark feature section — reuses .offering-icon for consistent iconography.
 * Hover animation wired to .feature-item parent (not .offering-card).
 * Identical scale + rotate as the white offering cards for full consistency. */
.feature-item:hover .offering-icon {
    background: rgba(229, 163, 42, 0.2);
    transform: scale(1.1) rotate(-5deg);
}

.feature-item h3 {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--color-primary-light);
    margin-bottom: 0.6rem;
}

.feature-item p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    margin: 0;
}

/* ==========================================================================
   FAQ / Structured Data Section
   ========================================================================== */

.service-faq-section {
    padding: var(--section-padding);
    background-color: var(--color-surface-muted);
    position: relative;
}

.faq-accordion {
    margin: 2.5rem auto 0; /* auto left/right centers the block inside the container */
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item.faq-open {
    border-color: rgba(229, 163, 42, 0.3);
    box-shadow: 0 4px 20px rgba(229, 163, 42, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    min-height: 60px;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(229, 163, 42, 0.03);
}

/* Text label inside the FAQ question button.
 * Scoped to .faq-question-text so the .faq-icon span is NEVER touched
 * by this rule and never gets flex:1 applied to it. */
.faq-question-text {
    font-family: var(--font-heading);
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    color: var(--color-primary-dark);
    font-weight: 600;
    line-height: 1.4;
    flex: 1;          /* Take remaining space */
    text-align: left;
}

.faq-open .faq-question-text {
    color: var(--color-accent-hover);
}

.faq-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;  /* Prevent any shrink or grow */
    background: rgba(229, 163, 42, 0.08);
    border: 1px solid rgba(229, 163, 42, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-accent);
    flex: none;       /* Hard lock: no grow, no shrink — always exactly 30x30 */
    transition: background 0.3s ease, transform 0.35s cubic-bezier(0.23,1,0.32,1), color 0.3s ease;
}

.faq-open .faq-icon {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Service Page CTA Strip
   ========================================================================== */

.service-cta-section {
    padding: 4.5rem 1.25rem;
    background: var(--color-accent);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .service-cta-section { padding: 6rem 2rem; }
}

/* Decorative watermark */
.service-cta-section::after {
    content: 'PRATINIDHI';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 900;
    color: rgba(38, 35, 34, 0.06);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.1em;
    user-select: none;
}

.service-cta-section h2 {
    color: var(--color-primary-dark);
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    max-width: 700px;
    margin: 0 auto 0.85rem;
    line-height: 1.25;
    position: relative;
    z-index: 2;
}

.service-cta-section p {
    color: rgba(38, 35, 34, 0.72);
    font-size: clamp(0.9rem, 2vw, 1rem);
    max-width: 560px;
    margin: 0 auto 2.25rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.service-cta-section .btn-group {
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Cross-link strip to other services */
.service-crosslinks-section {
    padding: 3rem 1.25rem;
    background: var(--color-primary-dark);
    border-top: 1px solid rgba(229,163,42,0.12);
}

@media (min-width: 768px) {
    .service-crosslinks-section { padding: 3.5rem 2rem; }
}

.crosslinks-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(229,163,42,0.7);
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

.crosslinks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.crosslink-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(229, 163, 42, 0.2);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    background: rgba(229, 163, 42, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.crosslink-chip i {
    color: var(--color-accent);
    font-size: 0.75rem;
}

.crosslink-chip:hover {
    background: rgba(229, 163, 42, 0.12);
    border-color: rgba(229, 163, 42, 0.45);
    color: var(--color-primary-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Tweaks
   ========================================================================== */

@media (max-width: 480px) {
    .service-hero {
        padding: 8rem 1rem 3.5rem;
    }

    .process-item {
        grid-template-columns: 44px 1fr;
        gap: 1rem;
    }

    .process-number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* Services hub */
.services-hub-hero {
    min-height: 500px;
    display: grid;
    place-items: center;
}

.services-hub-section { background: var(--color-primary-light); }
.services-hub-intro { max-width: 720px; margin: 0.8rem auto 2.5rem; }
.services-hub-grid { align-items: stretch; }
.services-hub-grid .service-card { display: flex; flex-direction: column; text-align: left; }
.services-hub-grid .service-card p { margin-bottom: 1.25rem; }
.service-card-link {
    color: var(--color-accent-hover);
    font-weight: 800;
    margin-top: auto;
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
}
.service-card-link:hover { color: var(--color-primary-dark); }
