/* =========================================================
   PC Key Digital — Base Stylesheet
   Lightweight, framework-free, mobile-first CSS.
   ========================================================= */

:root {
    --color-primary: #0F172A;      /* slate-900 */
    --color-primary-light: #1E293B;
    --color-accent: #2563EB;       /* blue-600 */
    --color-accent-dark: #1D4ED8;
    --color-success: #10B981;      /* emerald-500 */
    --color-warning: #F59E0B;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-border: #E2E8F0;
    --color-text: #1E293B;
    --color-text-muted: #64748B;
    --color-white: #FFFFFF;

    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { line-height: 1.25; margin: 0 0 0.6em; color: var(--color-primary); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-text); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
    background: var(--color-accent);
    color: #fff;
}
.btn--primary:hover {
    background: var(--color-accent-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn--secondary {
    background: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}
.btn--secondary:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn--outline {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: #fff; text-decoration: none; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* -------------------- Header / Nav -------------------- */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 500;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--color-primary);
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo__mark-img {
    border-radius: var(--radius-sm);
    display: block;
}
.logo__mark-img--lg {
    border-radius: var(--radius-md);
}
.logo--footer { margin-bottom: 4px; }
.logo--light { color: var(--color-white); }

.main-nav { flex: 1; }
.main-nav__list {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}
.main-nav__item { position: relative; }
.main-nav__item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.main-nav__item > a:hover,
.main-nav__item > a.is-active { color: var(--color-accent); background: var(--color-bg-alt); }

.dropdown {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    display: none;
    z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
}
.dropdown li a:hover { background: var(--color-bg-alt); color: var(--color-accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-primary); display: block; }

/* -------------------- Hero -------------------- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1E3A8A 100%);
    color: #fff;
    padding: 80px 0;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lede { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}
.hero__visual {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1E3A8A 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 14px; color: rgba(255,255,255,0.7); }
.breadcrumbs a { color: rgba(255,255,255,0.9); }
.breadcrumbs span { margin: 0 6px; }

/* -------------------- Sections -------------------- */
.section { padding: 72px 0; }
.section--alt { background: var(--color-bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 10px;
    display: block;
}

/* -------------------- Grids / Cards -------------------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.card ul { padding-left: 20px; margin: 0; }
.card a.card-link { font-weight: 600; }

/* -------------------- Trust bar -------------------- */
.trust-bar { padding: 32px 0; border-bottom: 1px solid var(--color-border); }
.trust-bar__stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
    text-align: center;
}
.trust-bar__stat strong { display: block; font-size: 1.8rem; color: var(--color-primary); }
.trust-bar__stat span { color: var(--color-text-muted); font-size: 0.9rem; }

/* -------------------- Testimonials -------------------- */
.testimonial {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.testimonial__stars { color: var(--color-warning); margin-bottom: 12px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--color-accent);
}

/* -------------------- Case studies -------------------- */
.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    align-items: center;
}
.case-study__results { display: flex; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.case-study__results div strong { display: block; font-size: 1.5rem; color: var(--color-accent); }
.case-study__tag {
    display: inline-block;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    margin-right: 6px;
    margin-bottom: 12px;
}

/* -------------------- Pricing -------------------- */
.pricing-toggle { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.pricing-toggle button {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}
.pricing-toggle button.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.pricing-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.pricing-card--featured { border-color: var(--color-accent); box-shadow: var(--shadow-lg); position: relative; }
.pricing-card--featured::before {
    content: "Most Popular";
    position: absolute;
    top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--color-accent); color: #fff;
    padding: 4px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
}
.pricing-card__price { font-size: 2rem; font-weight: 800; color: var(--color-primary); margin: 12px 0; }
.pricing-card__price small { font-size: 0.9rem; color: var(--color-text-muted); font-weight: 500; }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; flex: 1; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px dashed var(--color-border); }
.pricing-card ul li::before { content: "✓ "; color: var(--color-success); font-weight: 700; }

/* -------------------- FAQ -------------------- */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--color-accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; color: var(--color-text-muted); }

/* -------------------- Forms -------------------- */
.form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}
.form-alert--success { background: rgba(16,185,129,0.12); color: #047857; border: 1px solid rgba(16,185,129,0.3); }
.form-alert--error { background: rgba(239,68,68,0.1); color: #B91C1C; border: 1px solid rgba(239,68,68,0.3); }

/* -------------------- CTA band -------------------- */
.cta-band {
    background: var(--color-primary);
    color: #fff;
    padding: 56px 0;
    text-align: center;
    border-radius: var(--radius-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 24px; }

/* -------------------- Blog -------------------- */
.blog-card img { border-radius: var(--radius-md); margin-bottom: 16px; aspect-ratio: 16/9; object-fit: cover; background: var(--color-bg-alt); }
.blog-meta { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.blog-post-body h2 { margin-top: 1.6em; }
.blog-post-body ul { padding-left: 22px; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.8); padding: 64px 0 0; margin-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__brand p { color: rgba(255,255,255,0.7); max-width: 320px; }
.footer__serving { font-size: 0.88rem; }
.footer__social { display: flex; gap: 14px; margin-top: 12px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; }
.footer__bottom a { color: rgba(255,255,255,0.7); }

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 400;
}

/* -------------------- Utilities -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-narrow { max-width: 820px; margin: 0 auto; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-list span { background: var(--color-bg-alt); padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; color: var(--color-text-muted); }

/* -------------------- Admin panel -------------------- */
.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    padding: 20px;
}
.admin-login-card { max-width: 380px; width: 100%; }
.admin-topbar { background: var(--color-primary); padding: 14px 0; }
.admin-topbar__inner { display: flex; align-items: center; justify-content: space-between; }
.admin-topbar .logo__text { color: #fff; }
.admin-shell { padding: 32px 20px 60px; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; max-width: 480px; }
.admin-stats h3 { font-size: 2rem; color: var(--color-accent); }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.admin-tabs a {
    padding: 10px 16px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}
.admin-tabs a.is-active { color: var(--color-accent); border-color: var(--color-accent); }
.admin-table-card { overflow: hidden; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    white-space: nowrap;
}
.admin-table__wrap-cell { white-space: normal; min-width: 220px; max-width: 360px; }
.admin-table thead th { color: var(--color-text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table tbody tr:hover { background: var(--color-bg-alt); }

/* -------------------- Responsive -------------------- */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; }
    .case-study { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .main-nav__list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        border-bottom: 1px solid var(--color-border);
        display: none;
        padding: 10px;
    }
    .main-nav__list.is-open { display: flex; }
    .dropdown { position: static; box-shadow: none; border: none; display: none; padding-left: 12px; }
    .has-dropdown.is-open .dropdown { display: block; }
    .site-header__cta { display: none; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .trust-bar__stats { justify-content: center; }
}
