/* Varnika IT Consulting - Main Site Styles */

/* ============================================
   CSS VARIABLES - Light & Dark Modes
   ============================================ */

:root {
    --color-navy: #003366;
    --color-gold: #F4C430;
    --color-gold-dark: #DAA520;
    --color-bg-light: #F7F9FC;
    --color-text-dark: #1A1A1A;
    --color-text-gray: #666666;
    --color-white: #FFFFFF;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Light mode (default) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F9FC;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --border-color: rgba(0, 51, 102, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Dark mode */
[data-theme="dark"] {
    --bg-primary: #1A1A1A;
    --bg-secondary: #242424;
    --text-primary: #E5E5E5;
    --text-secondary: #A0A0A0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Dark mode heading adjustments */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--color-gold);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
}

.navbar-brand .logo-image {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Logo visibility based on theme */
[data-theme="light"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navbar Search */
#inline-search {
    position: relative;
    min-width: 250px;
}

#inline-search input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
}

#inline-search input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

#inline-search .pagefind-ui__drawer {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 400px;
    max-width: 600px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--color-gold);
    transform: rotate(15deg);
}

.theme-icon {
    transition: opacity 0.3s ease;
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-navy);
    margin: 5px 0;
    transition: 0.3s;
}

.navbar-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.navbar-menu .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navbar-menu .nav-link:hover,
.navbar-menu .nav-item.active .nav-link {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-menu.active {
        display: block;
    }
    
    .navbar-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }
    
    .navbar-menu .nav-link {
        display: block;
        padding: 1rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-white);
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--color-gold);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* ============================================
   PAGE LAYOUTS
   ============================================ */

main {
    min-height: 60vh;
}

.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 3px solid var(--color-gold);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-meta {
    color: var(--color-text-gray);
    font-size: 0.9rem;
}

.page-content {
    padding: 2rem 0;
    max-width: 800px;
}

.single-page .container {
    padding: 0 2rem 4rem;
}

.list-page .container {
    padding: 0 2rem 4rem;
}

.pages-list {
    margin-top: 2rem;
}

.page-item {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-item h2 {
    margin-bottom: 0.5rem;
}

.page-item a {
    color: var(--color-navy);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-gold);
    font-weight: 600;
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */

.button,
button[type="submit"] {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-gold);
    color: var(--color-navy);
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.button:hover,
button[type="submit"]:hover {
    background: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.3);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold) !important;
}

.text-navy {
    color: var(--color-navy) !important;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.has-text-centered {
    text-align: center;
}

.has-text-grey {
    color: var(--color-text-gray);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FORMS
   ============================================ */

.field {
    margin-bottom: 1.5rem;
}

.label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.input,
.textarea,
.select select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.input:focus,
.textarea:focus,
.select select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.1);
}

.textarea {
    resize: vertical;
    min-height: 120px;
}

.select {
    position: relative;
}

.select select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.help {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    margin-top: 0.25rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox input[type="checkbox"] {
    width: auto;
}

.has-text-danger {
    color: #dc3545;
}

input[name="_honey"] {
    position: absolute;
    left: -9999px;
}
