/*
 Theme Name:   HTP Phuoc Thanh Modern
 Theme URI:    https://phuocthanhvn.com
 Description:  Premium B2B child theme for HTP Phuoc Thanh — Precision Engineering
 Author:       HTP Dev Team
 Author URI:   https://phuocthanhvn.com
 Template:     astra
 Version:      2.0.0
 Text Domain:  astra-child-htp
 License:      Proprietary
*/

/* ==========================================================================
   0. RESET
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ==========================================================================
   1. DESIGN TOKENS — LIGHT B2B THEME
   ========================================================================== */
:root {
    /* Primary */
    --primary: #0A66C2;
    --primary-light: #1A8FFF;
    --primary-dark: #064080;
    /* Accent */
    --accent: #00A3E0;
    --accent-warm: #FF6B35;
    /* Backgrounds */
    --bg: #FFFFFF;
    --bg-alt: #F5F7FA;
    --bg-dark: #0A1628;
    /* Cards */
    --card-bg: #FFFFFF;
    --card-border: rgba(0,0,0,0.08);
    /* Text */
    --text: #1A1A2E;
    --text-secondary: #555B6E;
    --text-muted: #8892A4;
    /* Shadows */
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    /* Typography */
    --font-h: 'Be Vietnam Pro', sans-serif;
    --font-b: 'Inter', sans-serif;
    --fs-hero: clamp(2.2rem, 5vw, 3.5rem);
    --fs-h2: clamp(1.6rem, 3.5vw, 2.3rem);
    --fs-h3: clamp(1rem, 2vw, 1.3rem);
    --fs-body: clamp(0.9rem, 1.1vw, 1rem);
    /* Spacing */
    --container: 1200px;
    --radius: 16px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. GLOBAL
   ========================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-b);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
/* Override Astra defaults */
body, .ast-separate-container, .ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post, #primary, #secondary {
    background-color: transparent !important;
    padding: 0 !important; margin: 0 !important;
}
.site-content .ast-container { max-width: 100% !important; padding: 0 !important; }
.entry-content { margin: 0 !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .3s; }
a:hover { color: var(--primary-light); }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.2; color: var(--text); }
section { position: relative; z-index: 1; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 5%; }
.overline { color: var(--primary); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; margin-bottom: .5rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: var(--fs-h2); margin-bottom: .75rem; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 0; transition: all var(--transition);
    background: rgba(255,255,255,0.8); backdrop-filter: blur(20px);
}
.site-header.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
    padding: .6rem 0;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--container); margin: 0 auto; padding: 0 5%;
}
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo img, .logo-img { height: 40px; width: auto; }
.logo-text { font-family: var(--font-h); font-size: 1.05rem; font-weight: 700; color: var(--text); }
.logo-text span { color: var(--primary); font-size: .65rem; display: block; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { color: var(--text-secondary); font-size: .9rem; font-weight: 500; transition: color .3s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); font-weight: 600; }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(10, 102, 194, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(10, 102, 194, 0.1);
}
.lang-link {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: all 0.3s;
}
.lang-link.active, .lang-link:hover {
    color: var(--primary) !important;
}
.lang-sep {
    font-size: 0.7rem;
    color: rgba(0,0,0,0.1);
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; z-index: 1001; }
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: .3s; border-radius: 2px; }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.5rem; border-radius: 8px; font-weight: 600;
    font-size: .9rem; border: none; cursor: pointer;
    transition: all .3s; font-family: var(--font-b);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(10,102,194,0.25); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,102,194,0.35); color: #fff; }
.btn-accent { background: var(--accent-warm); color: #fff; box-shadow: 0 4px 16px rgba(255,107,53,0.25); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,0.35); color: #fff; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); font-weight: 600; }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 7rem 0 4rem; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 50%, #fff 100%);
}
.hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(10,102,194,0.08), transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,163,224,0.06), transparent 70%); border-radius: 50%; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; background: rgba(10,102,194,0.08); border: 1px solid rgba(10,102,194,0.15); border-radius: 100px; font-size: .8rem; color: var(--primary); margin-bottom: 1.5rem; font-weight: 500; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; margin-bottom: 1.5rem; }
.hero h1 strong { color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--card-border); }
.hero-stat .number { font-family: var(--font-h); font-size: 2rem; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: .8rem; color: var(--text-muted); }
.hero-image { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: 450px; object-fit: cover; }

/* ==========================================================================
   7. SERVICE CARDS (Homepage)
   ========================================================================== */
