/* ==========================================================================
   VR Engineering – site styles
   Clean industrial layout for a CNC / VMC machining company.
   Built on Bootstrap 5 grid + utilities.
   ========================================================================== */

:root {
    --ink: #0e1726;          /* headings, dark sections */
    --steel: #1b2738;        /* footer, dark panels */
    --text: #3d4756;         /* body copy */
    --muted: #6b7686;
    --line: #e2e6eb;
    --bg: #ffffff;
    --bg-alt: #f3f5f7;
    --accent: #019d9c;       /* brand teal (logo) */
    --accent-dark: #017e7d;
    --accent-soft: #e6f5f5;
    --radius: 6px;
    --shadow: 0 6px 24px rgba(14, 23, 38, .08);
    --font-head: 'Barlow', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
.text-muted-2 { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-vr {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.5rem;
    font-family: var(--font-head);
    font-weight: 600; font-size: 1rem; letter-spacing: .02em;
    border-radius: var(--radius);
    border: 2px solid var(--accent);
    background: var(--accent); color: #fff;
    transition: background .2s, border-color .2s, color .2s;
}
.btn-vr:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-vr.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-vr.outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-vr.outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-vr.outline-dark:hover { background: var(--ink); color: #fff; }
.btn-vr.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-vr.light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--steel);
    color: #c5ccd6;
    font-size: .875rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar a { color: #c5ccd6; }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar-list i { color: var(--accent); margin-right: .4rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(14, 23, 38, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand img { height: 56px; width: auto; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.main-nav a {
    font-family: var(--font-head);
    font-weight: 600; font-size: 1.05rem;
    color: var(--ink);
    padding: .5rem 0;
    position: relative;
}
.main-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--accent);
    transform: scaleX(0); transition: transform .2s;
}
.main-nav a:hover, .main-nav li.active a { color: var(--accent); }
.main-nav a:hover::after, .main-nav li.active a::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    width: 44px; height: 44px; font-size: 1.5rem; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background: var(--ink) center / cover no-repeat;
    padding: 120px 0 110px;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14, 23, 38, .92) 0%, rgba(14, 23, 38, .75) 55%, rgba(14, 23, 38, .45) 100%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 760px; }
