/* ===== WebGuard — Base Design System & Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset, 64px);
}

:root {
    --accent: #4ade80;
    --accent2: #22c55e;
    --accent-bg: rgba(74, 222, 128, 0.12);
    --accent-border: rgba(74, 222, 128, 0.25);
    --status-success: #4ade80;
    --status-success-bg: rgba(74, 222, 128, 0.12);
    --status-warning: #f59e0b;
    --status-warning-bg: rgba(245, 158, 11, 0.12);
    --status-critical: #ef4444;
    --status-critical-bg: rgba(239, 68, 68, 0.12);
}

/* ===== THEME VARIABLES ===== */
body {
    --bg: #0b0f0c;
    --bg2: #0e1410;
    --bg3: #111a12;
    --card: #131c14;
    --border: #1e2e1e;
    --border2: #243424;
    --muted-border: #2a3a2a;
    --text: #e8f0e8;
    --text2: #9ab89a;
    --text3: #5a7a5a;
    
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1;
}

body.light {
    --bg: #f4f8f4;
    --bg2: #eef4ee;
    --bg3: #e8f0e8;
    --card: #ffffff;
    --border: #d0e4d0;
    --border2: #c0d8c0;
    --muted-border: #c4d4c4;
    --text: #1a2a1a;
    --text2: #4a6a4a;
    --text3: #8aaa8a;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 3px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: 'Rajdhani', sans-serif;
}

a {
    text-decoration: none;
    transition: color 0.2s;
}

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

@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
}

/* ===== UNIFIED COMPONENTS ===== */

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Section Titles */
.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-title .accent {
    color: var(--accent);
}

.section-sub {
    font-size: 16px;
    color: var(--text2);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

@media (max-width: 900px) {
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 26px;
    }
}

.section {
    padding: 96px 0;
}

@media (max-width: 900px) {
    .section {
        padding: 64px 0;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 48px 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn--primary {
    color: #0b0f0c;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.btn--primary:hover {
    background: var(--accent2);
    border-color: var(--accent2);
    transform: translateY(-1px);
}

.btn--outline {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border2);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0b0f0c;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-1px);
}

/* Card */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--border2);
    transform: translateY(-3px);
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s;
    font-family: 'Inter', sans-serif;
}

.admin-bar #navbar {
    top: 32px;
}

.admin-bar #mobile-menu {
    top: calc(64px + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar #navbar {
        top: 46px;
    }

    .admin-bar #mobile-menu {
        top: calc(64px + 46px);
    }
}

#navbar.scrolled {
    background: rgba(13, 18, 14, 0.97);
    border-bottom-color: #1e2e1e;
    backdrop-filter: blur(12px);
}

body.light #navbar.scrolled {
    background: rgba(244, 248, 244, 0.97);
    border-bottom-color: #d0e4d0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-bg);
    border: 1px solid var(--border2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}

.nav-logo .accent {
    color: var(--accent);
}

/* ===== POLYLANG ===== */
.lang-switcher ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.lang-switcher li a {
    padding: 5px 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    background: transparent;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.lang-switcher li.current-lang a {
    color: #0b0f0c;
    background: var(--accent);
}

.lang-switcher li:not(:last-child) {
    border-right: 1px solid var(--border2);
}

/* ===== CONTACT FORM 7 ===== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    border-color: var(--accent);
}

.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #0b0f0c;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    display: block;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--accent2);
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* ===== UTILITY ===== */
.table-responsive {
    overflow-x: auto;
}
