/* ============================================================
   MEIREN ALUMINUM - Professional Aluminum Door Manufacturer
   Main Stylesheet (English Only · Multi-Page)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2640;
    --primary-light: #2a5078;
    --accent: #c49b4a;
    --accent-light: #d4b36a;
    --accent-dark: #a07e2e;
    --bg-dark: #0d1b2a;
    --bg-section: #f8f9fb;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-body: #444444;
    --text-light: #777777;
    --text-white: #ffffff;
    --border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    --header-height: 80px;
    --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; }
.section--dark { background: var(--bg-section); }
.section--dark-plus { background: var(--bg-dark); color: rgba(255,255,255,0.8); }

/* ---------- Section Header ---------- */
.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(196, 155, 74, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.section--dark-plus .section__title { color: #fff; }

.section__desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.section--dark-plus .section__desc { color: rgba(255,255,255,0.6); }

/* ---------- Page Banner ---------- */
.page-banner {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 100%);
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(196, 155, 74, 0.08), transparent 60%);
    z-index: 1;
}

.page-banner .container { position: relative; z-index: 2; }

.page-banner__badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid rgba(196, 155, 74, 0.4);
    color: var(--accent-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-banner__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.page-banner__subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font-body);
}

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

.btn--primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 155, 74, 0.35);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn--outline-dark {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: 10px 22px; font-size: 13px; }

.btn--center {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ---------- Header / Navigation ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header.scrolled {
    background: rgba(13, 27, 42, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav__logo-img { height: 44px; width: auto; }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    padding: 8px 16px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--accent);
    background: rgba(196, 155, 74, 0.1);
}

.nav__cta {
    margin-left: 12px;
    padding: 8px 20px !important;
    background: var(--accent);
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600 !important;
}

.nav__cta:hover {
    background: var(--accent-dark) !important;
}

.nav__toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ---------- Hero (Home Page) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 40%, #1a3a5c 70%, #0d1b2a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(196, 155, 74, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(196, 155, 74, 0.06) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(60deg, transparent, transparent 40px, rgba(255,255,255,0.008) 40px, rgba(255,255,255,0.008) 42px),
        repeating-linear-gradient(-60deg, transparent, transparent 40px, rgba(255,255,255,0.008) 40px, rgba(255,255,255,0.008) 42px);
    z-index: 1;
    opacity: 0.5;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/factory/工厂里面的图片1.JPG') center/cover no-repeat;
    opacity: 0.12;
    filter: brightness(0.6);
}

.hero__content { position: relative; z-index: 2; max-width: 900px; padding: 0 24px; }

.hero__badge {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid rgba(196, 155, 74, 0.4);
    color: var(--accent-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}

.hero__title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero__title span {
    display: block;
    font-size: 0.35em;
    font-weight: 400;
    color: rgba(255,255,255,0.65);
    margin-top: 10px;
    letter-spacing: 3px;
}

.hero__subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 50px;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero__stat { text-align: center; }

.hero__stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.hero__stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
}

.hero__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.5);
    font-size: 20px;
    animation: bounce 2s infinite;
}

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

/* ---------- About Page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img { width: 100%; height: 480px; object-fit: cover; }

.about-experience {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-exp-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.about-exp-text {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.9;
}

/* Feature cards with icons */
.features-grid { display: flex; flex-direction: column; gap: 28px; }

.feature-item { display: flex; gap: 20px; align-items: flex-start; }

.feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.feature-item h3 { font-size: 18px; margin-bottom: 4px; color: var(--primary-dark); }

