/* ==========================================================================
   KEBO INTERNATIONAL - Premium CSS Design System
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
    --primary-blue: #0B5ED7;
    --secondary-blue: #1E88E5;
    --light-blue: #EAF4FF;
    --dark-text: #1A1A1A;
    --grey-text: #666666;
    --white-bg: #FFFFFF;
    --border-color: #DCE8F5;
    --light-grey-bg: #F8FAFC;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(11, 94, 215, 0.04);
    --shadow-md: 0 8px 24px rgba(11, 94, 215, 0.06);
    --shadow-lg: 0 16px 40px rgba(11, 94, 215, 0.09);
    --shadow-hover: 0 20px 48px rgba(11, 94, 215, 0.14);
    
    /* Glow Effects */
    --blue-glow-pulse: 0 0 0 0 rgba(11, 94, 215, 0.4);
    --blue-glow-hover: 0 10px 30px rgba(11, 94, 215, 0.25);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Layout Max Width */
    --max-width: 1280px;
}

/* --- Base Resets & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background-color: var(--white-bg);
}

body {
    background-color: var(--white-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* --- Global Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Typography Helpers --- */
.section-subtitle {
    display: inline-block;
    color: var(--primary-blue);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding: 6px 16px;
    background-color: var(--light-blue);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 18px;
    color: var(--grey-text);
    max-width: 680px;
    margin: 0 auto 60px auto;
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    box-shadow: var(--blue-glow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: var(--light-blue);
    transform: translateY(-2px);
}

/* --- Sticky Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-smooth);
}

.header.scrolled .container {
    height: 70px;
}

.logo-wrapper {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo-wrapper svg {
    max-height: 100%;
    width: auto;
}

/* Nav Links */
.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-text);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Responsive Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* Mobile Menu Navigation overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white-bg);
    z-index: 1005;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: var(--transition-smooth);
    padding: 40px;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav .nav-link {
    font-size: 22px;
}

/* --- Floating Buttons --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: pulseWhatsapp 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #20ba59;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@keyframes pulseWhatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    border-radius: var(--radius-full);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--light-blue) 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(11, 94, 215, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    color: var(--primary-blue);
}

.hero-content p {
    font-size: 19px;
    color: var(--grey-text);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visuals {
    position: relative;
    width: 100%;
}

.hero-image-card {
    background: white;
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 3;
    animation: floatHero 6s ease-in-out infinite;
}

.hero-image-card img {
    border-radius: var(--radius-md);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    background-color: var(--white-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 16px 20px;
    border-left: 4px solid var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4;
}

.hero-badge-1 {
    bottom: -20px;
    left: -20px;
}

.hero-badge-2 {
    top: -20px;
    right: -20px;
}

.hero-badge span.num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
}

.hero-badge span.text {
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes floatHero {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

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

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-img-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.about-img-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-img-box img:hover {
    transform: scale(1.05);
}

.about-img-box.tall {
    grid-row: span 2;
}

.about-img-box.tall img {
    height: 460px;
}

.about-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
}

.about-desc {
    font-size: 17px;
    color: var(--grey-text);
    margin-bottom: 30px;
}

.about-mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.mv-card {
    background-color: var(--light-blue);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(11, 94, 215, 0.15);
}

.mv-card h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mv-card p {
    font-size: 14px;
    color: var(--grey-text);
}

/* --- Industries Section --- */
.industries {
    background-color: var(--light-grey-bg);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.industry-card {
    background-color: var(--white-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.industry-img-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.industry-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.industry-icon-overlay {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: var(--transition-smooth);
}

.industry-card:hover .industry-icon-overlay {
    background-color: var(--secondary-blue);
    transform: translateY(-5px);
}

.industry-icon-overlay svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.industry-body {
    padding: 30px 24px 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.industry-body h3 {
    font-size: 19px;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.industry-card:hover .industry-body h3 {
    color: var(--primary-blue);
}

.industry-body p {
    font-size: 14px;
    color: var(--grey-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.industry-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.industry-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: var(--transition-fast);
}

.industry-card:hover .industry-link svg {
    transform: translateX(4px);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 36px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 94, 215, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-blue);
    border-radius: var(--radius-md);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--grey-text);
}

/* --- Featured Machinery Gallery --- */
.machinery {
    background-color: var(--light-grey-bg);
}

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

.machinery-card {
    background-color: var(--white-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
}

.machinery-img-box {
    width: 100%;
    height: 100%;
    position: relative;
}

.machinery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.machinery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 94, 215, 0.1) 0%, rgba(11, 94, 215, 0.9) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: var(--transition-smooth);
    z-index: 2;
}

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

.machinery-overlay h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.machinery-card:hover .machinery-overlay h3 {
    transform: translateY(0);
}

.machinery-tag {
    align-self: flex-start;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-blue);
    background-color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    transition-delay: 0.05s;
}

.machinery-card:hover .machinery-tag {
    transform: translateY(0);
}

.machinery-btn {
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    transition-delay: 0.1s;
}

.machinery-card:hover .machinery-btn {
    transform: translateY(0);
}

.machinery-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* --- Why Choose Us --- */
.why-choose-us {
    position: relative;
    background-color: var(--white-bg);
}

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

.why-left h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
}

.why-left p {
    font-size: 17px;
    color: var(--grey-text);
    margin-bottom: 30px;
}

.why-right-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.why-card {
    background-color: var(--white-bg);
    border: 1px solid var(--border-color);
    padding: 30px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.why-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.why-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-card:hover .why-icon {
    background-color: var(--primary-blue);
    color: white;
}

.why-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.why-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 13px;
    color: var(--grey-text);
}

/* --- Working Process (Timeline) --- */
.process {
    background-color: var(--light-grey-bg);
    overflow: hidden;
}

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    padding: 0 40px;
}

