/* Indocore Machining — shared design system */

:root {
    --ink: #14161a;
    --steel: #22262c;
    --steel-light: #3a4048;
    --paper: #eef0f3;
    --paper-card: #ffffff;
    --accent: #ff7a1a;
    --accent-dim: #c65c0e;
    --muted: #aab2bc;
    --text: #2a2d32;
}

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

body {
    font-family: 'IBM Plex Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--paper);
    color: var(--text);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { text-decoration: none; color: inherit; }

h1, h2, h3, .logo, nav ul li a, .eyebrow, .spec-num, .value-card h3, .timeline-year {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
}

img { max-width: 100%; display: block; }

/* ---------- HEADER / NAV ---------- */
header {
    background-color: var(--ink);
    color: #ffffff;
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
}
.logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
}
.logo span { color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px;
    height: 2px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav ul {
    display: flex;
    list-style: none;
}
nav ul li { margin-left: 34px; }
nav ul li a {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
nav ul li a:hover,
nav ul li a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    transition: 0.3s;
}

/* ---------- HERO (home) with 3D bearing ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(17,19,23,0.92), rgba(17,19,23,0.94)), var(--ink);
    color: white;
    padding: 70px 50px 90px;
}
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,122,26,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,122,26,0.07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 30% 40%, black 10%, transparent 70%);
}
.hero-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 30px;
    align-items: center;
    min-height: 480px;
}
.eyebrow {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(255,122,26,0.45);
    padding: 6px 14px;
    border-radius: 3px;
    margin-bottom: 22px;
}
.hero-text h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 620px;
}
.hero-text p {
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 540px;
    color: #c3c9d0;
}
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 0 var(--accent-dim), 0 10px 20px rgba(0,0,0,0.35);
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--accent-dim), 0 14px 24px rgba(0,0,0,0.4);
}
.btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--accent-dim), 0 4px 10px rgba(0,0,0,0.35);
}
.btn-outline {
    background: transparent;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.35);
    margin-left: 14px;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-3px);
    box-shadow: none;
}
.hero-visual {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visual-rings {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px dashed rgba(255,122,26,0.25);
}
.hero-visual-rings::before {
    content: '';
    position: absolute;
    inset: 46px;
    border-radius: 50%;
    border: 1px dashed rgba(170,178,188,0.2);
}
#bearing-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}
.hero-visual-caption {
    position: absolute;
    bottom: 6px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- PAGE HERO (secondary pages) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(17,19,23,0.92), rgba(17,19,23,0.94)), var(--ink);
    color: white;
    padding: 64px 50px;
    text-align: center;
}
.page-hero-inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}
.page-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 14px;
}
.page-hero p {
    font-size: 17px;
    color: #c3c9d0;
    max-width: 560px;
    margin: 0 auto;
}
.breadcrumb {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--accent); }

/* ---------- STATS STRIP ---------- */
.stats-strip {
    background: var(--paper-card);
    border-bottom: 1px solid rgba(20,22,26,0.08);
}
.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
}
.stat-num {
    font-family: 'Rajdhani', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--ink);
}
.stat-num span { color: var(--accent); }
.stat-label {
    font-size: 14px;
    color: #6b7280;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ---------- GENERIC SECTIONS ---------- */
section.block { padding: 70px 20px 80px; max-width: 1200px; margin: 0 auto; }
.section-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 44px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}
.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.section-lede {
    max-width: 640px;
    margin: -24px auto 44px;
    text-align: center;
    color: #5a6068;
    font-size: 16px;
}

