@import 'variables.css';

@import 'components/nav.css';
@import 'components/swiper-nav.css';
@import 'components/hero.css';
@import 'components/features.css';
@import 'components/steps.css';
@import 'components/services.css';
@import 'components/stats.css';
@import 'components/testimonials.css';
@import 'components/cta.css';
@import 'components/footer.css';
@import 'components/modal.css';
@import 'components/scroll-top.css';

/* responsive.css must always be last — overrides component defaults at breakpoints */
@import 'responsive.css';

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-primary);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Scrollbar — Firefox ─── */
html {
    scrollbar-color: var(--color-primary) transparent;
    scrollbar-width: thin;
}

/* ─── Scrollbar — Chrome / Edge / Safari / Android Chrome ─── */
/* iOS Safari does not support scrollbar CSS — system native scrollbar applies there */
::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-hover);
}

a {
    color: var(--color-text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-link-hover);
    text-decoration: underline;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

img:not([alt]) {
    outline: 3px solid var(--color-danger);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.plx-skip-link {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    left: var(--space-4);
    padding: var(--space-2) var(--space-4);
    position: absolute;
    top: var(--space-4);
    transform: translateY(-200%);
    transition: transform var(--transition-fast);
    z-index: 500;
}

.plx-skip-link:focus {
    transform: translateY(0);
}

.plx-container {
    margin: 0 auto;
    max-width: var(--container-max-width);
    padding: 0 var(--container-padding);
    width: 100%;
}

.plx-section {
    padding-bottom: var(--section-padding-y);
    padding-top: var(--section-padding-y);
}

.plx-section-muted {
    background-color: var(--color-bg-muted);
}

.plx-section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.plx-section-label {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.plx-section-title {
    color: var(--color-text-primary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    margin-top: var(--space-2);
}

.plx-section-subtitle {
    color: var(--color-text-muted);
    font-size: var(--font-size-md);
    line-height: 1.7;
    max-width: 600px;
}

.plx-section-dark .plx-section-title {
    color: var(--color-text-inverse);
}

.plx-section-dark .plx-section-subtitle {
    color: var(--color-gray-400);
}

/* JS sets data-plx-visible="true" via Intersection Observer — CSS drives the animation */
[data-plx-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-plx-animate][data-plx-visible="true"] {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay — JS sets data-plx-animate-delay attribute, CSS reads it */
[data-plx-animate-delay="100"] { transition-delay: 100ms; }
[data-plx-animate-delay="150"] { transition-delay: 150ms; }
[data-plx-animate-delay="200"] { transition-delay: 200ms; }
[data-plx-animate-delay="300"] { transition-delay: 300ms; }
[data-plx-animate-delay="400"] { transition-delay: 400ms; }

.plx-btn {
    align-items: center;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    gap: var(--space-2);
    justify-content: center;
    line-height: 1;
    padding: var(--space-3) var(--space-6);
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
    user-select: none;
    white-space: nowrap;
}

.plx-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.plx-btn:active {
    transform: translateY(0);
}

.plx-btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-inverse);
    position: relative;
}

/* Burst ripple — expands outward and fades on hover */
.plx-btn-primary::after {
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    width: 100%;
    z-index: -1;
}

.plx-btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    color: var(--color-text-inverse);
    transform: translateY(-3px);
}

.plx-btn-primary:hover::after {
    opacity: 0;
    transform: scaleX(1.4) scaleY(1.6);
}

.plx-btn-primary:active {
    box-shadow: 0 5px 10px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

/* Secondary button — dark pill with inward radial light ripple on hover */
.plx-btn-outline {
    background-color: var(--color-bg-dark);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text-inverse);
    overflow: hidden;
    position: relative;
}

/* Radial gradient ripple — expands inward from center, clipped by overflow:hidden */
.plx-btn-outline::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: var(--radius-full);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: scale(0);
    transition: transform 0.5s ease;
    width: 100%;
}

.plx-btn-outline:hover {
    background-color: var(--color-bg-dark-surface);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--color-text-inverse);
    transform: translateY(-3px);
}

.plx-btn-outline:hover::after {
    transform: scale(4);
}

.plx-btn-outline:active {
    transform: translateY(-1px);
}

/* White variant — same behaviour, used on coloured section backgrounds */
.plx-btn-outline-white {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-text-inverse);
    overflow: hidden;
    position: relative;
}

.plx-btn-outline-white::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: var(--radius-full);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: scale(0);
    transition: transform 0.5s ease;
    width: 100%;
}

.plx-btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-text-inverse);
    color: var(--color-text-inverse);
    transform: translateY(-3px);
}

.plx-btn-outline-white:hover::after {
    transform: scale(4);
}

.plx-btn-outline-white:active {
    transform: translateY(-1px);
}

.plx-btn-lg {
    font-size: var(--font-size-base);
    padding: var(--space-4) var(--space-8);
}

.plx-btn-sm {
    font-size: var(--font-size-xs);
    padding: var(--space-2) var(--space-4);
}
