/*
Theme Name: Cove Systems Theme
Theme URI: https://www.covesys.com
Author: Cove Systems
Author URI: https://www.covesys.com
Description: Modern, responsive business theme designed for Cove Systems Stream V ERP, POS, SaaS, and eCommerce.
Version: 1.0.0
Text Domain: covesys-theme
*/

:root {
    --cove-blue-dark: #0b3c60;
    --cove-blue-med: #125384;
    --cove-blue-light: #eaf2f8;
    --cove-orange: #e54711;
    --cove-orange-hover: #c93b0b;
    --cove-dark: #1e293b;
    --cove-gray-bg: #f8fafc;
    --cove-border: #e2e8f0;
    --cove-text-muted: #64748b;
    --cove-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

body {
    font-family: var(--cove-font-sans);
    color: var(--cove-dark);
    background-color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--cove-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cove-orange-hover);
    text-decoration: underline;
}

.cove-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Top Bar */
.cove-topbar {
    background: var(--cove-blue-dark);
    color: #e2e8f0;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cove-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.cove-topbar-left a, .cove-topbar-right a {
    color: #e2e8f0;
    margin-right: 18px;
    text-decoration: none;
}
.cove-topbar-left a:hover, .cove-topbar-right a:hover {
    color: #ffffff;
}
.cove-topbar-right a.cove-portal-link {
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 600;
}

/* Main Navigation Bar */
.cove-main-nav {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.cove-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.cove-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.cove-logo-text {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--cove-blue-dark);
    letter-spacing: -0.5px;
}
.cove-logo-text span {
    color: var(--cove-orange);
}
.cove-logo-tagline {
    font-size: 11px;
    color: var(--cove-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: -3px;
}

/* Navigation Menu */
.cove-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px;
}
.cove-menu li {
    position: relative;
}
.cove-menu a {
    color: var(--cove-blue-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    display: block;
}
.cove-menu a:hover {
    color: var(--cove-orange);
    text-decoration: none;
}

/* Dropdown */
.cove-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.14);
    border: 1px solid var(--cove-border);
    border-radius: 6px;
    min-width: 270px;
    max-height: 520px;
    overflow-y: auto;
    display: none;
    list-style: none;
    padding: 8px 0;
    z-index: 100;
}
.cove-menu li:hover > ul {
    display: block;
}
.cove-menu li ul li a {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.cove-menu li ul li a:hover {
    background: var(--cove-blue-light);
    color: var(--cove-blue-dark);
}

.cove-nav-cta {
    background: var(--cove-orange);
    color: #ffffff !important;
    padding: 9px 20px !important;
    border-radius: 4px;
    font-weight: 700 !important;
    transition: background 0.2s ease;
}
.cove-nav-cta:hover {
    background: var(--cove-orange-hover) !important;
}

/* Mobile Toggle */
.cove-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--cove-blue-dark);
    cursor: pointer;
}

/* Page Header */
.cove-page-header {
    background: linear-gradient(135deg, var(--cove-blue-dark) 0%, var(--cove-blue-med) 100%);
    color: #ffffff;
    padding: 45px 0 35px 0;
    margin-bottom: 40px;
}
.cove-page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.cove-page-header p.cove-header-subheading {
    font-size: 1.15rem;
    color: #e2e8f0;
    max-width: 800px;
}
.cove-breadcrumbs {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 15px;
}
.cove-breadcrumbs a {
    color: #cbd5e1;
}

/* Layout 2-Column for standard pages */
.cove-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-bottom: 60px;
}
.cove-content-area {
    min-width: 0;
}

/* Sidebar */
.cove-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.cove-widget {
    background: var(--cove-gray-bg);
    border: 1px solid var(--cove-border);
    border-radius: 8px;
    padding: 22px;
}
.cove-widget-title {
    font-size: 1.15rem;
    color: var(--cove-blue-dark);
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #cbd5e1;
}
.cove-widget ul {
    list-style: none;
}
.cove-widget ul li {
    padding: 7px 0;
    border-bottom: 1px solid #e2e8f0;
}
.cove-widget ul li:last-child {
    border-bottom: none;
}
.cove-widget ul li a {
    color: var(--cove-dark);
    font-size: 14px;
    display: block;
}
.cove-widget ul li a:hover {
    color: var(--cove-orange);
    padding-left: 4px;
}
.cove-sidebar-cta {
    background: var(--cove-blue-dark);
    color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}
.cove-sidebar-cta h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.cove-sidebar-cta p {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 18px;
}

