/* ==========================================
   Ravenkey MSP — Dark Variant (Helioryn)
   ========================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-900: #020817;
    --bg-800: #08142d;
    --bg-700: #0f1f44;
    --primary: #e5e7eb;
    --primary-bright: #ffffff;
    --helioryn-blue: #4f8cff;
    --helioryn-blue-dark: #275dff;
    --helioryn-violet: #6e5cff;
    --helioryn-gold: #f3b46b;
    --helioryn-gold-bright: #ffcb8a;
    --text-primary: #e5e7eb;
    --text-secondary: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glow-blue: rgba(79, 140, 255, 0.45);
    --glow-gold: rgba(243, 180, 107, 0.35);
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
    --nav-height: 64px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg-900);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--helioryn-blue);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--helioryn-blue-dark);
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--primary-bright);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* ---- Header / Nav ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 8, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo text (fallback) */
.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--primary-bright) !important;
    display: flex;
    align-items: center;
    gap: 0;
}
.logo-raven {
    color: var(--primary-bright);
}
.logo-key {
    color: var(--helioryn-blue);
}

/* Custom logo image */
.custom-logo-link {
    display: flex;
    align-items: center;
}
.custom-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* ---- Navigation ---- */
.primary-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--helioryn-blue);
    background: rgba(79, 140, 255, 0.08);
}

/* Sub-menu */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.nav-menu li:hover > .sub-menu,
.nav-menu li.focus > .sub-menu {
    display: block;
}
.sub-menu a {
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-bright);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none !important;
}
.btn-primary {
    background: var(--helioryn-blue);
    color: #fff;
    box-shadow: 0 0 24px var(--glow-blue);
}
.btn-primary:hover {
    background: var(--helioryn-blue-dark);
    box-shadow: 0 0 32px var(--glow-blue);
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: var(--primary-bright);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}
.btn-gold {
    background: var(--helioryn-gold);
    color: var(--bg-900);
    box-shadow: 0 0 24px var(--glow-gold);
}
.btn-gold:hover {
    background: var(--helioryn-gold-bright);
    box-shadow: 0 0 36px var(--glow-gold);
    transform: translateY(-1px);
}

/* ---- Hero Section ---- */
.hero {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 30%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79,140,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-layout {
    display: flex;
    align-items: stretch;
    gap: 3rem;
}
.hero-visual {
    flex: 0 0 auto;
    display: flex;
}
.hero-logo-img {
    height: 100%;
    width: auto;
    max-width: 380px;
    object-fit: contain;
    align-self: flex-start;
}
.hero-text {
    flex: 1;
    text-align: left;
}
.hero h1 {
    margin-bottom: 1rem;
    max-width: 800px;
}
.hero-lead {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary-bright);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.hero-sub {
    display: block;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}
.hero h1 .highlight {
    color: var(--helioryn-blue);
}
.hero h1 .highlight-gold {
    color: var(--helioryn-gold);
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 0 2rem;
    line-height: 1.7;
}
.hero .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Page hero (inner pages) */
.page-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero h1 {
    margin-bottom: 0.5rem;
}
.page-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Contact Form ---- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h2 {
    margin-bottom: 1rem;
}
.contact-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
}
.contact-form-col .wpcf7 {
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}
.form-row {
    margin-bottom: 1.25rem;
}
.form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-900);
    color: var(--primary-bright);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--helioryn-blue);
    box-shadow: 0 0 0 3px var(--glow-blue);
}
.rk-form-response {
    margin-top: 1rem;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.rk-form-response.rk-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}
