/* ============================================================
   CrimeRadar — Main Stylesheet
   Colors: #0094DD (blue) | #FFF601 (yellow) | #0a0e1a (dark)
   ============================================================ */

:root {
    --blue:      #0094DD;
    --blue-dark: #0078b8;
    --blue-light:#e8f5ff;
    --yellow:    #FFF601;
    --yellow-dark:#d4ce00;
    --dark:      #0a0e1a;
    --dark-2:    #141929;
    --dark-3:    #1e2640;
    --white:     #ffffff;
    --gray-100:  #f0f4f8;
    --gray-200:  #e2e8f0;
    --gray-400:  #94a3b8;
    --gray-600:  #64748b;
    --gray-800:  #1e293b;
    --radius:    10px;
    --radius-lg: 16px;
    --shadow:    0 4px 20px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
    --transition: 0.25s ease;
    --header-h:  68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ============================================================
   HEADER
   ============================================================ */

.cr-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--dark);
    border-bottom: 2px solid var(--dark-3);
    transition: box-shadow var(--transition);
}

.cr-header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.cr-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.cr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.cr-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    transition: transform var(--transition);
}

.cr-logo:hover .cr-logo-icon {
    transform: rotate(15deg) scale(1.05);
}

.cr-logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.cr-logo-accent {
    color: var(--yellow);
}

.cr-logo:hover { text-decoration: none; }

/* Nav */
.cr-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.cr-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.cr-nav-link:hover,
.cr-nav-link.cr-nav-active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

.cr-nav-link i {
    font-size: 0.8rem;
    color: var(--blue);
}

.cr-nav-cta {
    background: var(--yellow) !important;
    color: var(--dark) !important;
    font-weight: 700 !important;
    margin-left: 8px;
}

.cr-nav-cta:hover {
    background: var(--yellow-dark) !important;
    color: var(--dark) !important;
}

.cr-nav-cta i { color: var(--dark) !important; }

/* Hamburger */
.cr-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.cr-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.cr-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cr-hamburger.open span:nth-child(2) { opacity: 0; }
.cr-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.cr-mobile-menu {
    display: none;
    background: var(--dark-2);
    border-top: 1px solid var(--dark-3);
    padding: 12px 24px 20px;
}

.cr-mobile-menu.open {
    display: block;
}

.cr-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cr-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
}

.cr-mobile-link:hover {
    background: rgba(255,255,255,0.06);
    color: var(--white);
    text-decoration: none;
}

.cr-mobile-link i {
    width: 18px;
    color: var(--blue);
    font-size: 0.9rem;
}

.cr-mobile-cta {
    background: var(--yellow);
    color: var(--dark) !important;
    font-weight: 700 !important;
    margin-top: 8px;
}

.cr-mobile-cta i { color: var(--dark) !important; }
.cr-mobile-cta:hover { background: var(--yellow-dark); }

/* Page offset for fixed header */
.cr-page-content {
    padding-top: var(--header-h);
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */

.cr-section {
    padding: 80px 0;
}

.cr-section-sm {
    padding: 48px 0;
}

.cr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cr-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.cr-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.cr-section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================================
   CARDS
   ============================================================ */

.cr-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.cr-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--blue);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.cr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.cr-btn:hover { text-decoration: none; }

.cr-btn-primary {
    background: var(--blue);
    color: var(--white);
}
.cr-btn-primary:hover { background: var(--blue-dark); color: var(--white); }

.cr-btn-yellow {
    background: var(--yellow);
    color: var(--dark);
}
.cr-btn-yellow:hover { background: var(--yellow-dark); color: var(--dark); }

.cr-btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.cr-btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.cr-btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ============================================================
   BADGE
   ============================================================ */

.cr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cr-badge-blue { background: var(--blue-light); color: var(--blue); }
.cr-badge-yellow { background: #fffde0; color: #8a7a00; }
.cr-badge-green { background: #ecfdf5; color: #065f46; }

/* ============================================================
   COMING SOON BANNER
   ============================================================ */

.cr-coming-soon-bar {
    background: linear-gradient(90deg, var(--blue), #005fa3);
    color: var(--white);
    text-align: center;
    padding: 12px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    position: relative;
    z-index: 999;
    margin-top: var(--header-h);
}

.cr-coming-soon-bar span {
    background: var(--yellow);
    color: var(--dark);
    padding: 2px 10px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.cr-breadcrumb {
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.cr-breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.cr-breadcrumb a:hover { text-decoration: underline; }
.cr-breadcrumb .sep { margin: 0 8px; color: var(--gray-400); }

/* ============================================================
   FOOTER
   ============================================================ */

.cr-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding-top: 64px;
}

.cr-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cr-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--dark-3);
}

.cr-footer-brand .cr-logo-footer {
    margin-bottom: 16px;
    display: inline-flex;
}

.cr-footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.55);
}

.cr-footer-ogl {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}

.cr-footer-ogl a {
    color: rgba(255,255,255,0.55);
    text-decoration: underline;
}

.cr-footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.cr-footer-links { list-style: none; padding: 0; margin: 0; }
.cr-footer-links li { margin-bottom: 10px; }

.cr-footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}

.cr-footer-links a:hover {
    color: var(--yellow);
    text-decoration: none;
}

.cr-footer-bottom {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cr-footer-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.cr-footer-copy a {
    color: rgba(255,255,255,0.55);
    text-decoration: underline;
}

.cr-footer-disclaimer {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    line-height: 1.5;
}
.cr-footer-disclaimer a {
    color: rgba(255,255,255,0.25);
    text-decoration: underline;
}
.cr-footer-disclaimer a:hover {
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   FORMS
   ============================================================ */

.cr-form-group {
    margin-bottom: 20px;
}

.cr-form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.cr-form-label .required { color: #dc2626; margin-left: 3px; }

.cr-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}

.cr-form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,148,221,0.12);
}

.cr-form-control::placeholder { color: var(--gray-400); }

textarea.cr-form-control {
    min-height: 140px;
    resize: vertical;
}

.cr-form-error {
    display: none;
    color: #dc2626;
    font-size: 0.82rem;
    margin-top: 6px;
}

.cr-form-feedback {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
}

.cr-form-feedback.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cr-form-feedback.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Honeypot */
.cr-hp { position: absolute; left: -9999px; top: -9999px; visibility: hidden; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.cr-page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
    padding: 60px 0 52px;
    position: relative;
    overflow: hidden;
}

.cr-page-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,148,221,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cr-page-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cr-page-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
}

.cr-page-hero-icon {
    font-size: 2.2rem;
    color: var(--blue);
    flex-shrink: 0;
}

/* ============================================================
   ALERT
   ============================================================ */

.cr-alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cr-alert-blue {
    background: var(--blue-light);
    border: 1px solid rgba(0,148,221,0.2);
    color: #0c4a6e;
}

.cr-alert i { font-size: 1rem; margin-top: 1px; flex-shrink: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .cr-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .cr-nav { display: none; }
    .cr-hamburger { display: flex; }

    .cr-section { padding: 56px 0; }
    .cr-container { padding: 0 16px; }

    .cr-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .cr-footer-brand { grid-column: 1 / -1; }

    .cr-page-hero { padding: 48px 0 40px; }

    :root { --header-h: 60px; }
    .cr-coming-soon-bar { margin-top: 60px; }
}

@media (max-width: 480px) {
    .cr-footer-grid { grid-template-columns: 1fr; }
    .cr-btn-lg { padding: 14px 24px; font-size: 0.95rem; }
}
