/* ===== S Consulting LTD — Custom Styles ===== */

:root {
    --primary: #1a56db;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
    --radius: .75rem;
}

/* ===== Base ===== */
body,
.navbar,
.btn,
.form-control,
.form-select,
input,
textarea,
select,
button {
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--gray-700);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: var(--secondary); }

section { padding: 5rem 0; }

.section-light { background: var(--light); }

.section-title {
    font-size: 2.25rem;
    margin-bottom: .75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== Navbar ===== */
.navbar {
    padding: .85rem 0;
    transition: background .3s, box-shadow .3s;
}

.navbar.scrolled {
    background: var(--white) !important;
    box-shadow: var(--shadow);
}

.navbar-brand img { height: 40px; }

.navbar .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: .5rem 1rem !important;
    transition: color .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--primary) !important; }

/* ===== Hero ===== */
.hero {
    background: var(--gradient);
    padding: 8rem 0 6rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: .9;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero .btn { padding: .75rem 2rem; font-weight: 600; }

/* ===== Cards ===== */
.card-service {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}
.card-service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.card-service .card-body { padding: 2rem; }

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.icon-primary   { background: var(--gradient); }
.icon-accent    { background: linear-gradient(135deg, var(--accent), #0891b2); }
.icon-secondary { background: linear-gradient(135deg, var(--secondary), #6d28d9); }

/* ===== Stats ===== */
.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: .875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

/* ===== Affiliate Teaser Banner ===== */
.teaser-banner {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 3rem;
    color: var(--white);
}

.teaser-banner h3 { color: var(--white); }

/* ===== CTA Section ===== */
.cta-section {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 0;
}

.cta-section h2 { color: var(--white); }
.cta-section p { color: var(--gray-200); }

/* ===== Page Header ===== */
.page-header-banner {
    background: var(--gradient);
    padding: 6rem 0 3rem;
    color: var(--white);
    text-align: center;
}
.page-header-banner h1 { color: var(--white); font-size: 2.75rem; }
.page-header-banner p { color: rgba(255,255,255,.85); font-size: 1.125rem; }

/* ===== About Sections ===== */
.about-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    flex-shrink: 0;
}

/* ===== Contact ===== */
.contact-info-card {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 2.5rem;
    color: var(--white);
    height: 100%;
}

.contact-info-card h3 { color: var(--white); }
.contact-info-card a { color: var(--white); text-decoration: underline; }
.contact-info-card i { font-size: 1.25rem; width: 24px; }

/* ===== Affiliate Marketing Page ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
    transform: translateX(-50%);
}

.timeline-step {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: 42%;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-step:nth-child(odd) .timeline-content { margin-right: auto; }
.timeline-step:nth-child(even) .timeline-content { margin-left: auto; }

@media (max-width: 767.98px) {
    .timeline::before { left: 24px; }
    .timeline-number {
        left: 24px;
        position: absolute;
    }
    .timeline-content {
        width: calc(100% - 72px);
        margin-left: 72px !important;
        margin-right: 0 !important;
    }
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: var(--gray-200);
    padding: 4rem 0 2rem;
}

.site-footer h5 { color: var(--white); margin-bottom: 1.25rem; }

.site-footer a {
    color: var(--gray-200);
    transition: color .2s;
}
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: .875rem;
    color: var(--gray-600);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: .5rem;
    font-weight: 600;
    transition: opacity .2s, transform .2s;
}
.btn-primary:hover {
    opacity: .9;
    transform: translateY(-1px);
    background: var(--gradient);
}

.btn-outline-light {
    border-radius: .5rem;
    font-weight: 600;
}

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Form ===== */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(26, 86, 219, .15);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero { padding: 6rem 0 4rem; }
    .hero h1 { font-size: 2.5rem; }
    section { padding: 3.5rem 0; }
}

@media (max-width: 575.98px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
}
