/**
 * Pratyush Gupta - Elementor support styles.
 *
 * Anything Elementor's own controls can express (colour, typography, spacing,
 * borders, shadows, backgrounds) is set on the widgets themselves and is NOT
 * repeated here. This file carries only the finishing work Elementor free has
 * no control for: sticky positioning, gradient text, icon chips, overlays,
 * pseudo-element decoration, and hover transforms.
 *
 * Every selector is namespaced to a .pg-* class applied through Elementor's
 * own "CSS Classes" field, so nothing here leaks onto other pages.
 *
 * Specificity note: Elementor emits per-element rules at (0,3,0)
 * (`.elementor-2080 .elementor-element.elementor-element-abc`). Where a rule
 * below has to beat that, the class is intentionally repeated
 * (`.pg-card.pg-card`) to reach (0,4,0). Everything else deliberately touches
 * only properties Elementor never sets, so it cannot collide.
 */

:root {
    --pg-indigo: #6366f1;
    --pg-violet: #8b5cf6;
    --pg-ink: #0f172a;
    --pg-muted: #64748b;
    --pg-border: #e2e8f0;
    --pg-wa: #25d366;
    --pg-wa-dark: #128c7e;
    --pg-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* ==========================================================================
   Header
   ========================================================================== */
.elementor .pg-header {
    position: sticky;
    top: 0;
    z-index: 99;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    transition: box-shadow 0.3s ease;
}

.elementor .pg-header.pg-header-scrolled {
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
}

/* ==========================================================================
   Shared text decoration
   ========================================================================== */
.pg-gradient {
    background: var(--pg-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Pill badge on a Heading widget. */
.pg-badge .elementor-heading-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    border-radius: 999px;
    line-height: 1.4;
    background-color: rgba(99, 102, 241, 0.1);
}

.pg-badge .elementor-heading-title::before {
    content: '';
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pg-pulse-ring 1.9s infinite;
}

@keyframes pg-pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Small capsule tag, used for portfolio categories and the Top Rated chip. */
.pg-tag .elementor-heading-title {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background-color: rgba(99, 102, 241, 0.1);
}

.pg-tag-green .elementor-heading-title {
    background-color: rgba(20, 168, 0, 0.12);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.pg-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

/* Doubled class: must outrank Elementor's own (0,3,0) box-shadow rule. */
.pg-card.pg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -8px rgba(15, 23, 42, 0.13),
                0 8px 18px -8px rgba(15, 23, 42, 0.08);
}

/* Portfolio thumbnails clip the image widget's own zoom animation. */
.pg-thumb,
.pg-thumb .elementor-widget-container,
.pg-thumb figure,
.pg-thumb a {
    overflow: hidden;
    display: block;
}

.pg-thumb img {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* Trust indicators as a 2x2 grid of chips rather than a wrapping inline row.
   Elementor's own rule is
   `.elementor-widget-icon-list .elementor-icon-list-items.elementor-inline-items`
   at (0,3,0), so the class is repeated to reach (0,3,1) and win. */
.pg-hero-stats.pg-hero-stats ul.elementor-icon-list-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.pg-hero-stats.pg-hero-stats ul.elementor-icon-list-items .elementor-icon-list-item {
    margin: 0;
    padding: 0;
}

.pg-hero-stats span.elementor-icon-list-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 9px;
    background-color: rgba(99, 102, 241, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .pg-hero-stats.pg-hero-stats ul.elementor-icon-list-items {
        grid-template-columns: 1fr;
    }
}

/* Photo with a soft gradient halo and an overlaid name plate. */
.elementor .pg-photo-wrap {
    position: relative;
}

.pg-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -14px -14px 10px -14px;
    border-radius: 30px;
    background: var(--pg-grad);
    opacity: 0.16;
    filter: blur(26px);
    z-index: 0;
}

.pg-photo-wrap > .e-con-inner,
.pg-photo-wrap > .elementor-widget,
.pg-photo-wrap > .e-con {
    position: relative;
    z-index: 1;
}

.pg-photo-wrap > .pg-photo-tag {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 3;
    width: max-content;
    max-width: 88%;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}

/* Top-left so it cannot collide with the name plate at the bottom. */
.pg-photo-wrap > .pg-photo-badge {
    position: absolute;
    left: -12px;
    top: 18px;
    bottom: auto;
    z-index: 4;
}

.pg-photo-badge img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

@media (max-width: 767px) {
    .pg-photo-wrap > .pg-photo-badge {
        left: 0;
        top: 12px;
    }
}

/* ==========================================================================
   Upwork proof card
   ========================================================================== */

/* Fake browser chrome above the stats block. */
.pg-browser {
    position: relative;
}

.pg-browser::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 8px;
    background-image: radial-gradient(circle, #ff5f57 3.5px, transparent 4px),
                      radial-gradient(circle, #febc2e 3.5px, transparent 4px),
                      radial-gradient(circle, #28c840 3.5px, transparent 4px);
    background-size: 14px 8px;
    background-position: 0 0, 14px 0, 28px 0;
    background-repeat: no-repeat;
}

/* Green "online" dot on the profile avatar. */
.elementor .pg-avatar {
    position: relative;
}

.pg-avatar::after {
    content: '';
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #22c55e;
    border: 2px solid #ffffff;
    z-index: 2;
}

/* Hairlines between the four Upwork stats. */
.pg-stats .elementor-widget-counter {
    position: relative;
}

.pg-stats .elementor-widget-counter::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 12%;
    height: 76%;
    border-right: 1px solid var(--pg-border);
}

.pg-stats .elementor-widget-counter:nth-child(2n)::after {
    display: none;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.elementor .pg-quote {
    position: relative;
    overflow: hidden;
}

.pg-quote::after {
    content: '\201D';
    position: absolute;
    right: 14px;
    bottom: -34px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 140px;
    line-height: 1;
    color: var(--pg-ink);
    opacity: 0.05;
    pointer-events: none;
}

/* Author initials rendered as a circular avatar. */
.pg-initials .elementor-heading-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pg-grad);
    color: #ffffff;
}

/* ==========================================================================
   Service and value icons - a gradient wash over Elementor's flat chip.
   background-image is never set by Elementor, so this cannot collide.
   ========================================================================== */
.pg-icon .elementor-icon {
    background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(139, 92, 246, 0.16) 100%);
    transition: transform 0.3s ease;
}

.pg-card:hover .pg-icon .elementor-icon {
    transform: translateY(-2px) scale(1.04);
}

/* ==========================================================================
   FAQ accordion - separate rounded cards instead of one stacked block.
   border-radius and margin are not emitted by Elementor's accordion controls.
   ========================================================================== */
.pg-faq div.elementor-accordion-item {
    border: 1px solid var(--pg-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background-color: #ffffff;
    transition: box-shadow 0.25s ease;
}

.pg-faq div.elementor-accordion-item:last-child {
    margin-bottom: 0;
}

.pg-faq div.elementor-accordion-item:hover {
    box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.1);
}

.pg-faq .elementor-tab-title {
    transition: color 0.2s ease;
}

.pg-faq span.elementor-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background-color: #f1f5f9;
}

