/* ============================================================
   1. HOMEPAGE — index.php  (originally id="homepage-critical")
   ============================================================ */
:root {
    --k-primary: #6366f1;
    --k-primary-dark: #00d4ff;
    --k-accent: #f59e0b;
    --k-accent-dark: #d97706;
    --k-ink: #0f172a;
    --k-ink-2: #334155;
    --k-muted: #64748b;
    --k-paper: #ffffff;
    --k-cream: #fef7ed;
    --k-slate: #f8fafc;
    --k-border: #e2e8f0;
    --k-success: #10b981;
    --k-radius: 14px;
    --k-shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --k-shadow-md: 0 4px 12px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
    --k-shadow-lg: 0 20px 40px -8px rgba(15,23,42,0.15), 0 8px 16px -4px rgba(15,23,42,0.06);
    --k-container: 1450px;
}

/* Reset a few conflicts from style.css if any */
main { display: block; }
.k-container { max-width: var(--k-container); margin: 0 auto; padding: 0 20px; }

/* ---------- HERO ---------- */
.k-hero {
    position: relative;
    background: linear-gradient(287deg, #ffffff 0%, #ffffff 40%, #d5d5d5 100%);
    padding: 180px 0 80px;
    overflow: hidden;
}
.k-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.k-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.k-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background:rgb(243 243 243 / 100%);
    color: var(--k-primary-dark);
    border-radius: 100px;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}
.k-hero-eyebrow svg { width: 14px; height: 14px; }
.k-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    color: var(--k-ink);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.k-hero h1 .k-hl {
    background: linear-gradient(135deg, #008eff, #f17aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.k-hero-sub {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
    color: var(--k-ink-2);
    margin: 0 0 28px;
    max-width: 560px;
}
.k-hero-cta {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-bottom: 30px;
}
.k-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px;
    font-size: 15px; font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
}
.k-btn-primary {
    background: var(--k-ink);
    color: #fff;
    box-shadow: var(--k-shadow-md);
}
.k-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--k-shadow-lg);
    color: #fff;
}
.k-btn-secondary {
    background: #fff;
    color: var(--k-ink);
    border-color: var(--k-border);
}
.k-btn-secondary:hover {
    border-color: var(--k-ink);
    color: var(--k-ink);
}
.k-hero-badges {
    display: flex; flex-wrap: wrap; gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(15,23,42,0.08);
}
.k-hero-badge {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--k-ink-2); font-weight: 500;
}
.k-hero-badge svg { width: 18px; height: 18px; color: var(--k-success); flex-shrink: 0; }
.k-hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    margin-left: auto;
}
.k-hero-visual img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 20px;
}
.k-hero-rating-card {
    position: absolute;
    bottom: -20px; left: -20px;
    background: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: var(--k-shadow-lg);
    display: flex; align-items: center; gap: 12px;
    z-index: 2;
}
.k-hero-rating-stars { color: var(--k-accent); font-size: 16px; letter-spacing: 2px; }
.k-hero-rating-text { font-size: 12px; color: var(--k-muted); line-height: 1.3; }
.k-hero-rating-text strong { color: var(--k-ink); font-size: 14px; display: block; }

/* 🚀 PURE CSS MARQUEE */
.css-marquee-wrapper { overflow: hidden; width: 100%; display: flex; flex-direction: column; gap: 0; background: #fff; }
.css-marquee-track { display: flex; width: max-content; animation: marqueeScroll 40s linear infinite; }
.css-marquee-track.reverse { animation: marqueeScrollReverse 40s linear infinite; }
.css-marquee-track:hover { animation-play-state: paused; }
.css-marquee-item { height: 250px; flex-shrink: 0; }
.css-marquee-item a { display: block; height: 100%; }
.css-marquee-item img { height: 100%; width: auto; object-fit: cover; display: block; transition: 0.3s ease; }
.css-marquee-item a:hover img { filter: brightness(0.85); }
.css-marquee-item.amazon-cover img { object-fit: contain; background: #f8f9fa; padding: 5px; }

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
@keyframes marqueeScrollReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ---------- TRUST BAR ---------- */
.k-trust {
    background: #fff;
    padding: 26px 0;
    border-top: 1px solid var(--k-border);
    border-bottom: 1px solid var(--k-border);
}
.k-trust-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px; flex-wrap: wrap;
}
.k-trust-label {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--k-muted); font-weight: 600;
    flex-shrink: 0;
}
.k-trust-logos {
    display: flex; align-items: center; gap: 40px;
    flex-wrap: wrap; flex: 1; justify-content: center;
}
.k-trust-logos span {
    font-family: 'Playfair Display', serif;
    font-size: 17px; font-weight: 700;
    color: var(--k-ink-2);
    opacity: 0.75;
}

