/********** Cinray Metal — Industrial Design System **********/
:root {
    /* Core palette */
    --steel-dark: #14191f;
    --steel-mid: #2a323d;
    --steel: #4a5568;
    --steel-light: #718096;
    --steel-pale: #a0aec0;
    --steel-surface: #e2e8f0;

    /* Brand */
    --primary: #1a365d;
    --primary-deep: #0f1f33;

    /* Industrial accent — safety orange replaces gold */
    --accent: #e85d04;
    --accent-hover: #c44d03;
    --accent-glow: rgba(232, 93, 4, 0.25);

    /* Surfaces */
    --concrete: #f0efe9;
    --concrete-dark: #e5e3db;
    --white: #ffffff;
    --off-white: #fafaf9;

    /* Text */
    --text-primary: #1a202c;
    --text-body: #4a5568;
    --text-muted: #718096;
    --text-on-dark: #e2e8f0;
    --text-on-accent: #ffffff;

    /* Borders — sharp & defined */
    --border-light: #d5d8dc;
    --border-mid: #b0b8c4;

    /* Typography stack — condensed industrial feel */
    --font-display: 'Franklin Gothic Medium', 'Franklin Gothic', 'ITC Franklin Gothic', 'Arial Narrow', 'Helvetica Neue Condensed', system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Measures */
    --section-gap: 5rem;
    --content-max: 1140px;
    --radius-sm: 2px;
    --radius-md: 4px;

    /* Layers */
    --z-1: 1;
    --z-nav: 1000;
    --z-overlay: 10;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6,
.display-4, .display-6,
.h1, .h2, .h3, .h4, .h5 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--steel-dark);
    text-transform: uppercase;
}

h1, .h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; }
h2, .h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.15; }
h3, .h3 { font-size: 1.35rem; line-height: 1.25; }
h4, .h4 { font-size: 1.15rem; line-height: 1.3; }

.display-4 { font-weight: 800; letter-spacing: -0.02em; }
.display-6 { font-weight: 700; letter-spacing: -0.01em; }

p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

small, .text-muted { color: var(--text-muted) !important; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    padding: 0.7em 1.8em;
    border: 2px solid transparent;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 0.85em 2.2em;
    font-size: 0.95rem;
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-on-accent);
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-on-accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-accent:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
    background: transparent;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-deep);
    border-color: var(--primary-deep);
    color: #fff;
}

.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-square { width: 40px; height: 40px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/* ================================================================
   UTILITY: INDUSTRIAL DIVIDERS & ACCENTS
   ================================================================ */
.industrial-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1.25rem 0;
    position: relative;
}
.industrial-divider::after {
    content: '';
    position: absolute;
    left: 68px;
    top: 0;
    width: 4px;
    height: 4px;
    background: var(--steel);
}
.industrial-divider.center {
    margin-left: auto;
    margin-right: auto;
}
.industrial-divider.center::after { left: 68px; }

.section-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* ================================================================
   TEXTURES & BACKGROUNDS
   ================================================================ */
.bg-steel-gradient {
    background: linear-gradient(160deg, var(--steel-dark) 0%, #1a2735 40%, var(--steel-mid) 100%);
}
.bg-concrete {
    background-color: var(--concrete);
}

/* Diamond-plate / safety pattern */
.bg-caution-stripe {
    background: repeating-linear-gradient(
        -45deg,
        var(--accent) 0px,
        var(--accent) 4px,
        var(--steel-dark) 4px,
        var(--steel-dark) 14px
    );
}

/* Subtle steel texture overlay */
.texture-steel {
    position: relative;
}
.texture-steel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.015) 2px,
            rgba(0,0,0,0.015) 4px
        );
    pointer-events: none;
    z-index: var(--z-overlay);
}

/* Diagonal tech lines */
.bg-blueprint {
    background-color: var(--primary-deep);
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ================================================================
   CARDS — Industrial
   ================================================================ */
.industrial-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all .3s ease;
}
.industrial-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.industrial-card .card-accent-bar {
    height: 4px;
    background: var(--accent);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Feature card with top accent */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border-top: 4px solid var(--accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    height: 100%;
    transition: box-shadow .25s;
}
.feature-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.feature-card .feature-icon {
    font-size: 2.25rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ================================================================
   NAVBAR — Industrial
   ================================================================ */
.navbar-dark {
    background: var(--steel-dark) !important;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff !important;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7) !important;
    padding: 0.6rem 1rem;
    transition: color .2s;
    position: relative;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent) !important;
}
.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler { border-color: rgba(255,255,255,0.2); }
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--accent); outline: none; }

