/* ============================================
   CES SITE-WIDE MODERNIZATION
   Loaded by service detail, equipment, and corporate pages.
   Layered on top of main.css. Does NOT replace main.css.
   Preserves the original SSI footer (footer.html) so internal
   linking / SEO equity stays intact.
   ============================================ */

/* --- Typography base --- */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #2d3748 !important;
    background-color: #ffffff !important;
    -webkit-font-smoothing: antialiased;
    /* Intentionally NOT touching padding-top / padding-bottom / margin-bottom -
       main.css uses them to keep the absolute-positioned footer.html clear. */
}
/* Apply Inter to most text but leave Glyphicons alone (they need Halflings font). */
body, p, h1, h2, h3, h4, h5, h6, a, span:not(.glyphicon), li, td, th, label, button, input, select, textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #1a2a4a;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: 30px; line-height: 1.25; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 20px; line-height: 1.35; }
h4 { font-size: 17px; line-height: 1.4; }
p {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

/* --- Logo --- */
.ces-logo {
    width: 250px !important;
    height: 64px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* --- Top Navigation --- */
.navbar-default {
    background-color: #1a2a4a !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    min-height: 48px !important;
}
.navbar-default .navbar-nav > li > a {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 14px 20px !important;
    transition: background-color 0.2s ease !important;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li:hover > a {
    background-color: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
}
.navbar-default .navbar-nav > li > a .caret {
    border-top-color: #ffffff !important;
}
.navbar-default .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    padding: 8px 0 !important;
}
.navbar-default .dropdown-menu > li > a {
    color: #2d3748 !important;
    font-size: 13.5px !important;
    padding: 8px 18px !important;
}
.navbar-default .dropdown-menu > li > a:hover {
    background-color: #f1f5f9 !important;
    color: #0077c2 !important;
}

/* --- Banners (the per-section tag-line banner from main.css) --- */
/* Keep main.css's banner backgrounds, just modernize the tag */
.tagLineContainer {
    border-top-right-radius: 12px !important;
}
.corporateTag, .aerospaceTag, .productsTag, .reliabilityTag, .metrologyTag {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    letter-spacing: -0.01em;
}

/* --- Container content polish --- */
.container .row.underlineRow {
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
}
.container > .row:first-of-type {
    margin-top: 28px;
}
.container h3 {
    font-size: 22px;
    color: #1a2a4a;
    margin-top: 0;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: inline-block;
}
.container h4 a {
    color: #1a2a4a;
    text-decoration: none;
}
.container h4 a:hover {
    color: #0077c2;
}

/* --- Buttons --- */
.btn-default {
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.03em !important;
    color: #ffffff !important;
    background-color: #0077c2 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 6px rgba(0, 119, 194, 0.25) !important;
}
.btn-default a {
    color: #ffffff !important;
    text-decoration: none !important;
}
.btn-default:hover, .btn-default:focus,
.btn-default:hover a, .btn-default:focus a {
    background-color: #005a94 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 119, 194, 0.35) !important;
    text-decoration: none !important;
}

/* --- Links --- */
a {
    color: #0077c2;
    transition: color 0.2s ease;
}
a:hover {
    color: #005a94;
}
a.bodyLink {
    color: #0077c2;
    font-weight: 600;
    text-decoration: underline;
}
a.bodyLink:hover {
    color: #005a94;
}

/* --- Accent helpers --- */
.accent1 {
    color: #0077c2 !important;
    font-weight: 600 !important;
}
.accent2 {
    color: #1a2a4a !important;
}

/* --- Footer (modernize the existing rich SSI footer, keep its links) --- */
footer.footer {
    background-color: #1a2a4a !important;
    border-top: 1px solid #1a2a4a !important;
    height: auto !important;
    min-height: 52px;
    padding: 0;
}
footer.footer .navbar-default {
    background-color: #1a2a4a !important;
    min-height: 52px !important;
}
footer.footer .navbar-default .navbar-nav > li > a {
    color: #cbd5e0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
}
footer.footer .navbar-default .navbar-nav > li > a:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.06) !important;
}
.footerCopyright {
    color: #94a3b8 !important;
}
.copyright {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
}
footer.footer .linkList li a {
    color: #cbd5e0 !important;
    font-size: 13px !important;
}
footer.footer .linkList li a:hover {
    color: #ffffff !important;
}
footer.footer .linkList li.mainLink a,
footer.footer .linkList li.mainFooterLink a {
    color: #ffffff !important;
    font-weight: 600 !important;
}
footer.footer .yamm .dropdown-menu {
    background-color: #ffffff !important;
    color: #2d3748 !important;
    padding: 24px !important;
}
footer.footer .yamm .dropdown-menu .linkList li a {
    color: #2d3748 !important;
}
footer.footer .yamm .dropdown-menu .linkList li a:hover {
    color: #0077c2 !important;
}
footer.footer .yamm .dropdown-menu .linkList li.mainLink a,
footer.footer .yamm .dropdown-menu .linkList li.mainFooterLink a {
    color: #1a2a4a !important;
}

/* --- Section nav (nav-aerospace / nav-reliability / nav-metrology / nav-products) --- */
/* These are secondary navs that appear under the main nav on section pages.
   Inherit .navbar-default styling from above, but ensure they don't double-pad. */
body > .container > .navbar,
body > .navbar + .navbar {
    margin-top: 0 !important;
}

/* --- Forms / inputs (Quote modal etc.) --- */
input[type="text"], input[type="email"], textarea, select {
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
    border-color: #0077c2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 119, 194, 0.15);
}
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
}
.modal-title {
    color: #1a2a4a;
    font-weight: 700;
}
.modal-body {
    padding: 24px;
}

/* --- Tables --- */
table {
    border-collapse: collapse;
}
table th {
    background-color: #f1f5f9;
    color: #1a2a4a;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 2px solid #cbd5e0;
}
table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}

/* --- Lists --- */
ul li, ol li {
    line-height: 1.7;
}

/* --- Document-library style PDF rows --- */
.ul_docLib li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 19px; }
}
@media (max-width: 767px) {
    h1 { font-size: 22px; }
    .navbar-default .navbar-nav > li > a {
        color: #ffffff !important;
        padding: 12px 16px !important;
    }
    .corporateTag, .aerospaceTag, .productsTag, .reliabilityTag, .metrologyTag {
        font-size: 18px !important;
    }
}