/* ---------- SECTION GENERIC ---------- */
.k-section { padding: 80px 0; }
.k-section-eyebrow {
    display: inline-block;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--k-primary-dark); font-weight: 700;
    margin-bottom: 12px;
}
.k-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    color: var(--k-ink);
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.k-section-lede {
    font-size: 17px; line-height: 1.6;
    color: var(--k-ink-2);
    max-width: 640px;
}
.k-section-center { text-align: center; }
.k-section-center .k-section-lede { margin-left: auto; margin-right: auto; }

/* ---------- SERVICES GRID ---------- */
.k-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    margin-top: 48px;
}
.k-service-card {
    background: #fff;
    border: 1px solid var(--k-border);
    border-radius: var(--k-radius);
    padding: 28px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}
.k-service-card:hover {
    transform: translateY(-3px);
    border-color: var(--k-primary);
    box-shadow: var(--k-shadow-lg);
    color: inherit;
}
.k-service-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.k-service-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px; font-weight: 700;
    margin: 0 0 10px;
    color: var(--k-ink);
}
.k-service-card p {
    font-size: 14px; line-height: 1.6;
    color: var(--k-muted);
    margin: 0 0 18px;
}
.k-service-card-link {
    font-size: 13px; font-weight: 600;
    color: var(--k-primary-dark);
    display: inline-flex; align-items: center; gap: 4px;
}
.k-service-card-link::after {
    content: '→';
    transition: transform 0.2s ease;
}
.k-service-card:hover .k-service-card-link::after {
    transform: translateX(3px);
}

/* ---------- WHY HIRE (LONG CONTENT) ---------- */
.k-prose-section { background: var(--k-slate); }
.k-prose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}
.k-prose-content h2, .k-prose-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--k-ink);
    margin-top: 32px; margin-bottom: 12px;
    line-height: 1.25;
}
.k-prose-content h2 { font-size: 26px; font-weight: 800; }
.k-prose-content h3 { font-size: 20px; font-weight: 700; }
.k-prose-content h2:first-child, .k-prose-content h3:first-child { margin-top: 0; }
.k-prose-content p {
    font-size: 16px; line-height: 1.75;
    color: var(--k-ink-2);
    margin: 0 0 16px;
}
.k-prose-content ul {
    margin: 0 0 20px; padding-left: 0;
    list-style: none;
}
.k-prose-content ul li {
    padding-left: 28px; position: relative;
    font-size: 15px; line-height: 1.65;
    color: var(--k-ink-2);
    margin-bottom: 10px;
}
.k-prose-content ul li::before {
    content: '✓';
    position: absolute; left: 0; top: 0;
    color: var(--k-success);
    font-weight: 800;
}
.k-prose-sidebar {
    background: #fff;
    padding: 32px 28px;
    border-radius: var(--k-radius);
    border: 1px solid var(--k-border);
    box-shadow: var(--k-shadow-md);
    position: sticky;
    top: 100px;
}
.k-prose-sidebar h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px; font-weight: 800;
    color: var(--k-ink);
    margin: 0 0 20px;
}
.k-stat-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px dashed var(--k-border);
}
.k-stat-row:last-of-type { border-bottom: none; }
.k-stat-label { font-size: 13px; color: var(--k-muted); }
.k-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 800; color: var(--k-primary-dark);
}

/* ---------- PORTFOLIO SHOWCASE ---------- */
.k-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.k-portfolio-item {
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: var(--k-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    position: relative;
}
.k-portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--k-shadow-lg);
}
.k-portfolio-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.k-portfolio-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------- PROCESS ---------- */
.k-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
}
.k-process-step {
    text-align: center;
    position: relative;
}
.k-process-num {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--k-primary), var(--k-primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px; font-weight: 800;
    box-shadow: var(--k-shadow-md);
}
.k-process-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 700;
    color: var(--k-ink);
    margin: 0 0 8px;
}
.k-process-step p {
    font-size: 14px; line-height: 1.55;
    color: var(--k-muted);
    margin: 0;
}