.navbar-dark .navbar-nav .dropdown-menu {
    background: var(--steel-dark);
    border: 1px solid var(--steel-mid);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-sm);
}
.navbar-dark .navbar-nav .dropdown-item {
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.navbar-dark .navbar-nav .dropdown-item:hover {
    background: var(--steel-mid);
    color: var(--accent);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link { padding: 0.5rem 1rem; }
    .navbar-dark .navbar-nav .nav-link::after { display: none; }
    .navbar-dark .navbar-nav {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
}

/* ================================================================
   HERO SECTION — Industrial
   ================================================================ */
.hero-industrial {
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

/* Angular cut — industrial edge */
.hero-industrial::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--off-white);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}

/* Safety-stripe accent at bottom */
.hero-industrial .hero-stripe {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 8px;
    z-index: 3;
    background: repeating-linear-gradient(
        90deg,
        var(--accent) 0px,
        var(--accent) 20px,
        var(--steel-dark) 20px,
        var(--steel-dark) 36px
    );
}

.hero-industrial .hero-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.4em 1em;
    margin-bottom: 1.5rem;
    background: rgba(232, 93, 4, 0.08);
}

.hero-industrial .hero-img {
    border: 4px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    transition: all .4s ease;
}
.hero-industrial .hero-img:hover {
    border-color: var(--accent);
}

@media (max-width: 991.98px) {
    .hero-industrial { min-height: auto; padding: 4rem 0; }
    .hero-industrial::after { height: 30px; }
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-header {
    margin-bottom: 3rem;
}
.section-header .eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-header h2 {
    margin-bottom: 0.75rem;
}
.section-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

.section-header.text-center .subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================
   STATS BAR — Industrial
   ================================================================ */
.stats-bar {
    background: var(--steel-dark);
    border-top: 4px solid var(--accent);
    border-bottom: 4px solid var(--accent);
    padding: 2.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item .stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-item .stat-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel-pale);
}

/* ================================================================
   PRODUCT CARD — Industrial
   ================================================================ */
.product-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all .3s ease;
    height: 100%;
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.product-card .product-img-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--concrete-dark);
}

.product-card .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

/* Grade badge */
.product-card .grade-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--text-on-accent);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3em 0.8em;
    border-radius: var(--radius-sm);
}

.product-card .product-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-card .product-body h3 {
    font-size: 1.1rem;
    margin: 0;
}

.product-card .product-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.product-card .product-body .btn {
    align-self: flex-start;
}

/* ================================================================
   PAGE HEADER (inner pages)
   ================================================================ */
.page-header {
    background: linear-gradient(160deg, var(--steel-dark) 0%, #1a2735 60%, var(--steel-mid) 100%);
    padding: 3.5rem 0;
    border-bottom: 4px solid var(--accent);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 12px,
        rgba(255,255,255,0.05) 12px,
        rgba(255,255,255,0.05) 14px
    );
}

.page-header h1 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-header .breadcrumb-item a {
    color: var(--accent);
}

.page-header .breadcrumb-item.active {
    color: var(--steel-pale);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--steel);
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-detail h5 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--steel-dark);
}

.contact-detail p {
    margin: 0;
    color: var(--text-body);
    font-size: 0.95rem;
}

/* Form styling */
.form-control {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    padding: 0.75em 1em;
    font-size: 0.95rem;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

.form-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--steel-dark);
    margin-bottom: 0.4rem;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(232,93,4,0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(26,54,93,0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    color: var(--steel-pale);
    background: var(--steel-dark);
}

.footer h5 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
}

.footer .btn.btn-link {
    display: block;
    padding: 0.25rem 0;
    color: var(--steel-pale);
    font-size: 0.9rem;
    text-align: left;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    transition: color .2s, transform .2s;
}

.footer .btn.btn-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer .footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer .footer-contact i {
    color: var(--accent);
    width: 18px;
}

/* Copyright bar */
.copyright-bar {
    background: #0d1319;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: var(--steel);
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
    position: fixed;
    display: none;
    right: 24px;
    bottom: 24px;
    z-index: 99;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(232,93,4,0.4);
    transition: all .25s;
    font-size: 1.1rem;
}
.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(232,93,4,0.5);
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ================================================================
   SPEC TABLE — Industrial
   ================================================================ */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--steel-dark);
    color: #ffffff;
    padding: 0.8rem 1rem;
    text-align: left;
}

.spec-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-body);
}

.spec-table tr:nth-child(even) td {
    background: var(--concrete);
}

.spec-table tr:hover td {
    background: rgba(232,93,4,0.04);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 767.98px) {
    :root { --section-gap: 3rem; }

    .hero-industrial { min-height: auto; }

    .stat-item .stat-value { font-size: 1.8rem; }

    .product-card .product-img-wrap { height: 200px; }

    .page-header { padding: 2.5rem 0; }
    .page-header h1 { font-size: 1.6rem; }

    .footer h5 { margin-top: 1rem; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-industrial { min-height: 55vh; }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    .navbar, .back-to-top, .hero-stripe, footer { display: none !important; }
    body { font-size: 12pt; color: #000; }
}
