/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.preloader.fade-out {
    opacity: 0;
}

.preloader.hidden {
    display: none;
}

.preloader-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content Wrapper Styles */
.content-wrapper {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.content-wrapper.loaded {
    display: block;
    opacity: 1;
}

/* General Styles */
:root {
    /* Updated primary brand color (green from logo) */
    --primary-color: #006b3f;
    /* Override Bootstrap primary variables */
    --bs-primary: #006b3f;
    --bs-primary-rgb: 0, 107, 63;
    /* Ensure standard link colors also use green accents */
    --bs-link-color: #006b3f;
    --bs-link-hover-color: #004c30;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --transition-speed: 0.3s;
    /* Ensure Bootstrap focus ring and link RGB use green */
    --bs-link-color-rgb: 0, 107, 63;
    --bs-link-hover-color-rgb: 0, 76, 48;
    --bs-focus-ring-color: rgba(0, 107, 63, 0.25);
    --bs-btn-focus-shadow-rgb: 0,107,63;
    /* yellow  = 255,193,7  ❌
       green   =   0,107,63 ✅ */
    --bs-warning-rgb: 0, 107, 63;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.header-spacer {
    height: 76px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/optimized_GeneralMachining.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    margin-top: -76px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 107, 63, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Capabilities Hero */
.capabilities-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/optimized_Capabilities_Tubes.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    margin-top: -76px;
    position: relative;
    overflow: hidden;
}

.capabilities-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 107, 63, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.capabilities-hero .container {
    position: relative;
    z-index: 2;
}

/* Quality Hero */
.quality-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/QualityPage3.jpg');
    background-size: 100%;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    margin-top: -76px;
    position: relative;
    overflow: hidden;
}

.quality-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 107, 63, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.quality-hero .container {
    position: relative;
    z-index: 2;
}

/* Contact Hero */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/optimized_GeneralMachining1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    margin-top: -76px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 107, 63, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Cards */
.card {
    transition: all var(--transition-speed) ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 50px;
    transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Quality Page
.quality-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/QualityPage3.jpg');
    background-size: 100%;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    position: relative;
} */

/* Capabilities Page */
.capability-card {
    margin-bottom: 2rem;
}

/* About Page */
.about-section {
    padding: 5rem 0;
}

.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Video Sections */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    display: block;
    transition: transform var(--transition-speed) ease;
}

.video-container:hover video {
    transform: scale(1.02);
}
.featured-card {
    position: relative;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .quality-bg {
        background-attachment: scroll;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Override Bootstrap outline-primary to use brand green */
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .25) !important;
}

/* Ensure card focus/hover outline is green */
.card:hover,
.card:focus,
.card:focus-within,
.featured-card:hover,
.featured-card:focus,
.featured-card:focus-within {
    border-color: var(--primary-color) !important;
}

/* Overrides for Quality page components */
.action-tag {
    background-color: #006b3f !important;
    color: #fff !important;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}
.featured-action-badge,
.section-badge {
    display: inline-block;
    background-color: rgba(0, 107, 63, 0.1);
    color: #006b3f;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}
.action-card,
.action-card:hover,
.action-card:focus,
.action-card:focus-within,
.featured-action,
.featured-action:hover {
    border: 2px solid #006b3f !important;
}

/* Global Overrides for Bootstrap primary utilities */
.text-primary {
    color: var(--primary-color) !important;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}
.hero-badge {
    display: inline-block;
    background-color: #006b3f !important;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}
/* — updated badge + button styles — */
.badge.bg-primary {
    display: inline-block !important;
    background-color: rgba(0, 107, 63, 0.1) !important;
    color: #006b3f !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* keep button rules separate */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color:     var(--primary-color) !important;
}

/* Footer icons */
footer li i,
footer a i {
    color: var(--primary-color) !important;
}
/* Back-to-top arrow icon */
#back-to-top i {
    color: #ffffff !important;
}

/* === Process-card icons === */
.process-card {                     /* the card is already position:relative in minified CSS,
                                       but add here too in case that ever changes             */
    position: relative;
}

.process-card-icon {
    top: 5px;          /* push down a bit so it isn't cut off */
    left: 5px;         /* anchor to left edge */
    transform: none;    /* no centering translate needed */

    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

/* optional: keep the orange variant */
.process-card-icon.star {
    background: #006b3f;
}

/* === Award icon circle (Quality Overview heading) === */
#quality-overview h2 i.fa-award {
    background: var(--primary-color);   /* Federal-green circle */
    color: #fff !important;             /* white icon */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;                  /* keep icon nicely centered */
    line-height: 1;                     /* no extra vertical space */
}

/* optional: if any bg-warning elements contain text, force white text for contrast */
.bg-warning {
    color: #fff !important;
}

/* cursor cue for zoom-able images */
.lightbox-enabled {
    cursor: zoom-in;
}

/* let click pass through gradient/icon/overlay layers */
.card-img-overlay-gradient,
.card-img-icons,
.card-icon-badge,
.capability-overlay,
.capability-overlay-content {
    pointer-events: none;
}

/* === Equipment cards – round the whole box === */
.equipment-card {
    border-radius: 10px !important;   /* nicely rounded corners */
    overflow: hidden;                 /* keep image clipped to radius */
}

/* make the top image follow the same curve */
.equipment-card .equipment-image img {
    border-radius: 10px 10px 0 0 !important;
} 

/* Equipment Cards Image Fix */
.rotate-90 {
    transform: rotate(90deg);
    transform-origin: center center;
    width: 100%;
    height: auto;
    max-width: none;
}

/* fine-tune cropping for rotated capability photo */
.capability-image img.rotate-90 {
    object-position: center center;
    width: 105%;
    height: 175%;
    object-fit: cover;
}


.equipment-image {
    height: 220px;      /* mobile default */
    overflow: hidden;   /* crop overflow to keep card shape */
}
/* Adjust image height on larger screens */
@media (min-width: 768px) {
    .equipment-image { height: 300px; }
}
@media (min-width: 1200px) {
    .equipment-image { height: 380px; }
}

/* Capability Cards Image Height (match facility cards) */
.capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.capability-image {
    height: 220px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .capability-image { height: 300px; }
}
@media (min-width: 1200px) {
    .capability-image { height: 380px; }
}

.equipment-image img {
    width: 100%;        /* ensure full width fill */
    height: 100%;       /* ensure full height fill */
    object-fit: cover;  /* scale & crop to fill without distortion */
}

/* Stats Section Adjustments */
.stats-item .stats-number {
    font-size: 1.25rem; /* Smaller than default h2 */
    font-weight: 600;
    line-height: 1.3;
}
@media (min-width: 768px) {
    .stats-item .stats-number {
        font-size: 1.5rem;
    }
}
.stats-item .stats-icon i {
    color: rgba(255, 255, 255, 0.85);
} 