.services { padding: 6rem 0; background: var(--bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 2.2rem 1.8rem;
    transition: all var(--transition); position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(10,102,194,0.2); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transition: transform .4s; transform-origin: left; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon { width: 48px; height: 48px; background: linear-gradient(135deg, rgba(10,102,194,0.1), rgba(0,163,224,0.08)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.service-card > p { color: var(--text-secondary); font-size: .85rem; margin-bottom: 1rem; }
.service-card ul { list-style: none; margin-top: auto; }
.service-card ul li { color: var(--text-secondary); font-size: 0.82rem; padding: .25rem 0 .25rem 1.4rem; position: relative; }
.service-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.learn-more { color: var(--primary); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.learn-more:hover { gap: .6rem; }

/* ==========================================================================
   8. PROJECTS (Homepage)
   ========================================================================== */
.projects { padding: 6rem 0; }
.project-filters { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn { padding: .5rem 1.2rem; border-radius: 100px; border: 1px solid var(--card-border); background: #fff; color: var(--text-secondary); font-size: .85rem; cursor: pointer; transition: all .3s; font-family: var(--font-b); }
.filter-btn.active, .filter-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.project-card { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover img { transform: scale(1.06); }
.project-card .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,22,40,0.85) 0%, transparent 50%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transition: .4s; }
.project-card:hover .overlay { opacity: 1; }
.project-card .overlay h3 { color: #fff; font-size: 1.1rem; margin-bottom: .3rem; }
.project-card .overlay span { color: var(--accent); font-size: .8rem; }

/* ==========================================================================
   9. ABOUT (Homepage)
   ========================================================================== */
.about { padding: 6rem 0; background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: 420px; object-fit: cover; }
.about-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.about-content .lead { color: var(--primary); font-size: 1rem; font-weight: 500; margin-bottom: 1rem; }
.about-content p { color: var(--text-secondary); margin-bottom: 1rem; font-size: .95rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.about-feature { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; background: #fff; border-radius: 10px; border: 1px solid var(--card-border); font-size: .85rem; font-weight: 500; }
.about-feature .icon { font-size: 1.2rem; }

/* ==========================================================================
   10. CAPABILITIES / STATS
   ========================================================================== */
.capabilities { padding: 4rem 0; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.cap-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: all .4s; }
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cap-card .number { font-family: var(--font-h); font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: .2rem; }
.cap-card h3 { font-size: .9rem; margin-bottom: .4rem; }
.cap-card p { color: var(--text-muted); font-size: .75rem; }

/* ==========================================================================
   11. CLIENTS
   ========================================================================== */
.clients { padding: 3rem 0; background: var(--bg-alt); border-top: 1px solid rgba(0,0,0,0.03); }
.clients-row { display: flex; justify-content: center; align-items: center; gap: 4rem; flex-wrap: wrap; }
.client-logo { height: 32px; opacity: 0.35; transition: all 0.4s ease; filter: grayscale(100%); }
.client-logo:hover { opacity: 0.8; filter: grayscale(0%); transform: translateY(-2px); }

/* ==========================================================================
   12. CONTACT
   ========================================================================== */
.contact { padding: 6rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info h2 { font-size: 1.8rem; margin-bottom: .75rem; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-item .ci-icon { width: 44px; height: 44px; background: linear-gradient(135deg, rgba(10,102,194,0.08), rgba(0,163,224,0.06)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item h4 { font-size: .9rem; margin-bottom: .15rem; }
.contact-item p, .contact-item a { color: var(--text-secondary); font-size: .85rem; }
.contact-form { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.contact-form > p { color: var(--text-secondary); font-size: .85rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .75rem; }
.form-group { margin-bottom: .75rem; }
.form-group label { display: block; font-size: .82rem; margin-bottom: .3rem; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .65rem .9rem; background: var(--bg-alt); border: 1px solid var(--card-border); border-radius: 8px; color: var(--text); font-family: var(--font-b); font-size: .88rem; transition: border-color .3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(10,102,194,0.08); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit { width: 100%; margin-top: .25rem; }

/* Map */
.map-section { padding: 0 0 4rem; }
.map-container { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); height: 300px; box-shadow: var(--shadow); }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   13. CTA
   ========================================================================== */
.cta-section { padding: 5rem 0; }
.cta-box { background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light)); border-radius: 20px; padding: 4rem; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.08), transparent); border-radius: 50%; }
.cta-box h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .75rem; position: relative; }
.cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer { padding: 4rem 0 2rem; background: var(--bg-dark); color: rgba(255,255,255,0.7); }
.site-footer h4 { color: #fff; font-family: var(--font-h); }
.site-footer a { color: rgba(255,255,255,0.6); transition: color .3s; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: .85rem; margin-top: 1rem; line-height: 1.6; color: rgba(255,255,255,0.5); }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-col h4 { font-size: .9rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { font-size: .85rem; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: .8rem; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   15. PAGE TEMPLATES (Services, Projects, About)
   ========================================================================== */

/* Page Hero */
.page-hero { padding: 8rem 0 4rem; background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 50%, #fff 100%); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-hero p { color: var(--text-secondary); max-width: 650px; margin: 0 auto; font-size: 1.05rem; }

/* Service Detail Cards */
.services-detail { padding: 4rem 0; }
.service-detail-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; margin-bottom: 5rem; padding-bottom: 5rem; border-bottom: 1px solid var(--card-border); }
.service-detail-card:last-child { border-bottom: none; margin-bottom: 0; }
.service-detail-card.reverse { direction: rtl; }
.service-detail-card.reverse > * { direction: ltr; }
.sdc-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.sdc-image img { width: 100%; height: 350px; object-fit: cover; }
.sdc-icon { font-size: 2rem; margin-bottom: .75rem; }
.sdc-content h2 { font-size: 1.6rem; margin-bottom: .75rem; }
.sdc-content > p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.sdc-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.5rem; padding: 1rem; background: var(--bg-alt); border-radius: 12px; }
.sdc-specs .spec { font-size: .85rem; color: var(--text-secondary); }
.sdc-specs .spec strong { color: var(--text); }
.sdc-list { list-style: none; margin-bottom: 1.5rem; }
.sdc-list li { padding: .3rem 0 .3rem 1.5rem; position: relative; font-size: .9rem; color: var(--text-secondary); }
.sdc-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Process Timeline */
.process-section { padding: 5rem 0; background: var(--bg-alt); }
.process-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.process-timeline::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 0; }
.process-step { text-align: center; position: relative; z-index: 1; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; box-shadow: 0 4px 16px rgba(10,102,194,0.25); }
.process-step h3 { font-size: .95rem; margin-bottom: .4rem; }
.process-step p { font-size: .8rem; color: var(--text-muted); }

/* Projects Gallery (full page) */
.projects-gallery { padding: 4rem 0; }
.projects-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card-full { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.project-card-full img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card-full:hover img { transform: scale(1.06); }
.project-card-full .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.3) 40%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transition: .4s; }
.project-card-full:hover .overlay { opacity: 1; }
.project-card-full .overlay h3 { color: #fff; font-size: 1.1rem; margin-bottom: .3rem; }
.project-card-full .overlay span { color: var(--accent); font-size: .8rem; margin-bottom: .5rem; }
.project-card-full .overlay p { color: rgba(255,255,255,0.7); font-size: .8rem; }

/* Industries */
.industries-section { padding: 5rem 0; background: var(--bg-alt); }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.industry-card { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 2rem; text-align: center; transition: all .4s; }
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ind-icon { font-size: 2rem; margin-bottom: .75rem; }
.industry-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.industry-card p { font-size: .85rem; color: var(--text-muted); }

/* Vision / Mission */
.vm-section { padding: 5rem 0; background: var(--bg-alt); }
.vm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.vm-card { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; transition: all .4s; }
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vm-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.vm-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.vm-card p { color: var(--text-secondary); font-size: .9rem; }

/* Factory */
.factory-section { padding: 5rem 0; }
.factory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.factory-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); background: #fff; }
.factory-card img { width: 100%; height: 220px; object-fit: cover; }
.factory-card h4 { padding: 1rem 1.2rem .25rem; font-size: .95rem; }
.factory-card p { padding: 0 1.2rem 1rem; font-size: .82rem; color: var(--text-muted); }
.equipment-list { background: var(--bg-alt); border-radius: var(--radius); padding: 2rem; }
.equipment-list h3 { font-size: 1.15rem; margin-bottom: 1.5rem; text-align: center; }
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.equip-item { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; background: #fff; border-radius: 10px; border: 1px solid rgba(0,0,0,0.05); }
.eq-icon { font-size: 1.3rem; flex-shrink: 0; }
.equip-item strong { font-size: .9rem; }
.equip-item small { font-size: .78rem; color: var(--text-muted); }

/* ==========================================================================
   16. ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible, .reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.98); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; z-index: 999; }
    .main-nav.open { display: flex; }
    .hamburger { display: flex; z-index: 1000; }
    .hero-grid, .about-grid, .contact-grid, .service-detail-card { grid-template-columns: 1fr; }
    .service-detail-card.reverse { direction: ltr; }
    .hero-image { margin-top: 2rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .projects-grid, .projects-grid-full { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .cap-grid, .industries-grid { grid-template-columns: 1fr 1fr; }
    .process-timeline { grid-template-columns: 1fr; gap: 2rem; }
    .process-timeline::before { display: none; }
    .vm-grid, .factory-grid, .equip-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   18. ASTRA OVERRIDES
   ========================================================================== */
.htp-page .ast-header-break-point .ast-mobile-header-wrap,
.htp-page #ast-desktop-header,
.htp-page .ast-footer-overlay,
.htp-page .site-footer:not(.site-footer),
.htp-page .ast-above-header,
.htp-page .ast-below-header {
    display: none !important;
}