/* Why Section Grid */
.cove-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 35px 0;
}
.cove-why-card {
    background: var(--cove-gray-bg);
    border: 1px solid var(--cove-border);
    border-radius: 6px;
    padding: 20px;
    border-left: 3px solid var(--cove-blue-med);
}
.cove-why-card h4 {
    font-size: 1.05rem;
    color: var(--cove-blue-dark);
    margin-bottom: 6px;
}
.cove-why-card p {
    font-size: 0.9rem;
    color: var(--cove-text-muted);
}

/* Footer */
.cove-footer {
    background: var(--cove-blue-dark);
    color: #cbd5e1;
    padding: 60px 0 25px 0;
    margin-top: 60px;
}
.cove-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 45px;
}
.cove-footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 18px;
    font-weight: 700;
}
.cove-footer-col ul {
    list-style: none;
}
.cove-footer-col ul li {
    margin-bottom: 9px;
}
.cove-footer-col ul li a {
    color: #94a3b8;
    font-size: 14px;
}
.cove-footer-col ul li a:hover {
    color: #ffffff;
}
.cove-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #94a3b8;
}

/* Responsive queries */
@media (max-width: 991px) {
    .cove-page-layout { grid-template-columns: 1fr; }
    .cove-footer-grid { grid-template-columns: 1fr 1fr; }
    .cove-menu { display: none; }
    .cove-mobile-toggle { display: block; }
}
@media (max-width: 600px) {
    .cove-footer-grid { grid-template-columns: 1fr; }
    .cove-page-header h1 { font-size: 1.75rem; }
}

/* Anchor Navigation & Smooth Scrolling for Module Sub-Features */
html {
    scroll-behavior: smooth;
}
[id], a[name] {
    scroll-margin-top: 100px;
}
:target {
    animation: cove-highlight 1.5s ease-out;
}
@keyframes cove-highlight {
    0% { background-color: rgba(224, 90, 43, 0.15); }
    100% { background-color: transparent; }
}

/* Hide duplicate static fallback content when live dynamic web service sections exist */
.cove-page-sections ~ .cove-static-content,
.cove-page-sections + .cove-static-content {
    display: none !important;
}

/* Section feature images styling */
.cove-section-thumbnail {
    float: left;
    margin: 5px 25px 20px 0;
}
.cove-section-thumbnail .cove-thumb-img {
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    margin: 0;
    transition: transform 0.2s ease;
    display: block;
}
.cove-section-thumbnail .cove-thumb-img:hover {
    transform: scale(1.02);
}
.cove-section-inner::after {
    content: "";
    display: table;
    clear: both;
}

.cove-content-section img,
.cove-section-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    margin: 10px 0 20px 20px;
    transition: transform 0.2s ease;
}
.cove-content-section img:hover,
.cove-section-html img:hover {
    transform: scale(1.015);
}
@media (max-width: 768px) {
    .cove-section-thumbnail {
        float: none !important;
        margin: 0 0 20px 0 !important;
        text-align: center;
    }
    .cove-section-thumbnail .cove-thumb-img {
        float: none !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    .cove-content-section img,
    .cove-section-html img {
        float: none !important;
        margin: 15px 0 !important;
        width: 100% !important;
    }
}

/* Content section and team tables */
.cove-section-html table,
.cove-static-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px 0;
    font-size: 0.95rem;
    border: 1px solid var(--cove-border);
    border-radius: 6px;
    overflow: hidden;
}
.cove-section-html table th,
.cove-section-html table td,
.cove-static-content table th,
.cove-static-content table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--cove-border);
    text-align: left;
}
.cove-section-html table tr:first-child,
.cove-static-content table tr:first-child {
    background-color: var(--cove-gray-bg);
    font-weight: 700;
    color: var(--cove-blue-dark);
}
.cove-section-html table tr:nth-child(even):not(:first-child),
.cove-static-content table tr:nth-child(even):not(:first-child) {
    background-color: #f8fafc;
}
.cove-section-html table tr:hover:not(:first-child),
.cove-static-content table tr:hover:not(:first-child) {
    background-color: #f1f5f9;
}

/* Page SID Footer Indicator */
.cove-page-sid-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.cove-sid-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.cove-sid-tag strong {
    color: #0b3c60;
    font-weight: 700;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
}
.cove-sid-tag.cove-sid-na {
    color: #94a3b8;
    background: #f8fafc;
    border-style: dashed;
}
.cove-footer-sid {
    color: #e2e8f0;
    font-weight: 500;
}
.cove-footer-sid strong {
    color: #e54711;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
}
