/* =========================================================
   GEOBUNKERS — Global Stylesheet
   ერთი საერთო სტილების ფაილი index.php, systems.php, threat.php-სთვის
   ========================================================= */

:root {
    --gold: #D4AF37;
    --bg: #050505;
    --card: #111;
    --text: #ffffff;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

/* ---------- Header / Nav (საერთო ყველა გვერდზე) ---------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(0,0,0,0.9);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.logo span { color: var(--gold); }
nav a {
    text-decoration: none;
    color: #fff;
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}
nav a:hover { color: var(--gold); }

/* ---------- Hero (მთავარი გვერდი) ---------- */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(5,5,5,1)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2000');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: 10px;
    margin-bottom: 10px;
    color: #fff;
}
.hero-badge {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}
.hero-tagline { font-size: 1.4rem; color: #ccc; }

.seo-intro {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    color: #aaa;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---------- Section titles / grids ---------- */
.section-title {
    text-align: center;
    margin: 100px 0 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 8% 100px;
}
.card {
    background: var(--card);
    padding: 40px;
    border: 1px solid #222;
    transition: 0.4s;
    cursor: pointer;
}
.card:hover { border-color: var(--gold); transform: translateY(-10px); }
.card h3 { font-family: 'Oswald', sans-serif; color: var(--gold); font-size: 1.8rem; margin-bottom: 15px; }
.card a { text-decoration: none; color: inherit; display: block; }

.threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 8% 100px;
}
.threat-item {
    background: #000;
    border: 1px solid #1a1a1a;
    padding: 30px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
    display: block;
    border-left: 3px solid #333;
}
.threat-item:hover { border-left-color: var(--gold); background: #080808; padding-left: 40px; }

/* ---------- Contact section (მთავარი გვერდი) ---------- */
.contact-section { background: #030303; padding: 100px 8%; border-top: 1px solid #111; text-align: center; }
.contact-title { color: var(--gold); font-family: 'Oswald', sans-serif; font-size: 2.5rem; margin-bottom: 20px; }
.tel-link { font-size: 3rem; color: #fff; text-decoration: none; font-family: 'Oswald', sans-serif; display: block; margin-bottom: 40px; }

form#contactForm { max-width: 600px; margin: 0 auto; text-align: left; }
.form-field { margin-bottom: 25px; }

/* Honeypot — ბოტების საჭერად: ეკრანს გარეთაა გატანილი, ეკრანის მკითხველისთვისაც დამალული */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

input, textarea {
    width: 100%;
    max-width: 600px;
    padding: 18px 20px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 4px;
    box-sizing: border-box;
    transition: 0.3s;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
input.error, textarea.error { border-color: #ff4444; }

.error-message { color: #ff4444; font-size: 0.85rem; margin-top: 8px; margin-bottom: 15px; display: none; text-align: left; }
.error-message.show { display: block; }

.form-success {
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    font-weight: bold;
}
.form-error-box {
    color: #ff4444;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255,68,68,0.08);
    border: 1px solid #ff4444;
    border-radius: 4px;
    text-align: center;
}

.btn-gold {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 22px;
    width: 100%;
    max-width: 600px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    border-radius: 4px;
    letter-spacing: 2px;
    transition: 0.3s;
}
.btn-gold:hover { background: #b8960f; transform: scale(1.02); }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Footer / floating call button (საერთო) ---------- */
footer {
    text-align: center;
    padding: 60px;
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 5px;
    background: #000;
}
.call-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--gold);
    color: #000;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: 0.3s;
}
.call-btn:hover { transform: scale(1.1); }

/* =========================================================
   Systems.php / Threat.php — შიდა გვერდების საერთო კონტეინერი
   ========================================================= */
.container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}
.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    margin-bottom: 10px;
}
.page-subtitle { text-align: center; color: #888; margin-bottom: 60px; font-size: 1.1rem; }

.page-tag {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
}

/* systems.php cards */
.system-card { background: var(--card); border: 1px solid #222; padding: 40px; margin-bottom: 30px; border-left: 5px solid var(--gold); }
.system-card h2 { font-family: 'Oswald', sans-serif; color: var(--gold); font-size: 1.8rem; margin-bottom: 20px; text-transform: uppercase; }
.system-card p { line-height: 1.8; color: #ddd; font-size: 1.1rem; margin-bottom: 20px; }
.system-card ul { list-style: none; }
.system-card li { margin-bottom: 12px; padding-left: 30px; position: relative; color: #fff; font-weight: 600; }
.system-card li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }

/* threat.php content box */
.content-box { max-width: 900px; margin: 0 auto 50px auto; background: #111; padding: 50px; border-left: 6px solid var(--gold); text-align: left; }
.content-box h1 { font-family: 'Oswald', sans-serif; font-size: 2.8rem; color: var(--gold); margin-bottom: 25px; text-transform: uppercase; line-height: 1.2; }
.content-box p { font-size: 1.25rem; line-height: 1.8; color: #ddd; }

.threat-grid.secondary { max-width: 900px; margin: 0 auto; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0; }
.threat-grid.secondary a { display: block; padding: 18px; background: #0a0a0a; color: #888; text-decoration: none; border: 1px solid #222; font-size: 0.85rem; text-transform: uppercase; transition: 0.3s; font-weight: 600; }
.threat-grid.secondary a:hover, .threat-grid.secondary a.active { border-color: var(--gold); color: var(--gold); background: #111; }

.back-btn { display: inline-block; margin-top: 40px; color: #888; text-decoration: none; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 2px; transition: 0.3s; }
.back-btn:hover { color: var(--gold); }

body.page-inner { padding: 60px 20px; text-align: center; }

/* =========================================================
   Responsive
   ========================================================= */
@media screen and (max-width: 768px) {
    .hero h1 { font-size: 2.5rem !important; letter-spacing: 5px !important; }
    .hero p, .hero-tagline { font-size: 1.1rem !important; padding: 0 15px; }
    .grid { grid-template-columns: 1fr !important; padding: 0 20px 50px; }
    .threat-grid { grid-template-columns: 1fr !important; padding: 0 20px 50px; }
    .section-title { font-size: 1.8rem !important; margin: 50px 0 30px; }
    header { padding: 15px 5%; }
    nav a { margin-left: 10px; font-size: 0.7rem; }
    input, textarea, .btn-gold { width: 100% !important; max-width: none; }
    .call-btn { width: 55px; height: 55px; font-size: 1.5rem; bottom: 20px; right: 20px; }

    .page-title { font-size: 2rem; }
    .system-card { padding: 25px; }
    .system-card h2 { font-size: 1.4rem; }
    .system-card p, .system-card li { font-size: 14px; }

    body.page-inner { padding: 40px 15px; }
    .content-box { padding: 25px 20px; margin-bottom: 30px; border-left-width: 4px; }
    .content-box h1 { font-size: 1.6rem !important; margin-bottom: 15px; }
    .content-box p { font-size: 14px !important; line-height: 1.6; text-align: left; }
    .threat-grid.secondary { grid-template-columns: 1fr 1fr; gap: 8px; }
    .threat-grid.secondary a { padding: 12px; font-size: 0.75rem; }
    .back-btn { margin-top: 40px; }
}