/* Timeline Line */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.process-timeline-progress {
    position: absolute;
    top: 40px;
    left: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    z-index: 2;
    width: 0;
    transition: width 1.5s ease-out;
}

.process-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 18%;
}

.process-node {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background-color: var(--white-bg);
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--grey-text);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.process-step.active .process-node {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: var(--blue-glow-hover);
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 13px;
    color: var(--grey-text);
    padding: 0 10px;
}

/* --- Statistics Section --- */
.stats {
    background-color: var(--white-bg);
    border-bottom: 1px solid var(--border-color);
}

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

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 54px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text);
}

.stat-desc {
    font-size: 13px;
    color: var(--grey-text);
    margin-top: 4px;
}

/* --- FAQ Section --- */
.faq {
    background-color: var(--light-grey-bg);
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-card {
    background-color: var(--white-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-header h3 {
    font-size: 17px;
    font-weight: 700;
}

.faq-toggle-icon {
    width: 24px;
    height: 24px;
    color: var(--grey-text);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-toggle-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-content {
    padding: 0 24px 24px 24px;
    color: var(--grey-text);
    font-size: 14.5px;
    border-top: 1px solid transparent;
}

/* FAQ Active state classes */
.faq-card.active {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.faq-card.active .faq-header h3 {
    color: var(--primary-blue);
}

.faq-card.active .faq-toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.faq-card.active .faq-body {
    /* Set via JavaScript */
}

/* --- Contact CTA Section --- */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    z-index: 1;
}

.contact-cta-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.contact-cta h2 {
    color: white;
    font-size: 40px;
    margin-bottom: 20px;
}

.contact-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
}

.contact-cta .btn-white {
    background-color: white;
    color: var(--primary-blue);
}

.contact-cta .btn-white:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* --- Contact Form Section --- */
.contact-form-section {
    background-color: var(--white-bg);
}

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

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-info-desc {
    color: var(--grey-text);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.detail-icon {
    width: 48px;
    height: 48px;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.detail-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-content p, .detail-content a {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-text);
}

.detail-content a:hover {
    color: var(--primary-blue);
}

/* Main Form Elements */
.contact-form-card {
    background-color: var(--white-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    background-color: var(--light-grey-bg);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--dark-text);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.1);
}

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

/* --- Footer --- */
.footer {
    background-color: var(--light-grey-bg);
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-about p {
    font-size: 14px;
    color: var(--grey-text);
    margin-top: 20px;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-logo {
    height: 45px;
}

.footer-logo svg {
    max-height: 100%;
    width: auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14.5px;
    color: var(--grey-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '→';
    color: var(--primary-blue);
    opacity: 0;
    transition: var(--transition-fast);
    margin-left: -10px;
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 10px;
}

.footer-links a:hover::before {
    opacity: 1;
    margin-left: 0;
}

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

.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--grey-text);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-blue);
    flex-shrink: 0;
}

.footer-contact-item a:hover {
    color: var(--primary-blue);
}

.footer-newsletter p {
    font-size: 14px;
    color: var(--grey-text);
    margin-bottom: 18px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.newsletter-form .form-control {
    padding: 10px 14px;
    font-size: 14px;
}

.newsletter-form .btn {
    padding: 10px 20px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--grey-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--grey-text);
}

/* --- Service Subpages Template Specifics --- */
.subpage-hero {
    padding: 160px 0 100px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--light-blue) 100%);
    border-bottom: 1px solid var(--border-color);
}

.subpage-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.subpage-hero-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.subpage-hero-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.subpage-body-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.subpage-gallery h3 {
    font-size: 26px;
    margin-bottom: 30px;
}

.subpage-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.subpage-gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
}

