/* DDC-Omni Shared Styles - WCAG 2.1 AA Compliant */

/* Skip Navigation Link - Accessibility Feature */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2c3e50;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    z-index: 2000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-nav:focus {
    top: 0;
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Visually Hidden Class for Screen Readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: 'Barlow', sans-serif;
    background-image: url('images/pattern-bg.png');
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Chivo', sans-serif;
}

/* Enhanced Focus Indicators - WCAG 2.1 AA Requirement */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.navbar-toggle:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Topbar - matching original */
.t3-topbar {
    background: #f8f8f8;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #e7e7e7;
}

.topbar-left {
    color: #666;
}

/* Header */
.t3-header {
    padding: 30px 0;
    background: #fff;
}

.logo-img {
    max-height: 80px;
}

/* Navigation - WCAG AA Compliant Colors */
.t3-mainnav {
    background: #2c3e50;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    min-height: 60px;
    position: relative;
    z-index: 1000;
}

.t3-mainnav .navbar-nav > li > a {
    color: #ffffff; /* Changed from #ecf0f1 to #ffffff for better contrast */
    padding: 18px 25px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.t3-mainnav .navbar-nav > li > a:hover,
.t3-mainnav .navbar-nav > li.active > a,
.t3-mainnav .navbar-nav > li.active > a:hover,
.t3-mainnav .navbar-nav > li.active > a:focus,
.t3-mainnav .navbar-nav > li.open > a,
.t3-mainnav .navbar-nav > li.open > a:hover,
.t3-mainnav .navbar-nav > li.open > a:focus {
    background: #34495e;
    color: #fff;
}

.t3-navbar-info {
    color: #ffffff; /* Changed for better contrast */
    padding: 18px 20px;
    font-size: 14px;
}

.t3-navbar-info a {
    color: #ffffff; /* Changed for better contrast */
    text-decoration: none;
}

.t3-navbar-info a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Dropdown menu */
.t3-mainnav .dropdown-menu {
    background: #34495e;
    border: none;
    border-radius: 0;
    padding: 0;
}

.t3-mainnav .dropdown-menu > li > a {
    color: #ffffff; /* Changed for better contrast */
    padding: 12px 20px;
    text-transform: none;
    font-size: 14px;
}

.t3-mainnav .dropdown-menu > li > a:hover,
.t3-mainnav .dropdown-menu > li.active > a {
    background: #2c3e50;
    color: #fff;
}

/* Masthead */
.ja-masthead {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
    text-align: center;
    position: relative;
}

.ja-masthead:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65); /* Increased overlay for better text contrast */
}

.ja-masthead-detail {
    position: relative;
    z-index: 1;
}

.ja-masthead-title {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Enhanced text shadow for readability */
}

.ja-masthead-description {
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Slideshow - Fixed Height (60%) */
.acm-slideshow {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 60vh; 
    display: flex;
    align-items: center;
    background-color: #2c3e50;
}

.acm-slideshow:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5); /* Adjusted for better text contrast */
}

.slider-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
}

.slide-title {
    font-size: 48px;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

/* Buttons - WCAG AA Compliant Colors */
.btn-primary {
    background: #c50d18;
    border-color: #c50d18;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #9a0a13; /* Darker for better contrast */
    border-color: #9a0a13;
    color: #fff;
}

.btn-default {
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    background: #fff;
    border: 2px solid #2c3e50;
    color: #2c3e50;
}

.btn-default:hover,
.btn-default:focus {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
}

/* Content sections */
.acm-features {
    padding: 60px 0;
    background: #fff;
}

.acm-features.style-2 {
    background: #f8f9fa;
}

.acm-features.style-3 {
    background: #fff;
}

.acm-features .label-name h4 {
    font-weight: 700;
    margin-bottom: 20px;
}

.acm-features .title h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.acm-features .desc {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333; /* Changed from #555 for better contrast */
}

/* General Text Link Buttons (About Us, etc) */
.acm-features .link-btn {
    color: #c50d18;
    text-decoration: none;
    font-weight: 600;
}

.acm-features .link-btn:hover,
.acm-features .link-btn:focus {
    color: #9a0a13;
    text-decoration: underline;
}

.acm-features .thumbnail {
    border: none;
    padding: 0;
}

/* Product grid */
.features-inner {
    margin: 0;
}

.content-info {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    margin-bottom: 0;
}

.content-info:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65); /* Increased for better text contrast */
    transition: all 0.3s ease;
}

.content-info:hover:before {
    background: rgba(0,0,0,0.5);
}

.group-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.group-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

/* Scoped to .content-info so it doesn't affect About Us page */
.content-info .link-btn {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    line-height: 50px;
    text-align: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
}

.content-info .link-btn:hover,
.content-info .link-btn:focus {
    background: #c50d18;
    transform: scale(1.1);
    color: #fff;
    text-decoration: none;
}

/* Product pages */
.product-content {
    background: #fff;
    padding: 60px 0;
}

.product-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
}

.product-content h3 {
    color: #c50d18;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.product-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333; /* Changed from #555 for better contrast */
    margin-bottom: 20px;
}

.product-content ul {
    font-size: 16px;
    line-height: 1.8;
    color: #333; /* Changed from #555 for better contrast */
    margin-bottom: 30px;
}

.product-content ul li {
    margin-bottom: 10px;
}