.pg-faq span.elementor-accordion-icon svg {
    width: 12px;
    height: 12px;
}

/* ==========================================================================
   Fixed WhatsApp launcher
   ========================================================================== */
.elementor .pg-float-wa {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    width: auto;
}

.pg-float-wa .elementor-button {
    border-radius: 50%;
    width: 58px;
    height: 58px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42);
}

.pg-float-wa .elementor-button-text {
    display: none;
}

.pg-float-wa .elementor-button-icon {
    font-size: 26px;
}

.pg-float-wa .elementor-button-content-wrapper {
    justify-content: center;
}

@media (max-width: 767px) {
    .elementor .pg-float-wa {
        right: 16px;
        bottom: 16px;
    }
}

/* ==========================================================================
   WhatsApp Form widget
   Base layout only - colour, typography, spacing, borders and radii are all
   Elementor controls on the widget, and those win on specificity.
   ========================================================================== */
.pg-wa-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pg-ink);
}

.pg-wa-subtitle {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--pg-muted);
}

.pg-wa-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f7a5a;
    background-color: rgba(37, 211, 102, 0.1);
}

.pg-wa-form {
    position: relative;
}

.pg-wa-field {
    margin-bottom: 16px;
}

.pg-wa-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pg-ink);
}

.pg-wa-req {
    color: #ef4444;
}

.pg-wa-opt {
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--pg-muted);
}

.pg-wa-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--pg-ink);
    background-color: #f8fafc;
    border: 1px solid var(--pg-border);
    border-radius: 9px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-wa-input:focus {
    border-color: var(--pg-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.pg-wa-invalid .pg-wa-input {
    border-color: #ef4444;
}

.pg-wa-error {
    display: none;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
}

.pg-wa-invalid .pg-wa-error {
    display: block;
}

.pg-wa-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
    padding: 14px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--pg-wa);
    background-image: linear-gradient(135deg, var(--pg-wa) 0%, var(--pg-wa-dark) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pg-wa-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.34);
}

.pg-wa-submit svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pg-wa-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    font-size: 0.75rem;
    color: var(--pg-muted);
}

.pg-wa-success {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background-color: #ffffff;
}

.pg-wa-success[hidden] {
    display: none;
}

.pg-wa-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    font-size: 30px;
    color: var(--pg-wa);
    background-color: rgba(37, 211, 102, 0.1);
    border-radius: 50%;
}

.pg-wa-success-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pg-ink);
}

.pg-wa-success-text {
    margin: 0;
    max-width: 340px;
    font-size: 0.9rem;
    color: var(--pg-muted);
}

.pg-wa-success-link {
    padding: 11px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--pg-wa);
    border-radius: 8px;
    text-decoration: none;
}

.pg-wa-reset {
    padding: 9px 18px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pg-ink);
    background: none;
    border: 1px solid var(--pg-border);
    border-radius: 8px;
    cursor: pointer;
}