.feature-item p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ---------- Products Page ---------- */
.products__filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.products__filter {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #fff;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.products__filter:hover,
.products__filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.products__item {
    transition: 0.4s ease;
}

.products__item.hidden {
    opacity: 0;
    transform: scale(0.9);
    position: absolute;
    pointer-events: none;
}

.products__card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.products__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.products__card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.products__card:hover img { transform: scale(1.05); }

.products__info { padding: 20px; }

.products__info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.products__info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.products__tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(26, 58, 92, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(8px);
}

.lightbox.active { display: flex; }

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.lightbox__close:hover { color: var(--accent); }

.lightbox__image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox__caption {
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
    font-size: 14px;
}

/* ---------- Technology Page ---------- */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.tech-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.tech-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.tech-spec {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tech-spec:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.tech-spec i {
    font-size: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.tech-spec strong {
    display: block;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.tech-spec p { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* Honeycomb gallery */
.honeycomb-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.honeycomb-gallery img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.honeycomb-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

/* ---------- Factory Page ---------- */
.factory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }

.factory-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

.factory-card:hover img { transform: scale(1.08); }

.factory-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
}

.factory-card:hover .factory-overlay { opacity: 1; }

.factory-overlay i { font-size: 28px; }
.factory-overlay span { font-size: 15px; font-weight: 600; }

.factory-certs {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.factory-cert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
}

.factory-cert-item i { font-size: 22px; color: var(--accent); }

/* Factory stats row */
.factory-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.factory-stat {
    padding: 32px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.factory-stat__number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.factory-stat__label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
    display: block;
}

/* ---------- Contact Page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover { border-color: var(--accent); }

.contact-card i {
    font-size: 22px;
    color: var(--accent);
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text-dark); }
.contact-card a, .contact-card p { font-size: 14px; color: var(--text-light); }
.contact-card a:hover { color: var(--accent); }

.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-body);
    background: #fafbfc;
    transition: var(--transition);
    outline: none;
}

.contact-input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196, 155, 74, 0.1);
}

.contact-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-textarea { resize: vertical; min-height: 120px; }

/* ---------- Home Sections ---------- */
/* Home About Preview */
.home-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.home-about__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.home-about__image img { width: 100%; height: 420px; object-fit: cover; }

.home-about__badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

/* Home Products Preview */
.home-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Home Technology Preview */
.home-tech {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.home-tech__image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-light); }

/* Service Process */
.process-flow { margin-top: 80px; }
.process-flow h3 { text-align: center; font-size: 24px; margin-bottom: 40px; color: var(--primary-dark); }

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    padding: 24px 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    min-width: 130px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.process-step-num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step i { font-size: 28px; color: var(--primary); margin-bottom: 10px; display: block; }
.process-step span { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.process-step-arrow { color: var(--accent); font-size: 18px; }

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 { color: #fff; font-size: 36px; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 30px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer__brand p { font-size: 14px; line-height: 1.8; }

.footer__links h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }

.footer__links a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    padding: 6px 0;
    transition: var(--transition);
}

.footer__links a:hover { color: var(--accent); padding-left: 6px; }

.footer__social { display: flex; gap: 12px; }

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    transition: var(--transition);
}

.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-4px); }

/* ---------- Animations ---------- */
[data-aos] { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .products__grid, .home-products { grid-template-columns: repeat(3, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid, .about-grid, .home-about, .home-tech { grid-template-columns: 1fr; gap: 40px; }
    .about-image img, .home-about__image img { height: 360px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .factory-stats { grid-template-columns: repeat(2, 1fr); }
    .honeycomb-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }
    .section { padding: 70px 0; }
    .page-banner { padding: 130px 0 60px; }

    /* Mobile Nav */
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(13, 27, 42, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .nav__menu.active { transform: translateY(0); }
    .nav__cta { margin-left: 0; width: 100%; text-align: center; }
    .nav__toggle { display: block; }
    .nav__logo-img { height: 34px; }

    /* Hero */
    .hero__stats { gap: 28px; }
    .hero__stat-number { font-size: 32px; }

    /* Products */
    .products__grid, .home-products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .products__card img { height: 200px; }

    /* Factory */
    .factory-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-row { grid-template-columns: 1fr; }

    /* Service */
    .service-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

    .process-steps { flex-direction: column; align-items: center; }
    .process-step-arrow { transform: rotate(90deg); }
    .tech-specs { grid-template-columns: 1fr; }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .factory-certs { gap: 24px; }
    .factory-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .honeycomb-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .factory-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .products__grid, .home-products { grid-template-columns: 1fr 1fr; gap: 12px; }
    .products__card img { height: 160px; }
    .products__info { padding: 14px; }
    .products__info h3 { font-size: 14px; }

    .hero__buttons { flex-direction: column; align-items: center; }
    .hero__stat { flex: 1 1 40%; }
    .factory-grid { grid-template-columns: 1fr; }
    .section__title { font-size: 24px !important; }
    .contact-form-wrapper { padding: 24px; }
    .factory-stats { grid-template-columns: 1fr; }
    .honeycomb-gallery { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
    .header, .back-to-top, .hero__scroll { display: none; }
    .hero { min-height: auto; padding: 40px 0; }
}