.product-image {
    margin: 30px 0;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cta-box {
    background: #ecf0f1;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
    border-radius: 5px;
}

.cta-box h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Teams section */
.acm-teams {
    padding: 60px 0;
    background: #f8f9fa;
}

.acm-teams .text-group {
    text-align: center;
    margin-bottom: 40px;
}

.acm-teams .title h2 {
    font-size: 36px;
    color: #2c3e50;
}

.member-item {
    text-align: center;
    margin-bottom: 30px;
}

.member-item .picture {
    margin-bottom: 20px;
}

.member-item .picture img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.member-item .name h2 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.member-item .office {
    color: #555; /* Improved for better contrast */
    font-size: 14px;
}

/* Forms - Enhanced Accessibility */
.visforms-form {
    max-width: 800px;
    margin: 0 auto;
}

.visforms-form h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.visforms-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #2c3e50; /* Changed from #333 for consistency */
}

.visforms-form .required label:after {
    content: " *";
    color: #c50d18;
}

.visforms-form .form-control {
    margin-bottom: 20px;
    border: 2px solid #ddd; /* Increased border width for visibility */
    padding: 10px 12px;
}

.visforms-form .form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.visforms-form textarea {
    min-height: 150px;
}

/* Form Error States */
.form-control.error {
    border-color: #c50d18;
}

.error-message {
    color: #c50d18;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 15px;
    display: block;
}

.vis_mandatory {
    color: #c50d18;
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
}

.g-recaptcha {
    margin: 20px 0;
}

/* Contact page */
.t3-mainbody {
    background: #fff;
    padding: 60px 0;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #2c3e50;
}

.contact-address {
    margin-bottom: 30px;
}

.contact-address dt {
    width: 40px;
    float: left;
}

.contact-address dd {
    margin-left: 50px;
    margin-bottom: 15px;
}

.contact-address .fa {
    margin-right: 5px;
    color: #c50d18;
}

.content-form-email h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #2c3e50;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form .required label:after {
    content: " *";
    color: #c50d18;
}

.contact-form .form-control {
    margin-bottom: 15px;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-form legend {
    font-size: 14px;
    font-weight: normal;
    color: #555;
    border: none;
    margin-bottom: 20px;
}

/* Policy section */
.t3-policy-wrap {
    background: #ecf0f1;
    padding: 50px 0;
    margin-top: 0;
}

.t3-policy {
    text-align: center;
}

.t3-policy p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.t3-policy a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.t3-policy a:hover,
.t3-policy a:focus {
    color: #c50d18;
    text-decoration: underline;
}

/* ISO Certification Link Styling */
.t3-policy .iso-cert-link {
    font-weight: 600;
    color: #2c3e50;
}

.t3-policy .iso-cert-link .fa-certificate {
    color: #d4af37;
    margin-right: 8px;
    font-size: 24px;
}

.t3-policy .iso-cert-link:hover {
    color: #c50d18;
}

.t3-policy .iso-cert-link:hover .fa-certificate {
    color: #b8941f;
}

/* Accessibility Statement Styling */
.accessibility-statement {
    background: #34495e;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 2px solid #2c3e50;
}

.accessibility-statement p {
    color: #ffffff;
    margin: 0;
    font-size: 14px;
    text-align: center;
}

.accessibility-statement a {
    color: #ffd700;
    text-decoration: underline;
}

.accessibility-statement a:hover,
.accessibility-statement a:focus {
    color: #fff;
}

/* Footer */
.t3-footer {
    background: #2c3e50;
    color: #ffffff; /* Changed for better contrast */
    padding: 50px 0 20px;
}

.t3-footer h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.t3-footer .info,
.t3-footer p {
    color: #ffffff; /* Changed from #bdc3c7 for better contrast */
    margin-bottom: 10px;
    font-size: 14px;
}

.t3-footer a {
    color: #ffffff; /* Changed for better contrast */
    text-decoration: none;
}

.t3-footer a:hover,
.t3-footer a:focus {
    color: #ffd700;
    text-decoration: underline;
    outline: 4px solid #ffd700;
    outline-offset: 3px;
}

.t3-footer ul {
    list-style: none;
    padding: 0;
}

.t3-footer ul li {
    margin-bottom: 8px;
}

.t3-copyright {
    background: #1a252f;
    padding: 20px 0;
    margin-top: 30px;
}

.t3-copyright small {
    color: #d5d5d5;
    font-size: 13px;
}

/* Mobile navbar */
.navbar-toggle {
    border-color: #ffffff;
    margin-top: 13px;
}

.navbar-toggle .icon-bar {
    background-color: #ffffff;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: #34495e;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .ja-masthead-title {
        font-size: 32px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .acm-slideshow {
        min-height: 60vh;
    }
    
    .acm-features .title h2 {
        font-size: 28px;
    }
    
    .product-content h2 {
        font-size: 28px;
    }
    
    /* Hide dropdown menu on mobile - products menu becomes a regular link */
    .navbar-nav .dropdown .dropdown-menu {
        display: none !important;
    }
    
    /* Remove dropdown arrow on mobile */
    .navbar-nav .dropdown .caret {
        display: none;
    }
    
    /* Make the dropdown link behave like a regular link on mobile */
    .navbar-nav .dropdown > a.dropdown-toggle {
        pointer-events: auto;
    }
}

/* Product Cards */
.product-card {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #bbb;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 3px solid #fff;
    }
    
    .btn-default {
        border: 3px solid #2c3e50;
    }
    
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 4px solid #000;
        outline-offset: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles for Accessibility */
@media print {
    .skip-nav,
    .t3-mainnav,
    .navbar-toggle,
    .cta-box,
    .g-recaptcha {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}