.hero .lead { color: #d3d9e1; font-size: 1.15rem; max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-points { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem 2rem; color: #d3d9e1; }
.hero-points i { color: var(--accent); margin-right: .4rem; }
.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600; font-size: .9rem;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}
.hero .eyebrow { color: #5fd0cf; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    background: var(--ink) center / cover no-repeat;
    padding: 80px 0 70px;
    color: #fff;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(14, 23, 38, .78); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; font-size: .95rem; color: #c5ccd6; }
.crumbs a { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: #8994a3; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--ink); color: #c5ccd6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Stats strip ---------- */
.stats { background: var(--accent); color: #fff; padding: 36px 0; }
.stat { text-align: center; padding: .5rem 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; line-height: 1.1; }
.stat span { font-size: .95rem; opacity: .9; }

/* ---------- Service cards ---------- */
.service-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.service-card .body p { color: var(--muted); }
.service-card .link-arrow { margin-top: auto; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; }
.check-list li::before {
    content: "\F26A"; font-family: "bootstrap-icons";
    position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}

/* ---------- Capability tiles ---------- */
.cap-tile {
    height: 100%;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.cap-tile .icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent);
    font-size: 1.5rem; margin-bottom: 1rem;
}
.cap-tile h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.cap-tile p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Split (image + text) ---------- */
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }
.split-badge {
    position: absolute; right: -12px; bottom: -18px;
    background: var(--accent); color: #fff;
    padding: 1rem 1.4rem; border-radius: var(--radius);
    box-shadow: var(--shadow); text-align: center;
}
.split-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.split-badge span { font-size: .85rem; }

/* ---------- Process steps ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.process li { position: relative; padding-top: 3.75rem; }
.process li::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    position: absolute; top: 0; left: 0;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent); color: #fff;
    font-family: var(--font-head); font-weight: 700;
}
.process li::after {
    content: ""; position: absolute; top: 24px; left: 60px; right: -12px;
    height: 2px; background: rgba(1, 157, 156, .35);
}
.process li:last-child::after { display: none; }
.process h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.process p { font-size: .95rem; margin: 0; color: var(--muted); }
.section.dark .process p { color: #a9b3c0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 1rem; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- Feature list (why us / quality) ---------- */
.feature { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.feature:last-child { margin-bottom: 0; }
.feature .icon {
    flex: 0 0 48px; height: 48px; border-radius: var(--radius);
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font-size: 1.35rem;
}
.feature h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { margin: 0; opacity: .92; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }

/* ---------- Contact ---------- */
.contact-card {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.contact-card:first-child { padding-top: 0; }
.contact-card:last-child { border-bottom: 0; }
.contact-card .icon {
    flex: 0 0 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font-size: 1.2rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-card p { margin: 0; color: var(--ink); font-weight: 500; }
.contact-card address { margin: 0; font-style: normal; }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-panel label { font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.form-panel .form-control { border-radius: var(--radius); border-color: var(--line); padding: .7rem .9rem; }
.form-panel .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(1, 157, 156, .15); }
#status { margin-top: 1rem; font-weight: 500; }
#status.success { color: #0a7a3d; }
#status.error { color: #b42318; }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel); color: #a9b3c0; padding-top: 70px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.1rem; }
.site-footer a { color: #a9b3c0; }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 56px; width: auto; background: #fff; padding: 6px; border-radius: var(--radius); margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .9rem; }
.footer-contact i { color: var(--accent); margin-top: .2rem; }
.social { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 50px; padding: 20px 0; font-size: .875rem; }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 999;
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25d366; color: #fff; font-size: 1.7rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.float-wa:hover { color: #fff; background: #1ebe5b; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .main-nav ul { gap: 1.4rem; }
}
@media (max-width: 991.98px) {
    .nav-toggle { display: inline-grid; place-items: center; }
    .header-cta .btn-vr { display: none; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 20px rgba(14, 23, 38, .08);
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
    .main-nav li a { display: block; padding: .8rem 1.25rem; }
    .main-nav a::after { display: none; }
    .process { grid-template-columns: repeat(2, 1fr); }
    .process li::after { display: none; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .cta-actions { justify-content: flex-start; margin-top: 1.25rem; }
    .section { padding: 70px 0; }
    .split-badge { right: 12px; }
}
@media (max-width: 575.98px) {
    .topbar .hide-sm { display: none; }
    .hero { padding: 80px 0 70px; }
    .process { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .stat strong { font-size: 2rem; }
    .form-panel { padding: 1.25rem; }
    .brand img { height: 46px; }
}
.page-lead { color: #d3d9e1; max-width: 620px; font-size: 1.05rem; margin-bottom: 1rem; }

/* ---------- Blog ---------- */
.page-meta { color: #d3d9e1; font-size: .95rem; margin-bottom: 1rem; }
.page-meta .post-cat { background: var(--accent); color: #fff; }
.page-hero h1 { max-width: 900px; }
.post-card {
    height: 100%; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card .media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.25rem; line-height: 1.3; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent); }
.post-card .body > p:not(.post-meta) { color: var(--muted); font-size: .95rem; }
.post-card .link-arrow { margin-top: auto; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.post-cat {
    display: inline-block; padding: .15rem .6rem; border-radius: 99px;
    background: var(--accent-soft); color: var(--accent-dark);
    font-weight: 600; font-size: .78rem; letter-spacing: .02em;
}

/* Article body */
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { font-size: 1.65rem; margin-top: 2.25rem; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.5rem; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--ink); font-family: var(--font-head); }
.prose .table-wrap { overflow-x: auto; }
.prose blockquote, .prose .note {
    border-left: 4px solid var(--accent); background: var(--accent-soft);
    padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.prose .note p:last-child { margin: 0; }
.post-figure { margin: 0 0 1.5rem; }
.post-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.post-intro { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; background: #fff; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 2.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: .85rem; font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.25rem 1rem; margin: 0; color: var(--text); font-size: 1rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1.5rem; }
.post-tags span { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 99px; padding: .2rem .75rem; font-size: .85rem; color: var(--muted); }
.author-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.author-box img { width: 48px; height: auto; border-radius: 4px; }
.author-box p { margin: .25rem 0 0; font-size: .95rem; line-height: 1.6; }

/* Sidebar */
.post-sidebar { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.toc, .sidebar-cta { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; background: #fff; }
.toc ol { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.toc li { margin-bottom: .45rem; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); }
.sidebar-cta { background: var(--ink); color: #c5ccd6; border-color: var(--ink); }
.sidebar-cta h2 { color: #fff; }
.sidebar-cta p { font-size: .95rem; }
.sidebar-phone { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: .9rem; color: #fff; font-weight: 600; }
.sidebar-phone:hover { color: #5fd0cf; }
@media (max-width: 991.98px) {
    .post-sidebar { position: static; }
}