/* ---------- TESTIMONIALS ---------- */
.k-testimonials {
    background: linear-gradient(180deg, #fff 0%, #fef7ed 100%);
}
.k-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.k-testimonial {
    background: #fff;
    padding: 24px;
    border-radius: var(--k-radius);
    border: 1px solid var(--k-border);
    box-shadow: var(--k-shadow-sm);
    display: flex; flex-direction: column;
}
.k-testimonial-stars {
    color: var(--k-accent);
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.k-testimonial p {
    font-size: 14px; line-height: 1.65;
    color: var(--k-ink-2);
    flex: 1;
    margin: 0 0 16px;
    font-style: italic;
}
.k-testimonial-author {
    display: flex; align-items: center; gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--k-border);
}
.k-testimonial-flag {
    width: 30px; height: 22px;
    border-radius: 3px;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.k-testimonial-name {
    font-weight: 600; font-size: 13px;
    color: var(--k-ink);
}
.k-testimonial-country {
    font-size: 12px; color: var(--k-muted);
}

/* ---------- PRICING PREVIEW ---------- */
.k-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.k-price-card {
    background: #fff;
    border: 2px solid var(--k-border);
    border-radius: var(--k-radius);
    padding: 32px 28px;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.k-price-card.featured {
    border-color: black ;
    transform: scale(1.02);
}
.k-price-card.featured::before {
    content: 'Most Popular';
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--k-primary);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.k-price-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 800;
    color: var(--k-ink);
    margin: 0 0 6px;
}
.k-price-card-desc {
    font-size: 13px; color: var(--k-muted);
    margin: 0 0 20px;
}
.k-price-value {
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--k-border);
}
.k-price-currency { font-size: 20px; color: var(--k-muted); font-weight: 600; }
.k-price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 40px; font-weight: 900;
    color: var(--k-ink);
    line-height: 1;
}
.k-price-unit { font-size: 14px; color: var(--k-muted); }
.k-price-features {
    list-style: none;
    padding: 0; margin: 0 0 24px;
}
.k-price-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--k-ink-2);
    display: flex; gap: 8px;
}
.k-price-features li::before {
    content: '✓';
    color: var(--k-success);
    font-weight: 800;
    flex-shrink: 0;
}
.k-price-card .k-btn {
    width: 100%;
    justify-content: center;
}

/* ---------- FAQ ---------- */
.k-faq { max-width: 1450px; margin: 40px auto 0; }
.k-faq-item {
    background: #fff;
    border: 1px solid var(--k-border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.k-faq-item[open] { box-shadow: var(--k-shadow-md); }
.k-faq-item summary {
    padding: 18px 22px;
    font-size: 16px; font-weight: 600;
    color: var(--k-ink);
    cursor: pointer;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px;
}
.k-faq-item summary::-webkit-details-marker { display: none; }
.k-faq-item summary::after {
    content: '+';
    font-size: 24px; font-weight: 300;
    color: var(--k-primary-dark);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.k-faq-item[open] summary::after { transform: rotate(45deg); }
.k-faq-answer {
    padding: 0 22px 22px;
    font-size: 15px; line-height: 1.7;
    color: var(--k-ink-2);
}

/* ---------- FINAL CTA ---------- */
.k-cta-band {
    background: linear-gradient(135deg, var(--k-ink) 0%, #1e293b 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.k-cta-band::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(99,102,241,0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(245,158,11,0.15) 0%, transparent 50%);
}
.k-cta-band > * { position: relative; z-index: 1; }
.k-cta-band h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.15;
}
.k-cta-band p {
    font-size: 17px; line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto 32px;
}
.k-cta-band .k-btn-primary {
    background: var(--k-accent);
    color: var(--k-ink);
}
.k-cta-band .k-btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.k-cta-band .k-btn-secondary:hover {
    border-color: #fff; color: #fff;
}

/* ---------- RELATED SERVICES ---------- */
.k-related-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.k-related-card {
    background: #fff;
    border: 1px solid var(--k-border);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
    display: block;
}
.k-related-card:hover {
    border-color: var(--k-primary);
    color: inherit;
}
.k-related-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px; font-weight: 700;
    margin: 0 0 4px;
    color: var(--k-ink);
}
.k-related-card p {
    font-size: 13px; color: var(--k-muted);
    margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .k-hero { padding: 40px 0 60px; }
    .k-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .k-hero-visual { margin: 0 auto; }
    .k-prose-grid { grid-template-columns: 1fr; gap: 30px; }
    .k-prose-sidebar { position: static; }
    .k-process { grid-template-columns: repeat(2, 1fr); }
    .k-section { padding: 60px 0; }
    .k-trust-inner { justify-content: center; text-align: center; }
    .k-trust-logos { justify-content: center; gap: 24px; }
    .k-trust-logos span { font-size: 15px; }
}
@media (max-width: 500px) {
    .k-hero-cta { flex-direction: column; }
    .k-hero-cta .k-btn { width: 100%; justify-content: center; }
    .k-process { grid-template-columns: 1fr; }
    .k-hero-rating-card { left: 50%; transform: translateX(-50%); bottom: -25px; }
}