.subpage-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.subpage-gallery-item img:hover {
    transform: scale(1.05);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 40px;
}

.specs-table th, .specs-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background-color: var(--light-blue);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary-blue);
    font-weight: 700;
}

.specs-table tr:hover {
    background-color: var(--light-grey-bg);
}

.subpage-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background-color: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card.blue-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    border: none;
}

.sidebar-card.blue-card h3 {
    color: white;
}

.sidebar-card h3 {
    font-size: 19px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.sidebar-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-blue);
}

.sidebar-card.blue-card h3::after {
    background-color: white;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-list li {
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-list li svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-blue);
    flex-shrink: 0;
}

.sidebar-card.blue-card .sidebar-list li svg {
    fill: white;
}

/* Animations Trigger Classes via Intersection Observer */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Breakpoints (Desktop, Tablet, Mobile) --- */

@media (max-width: 1024px) {
    /* Tablet Rules: 2-column layouts */
    .section-title {
        font-size: 34px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 30px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badge-1 {
        left: 20px;
    }
    
    .hero-badge-2 {
        right: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .machinery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-timeline {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-timeline-progress {
        display: none;
    }
    
    .process-step {
        width: 100%;
        max-width: 320px;
    }
    
    .process-node {
        margin-bottom: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subpage-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .subpage-body-grid {
        grid-template-columns: 1fr;
    }
    
    .subpage-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Mobile Rules: Hamburger toggle, 1-column layout */
    .header .container {
        height: 70px;
    }
    
    .nav-menu, .header .btn {
        display: none; /* Hide desktop nav and quote button in header */
    }
    
    .hamburger {
        display: block; /* Show hamburger */
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-content h1 {
        font-size: 34px;
        letter-spacing: -0.5px;
    }
    
    .hero-image-card img {
        height: 300px;
    }
    
    .hero-badge {
        padding: 10px 14px;
    }
    
    .hero-badge span.num {
        font-size: 18px;
    }
    
    .hero-badge span.text {
        font-size: 10px;
    }
    
    .industries-grid, .services-grid, .machinery-grid, .stats-grid, .footer-grid, .why-right-grid {
        grid-template-columns: 1fr; /* 1-column layouts */
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .contact-form-card {
        padding: 24px;
    }
    
    .subpage-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =======================================================================
   KEBO INTERNATIONAL - FINAL MOBILE RESPONSIVE FIXES
   Added to standardize image dimensions, align sections, and improve mobile UI
   ======================================================================= */

/* Global safety fixes */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

.container,
.hero-grid,
.about-grid,
.industries-grid,
.services-grid,
.machinery-grid,
.why-grid,
.why-right-grid,
.stats-grid,
.contact-form-grid,
.footer-grid,
.subpage-hero-grid,
.subpage-body-grid,
.subpage-gallery-grid {
    min-width: 0;
}

p, h1, h2, h3, h4, h5, h6, a, span, li {
    overflow-wrap: anywhere;
}

/* Standard image presentation */
.hero-image-card img,
.about-img-box img,
.industry-img-container img,
.machinery-img-box img,
.subpage-hero-img img,
.subpage-gallery-item img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.industry-card,
.service-card,
.machinery-card,
.why-card,
.stat-card,
.faq-card,
.contact-form-card,
.mv-card,
.sidebar-card {
    overflow: hidden;
}

/* Better tablet card rhythm */
@media (max-width: 1180px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-menu {
        gap: 18px;
    }

    .header .btn {
        padding: 12px 18px;
    }

    .industries-grid,
    .services-grid,
    .machinery-grid {
        gap: 22px;
    }
}

@media (max-width: 920px) {
    .header .container {
        height: 72px;
    }

    .logo-wrapper,
    .logo-wrapper svg {
        max-width: 220px;
    }

    .nav-menu,
    .header > .container > .btn {
        display: none !important;
    }

    .hamburger {
        display: block !important;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: var(--light-blue);
    }

    .hamburger span {
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-nav {
        padding: 90px 24px 32px;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .mobile-nav .nav-link {
        width: 100%;
        max-width: 420px;
        padding: 15px 18px;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow-sm);
        text-align: center;
    }

    .mobile-nav .btn {
        width: 100%;
        max-width: 420px;
    }

    .hero {
        min-height: auto;
        padding: 112px 0 58px;
    }

    .hero-grid,
    .about-grid,
    .why-grid,
    .contact-form-grid,
    .subpage-hero-grid,
    .subpage-body-grid {
        grid-template-columns: 1fr !important;
        gap: 34px;
    }

    .hero-content,
    .why-left,
    .contact-info,
    .subpage-hero-content {
        text-align: center;
    }

    .hero-content p,
    .why-left p,
    .section-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .about-mission-vision,
    .industries-grid,
    .services-grid,
    .machinery-grid,
    .stats-grid,
    .footer-grid,
    .why-right-grid,
    .subpage-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .industry-img-container {
        height: 210px;
    }

    .machinery-card {
        aspect-ratio: 4 / 3;
    }

    .subpage-sidebar {
        position: static !important;
    }
}

@media (max-width: 600px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header .container {
        height: 66px;
    }

    .logo-wrapper svg {
        width: 175px !important;
        height: auto !important;
        max-height: 42px;
    }

    .section-padding {
        padding: 52px 0 !important;
    }

    .section-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
        padding: 6px 12px;
        margin-bottom: 10px;
    }

    .section-title,
    .about-content h2,
    .why-left h2,
    .subpage-hero-content h1 {
        font-size: clamp(26px, 8vw, 34px) !important;
        line-height: 1.16;
        letter-spacing: -0.4px;
    }

    .section-desc,
    .about-desc,
    .why-left p,
    .hero-content p {
        font-size: 15px !important;
        line-height: 1.75;
        margin-bottom: 28px;
    }

    .hero-content h1 {
        font-size: clamp(32px, 10vw, 42px) !important;
        line-height: 1.12;
        margin-bottom: 18px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-actions .btn,
    .btn {
        width: 100%;
        min-height: 48px;
        padding: 13px 18px;
    }

    .hero-image-card {
        padding: 8px;
        border-radius: 18px;
        animation: none;
    }

    .hero-image-card img {
        height: auto !important;
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .hero-badge {
        position: static;
        width: 100%;
        margin-top: 10px;
        justify-content: center;
        border-left: 0;
        border-top: 4px solid var(--primary-blue);
    }

    .hero-badge-1,
    .hero-badge-2 {
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }

    .about-visual {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        order: 2;
    }

    .about-content {
        order: 1;
        text-align: center;
    }

    .about-img-box,
    .about-img-box.tall {
        grid-row: auto;
        border-radius: 16px;
    }

    .about-img-box img,
    .about-img-box.tall img {
        height: auto !important;
        aspect-ratio: 1 / 1;
    }

    .about-img-box.tall {
        grid-column: span 2;
    }

    .about-img-box.tall img {
        aspect-ratio: 16 / 10;
    }

    .about-mission-vision,
    .industries-grid,
    .services-grid,
    .machinery-grid,
    .stats-grid,
    .footer-grid,
    .why-right-grid,
    .subpage-gallery-grid,
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .industry-card,
    .service-card,
    .machinery-card,
    .why-card,
    .stat-card,
    .faq-card,
    .contact-form-card,
    .mv-card,
    .sidebar-card {
        border-radius: 18px;
        box-shadow: 0 10px 28px rgba(11, 94, 215, 0.08);
    }

    .industry-img-container {
        height: auto !important;
        aspect-ratio: 16 / 10;
    }

    .industry-body {
        padding: 26px 20px 22px;
        text-align: left;
    }

    .industry-body h3,
    .service-card h3,
    .why-card h3 {
        font-size: 19px;
    }

    .industry-body p,
    .service-card p,
    .why-card p {
        font-size: 14.5px;
        line-height: 1.7;
    }

    .industry-icon-overlay {
        right: 16px;
        bottom: -18px;
        width: 48px;
        height: 48px;
    }

    .service-card,
    .why-card {
        padding: 26px 20px;
    }

    .service-icon,
    .why-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .service-card,
    .why-card {
        text-align: center;
    }

    .machinery-card {
        aspect-ratio: 16 / 11 !important;
        min-height: 230px;
    }

    .machinery-overlay {
        opacity: 1;
        padding: 20px;
        background: linear-gradient(180deg, rgba(11, 94, 215, 0.04) 0%, rgba(11, 94, 215, 0.88) 100%);
    }

    .machinery-overlay h3,
    .machinery-tag,
    .machinery-btn {
        transform: translateY(0) !important;
    }

    .contact-form-card {
        padding: 22px 16px !important;
    }

    input,
    select,
    textarea {
        width: 100%;
        font-size: 16px !important;
    }

    .form-group.full-width {
        grid-column: span 1 !important;
    }

    .floating-whatsapp {
        width: 54px;
        height: 54px;
        right: 16px;
        bottom: 16px;
    }

    .scroll-top {
        width: 42px;
        height: 42px;
        left: 16px;
        bottom: 16px;
    }

    .footer-grid,
    .footer-col {
        text-align: center;
    }

    .footer-col ul li a,
    .footer-contact-item {
        justify-content: center;
    }

    .subpage-hero {
        padding-top: 105px !important;
    }

    .subpage-hero-img img,
    .subpage-gallery-item img {
        height: auto !important;
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }

    table,
    .specs-table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 380px) {
    .logo-wrapper svg {
        width: 155px !important;
    }

    .hero-content h1 {
        font-size: 30px !important;
    }

    .section-title,
    .about-content h2,
    .why-left h2,
    .subpage-hero-content h1 {
        font-size: 25px !important;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* =======================================================================
   INDUSTRIES WE SERVE - RESPONSIVE CARD LENGTH FIX
   Fixes long blank blocks, equal image ratios, and mobile alignment on home.
   ======================================================================= */
#industries .industries-grid {
    align-items: stretch;
}

#industries .industry-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
}

#industries .industry-img-container {
    flex: 0 0 auto;
    height: auto !important;
    aspect-ratio: 16 / 10;
}

#industries .industry-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

#industries .industry-body {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 22px 22px !important;
}

#industries .industry-body h3 {
    margin-bottom: 10px !important;
    min-height: auto !important;
}

#industries .industry-body p {
    margin-bottom: 18px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#industries .industry-link {
    margin-top: auto !important;
}

/* Convert the last two wide inline cards to clean normal cards on tablet/mobile */
@media (max-width: 1024px) {
    #industries .industry-card[style] {
        grid-column: span 1 !important;
        display: flex !important;
        grid-template-columns: none !important;
    }

    #industries .industry-card[style] .industry-img-container,
    #industries .industry-card[style] .industry-img-container img {
        height: auto !important;
    }
}

@media (max-width: 768px) {
    #industries .section-desc {
        max-width: 94%;
        margin-bottom: 26px !important;
    }

    #industries .industries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    #industries .industry-body {
        padding: 20px 16px 18px !important;
    }

    #industries .industry-body h3 {
        font-size: 18px !important;
        line-height: 1.25 !important;
    }

    #industries .industry-body p {
        font-size: 14px !important;
        line-height: 1.55 !important;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 520px) {
    #industries .industries-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    #industries .industry-card {
        display: grid !important;
        grid-template-columns: 110px 1fr !important;
        align-items: stretch !important;
        min-height: 128px !important;
        border-radius: 18px !important;
    }

    #industries .industry-img-container {
        height: 100% !important;
        min-height: 128px !important;
        aspect-ratio: auto !important;
        border-radius: 0 !important;
    }

    #industries .industry-img-container img {
        height: 100% !important;
    }

    #industries .industry-body {
        padding: 16px 14px !important;
        min-width: 0 !important;
    }

    #industries .industry-body h3 {
        font-size: 16.5px !important;
        margin-bottom: 6px !important;
    }

    #industries .industry-body p {
        font-size: 13.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
        -webkit-line-clamp: 2;
    }

    #industries .industry-link {
        font-size: 13.5px !important;
    }

    #industries .industry-icon-overlay {
        width: 38px !important;
        height: 38px !important;
        right: 8px !important;
        bottom: 8px !important;
        border-width: 3px !important;
    }

    #industries .industry-icon-overlay svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 360px) {
    #industries .industry-card {
        grid-template-columns: 92px 1fr !important;
        min-height: 118px !important;
    }

    #industries .industry-img-container {
        min-height: 118px !important;
    }
}

