/*
Theme Name: KKeyQik
Theme URI: https://kkeyqik.com
Author: Naman Agarwal
Author URI: https://kkeyqik.com
Description: A lightweight, high-performance WordPress theme with Elementor support. Features custom post types for Portfolio, Services, and Case Studies with full SEO optimization.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: Copyright Naman Agarwal. All rights reserved.
License URI: 
Text Domain: kkeyqik
Tags: elementor, portfolio, services, one-column, custom-colors, custom-logo, custom-menu, featured-images, theme-options

KKeyQik WordPress Theme, Copyright 2026 Naman Agarwal
This theme is copyrighted work and may not be distributed without permission.
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Colors */
    --kkeyqik-primary: #2f6d46;
    --kkeyqik-secondary: #C6F806;
    --kkeyqik-dark: #17012C;
    --kkeyqik-text: #504E4E;
    --kkeyqik-light: #F3FEF6;
    --kkeyqik-white: #ffffff;
    --kkeyqik-border: #E5E5E5;

    /* KKeyQik-compatible variables (for ported widgets) */
    --white: #fff;
    --black: #000;
    --theme: #2f6d46;
    --theme2: #C6F806;
    --header: #17012C;
    --text: #504E4E;
    --border: #E5E5E5;
    --bg: #F6F3FE;

    /* Typography - defaults that can be overridden by Elementor */
    --kkeyqik-font-heading: 'Lora', Georgia, serif;
    --kkeyqik-font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --kkeyqik-font-size-base: 16px;
    --kkeyqik-line-height: 1.6;

    /* Spacing */
    --kkeyqik-spacing-xs: 0.5rem;
    --kkeyqik-spacing-sm: 1rem;
    --kkeyqik-spacing-md: 1.5rem;
    --kkeyqik-spacing-lg: 2rem;
    --kkeyqik-spacing-xl: 3rem;

    /* Container */
    --kkeyqik-container-width: 1200px;

    /* Transitions */
    --kkeyqik-transition: 0.3s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: var(--kkeyqik-font-size-base);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--kkeyqik-font-body);
    font-size: 1rem;
    line-height: var(--kkeyqik-line-height);
    color: var(--kkeyqik-text);
    background-color: var(--kkeyqik-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--kkeyqik-font-heading);
    font-weight: 700;
    color: var(--kkeyqik-dark);
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: var(--kkeyqik-spacing-sm);
}

a {
    color: var(--kkeyqik-primary);
    text-decoration: none;
    transition: color var(--kkeyqik-transition);
}

a:hover {
    color: var(--kkeyqik-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.kkeyqik-container {
    width: 100%;
    max-width: var(--kkeyqik-container-width);
    margin: 0 auto;
    padding: 0 var(--kkeyqik-spacing-sm);
}

/* Buttons */
.kkeyqik-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--kkeyqik-font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--kkeyqik-transition);
}

.kkeyqik-btn-primary {
    background-color: var(--kkeyqik-primary);
    color: var(--kkeyqik-white);
}

.kkeyqik-btn-primary:hover {
    background-color: var(--kkeyqik-dark);
    color: var(--kkeyqik-white);
}

.kkeyqik-btn-secondary {
    background-color: var(--kkeyqik-secondary);
    color: var(--kkeyqik-dark);
}

.kkeyqik-btn-secondary:hover {
    background-color: var(--kkeyqik-primary);
    color: var(--kkeyqik-white);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-header {
    background: var(--kkeyqik-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 11;
}

.site-content {
    min-height: calc(100vh - 200px);
}

.site-footer {
    background: var(--kkeyqik-dark);
    color: var(--kkeyqik-white);
    padding: var(--kkeyqik-spacing-xl) 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--kkeyqik-spacing-sm) 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--kkeyqik-spacing-md);
}

.main-navigation a {
    color: var(--kkeyqik-dark);
    font-weight: 500;
    padding: var(--kkeyqik-spacing-xs) 0;
}

.main-navigation a:hover {
    color: var(--kkeyqik-primary);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: var(--kkeyqik-spacing-sm);
}

.mt-2 {
    margin-top: var(--kkeyqik-spacing-md);
}

.mt-3 {
    margin-top: var(--kkeyqik-spacing-lg);
}

.mb-1 {
    margin-bottom: var(--kkeyqik-spacing-sm);
}

.mb-2 {
    margin-bottom: var(--kkeyqik-spacing-md);
}

.mb-3 {
    margin-bottom: var(--kkeyqik-spacing-lg);
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Large Desktop */
@media (max-width: 1399px) {
    :root {
        --kkeyqik-container-width: 1140px;
    }
}

/* Landscape Tablet / Small Desktop */
@media (max-width: 1199px) {
    :root {
        --kkeyqik-container-width: 960px;
        --kkeyqik-font-size-base: 15px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    :root {
        --kkeyqik-container-width: 720px;
        --kkeyqik-spacing-xl: 2rem;
        --kkeyqik-spacing-lg: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    .site-footer {
        padding: var(--kkeyqik-spacing-lg) 0;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    :root {
        --kkeyqik-container-width: 540px;
        --kkeyqik-font-size-base: 14px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .main-navigation {
        flex-direction: column;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    :root {
        --kkeyqik-container-width: 100%;
        --kkeyqik-spacing-sm: 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}