/*
Theme Name: Future Machinery Industrial
Theme URI: https://www.jianweilingtuo.com/
Description: Custom high-end industrial B2B theme for Ningbo Future Machinery Manufacturing Co., Ltd.
Author: Accio Designer
Version: 1.1.0
Text Domain: future-machinery
*/

/* Global Reset & Typography */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@300;400;600;700&display=swap');

:root {
  --primary-blue: #0313E1;
  --dark-blue: #020EAB;
  --industrial-black: #0F0F0F;
  --deep-grey: #1A1A1A;
  --paper-white: #FFFFFF;
  --sheet-metal-grey: #F8F9FA;
  --border-grey: #E5E5E5;
  --accent-blue: #4D59FF;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--paper-white);
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--industrial-black);
  margin-top: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Animations */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-10px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
  40% {transform: translateX(-50%) translateY(-10px);}
  60% {transform: translateX(-50%) translateY(-5px);}
}

/* Section Spacing */
section {
  padding: 120px 0;
}

/* Header & Nav */
.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-grey);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  width: 100%;
}

.nav-menu {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    background: #000;
    padding: 150px 0 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    margin-left: -5px;
}

.hero-title {
    font-size: 5rem;
    color: #fff;
    margin: 0 0 30px;
    line-height: 1;
    letter-spacing: -2px;
}

/* Stats Section */
.stats-section {
    background: #0F0F0F;
    color: #fff;
    padding: 100px 0;
    border-bottom: 1px solid #222;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h2 {
    font-size: 4rem;
    color: var(--primary-blue);
    margin: 0;
}