/* =============================================================
   MOBILE MENU COMPACT FIX - removes long scrollable menu + close button
   ============================================================= */
@media (max-width: 991px) {
  .header {
    padding: 8px 0 !important;
  }

  .header .container {
    height: 64px !important;
  }

  .logo-wrapper {
    height: 42px !important;
  }

  .hamburger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: #eef6ff !important;
    border: 1px solid rgba(11, 94, 215, 0.16) !important;
    position: relative !important;
    z-index: 1105 !important;
  }

  .hamburger span {
    width: 22px !important;
    height: 2px !important;
    margin: 3px 0 !important;
    border-radius: 10px !important;
  }

  .mobile-nav {
    top: 76px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100vh - 96px) !important;
    transform: translateY(-18px) scale(0.98) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    padding: 48px 14px 16px !important;
    gap: 9px !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow-y: auto !important;
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid rgba(11, 94, 215, 0.14) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16) !important;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease !important;
  }

  .mobile-nav.active {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    left: 12px !important;
  }

  .mobile-nav-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #0B5ED7 !important;
    color: #fff !important;
    font-size: 26px !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  .mobile-nav .nav-link {
    width: 100% !important;
    max-width: none !important;
    padding: 10px 13px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  .mobile-nav .btn {
    width: 100% !important;
    max-width: none !important;
    min-height: 42px !important;
    margin-top: 4px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
  }

  body.menu-open {
    overflow: hidden !important;
  }
}