.rk-form-response.rk-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.form-row textarea {
    min-height: 140px;
    resize: vertical;
}
.form-submit {
    margin-bottom: 0;
}
.form-submit .wpcf7-submit {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: var(--helioryn-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.form-submit .wpcf7-submit:hover {
    background: var(--helioryn-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 0 24px var(--glow-blue);
}
.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.3rem;
}
.wpcf7-response-output {
    font-size: 0.9rem;
    border: none !important;
    border-radius: 8px;
    padding: 12px 16px !important;
    margin: 1rem 0 0 !important;
    background: rgba(79, 140, 255, 0.1);
    color: var(--helioryn-blue);
}
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}
.wpcf7-mail-sent-ok {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
}

/* ---- Trust Bar ---- */
.trust-bar {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.trust-bar p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.trust-bar .trust-logos {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.trust-bar .trust-item {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* ---- Section Defaults ---- */
.section {
    padding: 5rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 {
    margin-bottom: 0.75rem;
}
.section-header p {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.service-card {
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}
.service-card:hover {
    border-color: rgba(79, 140, 255, 0.3);
    box-shadow: 0 0 30px var(--glow-blue);
    transform: translateY(-4px);
}
.service-card .service-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}
.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.service-card .price {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--helioryn-gold);
    background: rgba(243, 180, 107, 0.1);
    border: 1px solid rgba(243, 180, 107, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
}

/* ---- How It Works ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}
.step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}
.step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-700);
    border: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--helioryn-blue);
    margin-bottom: 1rem;
}
.step h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}
.step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ---- Portfolio Grid ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.portfolio-card {
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}
.portfolio-card:hover {
    border-color: rgba(79, 140, 255, 0.3);
    box-shadow: 0 0 24px var(--glow-blue);
    transform: translateY(-3px);
}
.portfolio-preview {
    position: relative;
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-700);
    border-bottom: 1px solid var(--border);
}
.browser-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}
.browser-bar span:nth-child(1) { background: #ef4444; }
.browser-bar span:nth-child(2) { background: #eab308; }
.browser-bar span:nth-child(3) { background: #22c55e; }
.portfolio-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portfolio-placeholder {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.05);
    transition: transform 0.4s;
}
.portfolio-info {
    padding: 1.25rem;
}
.portfolio-info h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}
.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.tech-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    color: var(--helioryn-violet);
    background: rgba(110, 92, 255, 0.1);
    border: 1px solid rgba(110, 92, 255, 0.2);
    padding: 3px 10px;
    border-radius: 5px;
}

/* ---- Lightbox ---- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(2, 8, 23, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox.active {
    display: flex;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.lightbox-close:hover {
    color: var(--primary-bright);
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background: var(--bg-800);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta-section h2 {
    margin-bottom: 0.75rem;
}
.cta-section p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2rem;
}
.cta-section .cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-900);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}
.footer-brand .custom-logo {
    height: 36px;
}
.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    max-width: 280px;
}
.footer-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-menu li {
    margin-bottom: 0.4rem;
}
.footer-menu a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-menu a:hover {
    color: var(--primary-bright);
}
.footer-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-legal-list li {
    margin-bottom: 0.4rem;
}
.footer-legal-list a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal-list a:hover {
    color: var(--primary-bright);
}
.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}

/* ---- Page Content ---- */
.page-content {
    padding: 4rem 0;
}
.page-content .container > * + * {
    margin-top: 1.5rem;
}
.page-content h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-bright);
    margin-top: 2.5rem;
    letter-spacing: -0.02em;
}
.page-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-bright);
    margin-top: 2rem;
    letter-spacing: -0.01em;
}
.page-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}
.page-content ul, .page-content ol {
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}
.page-content li {
    margin-bottom: 0.5rem;
}
.page-content strong {
    color: var(--primary);
}
.page-content a {
    color: var(--helioryn-blue);
    text-decoration: none;
}
.page-content a:hover {
    color: var(--helioryn-blue-dark);
    text-decoration: underline;
}
.service-highlights {
    display: grid;
    gap: 1rem;
}
.highlight-item {
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}
.highlight-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.highlight-item p {
    margin-bottom: 0;
}
.why-list {
    list-style: none;
    padding-left: 0 !important;
}
.why-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.why-list li:last-child {
    border-bottom: none;
}
.policy-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(2, 8, 23, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 12px;
        gap: 2px;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a {
        padding: 12px 16px;
        font-size: 1rem;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-menu {
        justify-content: flex-start;
    }
    .hero {
        padding: 4rem 0 3rem;
    }
    .hero-layout { flex-direction: column; text-align: center; }
    .hero-visual { margin-bottom: 1rem; display: block; }
    .hero-logo-img { height: auto; width: 200px; max-width: 200px; }
    .hero-text { text-align: center; }
    .page-hero {
        padding: 3rem 0 1.5rem;
    }
    .section {
        padding: 3rem 0;
    }
    .page-content {
        padding: 2rem 0;
    }
}