.stat-item p {
    opacity: 0.6;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Steps Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.step-card {
    flex: 1;
    text-align: left;
    position: relative;
}

.step-icon-box {
    width: 70px;
    height: 70px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-card h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Page Hero */
.page-hero {
    background-size: cover;
    background-position: center;
    padding: 180px 0 120px;
    color: #fff;
    background-attachment: fixed;
}

.page-hero h1 {
    color: #fff;
    font-size: 4.5rem;
    margin: 0 0 25px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* Industry Card */
.industry-card {
    border: 1px solid #eee;
    transition: all 0.4s ease;
    background: #fff;
}

.industry-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-10px);
}

.industry-card .img-box {
    height: 280px;
    overflow: hidden;
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.industry-card:hover img {
    transform: scale(1.1);
}

.industry-card .content {
    padding: 35px;
}

/* Common Text Elements */
.section-subtitle {
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.section-accent {
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    margin-bottom: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  margin-left: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

/* Buttons */
.btn-primary {
  background: var(--primary-blue);
  color: #fff !important;
  padding: 16px 35px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--dark-blue);
}

.btn-outline {
  border: 2px solid var(--industrial-black);
  color: var(--industrial-black) !important;
  padding: 14px 33px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--industrial-black);
  color: #fff !important;
}

/* Footer */
.site-footer {
  background: var(--industrial-black);
  color: #fff;
  padding: 100px 0 40px;
}

/* Service Cards */
.service-card {
  border: 1px solid var(--border-grey);
  padding: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.service-card .img-box {
  height: 300px;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card .content {
  padding: 40px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

/* --- New Dropdown & Slider Styles --- */

/* 1. Dropdown Menu Navigation */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > a, 
.nav-links > li {
    display: inline-block;
    position: relative;
}

.nav-links .dropdown {
    position: absolute;
    top: 100%;
    left: 40px; /* Aligned with margin-left of nav links */
    background: #fff;
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 15px 0;
    border-top: 3px solid var(--primary-blue);
    transform: translateY(10px);
    z-index: 1100;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .dropdown a {
    display: block;
    padding: 12px 25px;
    margin: 0 !important;
    font-size: 0.75rem !important;
    color: #333 !important;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
}

.nav-links .dropdown a:last-child {
    border-bottom: none;
}

.nav-links .dropdown a:hover {
    background: #f8f9fa;
    color: var(--primary-blue) !important;
    padding-left: 30px;
}

/* 2. Industry Slider Styles (for Front Page) */
.industry-slider-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    margin-top: 40px;
}

.industry-slide {
    display: none;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    animation: slideIn 0.8s ease;
}

.industry-slide.active {
    display: grid;
}

.slide-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.slide-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid var(--border-grey);
}

.slide-images img.large {
    grid-column: span 2;
    height: 350px;
    object-fit: contain;
    background: #fdfdfd;
    padding: 10px;
    border: 1px solid #f0f0f0;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 10px;
}

/* --- Conversion-focused home page refresh --- */
.logo {
  display: flex;
  flex-direction: column;
}

.logo-main,
.logo-sub {
  font-family: 'DM Serif Display', serif;
  text-decoration: none;
  color: #111;
  line-height: 1.05;
}

.logo-main {
  font-size: 1.4rem;
  letter-spacing: 0;
}

.logo-sub {
  font-size: 0.85rem;
  color: #777;
  margin-top: 2px;
}

.logo-main span,
.logo-sub span {
  color: var(--primary-blue);
}

.nav-quote {
  padding: 12px 22px;
  font-size: 0.78rem;
  margin-left: 30px;
}

.hero--factory {
  min-height: calc(100vh - 90px);
  height: auto;
  background-size: cover;
  background-position: center;
  align-items: center;
  padding: 120px 0;
}

.hero--factory .hero-content {
  margin-left: 0;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--primary-blue);
}

.hero-lead {
  max-width: 740px;
  color: rgba(255,255,255,0.84);
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 0 0 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.85);
  color: #fff !important;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: #fff;
  color: #111 !important;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof span {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  padding: 8px 12px;
  font-size: 0.86rem;
}

.stat-item small {
  font-size: 1.35rem;
  margin-left: 4px;
}

.section-split,
.capability-section,
.industries-section,
.quote-process,
.final-cta {
  padding: 100px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-grid h2,
.section-heading h2,
.final-cta h2 {
  font-size: 3rem;
  line-height: 1.12;
  margin-bottom: 24px;
}

.split-grid p,
.section-heading p,
.final-cta p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.8;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.check-grid span {
  background: #fff;
  border: 1px solid var(--border-grey);
  padding: 14px 16px;
  font-weight: 700;
  color: #222;
}

.check-grid span::before {
  content: "✓";
  color: var(--primary-blue);
  margin-right: 10px;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
  align-items: end;
}

.image-stack img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border-grey);
}

.image-stack img:first-child {
  height: 520px;
}

.image-stack img:last-child {
  height: 360px;
  margin-bottom: 46px;
}

.capability-section,
.quote-process {
  background: var(--sheet-metal-grey);
}

.section-heading {
  max-width: 860px;
  text-align: center;
  margin: 0 auto 58px;
}

.capability-grid,
.industry-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.industry-grid-home {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.capability-card,
.industry-card {
  border-radius: 6px;
  overflow: hidden;
}

.capability-card {
  background: #fff;
  border: 1px solid var(--border-grey);
}

.capability-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.capability-card div {
  padding: 26px;
}

.capability-card h3,
.industry-card h3,
.step-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.capability-card p,
.industry-card p,
.step-card p {
  color: #666;
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0;
}

.center-action {
  text-align: center;
  margin-top: 48px;
}

.quote-process .process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quote-process .step-card {
  background: #fff;
  border: 1px solid var(--border-grey);
  padding: 28px;
  min-height: 230px;
}

.quote-process .step-card strong {
  display: block;
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 26px;
}

.final-cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(246,248,252,0.98) 0%, rgba(246,248,252,0.93) 58%, rgba(231,235,245,0.88) 100%),
    url('assets/images/blueprint-drawing-1.png') right center / 760px auto no-repeat;
  color: #111;
  border-top: 1px solid #e0e5ee;
  border-bottom: 1px solid #d7dde8;
}

.final-cta h2 {
  color: #111;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.final-cta .section-subtitle,
.final-cta p {
  color: #5e6673;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-gallery .gallery-item {
  margin: 0;
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--border-grey);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.product-gallery img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-gallery .gallery-item:hover img {
  transform: scale(1.06);
}

.product-case-section {
  padding: 95px 0;
  background: var(--sheet-metal-grey);
}

.product-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-case-card {
  background: #fff;
  border: 1px solid var(--border-grey);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-case-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #f8f8f8;
}

.product-case-card div {
  padding: 28px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-case-card h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.product-case-card p {
  color: #666;
  line-height: 1.7;
  font-size: 0.94rem;
}

.product-case-card .case-meta {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 0.82rem;
}

.product-case-card a {
  margin-top: auto;
  color: #111;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 2px solid var(--primary-blue);
  width: fit-content;
}

.factory-gallery-section,
.news-index-section {
  padding: 95px 0;
  background: #fff;
}

.factory-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: start;
}

.news-list {
  display: grid;
  gap: 28px;
}

.seo-article-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #fff;
  border: 1px solid var(--border-grey);
  overflow: hidden;
}