@media (max-width: 380px) {
  .mobile-nav {
    top: 70px !important;
    padding: 44px 10px 12px !important;
    gap: 7px !important;
  }
  .mobile-nav .nav-link {
    min-height: 36px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
  }
}

/* =============================================================
   SERVICE PAGES MOBILE RESPONSIVE FIX
   Fixes inner service pages: hero, text, buttons, tables, sidebar,
   gallery and long content overflow on mobile.
   ============================================================= */
.service-page-fix-marker { display: none; }

.subpage-hero,
.subpage-body-grid,
.subpage-sidebar,
.sidebar-card,
.specs-table,
.subpage-gallery,
.subpage-gallery-item {
    min-width: 0 !important;
    max-width: 100% !important;
}

.subpage-hero h1,
.subpage-body-grid h2,
.subpage-body-grid h3,
.sidebar-card h3,
.sidebar-card p,
.sidebar-list li {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.subpage-hero .btn,
.sidebar-card .btn {
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
}

@media (max-width: 991px) {
    .subpage-hero {
        padding: 118px 0 56px 0 !important;
    }

    .subpage-hero-grid,
    .subpage-body-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .subpage-hero h1 {
        font-size: clamp(30px, 6vw, 42px) !important;
        line-height: 1.14 !important;
        margin-bottom: 14px !important;
    }

    .subpage-hero p {
        font-size: 16px !important;
        line-height: 1.7 !important;
        margin-bottom: 22px !important;
    }

    .subpage-hero-img img {
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        object-fit: cover !important;
    }

    .subpage-sidebar {
        position: static !important;
        top: auto !important;
        gap: 20px !important;
    }
}

@media (max-width: 640px) {
    .subpage-hero {
        padding: 96px 0 42px 0 !important;
        text-align: center !important;
    }

    .subpage-hero-grid,
    .subpage-body-grid {
        gap: 22px !important;
    }

    .subpage-hero h1,
    .subpage-hero .reveal h1 {
        font-size: clamp(26px, 8vw, 34px) !important;
        line-height: 1.14 !important;
        margin-bottom: 12px !important;
    }

    .subpage-hero p,
    .subpage-hero .reveal p {
        font-size: 14.5px !important;
        line-height: 1.68 !important;
        margin-bottom: 20px !important;
    }

    .subpage-hero .reveal > div[style*="display: flex"],
    .subpage-hero .reveal > div[style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .subpage-hero .btn,
    .sidebar-card .btn {
        width: 100% !important;
        min-height: 46px !important;
        padding: 12px 14px !important;
        font-size: 14px !important;
    }

    .subpage-hero-img {
        border-radius: 18px !important;
    }

    .subpage-hero-img img {
        aspect-ratio: 4 / 3 !important;
        border-radius: 18px !important;
    }

    .subpage-body-grid > .reveal {
        width: 100% !important;
        overflow: hidden !important;
    }

    .subpage-body-grid h2,
    .subpage-body-grid .reveal > h2 {
        font-size: 24px !important;
        line-height: 1.22 !important;
        margin-bottom: 14px !important;
    }

    .subpage-body-grid h3,
    .subpage-body-grid .reveal > h3 {
        font-size: 19px !important;
        line-height: 1.28 !important;
        margin-bottom: 10px !important;
    }

    .subpage-body-grid p,
    .subpage-body-grid li {
        font-size: 14.5px !important;
        line-height: 1.68 !important;
    }

    .subpage-body-grid ul {
        margin-left: 16px !important;
        gap: 8px !important;
    }

    .specs-table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 14px !important;
        margin-bottom: 26px !important;
    }

    .specs-table th,
    .specs-table td {
        padding: 11px 12px !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        min-width: 135px !important;
    }

    .subpage-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .subpage-gallery h3 {
        font-size: 22px !important;
        margin-bottom: 16px !important;
    }

    .subpage-gallery-item {
        aspect-ratio: 16 / 10 !important;
        border-radius: 16px !important;
    }

    .subpage-gallery-item img {
        height: 100% !important;
        aspect-ratio: auto !important;
        border-radius: 16px !important;
    }

    .sidebar-card {
        padding: 20px 16px !important;
        border-radius: 18px !important;
    }

    .sidebar-list {
        gap: 10px !important;
    }

    .sidebar-list li {
        align-items: flex-start !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .sidebar-list svg {
        flex: 0 0 18px !important;
        width: 18px !important;
        height: 18px !important;
        margin-top: 2px !important;
    }
}

@media (max-width: 420px) {
    .subpage-hero h1,
    .subpage-hero .reveal h1 {
        font-size: 25px !important;
    }

    .subpage-body-grid h2,
    .subpage-body-grid .reveal > h2 {
        font-size: 22px !important;
    }

    .subpage-body-grid h3,
    .subpage-body-grid .reveal > h3 {
        font-size: 18px !important;
    }

    .specs-table th,
    .specs-table td {
        min-width: 120px !important;
        font-size: 12.5px !important;
        padding: 10px !important;
    }
}

/* Homepage Gallery Section */
.home-gallery-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    overflow: hidden;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 230px;
    gap: 18px;
    margin-top: 44px;
}

.home-gallery-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #eaf3ff;
    box-shadow: 0 20px 45px rgba(11, 94, 215, 0.12);
    border: 1px solid rgba(11, 94, 215, 0.12);
    min-height: 220px;
}

.home-gallery-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.home-gallery-card.wide {
    grid-column: span 2;
}

.home-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 0.45s ease;
}

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

.home-gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 20%, rgba(5,28,62,0.78) 100%);
    pointer-events: none;
}

.home-gallery-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
}

.home-gallery-caption span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 9px;
}

.home-gallery-caption h3 {
    margin: 0;
    font-size: clamp(18px, 2vw, 28px);
    line-height: 1.15;
    color: #fff;
}

@media (max-width: 992px) {
    .home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 220px;
        gap: 14px;
    }
    .home-gallery-card.large,
    .home-gallery-card.wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 575px) {
    .home-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 14px;
        margin-top: 28px;
    }
    .home-gallery-card,
    .home-gallery-card.large,
    .home-gallery-card.wide {
        grid-column: span 1;
        grid-row: span 1;
        height: 245px;
        border-radius: 18px;
    }
    .home-gallery-caption {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }
    .home-gallery-caption h3 {
        font-size: 18px;
    }
}
