/* =============================================================================
   MYS Security Solutions — Public site styles
   ============================================================================= */

:root {
    --navy-950: #060e1c;
    --navy-900: #0a1830;
    --navy-800: #102344;
    --navy-700: #16305c;
    --blue-500: #2f6fed;
    --blue-400: #4d8bff;
    --amber-500: #f5a623;
    --amber-600: #dd8f10;
    --gray-100: #f4f6fa;
    --gray-300: #d7dee8;
    --gray-500: #8593a8;
    --text-dark: #10192b;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(10, 24, 48, 0.08);
    --shadow-strong: 0 20px 45px rgba(6, 14, 28, 0.35);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--navy-900);
}

a { text-decoration: none; }

.text-muted-light { color: var(--gray-500); }
.text-navy { color: var(--navy-900); }

/* ---- Topbar ------------------------------------------------------------- */
.topbar {
    background: var(--navy-950);
    color: var(--gray-300);
    font-size: 0.85rem;
}
.topbar-item { color: var(--gray-300); }
.topbar-item:hover { color: var(--amber-500); }

/* ---- Navigation ----------------------------------------------------------- */
.main-nav {
    background: #fff;
    box-shadow: var(--shadow-soft);
    padding: 0.6rem 0;
    z-index: 1030;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
}
.navbar-brand i { color: var(--amber-500); font-size: 1.6rem; }
.brand-text { color: var(--navy-900); letter-spacing: 0.5px; }
.brand-text strong { color: var(--blue-500); }

.nav-link {
    font-weight: 600;
    color: var(--navy-800) !important;
    padding: 0.5rem 1rem !important;
}
.nav-link.active, .nav-link:hover { color: var(--blue-500) !important; }

.btn-cta {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: #1a1300 !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    border: none;
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
    transition: transform 0.2s ease;
}
.btn-cta:hover { transform: translateY(-2px); color: #1a1300; }

.btn-call {
    background: var(--navy-900);
    color: #fff !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    margin-left: 0.5rem;
}
.btn-call:hover { background: var(--blue-500); }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    background: radial-gradient(circle at 20% 20%, var(--navy-700), var(--navy-950) 70%);
    color: #fff;
    padding: 6.5rem 0 7rem;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(79, 139, 255, 0.18) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
}
.hero .container { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 166, 35, 0.15);
    color: var(--amber-500);
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--amber-500); }
.hero p.lead { color: var(--gray-300); font-size: 1.15rem; max-width: 560px; }
.hero-stats {
    display: flex;
    gap: 2.2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.hero-stats .stat-num { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stats .stat-label { color: var(--gray-500); font-size: 0.85rem; }
.hero-visual {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}
.hero-visual img { border-radius: var(--radius-md); width: 100%; display:block; }

/* ---- Section utilities ------------------------------------------------------ */
section { padding: 5rem 0; }
.section-tag {
    display: inline-block;
    color: var(--blue-500);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.section-lead { color: var(--gray-500); max-width: 640px; }
.bg-light-alt { background: var(--gray-100); }
.bg-navy { background: var(--navy-900); color: #fff; }
.bg-navy .section-title, .bg-navy h3 { color: #fff; }

/* ---- Cards ------------------------------------------------------------------ */
.icon-box {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
    color: #fff; font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.feature-card, .service-card, .value-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    height: 100%;
    border: 1px solid rgba(16, 35, 68, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover, .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}
.service-card img { border-radius: var(--radius-md); margin-bottom: 1.2rem; height: 200px; object-fit: cover; width: 100%; }
.service-card h3 { font-size: 1.3rem; }
.service-card ul { padding-left: 1.1rem; color: var(--gray-500); font-size: 0.92rem; }

/* ---- Process steps ----------------------------------------------------------- */
.process-step { text-align: center; position: relative; }
.process-num {
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--navy-900); color: var(--amber-500);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; margin: 0 auto 1rem;
    border: 3px solid var(--amber-500);
}

/* ---- Testimonials -------------------------------------------------------------- */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    height: 100%;
}
.testimonial-stars { color: var(--amber-500); margin-bottom: 0.8rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.2rem; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--navy-700); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700;
}

/* ---- CTA band ------------------------------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
    color: #fff;
    padding: 4rem 0;
}
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { color: var(--gray-300); margin-bottom: 1.8rem; }

/* ---- Footer ---------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-950);
    color: var(--gray-300);
    padding-top: 3.5rem;
}
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; color: var(--gray-500); font-size: 0.92rem; }
.footer-links a { color: var(--gray-300); }
.footer-links a:hover { color: var(--amber-500); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin-top: 2rem; }
.social-icons { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.social-icons a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff; display: flex; align-items: center; justify-content: center;
}
.social-icons a:hover { background: var(--amber-500); color: var(--navy-950); }

.mobile-call-fab {
    position: fixed; bottom: 20px; right: 20px; z-index: 1040;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--amber-500); color: var(--navy-950);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; box-shadow: var(--shadow-strong);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245,166,35,0.5); }
    70% { box-shadow: 0 0 0 14px rgba(245,166,35,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}

/* ---- Forms ------------------------------------------------------------------------ */
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.2rem;
}
.form-label { font-weight: 600; color: var(--navy-800); font-size: 0.9rem; }
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--gray-300);
    padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}
.upload-drop {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    color: var(--gray-500);
    cursor: pointer;
    transition: border-color 0.2s;
}
.upload-drop.dragover { border-color: var(--blue-500); background: rgba(47,111,237,0.05); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.upload-preview .thumb {
    position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--gray-300);
}
.upload-preview .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .thumb .remove {
    position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color:#fff;
    width: 20px; height: 20px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
    font-size: 0.7rem; cursor: pointer;
}

/* ---- Page header (interior pages) --------------------------------------------------- */
.page-header {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
    color: #fff;
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 0.5rem; }
.breadcrumb-nav a { color: var(--gray-300); }
.breadcrumb-nav span { color: var(--amber-500); }

/* ---- Gallery -------------------------------------------------------------------------- */
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-filter .btn { border-radius: 50px; margin: 0 4px 8px; }

/* ---- Alerts / flash ------------------------------------------------------------------- */
.alert-floating { position: fixed; top: 90px; right: 20px; z-index: 2000; min-width: 280px; }

/* ---- Map ---------------------------------------------------------------------------------- */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

@media (max-width: 991.98px) {
    .btn-call { margin-left: 0; margin-top: 0.4rem; }
    section { padding: 3.2rem 0; }
}