.seo-article-card > img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.seo-article-content {
  padding: 34px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(3,19,225,0.08);
  color: var(--primary-blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.seo-article-content h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.seo-article-content p,
.seo-article-content li {
  color: #666;
  line-height: 1.75;
}

.seo-article-content details {
  margin-top: 20px;
  border-top: 1px solid var(--border-grey);
  padding-top: 16px;
}

.seo-article-content summary {
  cursor: pointer;
  font-weight: 800;
  color: #111;
}

.seo-article-content details h3 {
  margin: 20px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.seo-article-content details h4 {
  margin: 16px 0 6px;
  font-size: 0.98rem;
  line-height: 1.4;
}

.news-sidebar {
  position: sticky;
  top: 115px;
  display: grid;
  gap: 20px;
}

.sidebar-box {
  border: 1px solid var(--border-grey);
  padding: 28px;
  background: #fff;
}

.sidebar-box h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.sidebar-box a:not(.btn-primary) {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 12px 0;
  border-top: 1px solid #eee;
  font-weight: 700;
  font-size: 0.9rem;
}

.sidebar-box a:hover {
  color: var(--primary-blue);
}

.sidebar-cta {
  background: #101010;
  color: #fff;
}

.sidebar-cta h3 {
  color: #fff;
}

.sidebar-cta p {
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem !important; }
    .stats-grid, .industry-slider-container { grid-template-columns: 1fr !important; }
    .industry-slide { grid-template-columns: 1fr !important; gap: 30px; }
    .split-grid,
    .final-cta-grid {
        grid-template-columns: 1fr;
    }
    .capability-grid,
    .industry-grid-home,
    .quote-process .process-steps,
    .factory-flow,
    .product-case-grid,
    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-layout,
    .seo-article-card {
        grid-template-columns: 1fr;
    }
    .news-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .site-header { height: auto; padding: 15px 0; }
    .nav-menu { flex-direction: column; gap: 20px; }
    .nav-links { display: none; } /* Mobile menu can be added as a separate task */
    
    .hero { padding-top: 100px; height: auto; min-height: 500px; }
    .hero-title { font-size: 2.5rem !important; }
    .hero-content { margin-left: 0 !important; padding: 0 20px; text-align: center; }
    .hero-content div { margin: 0 auto; }
    .hero--factory {
        min-height: 640px;
        padding: 76px 0;
        align-items: center;
    }
    .hero-lead {
        font-size: 1rem;
        line-height: 1.65;
    }
    .hero-actions,
    .hero-proof {
        justify-content: center;
    }
    .eyebrow {
        justify-content: center;
        letter-spacing: 2px;
        font-size: 0.72rem;
    }
    .eyebrow::before {
        display: none;
    }
    .container {
        padding: 0 22px;
    }
    section,
    .section-split,
    .capability-section,
    .industries-section,
    .quote-process,
    .final-cta {
        padding: 68px 0;
    }
    .split-grid h2,
    .section-heading h2,
    .final-cta h2 {
        font-size: 2.1rem;
    }
    .check-grid,
    .capability-grid,
    .industry-grid-home,
    .quote-process .process-steps,
    .factory-flow,
    .product-case-grid,
    .final-cta-grid,
    .product-gallery {
        grid-template-columns: 1fr;
    }
    .seo-article-content {
        padding: 24px;
    }
    .seo-article-content h2 {
        font-size: 1.45rem;
    }
    .image-stack {
        grid-template-columns: 1fr;
    }
    .image-stack img:first-child,
    .image-stack img:last-child {
        height: 300px;
        margin-bottom: 0;
    }
    .capability-card img {
        height: 220px;
    }
    
    .stats-grid { grid-template-columns: 1fr !important; gap: 30px; padding: 60px 20px !important; }
    .process-steps { flex-direction: column; gap: 50px; }
    .step-card p { margin-left: 0 !important; text-align: center; margin-top: 15px; }
    .step-icon-box { margin: 0 auto; }
    .step-card div { justify-content: center; }
    
    .page-hero { padding: 120px 0 60px; text-align: center; }
    .page-hero h1 { font-size: 2.8rem; }
    
    /* Industries Page */
    .page-industries .container > div { grid-template-columns: 1fr !important; }
    
    /* Contact Page */
    .quotation-form .form-row { grid-template-columns: 1fr !important; gap: 0; }
    .page-contact .container > div { grid-template-columns: 1fr !important; gap: 40px; }
    
    .site-footer .container { grid-template-columns: 1fr !important; text-align: center; gap: 30px; }
    .site-footer div { align-items: center !important; }
}
