/* ============================================================
   OpsCore Solutions - Public Website Stylesheet
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary:       #003366;
    --primary-dark:  #002244;
    --primary-light: #0055a5;
    --accent:        #00aacc;
    --accent-dark:   #008faa;
    --text:          #1a1a2e;
    --text-muted:    #6c757d;
    --bg:            #f8f9fb;
    --bg-dark:       #0d1b2a;
    --white:         #ffffff;
    --border:        #e2e8f0;
    --shadow:        0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:     0 10px 40px rgba(0,0,0,.12);
    --radius:        10px;
    --radius-lg:     16px;
    --transition:    all 0.3s ease;
    --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nav-height:    72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); }

/* ---- Containers ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.content-narrow { max-width: 820px; margin: 0 auto; }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section.pb-0 { padding-bottom: 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
    display: inline-block;
    background: rgba(0,170,204,.1);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 50px;
    margin-bottom: .75rem;
}
.section-header h2 { margin-bottom: .5rem; }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}
.btn-lg  { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-full{ width: 100%; justify-content: center; }
.btn-primary  { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

/* ---- Alerts ---- */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.alert ul { margin: 0; padding-left: 1rem; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .95rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,170,204,.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.required { color: #ef4444; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    height: var(--nav-height);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.site-logo { display: flex; align-items: center; }
.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.02em;
}

.main-nav { display: flex; align-items: center; gap: 2.5rem; }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav ul a {
    color: var(--text);
    font-weight: 500;
    font-size: .95rem;
    padding: .3rem 0;
    position: relative;
}
.main-nav ul a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}
.main-nav ul a:hover::after,
.main-nav ul a.active::after { transform: scaleX(1); }
.main-nav ul a.active { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); border-radius: 2px; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding-top: var(--nav-height);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/images/hero-bg.jpg') center/cover no-repeat;
    opacity: .15;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(0,170,204,.2) 0%, transparent 70%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 4rem 1.5rem;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: var(--white);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.3);
    margin-bottom: 1.25rem;
}
.hero-content h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}
.hero-content p {
    color: rgba(255,255,255,.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.5);
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
    text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.breadcrumb { display: flex; justify-content: center; align-items: center; gap: .5rem; color: rgba(255,255,255,.65); font-size: .9rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: .7rem; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.service-icon i { color: var(--white); font-size: 1.4rem; }
.service-card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.service-card p  { font-size: .9rem; }
.service-link { font-weight: 600; font-size: .9rem; color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.service-link:hover { gap: .7rem; }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ---- Services Detail (services page) ---- */
.services-detail-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.service-detail-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}
.service-detail-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.service-detail-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
}
.service-detail-icon i { color: var(--white); font-size: 1.6rem; }
.service-detail-body h3 { margin-bottom: .5rem; }
.service-detail-body p  { margin-bottom: 1rem; }

/* ============================================================
   WHY US
   ============================================================ */
.why-us { background: var(--bg); }
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-us-content .section-label { margin-bottom: .5rem; }
.why-us-content h2 { margin-bottom: 1rem; }
.feature-list { margin: 1.5rem 0; display: flex; flex-direction: column; gap: .75rem; }
.feature-list li { display: flex; gap: .75rem; align-items: flex-start; }
.feature-list i { color: #10b981; margin-top: .25rem; flex-shrink: 0; }
.feature-list strong { color: var(--text); }
.why-us-image .image-placeholder {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    height: 380px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.3);
    font-size: 6rem;
}
.mt-2 { margin-top: 2rem; }

/* ============================================================
   STATS
   ============================================================ */
.stats-section { background: var(--primary-dark); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label  { display: block; color: rgba(255,255,255,.7); font-size: .9rem; margin-top: .35rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    padding: 70px 0;
    text-align: center;
}
.cta-content h2 { color: var(--white); margin-bottom: .75rem; }
.cta-content p  { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 2rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}
.contact-info h2 { margin-bottom: .75rem; }
.contact-details { margin: 2rem 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
}
.contact-detail-item strong { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .1rem; }
.contact-detail-item a { color: var(--text); font-weight: 500; }
.contact-form-wrap {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content .content-narrow {
    padding: 0 1rem;
}
.page-content h1, .page-content h2, .page-content h3 { color: var(--text); margin: 1.5rem 0 .75rem; }
.page-content p   { margin-bottom: 1rem; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li  { margin-bottom: .4rem; }

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.social-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-links a {
    width: 38px; height: 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: .85rem;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-dark); padding: 60px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    margin-bottom: .75rem;
}
.footer-brand p { color: rgba(255,255,255,.55); font-size: .9rem; margin-bottom: 1.25rem; }
.footer-links h4,
.footer-contact h4 { color: var(--white); font-size: .95rem; margin-bottom: 1rem; }
.footer-links ul li { margin-bottom: .5rem; }
.footer-links ul a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-links ul a:hover { color: var(--accent); }
.footer-contact ul li { display: flex; gap: .6rem; color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: .6rem; align-items: flex-start; }
.footer-contact ul i { color: var(--accent); margin-top: .25rem; }
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { padding: 1.25rem 0; }
.footer-bottom p { color: rgba(255,255,255,.4); font-size: .85rem; text-align: center; }
.footer-brand .social-links a { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.footer-brand .social-links a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .why-us-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
    .stats-grid   { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }
    .section { padding: 60px 0; }

    .nav-toggle  { display: flex; z-index: 1001; }
    .main-nav {
        position: fixed;
        top: 0; right: -320px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1rem;
        z-index: 999;
        transition: right .3s ease;
        box-shadow: -5px 0 30px rgba(0,0,0,.15);
    }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
    .main-nav ul a { padding: .75rem 0; display: block; font-size: 1rem; border-bottom: 1px solid var(--border); }
    .main-nav ul a::after { display: none; }
    .nav-overlay.active { display: block; }
    .nav-cta { width: 100%; justify-content: center; margin-top: 1rem; }

    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .service-detail-card { flex-direction: column; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-number { font-size: 2rem; }
}