/* ---------- SERVICE / VALUE / GALLERY CARDS ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    perspective: 1000px;
}
.service-card, .tilt-card {
    position: relative;
    background: var(--paper-card);
    padding: 34px 24px 28px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(20,22,26,0.08);
    border-top: 4px solid var(--ink);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, border-color 0.3s;
    will-change: transform;
    text-align: center;
}
.service-card:hover, .tilt-card:hover { border-top-color: var(--accent); }
.card-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transform: translateZ(40px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.service-card h3, .tilt-card h3 {
    margin-bottom: 15px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
    transform: translateZ(20px);
}
.service-card p, .tilt-card p { transform: translateZ(10px); }

.spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
    transform: translateZ(15px);
}
.spec-chip {
    font-size: 12px;
    letter-spacing: 0.3px;
    background: var(--paper);
    border: 1px solid rgba(20,22,26,0.1);
    color: #4b5157;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.capability-list {
    list-style: none;
    text-align: left;
    margin-top: 16px;
    transform: translateZ(12px);
}
.capability-list li {
    font-size: 14.5px;
    color: #565c63;
    padding: 5px 0 5px 20px;
    position: relative;
}
.capability-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
}

/* ---------- ABOUT: values + timeline ---------- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.value-card {
    background: var(--paper-card);
    border-radius: 10px;
    padding: 26px 22px;
    box-shadow: 0 10px 30px rgba(20,22,26,0.06);
    border-left: 4px solid var(--accent);
}
.value-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }
.value-card p { font-size: 14.5px; color: #5a6068; }

.timeline {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(255,122,26,0.35);
}
.timeline-item { position: relative; padding: 0 0 34px 24px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,122,26,0.18);
}
.timeline-year {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}
.timeline-item p { color: #5a6068; font-size: 15px; margin-top: 4px; }

.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: start;
    margin-bottom: 70px;
}
.story-grid p { margin-bottom: 16px; color: #4a5057; font-size: 16.5px; }
.story-visual {
    background: var(--paper-card);
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(20,22,26,0.06);
    border-top: 4px solid var(--accent);
}
.story-visual h3 { color: var(--ink); font-size: 18px; margin-bottom: 12px; }
.story-visual ul { list-style: none; }
.story-visual li {
    font-size: 14.5px;
    color: #565c63;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(20,22,26,0.1);
    display: flex;
    justify-content: space-between;
}
.story-visual li:last-child { border-bottom: none; }
.story-visual li strong { color: var(--ink); }

/* ---------- GALLERY (technical line-art cards) ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}
.gallery-card {
    background: var(--paper-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20,22,26,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(20,22,26,0.14);
}
.gallery-art {
    background:
        linear-gradient(rgba(255,122,26,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,122,26,0.05) 1px, transparent 1px),
        var(--ink);
    background-size: 18px 18px, 18px 18px, auto;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-art svg { width: 108px; height: 108px; }
.gallery-body { padding: 20px 22px 24px; }
.gallery-body h3 { color: var(--ink); font-size: 19px; margin-bottom: 6px; }
.gallery-body p { color: #5a6068; font-size: 14px; margin-bottom: 14px; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
    background: linear-gradient(120deg, var(--ink), var(--steel-light));
    color: white;
    padding: 56px 20px;
    text-align: center;
}
.cta-banner h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.cta-banner p { color: #c3c9d0; margin-bottom: 26px; }

/* ---------- ABOUT / dark section ---------- */
.about-dark {
    background-color: var(--ink);
    color: white;
    padding: 70px 20px;
    text-align: center;
}
.about-dark .about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: #c3c9d0;
}

/* ---------- CONTACT ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 20px 80px;
}
.contact-form {
    background: var(--paper-card);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(20,22,26,0.08);
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
}
.submit-btn {
    background-color: var(--ink);
    color: white;
    border: none;
    width: 100%;
    padding: 13px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 6px 0 #000000, 0 10px 18px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s;
}
.submit-btn:hover { background-color: var(--accent); transform: translateY(-2px); }
.submit-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #000000, 0 4px 10px rgba(0,0,0,0.25); }
.submit-btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.form-status {
    margin-top: 14px;
    font-size: 14.5px;
    font-weight: 600;
    display: none;
    padding: 10px 12px;
    border-radius: 4px;
}
.form-status.visible { display: block; }
.form-status.success { background: #eaf7ee; color: #1e7a3d; }
.form-status.error { background: #fbeaea; color: #b3261e; }

.contact-info-card {
    background: var(--ink);
    color: white;
    border-radius: 8px;
    padding: 30px 26px;
    box-shadow: 0 10px 30px rgba(20,22,26,0.15);
}
.contact-info-card h3 { font-size: 20px; margin-bottom: 18px; color: var(--accent); }
.contact-info-row { padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.12); }
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .label {
    font-size: 12.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.contact-info-row .value { font-size: 15.5px; color: #e6e9ec; }

/* honeypot field */
.hp-field { position: absolute; left: -5000px; }

/* ---------- FOOTER ---------- */
footer {
    background-color: var(--steel);
    color: #c3c9d0;
    padding: 46px 50px 22px;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { display: inline-block; margin-bottom: 12px; }
.footer-brand p { font-size: 14.5px; color: #9198a1; max-width: 320px; }
.footer-col h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 18px;
    font-size: 13.5px;
    color: #7d848d;
    text-align: center;
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { height: 300px; order: -1; }
    .story-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    header { padding: 16px 20px; position: relative; }
    .nav-toggle { display: flex; }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ink);
        border-bottom: 3px solid var(--accent);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    nav.open { max-height: 320px; }
    nav ul { flex-direction: column; padding: 10px 20px 20px; }
    nav ul li { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .hero-text h1 { font-size: 32px; }
    .hero { padding: 50px 20px 60px; }
    .page-hero { padding: 50px 20px; }
    .page-hero h1 { font-size: 30px; }
    footer { padding: 40px 20px 20px; }
}
