/* ═══════════════════════════════════════════════════════════════════════════
   PrimeGuard Facility Services — Base Styles
   Dark premium theme with teal (#0C4B33) + gold (#D4A843) accents
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --pg-dark: #0A0A0A;
    --pg-darker: #050505;
    --pg-card: #111111;
    --pg-card-hover: #161616;
    --pg-border: rgba(255,255,255,0.06);
    --pg-border-accent: rgba(12,75,51,0.25);

    --pg-teal: #0C4B33;
    --pg-teal-light: #148C5B;
    --pg-teal-glow: rgba(12,75,51,0.3);
    --pg-gold: #D4A843;
    --pg-gold-light: #E8C56D;
    --pg-gold-glow: rgba(212,168,67,0.15);

    --pg-white: #FFFFFF;
    --pg-text: #E0E0E0;
    --pg-text-muted: #94A3B8;
    --pg-text-dim: #64748B;

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--pg-dark);
    color: var(--pg-text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a { color: var(--pg-gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--pg-gold-light); }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--pg-white);
    line-height: 1.2;
    font-weight: 700;
}

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── Topbar ────────────────────────────────────────────────────────────── */
.topbar {
    background: var(--pg-teal);
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    border-bottom: 2px solid var(--pg-gold);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.topbar-left { display: flex; gap: 24px; align-items: center; }
.topbar-right { display: flex; gap: 20px; align-items: center; }

.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--pg-gold); }

.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; opacity: 0.7; }

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--pg-gold);
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--pg-border);
    padding: 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-brand-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--pg-white);
    letter-spacing: -0.3px;
}

.navbar-brand-text span {
    color: var(--pg-gold);
}

.navbar-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.navbar-links a {
    color: var(--pg-text-muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--pg-white);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pg-gold);
    transition: var(--transition);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

.navbar-cta {
    background: var(--pg-teal);
    color: var(--pg-white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.navbar-cta:hover {
    background: var(--pg-teal-light);
    transform: translateY(-1px);
}

/* ── Mobile Menu ───────────────────────────────────────────────────────── */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--pg-white);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.98);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    color: var(--pg-white);
    font-size: 24px;
    font-weight: 600;
    font-family: var(--font-display);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--pg-white);
    font-size: 32px;
    cursor: pointer;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
    background: #050505;
    border-top: 1px solid var(--pg-border);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-brand p {
    color: var(--pg-text-muted);
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.8;
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pg-gold);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--pg-text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--pg-white);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--pg-text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--pg-gold); }

.footer-bottom {
    border-top: 1px solid var(--pg-border);
    padding: 24px 0;
    margin-top: 48px;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--pg-text-dim);
}

.footer-bottom a { color: var(--pg-text-dim); }
.footer-bottom a:hover { color: var(--pg-gold); }

.footer-tech {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pg-text-dim);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--pg-teal);
    color: var(--pg-white);
}
.btn-primary:hover {
    background: var(--pg-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--pg-teal-glow);
    color: var(--pg-white);
}

.btn-gold {
    background: var(--pg-gold);
    color: #0A0A0A;
}
.btn-gold:hover {
    background: var(--pg-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--pg-gold-glow);
    color: #0A0A0A;
}

.btn-outline {
    background: transparent;
    color: var(--pg-white);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--pg-gold);
    color: var(--pg-gold);
    background: rgba(212,168,67,0.05);
}

.btn svg { width: 18px; height: 18px; }

/* ── Section ───────────────────────────────────────────────────────────── */
.section {
    padding: 100px 0;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--pg-gold);
    margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--pg-gold);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--pg-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    min-width: 320px;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.toast.success { border-left: 3px solid var(--pg-teal-light); }
.toast.error { border-left: 3px solid #ef4444; }

.toast-message { font-size: 14px; color: var(--pg-text); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ── Scroll progress ───────────────────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pg-teal), var(--pg-gold));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── Reveal animations ─────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pg-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-sm);
    color: var(--pg-white);
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--pg-teal);
    box-shadow: 0 0 0 3px var(--pg-teal-glow);
}

.form-control::placeholder { color: var(--pg-text-dim); }

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .topbar { display: none; }
    .navbar-links { display: none; }
    .mobile-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .container, .container-sm, .container-lg { padding: 0 16px; }
}
